diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu_1.svg b/src/icons/svg/qianchu_1.svg new file mode 100644 index 0000000..c40ae5a --- /dev/null +++ b/src/icons/svg/qianchu_1.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu_1.svg b/src/icons/svg/qianchu_1.svg new file mode 100644 index 0000000..c40ae5a --- /dev/null +++ b/src/icons/svg/qianchu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru.svg b/src/icons/svg/qianru.svg new file mode 100644 index 0000000..900092d --- /dev/null +++ b/src/icons/svg/qianru.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu_1.svg b/src/icons/svg/qianchu_1.svg new file mode 100644 index 0000000..c40ae5a --- /dev/null +++ b/src/icons/svg/qianchu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru.svg b/src/icons/svg/qianru.svg new file mode 100644 index 0000000..900092d --- /dev/null +++ b/src/icons/svg/qianru.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru_1.svg b/src/icons/svg/qianru_1.svg new file mode 100644 index 0000000..94248c8 --- /dev/null +++ b/src/icons/svg/qianru_1.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu_1.svg b/src/icons/svg/qianchu_1.svg new file mode 100644 index 0000000..c40ae5a --- /dev/null +++ b/src/icons/svg/qianchu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru.svg b/src/icons/svg/qianru.svg new file mode 100644 index 0000000..900092d --- /dev/null +++ b/src/icons/svg/qianru.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru_1.svg b/src/icons/svg/qianru_1.svg new file mode 100644 index 0000000..94248c8 --- /dev/null +++ b/src/icons/svg/qianru_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/shimang.svg b/src/icons/svg/shimang.svg new file mode 100644 index 0000000..080d31b --- /dev/null +++ b/src/icons/svg/shimang.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu_1.svg b/src/icons/svg/qianchu_1.svg new file mode 100644 index 0000000..c40ae5a --- /dev/null +++ b/src/icons/svg/qianchu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru.svg b/src/icons/svg/qianru.svg new file mode 100644 index 0000000..900092d --- /dev/null +++ b/src/icons/svg/qianru.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru_1.svg b/src/icons/svg/qianru_1.svg new file mode 100644 index 0000000..94248c8 --- /dev/null +++ b/src/icons/svg/qianru_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/shimang.svg b/src/icons/svg/shimang.svg new file mode 100644 index 0000000..080d31b --- /dev/null +++ b/src/icons/svg/shimang.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/xiaoxiu.svg b/src/icons/svg/xiaoxiu.svg new file mode 100644 index 0000000..3d56803 --- /dev/null +++ b/src/icons/svg/xiaoxiu.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu_1.svg b/src/icons/svg/qianchu_1.svg new file mode 100644 index 0000000..c40ae5a --- /dev/null +++ b/src/icons/svg/qianchu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru.svg b/src/icons/svg/qianru.svg new file mode 100644 index 0000000..900092d --- /dev/null +++ b/src/icons/svg/qianru.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru_1.svg b/src/icons/svg/qianru_1.svg new file mode 100644 index 0000000..94248c8 --- /dev/null +++ b/src/icons/svg/qianru_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/shimang.svg b/src/icons/svg/shimang.svg new file mode 100644 index 0000000..080d31b --- /dev/null +++ b/src/icons/svg/shimang.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/xiaoxiu.svg b/src/icons/svg/xiaoxiu.svg new file mode 100644 index 0000000..3d56803 --- /dev/null +++ b/src/icons/svg/xiaoxiu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/xiaoxiu_1.svg b/src/icons/svg/xiaoxiu_1.svg new file mode 100644 index 0000000..cb8d0cb --- /dev/null +++ b/src/icons/svg/xiaoxiu_1.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu_1.svg b/src/icons/svg/qianchu_1.svg new file mode 100644 index 0000000..c40ae5a --- /dev/null +++ b/src/icons/svg/qianchu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru.svg b/src/icons/svg/qianru.svg new file mode 100644 index 0000000..900092d --- /dev/null +++ b/src/icons/svg/qianru.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru_1.svg b/src/icons/svg/qianru_1.svg new file mode 100644 index 0000000..94248c8 --- /dev/null +++ b/src/icons/svg/qianru_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/shimang.svg b/src/icons/svg/shimang.svg new file mode 100644 index 0000000..080d31b --- /dev/null +++ b/src/icons/svg/shimang.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/xiaoxiu.svg b/src/icons/svg/xiaoxiu.svg new file mode 100644 index 0000000..3d56803 --- /dev/null +++ b/src/icons/svg/xiaoxiu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/xiaoxiu_1.svg b/src/icons/svg/xiaoxiu_1.svg new file mode 100644 index 0000000..cb8d0cb --- /dev/null +++ b/src/icons/svg/xiaoxiu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/zhinengwaihu-hujiaorenwu.svg b/src/icons/svg/zhinengwaihu-hujiaorenwu.svg new file mode 100644 index 0000000..4f5fde3 --- /dev/null +++ b/src/icons/svg/zhinengwaihu-hujiaorenwu.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu_1.svg b/src/icons/svg/qianchu_1.svg new file mode 100644 index 0000000..c40ae5a --- /dev/null +++ b/src/icons/svg/qianchu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru.svg b/src/icons/svg/qianru.svg new file mode 100644 index 0000000..900092d --- /dev/null +++ b/src/icons/svg/qianru.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru_1.svg b/src/icons/svg/qianru_1.svg new file mode 100644 index 0000000..94248c8 --- /dev/null +++ b/src/icons/svg/qianru_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/shimang.svg b/src/icons/svg/shimang.svg new file mode 100644 index 0000000..080d31b --- /dev/null +++ b/src/icons/svg/shimang.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/xiaoxiu.svg b/src/icons/svg/xiaoxiu.svg new file mode 100644 index 0000000..3d56803 --- /dev/null +++ b/src/icons/svg/xiaoxiu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/xiaoxiu_1.svg b/src/icons/svg/xiaoxiu_1.svg new file mode 100644 index 0000000..cb8d0cb --- /dev/null +++ b/src/icons/svg/xiaoxiu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/zhinengwaihu-hujiaorenwu.svg b/src/icons/svg/zhinengwaihu-hujiaorenwu.svg new file mode 100644 index 0000000..4f5fde3 --- /dev/null +++ b/src/icons/svg/zhinengwaihu-hujiaorenwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/zhuanyi.svg b/src/icons/svg/zhuanyi.svg new file mode 100644 index 0000000..4fa79be --- /dev/null +++ b/src/icons/svg/zhuanyi.svg @@ -0,0 +1 @@ + diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index cf5c1d4..e38392b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -42,6 +42,9 @@ '@': resolve('src') } }, + externals: { + 'sapoOcx': 'sapoOcx' + }, module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), diff --git a/index.html b/index.html index 7136b0b..eeac1bb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,17 @@ -
+ + + +
+ + diff --git a/mock/index.js b/mock/index.js index 0b386e7..33b2a81 100644 --- a/mock/index.js +++ b/mock/index.js @@ -7,6 +7,7 @@ import area from './system/area' import role from './system/role' import log from './system/log' +import allDict from './system/allDict' import callCase from './system/callCase' import config from './system/config' import search from './remote-search' @@ -21,7 +22,8 @@ ...log, ...config, ...search, - ...callCase + ...callCase, + ...allDict ] Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send diff --git a/mock/system/allDict.js b/mock/system/allDict.js new file mode 100644 index 0000000..225f4b3 --- /dev/null +++ b/mock/system/allDict.js @@ -0,0 +1,97 @@ +const sourcelist = [ + { 'name': '12345热线电话', 'value': '3' } +] +const levellist = [ + { 'name': '普通事件', 'value': '1' }, + { 'name': '紧急事件', 'value': '2' } +] +const eorclist = [ + { value: '1', name: '咨询' }, + { value: '2', name: '建议' }, + { value: '3', name: '求助' }, + { 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', + type: 'get', + response: _ => { + return { + code: 200, + data: sourcelist + } + } + }, + { + url: '/dict/code/caseLevel', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + data: levellist + } + } + }, + { + url: '/dict/code/eorc', + type: 'get', + response: _ => { + return { + code: 200, + message: 'success', + 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/icons/svg/baochi.svg b/src/icons/svg/baochi.svg new file mode 100644 index 0000000..aa5f1c1 --- /dev/null +++ b/src/icons/svg/baochi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/duiwaihujiao.svg b/src/icons/svg/duiwaihujiao.svg new file mode 100644 index 0000000..ad6b442 --- /dev/null +++ b/src/icons/svg/duiwaihujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji.svg b/src/icons/svg/guaji.svg new file mode 100644 index 0000000..e162c84 --- /dev/null +++ b/src/icons/svg/guaji.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/guaji_1.svg b/src/icons/svg/guaji_1.svg new file mode 100644 index 0000000..6f4361b --- /dev/null +++ b/src/icons/svg/guaji_1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/huiyi.svg b/src/icons/svg/huiyi.svg new file mode 100644 index 0000000..ef9ecf4 --- /dev/null +++ b/src/icons/svg/huiyi.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hujiao.svg b/src/icons/svg/hujiao.svg new file mode 100644 index 0000000..02b105d --- /dev/null +++ b/src/icons/svg/hujiao.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/hy.svg b/src/icons/svg/hy.svg new file mode 100644 index 0000000..c8a6ba4 --- /dev/null +++ b/src/icons/svg/hy.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/kefuhujiaofuwu.svg b/src/icons/svg/kefuhujiaofuwu.svg new file mode 100644 index 0000000..440b7f4 --- /dev/null +++ b/src/icons/svg/kefuhujiaofuwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu.svg b/src/icons/svg/qianchu.svg new file mode 100644 index 0000000..df9a7a7 --- /dev/null +++ b/src/icons/svg/qianchu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianchu_1.svg b/src/icons/svg/qianchu_1.svg new file mode 100644 index 0000000..c40ae5a --- /dev/null +++ b/src/icons/svg/qianchu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru.svg b/src/icons/svg/qianru.svg new file mode 100644 index 0000000..900092d --- /dev/null +++ b/src/icons/svg/qianru.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/qianru_1.svg b/src/icons/svg/qianru_1.svg new file mode 100644 index 0000000..94248c8 --- /dev/null +++ b/src/icons/svg/qianru_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/shimang.svg b/src/icons/svg/shimang.svg new file mode 100644 index 0000000..080d31b --- /dev/null +++ b/src/icons/svg/shimang.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/xiaoxiu.svg b/src/icons/svg/xiaoxiu.svg new file mode 100644 index 0000000..3d56803 --- /dev/null +++ b/src/icons/svg/xiaoxiu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/xiaoxiu_1.svg b/src/icons/svg/xiaoxiu_1.svg new file mode 100644 index 0000000..cb8d0cb --- /dev/null +++ b/src/icons/svg/xiaoxiu_1.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/zhinengwaihu-hujiaorenwu.svg b/src/icons/svg/zhinengwaihu-hujiaorenwu.svg new file mode 100644 index 0000000..4f5fde3 --- /dev/null +++ b/src/icons/svg/zhinengwaihu-hujiaorenwu.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/zhuanyi.svg b/src/icons/svg/zhuanyi.svg new file mode 100644 index 0000000..4fa79be --- /dev/null +++ b/src/icons/svg/zhuanyi.svg @@ -0,0 +1 @@ + diff --git a/src/layout/components/AppHeader.vue b/src/layout/components/AppHeader.vue index 15835ae..c1cb17e 100644 --- a/src/layout/components/AppHeader.vue +++ b/src/layout/components/AppHeader.vue @@ -1,6 +1,7 @@