|
|
@ -57,12 +57,12 @@ |
|
|
|
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="分公司" align="center"> |
|
|
|
<el-table-column label="分公司" align="center" width="120"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.useOrgName }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="申请部门" align="center"> |
|
|
|
<el-table-column label="申请部门" align="center" width="130"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ scope.row.createDept }}</span> |
|
|
|
</template> |
|
|
@ -167,6 +167,7 @@ export default { |
|
|
|
tableKey: 0, |
|
|
|
list: [], |
|
|
|
sids: [], // 用于导出的时候保存已选择的SIDs |
|
|
|
multipleSelection: [], |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
// 翻页 |
|
|
@ -255,6 +256,7 @@ export default { |
|
|
|
// 信息条数 获取点击时当前的sid |
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
|
this.multipleSelection = row |
|
|
|
row.forEach(element => { |
|
|
|
aa.push(element.sid) |
|
|
|
}) |
|
|
@ -314,8 +316,12 @@ export default { |
|
|
|
this.$refs['divAdd'].showAdd() |
|
|
|
}, |
|
|
|
toEdit(row) { |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divAdd'].showEdit(row) |
|
|
|
if (row.allowModify) { |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divAdd'].showEdit(row) |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '非本人发起的申请,无权限操作' }) |
|
|
|
} |
|
|
|
}, |
|
|
|
toInfo(row) { |
|
|
|
this.viewState = 4 |
|
|
@ -327,6 +333,12 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' }) |
|
|
|
return |
|
|
|
} |
|
|
|
for (var i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
if (!this.multipleSelection[i].allowModify) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '非本人发起的申请,无权限操作' }) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?' |
|
|
|
this.$confirm(tip, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|