master
xy 1 year ago
parent d9a690ad5c
commit d3fae3f6c2

@ -443,16 +443,7 @@ export default function formBuilder (device, info, h, row, pWrite=false) {
'edit-closed': ({ row, column }) => {
const $table = this.$refs[`subForm-${info.name}`]
if ($table) {
const field = column.field
const cellValue = row[field]
// 判断单元格值是否被修改
if ($table.isUpdateByRow(row, field)) {
setTimeout(() => {
console.log(`局部保存成功! ${field}=${cellValue}`)
// 局部更新单元格为已保存状态
$table.reloadRow(row, null, field)
}, 300)
}
this.$set(this.form, info.name, this.$refs[`subForm-${info.name}`].tableData)
}
}
}

@ -78,7 +78,7 @@ export default {
methods: {
async getFlow() {
try {
const res = await flow()
const res = await flow(true)
this.cates = res.cates || [];
console.log(res)
} catch (err) {

Loading…
Cancel
Save