From 70c4864037ecb57a9929534234738693a2ee7752 Mon Sep 17 00:00:00 2001
From: zichen1019 <1510748736@qq.com>
Date: Mon, 30 Aug 2021 23:41:59 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/certificate/index.vue | 6 +++---
src/views/device_management/index.vue | 11 -----------
2 files changed, 3 insertions(+), 14 deletions(-)
diff --git a/src/views/certificate/index.vue b/src/views/certificate/index.vue
index dfedc22..bffe82d 100644
--- a/src/views/certificate/index.vue
+++ b/src/views/certificate/index.vue
@@ -152,7 +152,7 @@ export default {
}
},
{ prop: 'renewalDate', label: '发换证日期', align: 'center', width: 50 },
- { prop: 'remarks', label: '备注', align: 'center', width: 60,formatter: this.formatterDicDataRemark },
+ { prop: 'remarks', label: '备注', align: 'center', width: 60, formatter: this.formatterDicDataRemark },
{ slot: 'operation' }
],
permission: {
@@ -333,8 +333,8 @@ export default {
}
return null
},
- formatterDicDataRemark(cellValue){
- if (cellValue != null) {
+ formatterDicDataRemark(cellValue) {
+ if (cellValue != null) {
let label = ''
this.remarksDicList.filter(dicData => dicData.code === cellValue.remarks).forEach(dicData => {
label = dicData.name
diff --git a/src/views/device_management/index.vue b/src/views/device_management/index.vue
index c2d3b3f..b977189 100644
--- a/src/views/device_management/index.vue
+++ b/src/views/device_management/index.vue
@@ -299,17 +299,6 @@ const defaultForm = form({
checkDate: ''
})
-// 自定义模板内容
-const PrefixPlusText = {
- props: ['value', 'functions'],
- template: `
-
-
-
-
- `
-}
-
export default {
name: 'InstrumentList',
components: { Pagination, Query, Crud, CustomTable, Edit, TreeSelect, Move },