Commit 8abfb41f authored by xioln's avatar xioln

器材代用附件用于

parent 3a176dee
...@@ -60,7 +60,21 @@ export default { ...@@ -60,7 +60,21 @@ export default {
activeValue: true, activeValue: true,
inactiveValue: false inactiveValue: false
} }
}, { },
{
'dynamicProp': true,
'key': 'isAttachmentUsedSecret',
'title': '附件用于',
'prop': 'component',
'component': {
'name': 'el-switch',
activeText: '是',
inactiveText: '否',
activeValue: true,
inactiveValue: false
}
},
{
'dynamicProp': true, 'dynamicProp': true,
'key': 'isVerifySecretFileName', 'key': 'isVerifySecretFileName',
'title': '是否强制校验密级文件名', 'title': '是否强制校验密级文件名',
......
...@@ -88,6 +88,40 @@ export default { ...@@ -88,6 +88,40 @@ export default {
'show': true, 'show': true,
'headerAlign': 'center', 'headerAlign': 'center',
'align': '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 { ...@@ -166,6 +200,10 @@ export default {
if (!isSupportSecret) { if (!isSupportSecret) {
columns = this.tableColumns.filter(x => x.key !== 'target.secretCodeName') 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 return columns
} }
}, },
...@@ -247,6 +285,7 @@ export default { ...@@ -247,6 +285,7 @@ export default {
}) })
}, },
update(data, deleteRows = []) { update(data, deleteRows = []) {
console.log(11111, data)
// data // data
const tableData = this.value || [] const tableData = this.value || []
tableData.forEach(row => { tableData.forEach(row => {
...@@ -260,6 +299,7 @@ export default { ...@@ -260,6 +299,7 @@ export default {
} }
} }
}) })
console.log(222, data)
this.$emit('input', 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