diff --git a/mock/system/allDict.js b/mock/system/allDict.js index 5219ce5..225f4b3 100644 --- a/mock/system/allDict.js +++ b/mock/system/allDict.js @@ -12,6 +12,22 @@ { value: '4', name: '其他' }, { value: '5', name: '投诉' } ] +const caseTypeList = [ + { id: '1', typeCode: '1', typeName: '咨询' }, + { id: '2', typeCode: '2', typeName: '市民生活服务类' }, + { id: '3', typeCode: '3', typeName: '城市管理市容类' } +] +const caseDetailTypeList = [ + { id: '1', typeDetailCode: '1', typeDetailName: '道路维护' }, + { id: '2', typeDetailCode: '2', typeDetailName: '垃圾清理' }, + { id: '3', typeDetailCode: '3', typeDetailName: '门头广告' } +] +const processWayList = [ + { id: '1177026995528237051', nextState: '1', nextOperation: '直接办结' }, + { id: '1177026995528237052', nextState: '2', nextOperation: '呈报上级' }, + { id: '1177026995528237053', nextState: '3', nextOperation: '网上交办' }, + { id: '1177026995528237054', nextState: '4', nextOperation: '暂存' } +] export default [ { url: '/dict/code/caseSource', @@ -44,5 +60,38 @@ data: eorclist } } + }, + { + url: '/case/type/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseTypeList + } + } + }, + { + url: '/case/typeDetail/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseDetailTypeList + } + } + }, + { + url: '/process/nextNodes', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: processWayList + } + } } ] diff --git a/mock/system/allDict.js b/mock/system/allDict.js index 5219ce5..225f4b3 100644 --- a/mock/system/allDict.js +++ b/mock/system/allDict.js @@ -12,6 +12,22 @@ { value: '4', name: '其他' }, { value: '5', name: '投诉' } ] +const caseTypeList = [ + { id: '1', typeCode: '1', typeName: '咨询' }, + { id: '2', typeCode: '2', typeName: '市民生活服务类' }, + { id: '3', typeCode: '3', typeName: '城市管理市容类' } +] +const caseDetailTypeList = [ + { id: '1', typeDetailCode: '1', typeDetailName: '道路维护' }, + { id: '2', typeDetailCode: '2', typeDetailName: '垃圾清理' }, + { id: '3', typeDetailCode: '3', typeDetailName: '门头广告' } +] +const processWayList = [ + { id: '1177026995528237051', nextState: '1', nextOperation: '直接办结' }, + { id: '1177026995528237052', nextState: '2', nextOperation: '呈报上级' }, + { id: '1177026995528237053', nextState: '3', nextOperation: '网上交办' }, + { id: '1177026995528237054', nextState: '4', nextOperation: '暂存' } +] export default [ { url: '/dict/code/caseSource', @@ -44,5 +60,38 @@ data: eorclist } } + }, + { + url: '/case/type/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseTypeList + } + } + }, + { + url: '/case/typeDetail/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseDetailTypeList + } + } + }, + { + url: '/process/nextNodes', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: processWayList + } + } } ] diff --git a/mock/system/callCase.js b/mock/system/callCase.js index 3c83885..ead4976 100644 --- a/mock/system/callCase.js +++ b/mock/system/callCase.js @@ -30,5 +30,16 @@ } } } + }, + { + url: '/case/add', + type: 'post', + response: _ => { + return { + code: 200, + data: { + } + } + } } ] diff --git a/mock/system/allDict.js b/mock/system/allDict.js index 5219ce5..225f4b3 100644 --- a/mock/system/allDict.js +++ b/mock/system/allDict.js @@ -12,6 +12,22 @@ { value: '4', name: '其他' }, { value: '5', name: '投诉' } ] +const caseTypeList = [ + { id: '1', typeCode: '1', typeName: '咨询' }, + { id: '2', typeCode: '2', typeName: '市民生活服务类' }, + { id: '3', typeCode: '3', typeName: '城市管理市容类' } +] +const caseDetailTypeList = [ + { id: '1', typeDetailCode: '1', typeDetailName: '道路维护' }, + { id: '2', typeDetailCode: '2', typeDetailName: '垃圾清理' }, + { id: '3', typeDetailCode: '3', typeDetailName: '门头广告' } +] +const processWayList = [ + { id: '1177026995528237051', nextState: '1', nextOperation: '直接办结' }, + { id: '1177026995528237052', nextState: '2', nextOperation: '呈报上级' }, + { id: '1177026995528237053', nextState: '3', nextOperation: '网上交办' }, + { id: '1177026995528237054', nextState: '4', nextOperation: '暂存' } +] export default [ { url: '/dict/code/caseSource', @@ -44,5 +60,38 @@ data: eorclist } } + }, + { + url: '/case/type/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseTypeList + } + } + }, + { + url: '/case/typeDetail/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseDetailTypeList + } + } + }, + { + url: '/process/nextNodes', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: processWayList + } + } } ] diff --git a/mock/system/callCase.js b/mock/system/callCase.js index 3c83885..ead4976 100644 --- a/mock/system/callCase.js +++ b/mock/system/callCase.js @@ -30,5 +30,16 @@ } } } + }, + { + url: '/case/add', + type: 'post', + response: _ => { + return { + code: 200, + data: { + } + } + } } ] diff --git a/src/api/callCase.js b/src/api/callCase.js index b4c1c5b..ac9dde4 100644 --- a/src/api/callCase.js +++ b/src/api/callCase.js @@ -50,3 +50,33 @@ params }) } +// 根据案卷类别获取案卷大类 +export function getCaseType(eorc) { + return request({ + url: '/case/type/list', + method: 'get', + params: { + eorc: eorc + } + }) +} + +// 根据案卷大类获取案卷小类 +export function getCaseDetailType(caseTypeId) { + return request({ + url: '/case/typeDetail/list', + method: 'get', + params: { + typeId: caseTypeId + } + }) +} + +// 新增案卷 +export function addCase(data) { + return request({ + url: 'case/add', + method: 'post', + data + }) +} diff --git a/mock/system/allDict.js b/mock/system/allDict.js index 5219ce5..225f4b3 100644 --- a/mock/system/allDict.js +++ b/mock/system/allDict.js @@ -12,6 +12,22 @@ { value: '4', name: '其他' }, { value: '5', name: '投诉' } ] +const caseTypeList = [ + { id: '1', typeCode: '1', typeName: '咨询' }, + { id: '2', typeCode: '2', typeName: '市民生活服务类' }, + { id: '3', typeCode: '3', typeName: '城市管理市容类' } +] +const caseDetailTypeList = [ + { id: '1', typeDetailCode: '1', typeDetailName: '道路维护' }, + { id: '2', typeDetailCode: '2', typeDetailName: '垃圾清理' }, + { id: '3', typeDetailCode: '3', typeDetailName: '门头广告' } +] +const processWayList = [ + { id: '1177026995528237051', nextState: '1', nextOperation: '直接办结' }, + { id: '1177026995528237052', nextState: '2', nextOperation: '呈报上级' }, + { id: '1177026995528237053', nextState: '3', nextOperation: '网上交办' }, + { id: '1177026995528237054', nextState: '4', nextOperation: '暂存' } +] export default [ { url: '/dict/code/caseSource', @@ -44,5 +60,38 @@ data: eorclist } } + }, + { + url: '/case/type/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseTypeList + } + } + }, + { + url: '/case/typeDetail/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseDetailTypeList + } + } + }, + { + url: '/process/nextNodes', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: processWayList + } + } } ] diff --git a/mock/system/callCase.js b/mock/system/callCase.js index 3c83885..ead4976 100644 --- a/mock/system/callCase.js +++ b/mock/system/callCase.js @@ -30,5 +30,16 @@ } } } + }, + { + url: '/case/add', + type: 'post', + response: _ => { + return { + code: 200, + data: { + } + } + } } ] diff --git a/src/api/callCase.js b/src/api/callCase.js index b4c1c5b..ac9dde4 100644 --- a/src/api/callCase.js +++ b/src/api/callCase.js @@ -50,3 +50,33 @@ params }) } +// 根据案卷类别获取案卷大类 +export function getCaseType(eorc) { + return request({ + url: '/case/type/list', + method: 'get', + params: { + eorc: eorc + } + }) +} + +// 根据案卷大类获取案卷小类 +export function getCaseDetailType(caseTypeId) { + return request({ + url: '/case/typeDetail/list', + method: 'get', + params: { + typeId: caseTypeId + } + }) +} + +// 新增案卷 +export function addCase(data) { + return request({ + url: 'case/add', + method: 'post', + data + }) +} diff --git a/src/router/index.js b/src/router/index.js index 127395c..bf14ac6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,8 +9,6 @@ /* Layout */ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' -import { exampleRouters } from './modules/example' -import { soundsRouters } from './modules/sounds' import { caseRouters } from './modules/case' /** diff --git a/mock/system/allDict.js b/mock/system/allDict.js index 5219ce5..225f4b3 100644 --- a/mock/system/allDict.js +++ b/mock/system/allDict.js @@ -12,6 +12,22 @@ { value: '4', name: '其他' }, { value: '5', name: '投诉' } ] +const caseTypeList = [ + { id: '1', typeCode: '1', typeName: '咨询' }, + { id: '2', typeCode: '2', typeName: '市民生活服务类' }, + { id: '3', typeCode: '3', typeName: '城市管理市容类' } +] +const caseDetailTypeList = [ + { id: '1', typeDetailCode: '1', typeDetailName: '道路维护' }, + { id: '2', typeDetailCode: '2', typeDetailName: '垃圾清理' }, + { id: '3', typeDetailCode: '3', typeDetailName: '门头广告' } +] +const processWayList = [ + { id: '1177026995528237051', nextState: '1', nextOperation: '直接办结' }, + { id: '1177026995528237052', nextState: '2', nextOperation: '呈报上级' }, + { id: '1177026995528237053', nextState: '3', nextOperation: '网上交办' }, + { id: '1177026995528237054', nextState: '4', nextOperation: '暂存' } +] export default [ { url: '/dict/code/caseSource', @@ -44,5 +60,38 @@ data: eorclist } } + }, + { + url: '/case/type/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseTypeList + } + } + }, + { + url: '/case/typeDetail/list', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: caseDetailTypeList + } + } + }, + { + url: '/process/nextNodes', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: processWayList + } + } } ] diff --git a/mock/system/callCase.js b/mock/system/callCase.js index 3c83885..ead4976 100644 --- a/mock/system/callCase.js +++ b/mock/system/callCase.js @@ -30,5 +30,16 @@ } } } + }, + { + url: '/case/add', + type: 'post', + response: _ => { + return { + code: 200, + data: { + } + } + } } ] diff --git a/src/api/callCase.js b/src/api/callCase.js index b4c1c5b..ac9dde4 100644 --- a/src/api/callCase.js +++ b/src/api/callCase.js @@ -50,3 +50,33 @@ params }) } +// 根据案卷类别获取案卷大类 +export function getCaseType(eorc) { + return request({ + url: '/case/type/list', + method: 'get', + params: { + eorc: eorc + } + }) +} + +// 根据案卷大类获取案卷小类 +export function getCaseDetailType(caseTypeId) { + return request({ + url: '/case/typeDetail/list', + method: 'get', + params: { + typeId: caseTypeId + } + }) +} + +// 新增案卷 +export function addCase(data) { + return request({ + url: 'case/add', + method: 'post', + data + }) +} diff --git a/src/router/index.js b/src/router/index.js index 127395c..bf14ac6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,8 +9,6 @@ /* Layout */ import Layout from '@/layout/Layout' import { systemRouters } from './modules/system' -import { exampleRouters } from './modules/example' -import { soundsRouters } from './modules/sounds' import { caseRouters } from './modules/case' /** diff --git a/src/views/caseManage/createCase.vue b/src/views/caseManage/createCase.vue index 176a663..4369036 100644 --- a/src/views/caseManage/createCase.vue +++ b/src/views/caseManage/createCase.vue @@ -56,7 +56,7 @@ - + @@ -129,25 +129,25 @@ - {{ item.name }} + {{ item.nextOperation }} - - - - - - - - - - - - - - + + + + + + + + + + + + + +
@@ -166,12 +166,14 @@