Commit 614a06ec authored by jingnan's avatar jingnan 👀

Merge branch 'dev' of http://94.191.100.41/tfmom/tf-mom-web into dev

parents 83374384 c348b2b4
...@@ -93,8 +93,8 @@ export default { ...@@ -93,8 +93,8 @@ export default {
align: 'center', align: 'center',
headerAlign: 'center', headerAlign: 'center',
key: 'target.contentType', key: 'target.contentType',
level: 1,
parentKey: 'target', parentKey: 'target',
level: 1,
show: true, show: true,
title: '附件用于', title: '附件用于',
component: { component: {
...@@ -258,6 +258,7 @@ export default { ...@@ -258,6 +258,7 @@ export default {
val.forEach(r => { val.forEach(r => {
if (r.id && !r.operator) { if (r.id && !r.operator) {
r.operator = 'NO_CHANGE' r.operator = 'NO_CHANGE'
r.target.contentType = r.contentType
} }
if (r.target && r.target.secretCode) { if (r.target && r.target.secretCode) {
const secretDict = this.secretCodeOptions.find(m => m.value === r.target.secretCode) const secretDict = this.secretCodeOptions.find(m => m.value === r.target.secretCode)
......
...@@ -485,7 +485,10 @@ export default { ...@@ -485,7 +485,10 @@ export default {
this.currentSelection = val this.currentSelection = val
}, },
cellDataChange(val) { cellDataChange(val) {
this.$set(this.tableData, val.rowIndex, val.row) const row = this.$utils._set(val.row, val.key, val.value)
row.operator = 'MODIFY'
row.contentType = row.target.contentType
this.$set(this.tableData, val.rowIndex, row)
this.$emit('uploadData', this.tableData) this.$emit('uploadData', this.tableData)
}, },
upload(file) { upload(file) {
......
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