|
|
@ -371,7 +371,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
this.ids = selection.map(item => item.deploymentId)
|
|
|
|
this.single = selection.length!==1
|
|
|
|
this.single = selection.length!==1
|
|
|
|
this.multiple = !selection.length
|
|
|
|
this.multiple = !selection.length
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -468,7 +468,7 @@ export default {
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const id = row.id || this.ids
|
|
|
|
const id = row.deploymentId || this.ids
|
|
|
|
getDeployment(id).then(response => {
|
|
|
|
getDeployment(id).then(response => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
@ -497,16 +497,13 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
// const ids = row.deploymentId || this.ids;
|
|
|
|
const deploymentIds = row.deploymentId || this.ids;
|
|
|
|
const params = {
|
|
|
|
this.$confirm('是否确认删除流程定义编号为"' + deploymentIds + '"的数据项?', "警告", {
|
|
|
|
deployId: row.deploymentId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.$confirm('是否确认删除流程定义编号为"' + params.deployId + '"的数据项?', "警告", {
|
|
|
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
type: "warning"
|
|
|
|
type: "warning"
|
|
|
|
}).then(function() {
|
|
|
|
}).then(function() {
|
|
|
|
return delDeployment(params);
|
|
|
|
return delDeployment(deploymentIds);
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.msgSuccess("删除成功");
|
|
|
|
this.msgSuccess("删除成功");
|
|
|
|