diff --git a/epmet-oper-web/src/js/columns/customer/manage/customer.js b/epmet-oper-web/src/js/columns/customer/manage/customer.js index 0481508..b690b62 100644 --- a/epmet-oper-web/src/js/columns/customer/manage/customer.js +++ b/epmet-oper-web/src/js/columns/customer/manage/customer.js @@ -26,22 +26,24 @@ export default { width: 100 }, { - key: 'organizationLevels', + key: 'organizationLevel', title: '组织级别', display: ['table', 'model'], fixed: false, block: true, - width: 50, + width: 60, format: (cellValue, index) => { - // 客户组织级别:0.省级,1市级,2.区县级,3.乡镇街道级 字典表key:organizationlevel - if (cellValue === '0') { + //机关级别(社区级:community, 乡(镇、街道)级:street, 区县级: district, 市级: city 省级:province) + if (cellValue === 'province') { return '省级' - } else if (cellValue === '1') { + } else if (cellValue === 'city') { return '市级' - } else if (cellValue === '2') { + } else if (cellValue === 'district') { return '区县级' - } else if (cellValue === '3') { + } else if (cellValue === 'street') { return '乡镇街道级' + } else if (cellValue === 'community') { + return '社区级' } else { return '未知' } @@ -75,7 +77,7 @@ export default { }, { key: 'rootManageName', - title: '管理员', + title: '跟管理员', display: ['table', 'model'], type: 'input', rule: [ @@ -105,22 +107,22 @@ export default { } ], configForm: [ - { - key: 'customerName', - title: '客户名称', - display: ['formA', 'formU', 'table', 'model'], - type: 'input', - rule: [ - { - required: true, - message: '请输入客户名称', - trigger: 'blur' - } - ], - fixed: false, - block: true, - width: 100 - }, + // { + // key: 'customerName', + // title: '客户名称', + // display: ['formA', 'formU', 'table', 'model'], + // type: 'input', + // rule: [ + // { + // required: true, + // message: '请输入客户名称', + // trigger: 'blur' + // } + // ], + // fixed: false, + // block: true, + // width: 100 + // }, { key: 'validityTime', title: '有效期', @@ -155,7 +157,7 @@ export default { width: 100 }, { - key: 'gridNumber', + key: 'maxGridNumber', title: '最大网格数', display: ['formA', 'formU', 'table', 'model'], type: 'counter', diff --git a/epmet-oper-web/src/js/store/modules/user.js b/epmet-oper-web/src/js/store/modules/user.js index 652b69c..7fd77ad 100644 --- a/epmet-oper-web/src/js/store/modules/user.js +++ b/epmet-oper-web/src/js/store/modules/user.js @@ -3,6 +3,7 @@ export default { id: 0, name: '', realName: '', - superAdmin: 0 + superAdmin: 0, + customerId: '' } } diff --git a/epmet-oper-web/src/main.js b/epmet-oper-web/src/main.js index 4d68cd0..ca2d399 100644 --- a/epmet-oper-web/src/main.js +++ b/epmet-oper-web/src/main.js @@ -17,7 +17,6 @@ import renProcessRunning from '@/components/ren-process-running' import renProcessDetail from '@/components/ren-process-detail' import renDeptTree from '@/components/ren-dept-tree' import renRegionTree from '@/components/ren-region-tree' -import { getDictLabel } from '@/utils' import cloneDeep from 'lodash/cloneDeep' // axios封装 @@ -57,7 +56,7 @@ Vue.use(Element, { // 挂载全局 Vue.prototype.$http = http -Vue.prototype.$getDictLabel = getDictLabel +// Vue.prototype.$getDictLabel = getDictLabel // 保存整站vuex本地储存初始状态 window.SITE_CONFIG['storeState'] = cloneDeep(store.state) diff --git a/epmet-oper-web/src/views/components/CTable.vue b/epmet-oper-web/src/views/components/CTable.vue index a70ca8b..cafda2a 100644 --- a/epmet-oper-web/src/views/components/CTable.vue +++ b/epmet-oper-web/src/views/components/CTable.vue @@ -60,7 +60,8 @@ :header-align="headerAlign" :formatter="col.formatter">