Commit 8abfb41f authored by xioln's avatar xioln

器材代用附件用于

parent 3a176dee
......@@ -60,7 +60,21 @@ export default {
activeValue: true,
inactiveValue: false
}
}, {
},
{
'dynamicProp': true,
'key': 'isAttachmentUsedSecret',
'title': '附件用于',
'prop': 'component',
'component': {
'name': 'el-switch',
activeText: '是',
inactiveText: '否',
activeValue: true,
inactiveValue: false
}
},
{
'dynamicProp': true,
'key': 'isVerifySecretFileName',
'title': '是否强制校验密级文件名',
......
......@@ -88,6 +88,40 @@ export default {
'show': true,
'headerAlign': 'center',
'align': 'center'
},
{
align: 'center',
headerAlign: 'center',
key: 'target.contentType',
level: 1,
parentKey: 'target',
show: true,
title: '附件用于',
component: {
name: 'el-select',
options: [
{
label: '代用说明',
value: 'isDYSM'
},
{
label: '器材验证',
value: 'isQCYZ'
},
{
label: '设计意见',
value: 'isSJYJ'
},
{
label: '使用情况',
value: 'isSYQK'
},
{
label: '其他',
value: 'isOthers'
}
]
}
}
]
},
......@@ -166,6 +200,10 @@ export default {
if (!isSupportSecret) {
columns = this.tableColumns.filter(x => x.key !== 'target.secretCodeName')
}
const isAttachmentUsedSecret = this.$utils._get(this.configItem, 'isAttachmentUsedSecret', false)
if (!isAttachmentUsedSecret) {
columns = this.tableColumns.filter(x => x.key !== 'target.contentType')
}
return columns
}
},
......@@ -247,6 +285,7 @@ export default {
})
},
update(data, deleteRows = []) {
console.log(11111, data)
// data
const tableData = this.value || []
tableData.forEach(row => {
......@@ -260,6 +299,7 @@ export default {
}
}
})
console.log(222, data)
this.$emit('input', data)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment