From f7156770aca7303a67c084a4a7f0060a3f37a4b7 Mon Sep 17 00:00:00 2001 From: hejunjie Date: Thu, 14 Mar 2024 18:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6=E8=BF=90=E7=94=A8=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/scheduling/index.js | 43 ++++ src/api/scheduling/operaRecord.js | 43 ++++ src/store/index.js | 2 + src/store/modules/scheduling.js | 22 ++ .../dispatch/plan/components/edit.vue | 237 ++++++++++++------ .../dispatch/plan/components/preview.vue | 66 +++++ .../sluice/runManage/dispatch/plan/index.vue | 189 ++++++-------- .../dispatch/record/components/edit.vue | 94 ++++--- .../runManage/dispatch/record/index.vue | 230 +++++++++-------- .../runManage/dispatch/utilize/index.vue | 142 ++++------- .../runManage/monitoring/sluice/index.vue | 7 +- .../sluice/manage/components/edit.vue | 5 +- .../monitoring/sluice/manage/index.vue | 15 ++ .../monitoring/sluice/record/index.vue | 10 +- .../questionManage/index.vue | 12 - vue.config.js | 9 +- 16 files changed, 700 insertions(+), 426 deletions(-) create mode 100644 src/api/scheduling/index.js create mode 100644 src/api/scheduling/operaRecord.js create mode 100644 src/store/modules/scheduling.js create mode 100644 src/views/sluice/runManage/dispatch/plan/components/preview.vue diff --git a/src/api/scheduling/index.js b/src/api/scheduling/index.js new file mode 100644 index 0000000..7076e22 --- /dev/null +++ b/src/api/scheduling/index.js @@ -0,0 +1,43 @@ +// 调度计划接口 +import request from '@/utils/request' + +// 调度计划列表 +export function postRunSzSchedulingList(data) { + return request({ + url: `/run/sz/scheduling/list`, + method: 'post', + data + }) +} +// 调度计划新增 +export function postRunSzScheduling(data) { + return request({ + url: `/run/sz/scheduling`, + method: 'post', + data + }) +} +// 调度计划修改 +export function putRunSzScheduling(data) { + return request({ + url: `/run/sz/scheduling`, + method: 'put', + data + }) +} + +// 调度计划详情 +export function getRunSzScheduling(id) { + return request({ + url: `/run/sz/scheduling/${id}`, + method: 'get' + }) +} + +// 调度计划删除 +export function delRunSzScheduling(id) { + return request({ + url: `/run/sz/scheduling/${id}`, + method: 'delete' + }) +} diff --git a/src/api/scheduling/operaRecord.js b/src/api/scheduling/operaRecord.js new file mode 100644 index 0000000..771f268 --- /dev/null +++ b/src/api/scheduling/operaRecord.js @@ -0,0 +1,43 @@ +// 操作记录接口 +import request from '@/utils/request' + +// 操作记录列表 +export function postRunSzOperaRecordList(data) { + return request({ + url: `/run/sz/opera-record/list`, + method: 'post', + data + }) +} +// 操作记录新增 +export function postRunSzOperaRecord(data) { + return request({ + url: `/run/sz/opera-record`, + method: 'post', + data + }) +} +// 操作记录修改 +export function putRunSzOperaRecord(data) { + return request({ + url: `/run/sz/opera-record`, + method: 'put', + data + }) +} + +// 操作记录详情 +export function getRunSzOperaRecord(id) { + return request({ + url: `/run/sz/opera-record/${id}`, + method: 'get' + }) +} + +// 操作记录删除 +export function delRunSzOperaRecord(id) { + return request({ + url: `/run/sz/opera-record/${id}`, + method: 'delete' + }) +} diff --git a/src/store/index.js b/src/store/index.js index d1d4c35..bbc5f46 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -4,6 +4,7 @@ import app from './modules/app' import dict from './modules/dict' import user from './modules/user' import tagsView from './modules/tagsView' +import scheduling from './modules/scheduling' import permission from './modules/permission' import settings from './modules/settings' import getters from './getters' @@ -28,6 +29,7 @@ const store = new Vuex.Store({ app, user, tagsView, + scheduling, permission, settings, dict, diff --git a/src/store/modules/scheduling.js b/src/store/modules/scheduling.js new file mode 100644 index 0000000..5ffc994 --- /dev/null +++ b/src/store/modules/scheduling.js @@ -0,0 +1,22 @@ +const state = { + wagaData: {} +} + +const mutations = { + SET_WAGADATA: (state, view) => { + state.wagaData = view + } +} + +const actions = { + setWageData({ commit }, view) { + commit('SET_WAGADATA', view) + } +} + +export default { + namespaced: true, + state, + mutations, + actions +} diff --git a/src/views/sluice/runManage/dispatch/plan/components/edit.vue b/src/views/sluice/runManage/dispatch/plan/components/edit.vue index 14b5c15..fdf067f 100644 --- a/src/views/sluice/runManage/dispatch/plan/components/edit.vue +++ b/src/views/sluice/runManage/dispatch/plan/components/edit.vue @@ -1,5 +1,11 @@ + + + + diff --git a/src/views/sluice/runManage/dispatch/plan/index.vue b/src/views/sluice/runManage/dispatch/plan/index.vue index 1aceffe..3f7ec14 100644 --- a/src/views/sluice/runManage/dispatch/plan/index.vue +++ b/src/views/sluice/runManage/dispatch/plan/index.vue @@ -2,25 +2,23 @@ @@ -57,48 +86,48 @@ export default { - - + + - - + + - - + + - - + + - - + + - - + + - + - + @@ -108,7 +137,12 @@ export default { - + + diff --git a/src/views/sluice/runManage/dispatch/record/index.vue b/src/views/sluice/runManage/dispatch/record/index.vue index 4472f97..8c94548 100644 --- a/src/views/sluice/runManage/dispatch/record/index.vue +++ b/src/views/sluice/runManage/dispatch/record/index.vue @@ -1,14 +1,13 @@ - +