|
|
@ -122,7 +122,6 @@ |
|
|
|
<el-table class="lc-table" |
|
|
|
<el-table class="lc-table" |
|
|
|
:data="tableData" |
|
|
|
:data="tableData" |
|
|
|
:stripe="true" |
|
|
|
:stripe="true" |
|
|
|
:key="itemkey" |
|
|
|
|
|
|
|
row-key="i" |
|
|
|
row-key="i" |
|
|
|
header-align="center" |
|
|
|
header-align="center" |
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
@selection-change="handleSelectionChange"> |
|
|
@ -553,7 +552,6 @@ export default { |
|
|
|
tableData: [], // 规则表格数据 |
|
|
|
tableData: [], // 规则表格数据 |
|
|
|
tableDataCopy: [], // 规则表格数据备份 |
|
|
|
tableDataCopy: [], // 规则表格数据备份 |
|
|
|
isAddRule: false, // 是否禁用新增规则按钮 |
|
|
|
isAddRule: false, // 是否禁用新增规则按钮 |
|
|
|
itemkey: '', |
|
|
|
|
|
|
|
judgePoints: false,//判断是否点了编辑 |
|
|
|
judgePoints: false,//判断是否点了编辑 |
|
|
|
configVisible: false, |
|
|
|
configVisible: false, |
|
|
|
SelectedObj: [], |
|
|
|
SelectedObj: [], |
|
|
@ -671,9 +669,6 @@ export default { |
|
|
|
this.businessList = lcRecords |
|
|
|
this.businessList = lcRecords |
|
|
|
}).catch(res => { }) |
|
|
|
}).catch(res => { }) |
|
|
|
} |
|
|
|
} |
|
|
|
// this.$post(`${this.api[this.isSt ? 'getAllBusinessSt' : 'getAllBusiness']}?systemId=${this.systemId}`).then(({ stRecords, lcRecords }) => { |
|
|
|
|
|
|
|
// this.businessList = this.isSt ? stRecords : lcRecords |
|
|
|
|
|
|
|
// }).catch(res => { }) |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
handleSelectionChange (val) { |
|
|
|
handleSelectionChange (val) { |
|
|
|
this.multipleSelection = val |
|
|
|
this.multipleSelection = val |
|
|
@ -921,15 +916,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
getTreeData () { // 获取树结构数据 |
|
|
|
getTreeData () { // 获取树结构数据 |
|
|
|
// if(this.treeDataStore.length) { |
|
|
|
|
|
|
|
// const tmp = deepCopy(this.treeDataStore) |
|
|
|
|
|
|
|
// this.treeData = this.toTreeId(tmp); |
|
|
|
|
|
|
|
// if (this.$route.query.lcId) { |
|
|
|
|
|
|
|
// this.lcId = this.$route.query.lcId; |
|
|
|
|
|
|
|
// this.getInfoData(this.$route.query.lcId); |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// this.loading = false |
|
|
|
|
|
|
|
// }else { |
|
|
|
|
|
|
|
this.$post(`${this.api[this.isSt ? 'getProcessSt' : 'getProcess']}?systemId=${this.systemId}`).then(({ process, status, message }) => { |
|
|
|
this.$post(`${this.api[this.isSt ? 'getProcessSt' : 'getProcess']}?systemId=${this.systemId}`).then(({ process, status, message }) => { |
|
|
|
if (status == 200) { |
|
|
|
if (status == 200) { |
|
|
|
if (process.length) { |
|
|
|
if (process.length) { |
|
|
@ -947,7 +933,6 @@ export default { |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
this.loading = false |
|
|
|
this.loading = false |
|
|
|
}); |
|
|
|
}); |
|
|
|
// } |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
toTreeId (data, parentId) { // id重新串连成(父+子+孙),已便达到树节点需要的key唯一性,且后面提交数据,需要传这个id串到后台 |
|
|
|
toTreeId (data, parentId) { // id重新串连成(父+子+孙),已便达到树节点需要的key唯一性,且后面提交数据,需要传这个id串到后台 |
|
|
|
const name = this.isSt ? 'recordChildren' : 'children' |
|
|
|
const name = this.isSt ? 'recordChildren' : 'children' |
|
|
@ -1257,19 +1242,10 @@ export default { |
|
|
|
type: "warning", |
|
|
|
type: "warning", |
|
|
|
center: true |
|
|
|
center: true |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
if (index + 1 == this.tableData.length) { |
|
|
|
this.tableData.splice(index + 1 == this.tableData.length ? index - 1 : index, 2) |
|
|
|
this.tableData.splice(index - 1, 2) |
|
|
|
let i = 0 |
|
|
|
} else { |
|
|
|
|
|
|
|
this.tableData.splice(index, 2); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.itemkey = Math.random() |
|
|
|
|
|
|
|
this.tableData.forEach(async (item, index) => { |
|
|
|
this.tableData.forEach(async (item, index) => { |
|
|
|
// 勾选树节点 |
|
|
|
if (item.isSubject) item.index = i++ |
|
|
|
if (item.operationIds) { |
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
|
|
// this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 根据题目id,获取题目信息 |
|
|
|
// 根据题目id,获取题目信息 |
|
|
|
if (item.isSubject && item.type && item.type != 4 && item.emptyOne) { |
|
|
|
if (item.isSubject && item.type && item.type != 4 && item.emptyOne) { |
|
|
|
await this.getSubjectData(item.emptyOne, index); |
|
|
|
await this.getSubjectData(item.emptyOne, index); |
|
|
@ -1297,9 +1273,9 @@ export default { |
|
|
|
this.tableData.splice(index === this.tableData.length - 1 ? index - 1 : index, 2) |
|
|
|
this.tableData.splice(index === this.tableData.length - 1 ? index - 1 : index, 2) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.setIndex() |
|
|
|
let i = 0 |
|
|
|
this.itemkey = Math.random() |
|
|
|
|
|
|
|
this.tableData.forEach(async (item, index) => { |
|
|
|
this.tableData.forEach(async (item, index) => { |
|
|
|
|
|
|
|
if (item.isSubject) item.index = i++ |
|
|
|
// 根据题目id,获取题目信息 |
|
|
|
// 根据题目id,获取题目信息 |
|
|
|
if (item.isSubject && item.type && item.type != 4 && item.emptyOne) { |
|
|
|
if (item.isSubject && item.type && item.type != 4 && item.emptyOne) { |
|
|
|
await this.getSubjectData(item.emptyOne, index); |
|
|
|
await this.getSubjectData(item.emptyOne, index); |
|
|
|