diff --git a/src/api/model/wf.js b/src/api/model/wf.js index f6341b5c..4c92fd22 100644 --- a/src/api/model/wf.js +++ b/src/api/model/wf.js @@ -176,7 +176,13 @@ export default { req: async function(id){ return await http.get( `${config.API_URL}/wf/ticketflow/${id}/`); } - } + }, + retryScript: { + name: "重试脚本", + req: async function(id){ + return await http.post(`${config.API_URL}/wf/ticket/${id}/retry_script/`); + } + }, }, field:{ list: { diff --git a/src/config/route.js b/src/config/route.js index 45d01d03..e14cda25 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -172,7 +172,8 @@ const routes = [ "meta": { "title": "工作流配置", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["workflow"] }, "component": "wf/configuration" } @@ -194,6 +195,7 @@ const routes = [ "meta": { "title": "我创建的", "icon": "el-icon-folder-add", + "perms": ["ownerwork"] }, "component": "wf/ownerwork" } @@ -205,6 +207,7 @@ const routes = [ "meta": { "title": "待办工单", "icon": "el-icon-folder-opened", + "perms": ["duty"] }, "component": "wf/dutywork" }, @@ -214,6 +217,7 @@ const routes = [ "meta": { "title": "我处理的", "icon": "el-icon-expand", + "perms": ["worked"] }, "component": "wf/worked" }, @@ -223,6 +227,7 @@ const routes = [ "meta": { "title": "抄送我的", "icon": "el-icon-edit-pen", + "perms": ["ccwork"] }, "component": "wf/ccwork" }, @@ -232,7 +237,8 @@ const routes = [ "meta": { "title": "工单详情", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["allwork"] }, "component": "wf/visitdetail" }, @@ -277,7 +283,8 @@ const routes = [ "meta": { "title": "作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/opl" }, @@ -287,7 +294,8 @@ const routes = [ "meta": { "title": "动火作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/fire" }, @@ -297,7 +305,8 @@ const routes = [ "meta": { "title": "有限空间作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/space" }, @@ -307,7 +316,8 @@ const routes = [ "meta": { "title": "清库作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/clear" } , @@ -317,7 +327,8 @@ const routes = [ "meta": { "title": "高处作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/high" }, @@ -327,7 +338,8 @@ const routes = [ "meta": { "title": "吊装作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/hoisting" }, @@ -337,7 +349,8 @@ const routes = [ "meta": { "title": "预热器清堵作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/preheat" }, @@ -347,7 +360,8 @@ const routes = [ "meta": { "title": "篦冷机清大块作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/cooler" }, @@ -357,7 +371,8 @@ const routes = [ "meta": { "title": "动土作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/soil" }, @@ -367,7 +382,8 @@ const routes = [ "meta": { "title": "临时用电作业许可证", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["operation"] }, "component": "opm/usecl" } @@ -440,7 +456,7 @@ const routes = [ "title": "入厂项目相关信息", "icon": "el-icon-menu", "hidden": true, - "perms": ["rpjadd"] + "perms": ["rpj"] }, "component": "rpm/rpjadd" }, @@ -482,7 +498,8 @@ const routes = [ "meta": { "title": "访客人员", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["visit"] }, "component": "vm/people" } @@ -492,7 +509,8 @@ const routes = [ "meta": { "title": "来访项目相关信息", "icon": "el-icon-menu", - "hidden": true + "hidden": true, + "perms": ["visit"] }, "component": "vm/vistoradd" }, @@ -601,6 +619,7 @@ const routes = [ "title": "相关证书", "icon": "el-icon-menu", "hidden": true, + "perms": ["employee"] }, "component": "hrm/certificate" diff --git a/src/views/opm/operation.vue b/src/views/opm/operation.vue index f3b03f45..468f44b4 100644 --- a/src/views/opm/operation.vue +++ b/src/views/opm/operation.vue @@ -97,7 +97,7 @@ prop="create_time" width="180" > - + - + - + @@ -49,7 +49,6 @@ data() { return { list: [], - actstate_: { 0: "草稿中", 1: "进行中", @@ -75,13 +74,24 @@ this.list = res; }, handleShow(row) { + let cateType = row.workflow_.key; + let projectId = '', operation = null; + if (cateType === 'visit') { + projectId = row.ticket_data.visit; + } else if (cateType === 'rparty') { + projectId = row.ticket_data.rpj; + } else { + operation = row.ticket_data.operation ? row.ticket_data.operation : null; + projectId = row.ticket_data.opl; + } this.$router.push({ name: "visitdetail", query: { id: row.id, type: 'show', - projectId: row.ticket_data.visit, - catetype: row.workflow_.key + projectId: projectId, + catetype: cateType, + operation: operation }, }); }, diff --git a/src/views/wf/workflow.vue b/src/views/wf/workflow.vue index 6a61086f..e1060a65 100644 --- a/src/views/wf/workflow.vue +++ b/src/views/wf/workflow.vue @@ -17,9 +17,9 @@ - - - + + +