|
@@ -143,7 +143,13 @@
|
|
>
|
|
>
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column label="主键" align="center" prop="processId" />
|
|
<el-table-column label="主键" align="center" prop="processId" />
|
|
- <el-table-column label="流程名称" align="center" prop="processName" />
|
|
|
|
|
|
+ <el-table-column label="流程名称" align="center" prop="processName">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span class="process_name" @click="prviewHandle(scope.row)">{{
|
|
|
|
+ scope.row.processName
|
|
|
|
+ }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="流程别名" align="center" prop="processKey" />
|
|
<el-table-column label="流程别名" align="center" prop="processKey" />
|
|
<el-table-column label="流程状态" align="center" prop="processOpneState">
|
|
<el-table-column label="流程状态" align="center" prop="processOpneState">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -322,6 +328,20 @@
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <!-- 预览流程图对话框 -->
|
|
|
|
+ <el-dialog
|
|
|
|
+ :title="previewData.processName"
|
|
|
|
+ :visible.sync="preOpen"
|
|
|
|
+ width="70%"
|
|
|
|
+ append-to-body
|
|
|
|
+ >
|
|
|
|
+ <Preview ref="previewRef"></Preview>
|
|
|
|
+ <template #footer>
|
|
|
|
+ <span>
|
|
|
|
+ <el-button @click="preCloseHandler">关闭</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 版本状态对话框 -->
|
|
<!-- 版本状态对话框 -->
|
|
@@ -409,12 +429,18 @@ import {
|
|
exportFileProcess,
|
|
exportFileProcess,
|
|
enableProcess
|
|
enableProcess
|
|
} from "@/api/bpmprocess/process";
|
|
} from "@/api/bpmprocess/process";
|
|
|
|
+import Preview from "./components/preview.vue";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Process",
|
|
name: "Process",
|
|
dicts: ["bpm_state", "bpm_type", "bpm_start_event_type", "bpm_version"],
|
|
dicts: ["bpm_state", "bpm_type", "bpm_start_event_type", "bpm_version"],
|
|
|
|
+ components: { Preview },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ // 预览的数据
|
|
|
|
+ previewData: {},
|
|
|
|
+ // 预览弹窗
|
|
|
|
+ preOpen: false,
|
|
// 遮罩层
|
|
// 遮罩层
|
|
loading: true,
|
|
loading: true,
|
|
// 选中数组
|
|
// 选中数组
|
|
@@ -580,6 +606,7 @@ export default {
|
|
this.$message.success("备份成功");
|
|
this.$message.success("备份成功");
|
|
instance.confirmButtonLoading = false;
|
|
instance.confirmButtonLoading = false;
|
|
instance.confirmButtonText = "确定";
|
|
instance.confirmButtonText = "确定";
|
|
|
|
+ this.getList();
|
|
done();
|
|
done();
|
|
} else {
|
|
} else {
|
|
this.$message.error("备份失败");
|
|
this.$message.error("备份失败");
|
|
@@ -598,6 +625,7 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ this.getList();
|
|
done();
|
|
done();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -693,9 +721,20 @@ export default {
|
|
this.$message.success("启用成功");
|
|
this.$message.success("启用成功");
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // 预览流程图
|
|
|
|
+ prviewHandle(row) {
|
|
|
|
+ this.previewData = row;
|
|
|
|
+ this.preOpen = true;
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.previewRef.getImg(row.processXmlContent);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ // 关闭预览回调
|
|
|
|
+ preCloseHandler() {
|
|
|
|
+ this.preOpen = false;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
-<style>
|
|
|
|
-</style>
|
|
|
|
|
|
+
|