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 @@ - +