diff --git a/package.json b/package.json index a2a11f57..179ea571 100644 --- a/package.json +++ b/package.json @@ -15,15 +15,17 @@ "core-js": "3.22.8", "cropperjs": "1.5.12", "crypto-js": "4.1.1", + "d3": "^7.6.1", + "dagre-d3": "^0.6.4", "echarts": "5.3.2", "element-plus": "2.2.3", + "json-editor-vue3": "^1.0.6", "nprogress": "0.2.0", "qrcodejs2": "0.0.2", "sortablejs": "1.15.0", "tinymce": "6.0.3", "vue": "3.2.36", "vue-i18n": "9.1.10", - "vue-json-editor": "^1.4.3", "vue-router": "4.0.15", "vuedraggable": "4.0.3", "vuex": "4.0.2", diff --git a/src/api/model/opm.js b/src/api/model/opm.js index 0777dbc2..3323f40b 100644 --- a/src/api/model/opm.js +++ b/src/api/model/opm.js @@ -6,7 +6,7 @@ export default { oplcate: { list: { name: "获取", - req: async function(data){ + req: async function (data) { return await http.get( `${config.API_URL}/opm/opl_cate/`, data @@ -15,22 +15,22 @@ export default { }, update: { name: "更新", - req: async function(id, data){ + req: async function (id, data) { return await http.put( `${config.API_URL}/opm/opl_cate/${id}/`, data); } }, - read:{ + read: { name: "查询", - req: async function(id){ + req: async function (id) { return await http.get( `${config.API_URL}/opm/opl_cate/${id}/`); } }, - create: { + create: { name: "创建", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/opm/opl_cate/`, data); @@ -38,79 +38,75 @@ export default { }, delete: { name: "删除", - req: async function(id){ + req: async function (id) { return await http.delete( `${config.API_URL}/opm/opl_cate/${id}/`); } } }, - - - - /*作业*/ - operation: { - list: { - name: "获取", - req: async function(data){ - return await http.get( - `${config.API_URL}/opm/operation/`, - data - ); - } - }, - read:{ - name: "查询", - req: async function(id){ - return await http.get( - `${config.API_URL}/opm/operation/${id}/`); - } - }, - update: { - name: "更新", - req: async function(id, data){ - return await http.put( - `${config.API_URL}/opm/operation/${id}/`, - data); - } - }, - create: { - name: "创建", - req: async function(data){ - return await http.post( - `${config.API_URL}/opm/operation/`, - data); - } - }, - delete: { - name: "删除", - req: async function(id){ - return await http.delete( - `${config.API_URL}/opm/operation/${id}/`); - } + /*作业*/ + operation: { + list: { + name: "获取", + req: async function (data) { + return await http.get( + `${config.API_URL}/opm/operation/`, + data + ); } }, - + read: { + name: "查询", + req: async function (id) { + return await http.get( + `${config.API_URL}/opm/operation/${id}/`); + } + }, + update: { + name: "更新", + req: async function (id, data) { + return await http.put( + `${config.API_URL}/opm/operation/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function (data) { + return await http.post( + `${config.API_URL}/opm/operation/`, + data); + } + }, + delete: { + name: "删除", + req: async function (id) { + return await http.delete( + `${config.API_URL}/opm/operation/${id}/`); + } + } + }, /*作业许可证*/ opl: { list: { name: "获取", - req: async function(data){ + req: async function (data) { return await http.get( `${config.API_URL}/opm/opl/`, data ); } }, - read:{ + read: { name: "查询", - req: async function(id){ + req: async function (id) { return await http.get( `${config.API_URL}/opm/opl/${id}/`); } }, update: { name: "更新", - req: async function(id, data){ + req: async function (id, data) { return await http.put( `${config.API_URL}/opm/opl/${id}/`, data); @@ -118,7 +114,7 @@ export default { }, create: { name: "创建", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/opm/opl/`, data); @@ -126,94 +122,94 @@ export default { }, delete: { name: "删除", - req: async function(id){ + req: async function (id) { return await http.delete( `${config.API_URL}/opm/opl/${id}/`); } } }, -/*作业人员*/ -worker: { - list: { - name: "获取", - req: async function(data){ - return await http.get( - `${config.API_URL}/opm/opl_worker/`, - data - ); + /*作业人员*/ + worker: { + list: { + name: "获取", + req: async function (data) { + return await http.get( + `${config.API_URL}/opm/opl_worker/`, + data + ); + } + }, + read: { + name: "查询", + req: async function (id) { + return await http.get( + `${config.API_URL}/opm/opl_worker/${id}/`); + } + }, + update: { + name: "更新", + req: async function (id, data) { + return await http.put( + `${config.API_URL}/opm/opl_worker/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function (data) { + return await http.post( + `${config.API_URL}/opm/opl_worker/`, + data); + } + }, + delete: { + name: "删除", + req: async function (id) { + return await http.delete( + `${config.API_URL}/opm/opl_worker/${id}/`); + } } }, - read:{ - name: "查询", - req: async function(id){ - return await http.get( - `${config.API_URL}/opm/opl_worker/${id}/`); - } - }, - update: { - name: "更新", - req: async function(id, data){ - return await http.put( - `${config.API_URL}/opm/opl_worker/${id}/`, - data); - } - }, - create: { - name: "创建", - req: async function(data){ - return await http.post( - `${config.API_URL}/opm/opl_worker/`, - data); - } - }, - delete: { - name: "删除", - req: async function(id){ - return await http.delete( - `${config.API_URL}/opm/opl_worker/${id}/`); - } - } -}, /*气体检测*/ -gas: { - list: { - name: "获取", - req: async function(data){ - return await http.get( - `${config.API_URL}/opm/gas_check/`, - data - ); + gas: { + list: { + name: "获取", + req: async function (data) { + return await http.get( + `${config.API_URL}/opm/gas_check/`, + data + ); + } + }, + read: { + name: "查询", + req: async function (id) { + return await http.get( + `${config.API_URL}/opm/gas_check/${id}/`); + } + }, + update: { + name: "更新", + req: async function (id, data) { + return await http.put( + `${config.API_URL}/opm/gas_check/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function (data) { + return await http.post( + `${config.API_URL}/opm/gas_check/`, + data); + } + }, + delete: { + name: "删除", + req: async function (id) { + return await http.delete( + `${config.API_URL}/opm/gas_check/${id}/`); + } } }, - read:{ - name: "查询", - req: async function(id){ - return await http.get( - `${config.API_URL}/opm/gas_check/${id}/`); - } - }, - update: { - name: "更新", - req: async function(id, data){ - return await http.put( - `${config.API_URL}/opm/gas_check/${id}/`, - data); - } - }, - create: { - name: "创建", - req: async function(data){ - return await http.post( - `${config.API_URL}/opm/gas_check/`, - data); - } - }, - delete: { - name: "删除", - req: async function(id){ - return await http.delete( - `${config.API_URL}/opm/gas_check/${id}/`); - } - } -}, -} \ No newline at end of file +} diff --git a/src/components/scOpl/scFire.vue b/src/components/scOpl/scFire.vue new file mode 100644 index 00000000..da977256 --- /dev/null +++ b/src/components/scOpl/scFire.vue @@ -0,0 +1,387 @@ + + + + + diff --git a/src/config/route.js b/src/config/route.js index bd4dceeb..73c34d9b 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -196,19 +196,17 @@ const routes = [ "meta": { "title": "我创建的", "icon": "el-icon-folder-add", - "perms": ["ownerwork"] }, "component": "wf/ownerwork" } , { - "name": "duyt", + "name": "duty", "path": "/wf/dutywork", "meta": { "title": "待办工单", "icon": "el-icon-folder-opened", - "perms": ["duyt"] }, "component": "wf/dutywork" }, @@ -218,7 +216,6 @@ const routes = [ "meta": { "title": "我处理的", "icon": "el-icon-expand", - "perms": ["worked"] }, "component": "wf/worked" }, @@ -228,7 +225,6 @@ const routes = [ "meta": { "title": "抄送我的", "icon": "el-icon-edit-pen", - "perms": ["ccwork"] }, "component": "wf/ccwork" }, diff --git a/src/scui.js b/src/scui.js index f8690c52..f77ee3ff 100644 --- a/src/scui.js +++ b/src/scui.js @@ -23,6 +23,7 @@ import scQrCode from './components/scQrCode' import scStatusIndicator from './components/scMini/scStatusIndicator' import scTrend from './components/scMini/scTrend' +import scFire from './components/scOpl/scFire' import auth from './directives/auth' import role from './directives/role' @@ -62,6 +63,7 @@ export default { app.component('scStatusIndicator', scStatusIndicator); app.component('scUserSelect', scUserSelect); app.component('scTrend', scTrend); + app.component('scFire', scFire); //注册全局指令 app.directive('auth', auth); diff --git a/src/style/fix.scss b/src/style/fix.scss index 7fa75652..9ce86e94 100644 --- a/src/style/fix.scss +++ b/src/style/fix.scss @@ -279,6 +279,10 @@ body .tox-tinymce-aux { margin-bottom: 16px; } +.el-col .el-card { + margin-bottom: 8px; +} + .el-card, .el-message { border-radius: 0px; diff --git a/src/views/am/audio.vue b/src/views/am/audio.vue index 71e552b7..390e2b14 100644 --- a/src/views/am/audio.vue +++ b/src/views/am/audio.vue @@ -39,40 +39,33 @@ prop="name" min-width="150" > - + - - + - - + - + + - +