|
|
@ -275,6 +275,7 @@ export default { |
|
|
|
tableKey: 0, |
|
|
|
list: [], |
|
|
|
sids: [], // 用于导出的时候保存已选择的SIDs |
|
|
|
multipleSelection: [], |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
// 翻页 |
|
|
@ -388,6 +389,7 @@ export default { |
|
|
|
// 信息条数 获取点击时当前的sid |
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
|
this.multipleSelection = row |
|
|
|
row.forEach(element => { |
|
|
|
aa.push(element.sid) |
|
|
|
}) |
|
|
@ -458,8 +460,12 @@ export default { |
|
|
|
}, |
|
|
|
toCreate() { |
|
|
|
if (this.sids.length === 1) { |
|
|
|
this.viewState = 5 |
|
|
|
this.$refs['divContract'].showEdit(this.sids[0]) |
|
|
|
if (this.multipleSelection[0].nodeState === '已办结') { |
|
|
|
this.viewState = 5 |
|
|
|
this.$refs['divContract'].showEdit(this.sids[0]) |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择状态为已办结的记录进行操作' }) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) |
|
|
|
} |
|
|
|