diff --git a/src/main/resources/views/platform/zhgh/democratic/suggestionBox/info.js b/src/main/resources/views/platform/zhgh/democratic/suggestionBox/info.js new file mode 100644 index 00000000..a9f773b8 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/suggestionBox/info.js @@ -0,0 +1,98 @@ +const SUGGESTION_INFO = { + template: /*language=HTML*/ ` +
+
+ 申请信息 + 点击查看流程图 +
+ + {{viewData.userName}} + {{viewData.loginName}} + {{viewData.unitName}} + {{viewData.unionName}} + {{viewData.title}} + {{viewData.content}} + + + + + + + +
+ `, + store, + dicts: ["PROCESS_TASK_SUBMIT_TYPE"], + data() { + return { + visible: false, + viewData: {}, + doneTasks: [], + row: null + } + }, + methods: { + // 打开 + onOpen(row) { + this.row = row + this.visible = true + this.getInfo() + this.getDoneTasks() + }, + + // 获取申请信息 + getInfo() { + this.$axios.post('/platform/suggestionBox/common/info', {id: this.row.id}).then((res) => { + if (res.code === 0) { + this.viewData = res.data + } + }) + }, + + // 获取已办任务审批记录 + getDoneTasks() { + this.$axios.post("/flow/common/doneTasks", {bizId: this.row.id}).then((res) => { + if (res.code === 0) { + this.doneTasks = res.data + } + }) + }, + + // 查看流程图 + openChart(){ + this.$refs.snakerChartRef.onOpenFull(this.row.instanceProcessDefineId,this.row.instanceId) + } + + } + + +}