diff --git a/.env.development b/.env.development index 03c6006..520dcf1 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ NODE_ENV=development VUE_APP_PREVIEW=true VUE_APP_API_BASE_URL=/api -VUE_APP_MODEL_BASE_URL=https://www.chuangzhikj.com/saas-ics \ No newline at end of file +VUE_APP_MODEL_BASE_URL=https://company.haxy.com.cn:4443/shoot-hand \ No newline at end of file diff --git a/.env.preview b/.env.preview index 397f40d..ea405b4 100644 --- a/.env.preview +++ b/.env.preview @@ -1,4 +1,4 @@ NODE_ENV=production VUE_APP_PREVIEW=true -VUE_APP_API_BASE_URL=/shoot-hand +VUE_APP_API_BASE_URL=https://company.haxy.com.cn:4443/shoot-hand VUE_APP_MODEL_BASE_URL=https://company.haxy.com.cn:4443/shoot-hand \ No newline at end of file diff --git a/public/img/info.png b/public/img/info.png new file mode 100644 index 0000000..51ced39 Binary files /dev/null and b/public/img/info.png differ diff --git a/public/img/paidan.png b/public/img/paidan.png new file mode 100644 index 0000000..fa9202c Binary files /dev/null and b/public/img/paidan.png differ diff --git a/public/img/paidanjump.png b/public/img/paidanjump.png new file mode 100644 index 0000000..3fe5d1d Binary files /dev/null and b/public/img/paidanjump.png differ diff --git a/public/img/time.png b/public/img/time.png new file mode 100644 index 0000000..dc28636 Binary files /dev/null and b/public/img/time.png differ diff --git a/src/views/admin/RepairList.vue b/src/views/admin/RepairList.vue index df609f3..e130af5 100644 --- a/src/views/admin/RepairList.vue +++ b/src/views/admin/RepairList.vue @@ -8,9 +8,24 @@ + + + + + + + + + + + + + + + - 查询 + 查询 queryParam = {}">重置 @@ -154,7 +169,11 @@ export default { } else { let datas = { 'menu': 7, - 'type': 'all' + 'type': 'all', + 'sn': this.queryParam.sn, + 'name': this.queryParam.name, + 'typeName': this.queryParam.typeName, + 'deviceName': this.queryParam.deviceName } getRepairList(datas).then(res => { this.loadData = res.rows diff --git a/src/views/admin/modules/RepairModal.vue b/src/views/admin/modules/RepairModal.vue index 1f4d08a..312b6a4 100644 --- a/src/views/admin/modules/RepairModal.vue +++ b/src/views/admin/modules/RepairModal.vue @@ -68,17 +68,17 @@ - - {{ item.name }} + {{ item.name }} - - {{ item.name }} + {{ item.name }} @@ -100,17 +100,17 @@ - - {{ item.userName }} + {{ item.userName }} - - {{ item.name }} + {{ item.name }} @@ -118,9 +118,9 @@ - - {{ item.name }} + {{ item.name }} @@ -247,22 +247,23 @@ export default { }) }, selectUser(id){ - console.log(id) }, // 根据分类id 查询对应设备 selectDevice (item) { - getRepairDeviceList({ 'typeId': item.id }).then(res => { + getRepairDeviceList({ 'typeId': item.key }).then(res => { this.deviceList = res.rows }) - selectWorkerIdByTypeId({ 'typeId': item.id }).then(res => { + selectWorkerIdByTypeId({ 'typeId': item.key }).then(res => { this.userList = res.data }) - this.typeName = item.name - this.typeId = item.id + this.typeName = item.label + console.log(this.typeName) + this.typeId = item.key }, getDeviceName (item) { - this.deviceName = item.name - this.deviceId = item.id + console.log(item) + this.deviceName = item.label + this.deviceId = item.key }, selectFailureType () { getRepairFailureTypeList().then(res => { @@ -276,15 +277,16 @@ export default { }, selectRoomList (item) { - getRepairRoomList({ 'addressId': item.id }).then(res => { + console.log(item) + getRepairRoomList({ 'addressId': item.key }).then(res => { this.roomList = res.rows }) - this.address = item.name - this.addressId = item.id + this.address = item.label + this.addressId = item.key }, selectFloorName (item) { - this.floor = item.name - this.floorId = item.id + this.floor = item.label + this.floorId = item.key }, async handlePreview (file) { diff --git a/src/views/admin/repair/PerformanceList.vue b/src/views/admin/repair/PerformanceList.vue index b815871..276370c 100644 --- a/src/views/admin/repair/PerformanceList.vue +++ b/src/views/admin/repair/PerformanceList.vue @@ -35,7 +35,7 @@ - + - + 待派单 {{ adminStatsCount.wait }} - + + + 重派单 {{ adminStatsCount.anew }} - + + 未查看通知 {{ adminStatsCount.newnotice }} - + 已查看通知 {{ adminStatsCount.oldnotice }} @@ -92,7 +95,7 @@ - 楼层负责人情况 + 网格长 按月 @@ -229,6 +232,7 @@ export default { name: 'RepairStatistics', data () { return { + baseUrl: process.env.BASE_URL, type: '', adminStatsCount: [], repairStatsCount: [], @@ -405,7 +409,6 @@ export default { }) }, - // 使用openChange事件控制日期下拉面板显示与收起 openDeviceTypeChange (open) { this.deviceType.open = open @@ -555,8 +558,9 @@ export default { borderWidth: 2 }, label: { - show: false, - position: 'center' + show: true, + position: 'inner', + formatter: '{d}%' }, emphasis: { label: { @@ -713,11 +717,18 @@ export default { } +.topHeadView .itemView .imgView { + width: 80px; + height: 80px; + border-radius: 80px; + background: white; +} + .topHeadView .itemView .imgView { width: 80px; height: 80px; - background: white; border-radius: 80px; + background: white; } .topHeadView .itemView .label { diff --git a/src/views/admin/repair/modules/RepairAddressFloorModal.vue b/src/views/admin/repair/modules/RepairAddressFloorModal.vue index 6af8719..03dc25f 100644 --- a/src/views/admin/repair/modules/RepairAddressFloorModal.vue +++ b/src/views/admin/repair/modules/RepairAddressFloorModal.vue @@ -20,8 +20,8 @@ - - + {{ item.username }}--{{ item.mobile}} diff --git a/src/views/admin/repair/modules/RepairAddressFloorModalList.vue b/src/views/admin/repair/modules/RepairAddressFloorModalList.vue index ea52e72..06240dd 100644 --- a/src/views/admin/repair/modules/RepairAddressFloorModalList.vue +++ b/src/views/admin/repair/modules/RepairAddressFloorModalList.vue @@ -71,7 +71,7 @@ import RepairAddressModal from '@/views/admin/repair/modules/RepairAddressModal' dataIndex: 'name' }, { - title: '楼层管理员', + title: '网格长', dataIndex: 'adminName' }, { diff --git a/vue.config.js b/vue.config.js index 1e30bd2..0125672 100644 --- a/vue.config.js +++ b/vue.config.js @@ -13,7 +13,8 @@ function resolve (dir) { function getGitHash () { try { return GitRevision.version() - } catch (e) {} + } catch (e) { + } return 'unknown' } @@ -22,15 +23,15 @@ const assetsCDN = { // https://cdn.jsdelivr.net/npm/ant-design-vue@1.3.9/dist/antd.min.css css: [], js: [ - '/js/vue.min.js', - '/js/axios.min.js', - '/js/vue-router.min.js', - '/js/vuex.min.js', - '/js/moment.min.js', - '/js/zh-cn.min.js', - '/js/g2.min.js', - '/js/data-set.min.js', - '/js/antd-with-locales.min.js' + '/shoot-hand-html/js/vue.min.js', + '/shoot-hand-html/js/axios.min.js', + '/shoot-hand-html/js/vue-router.min.js', + '/shoot-hand-html/js/vuex.min.js', + '/shoot-hand-html/js/moment.min.js', + '/shoot-hand-html/js/zh-cn.min.js', + '/shoot-hand-html/js/g2.min.js', + '/shoot-hand-html/js/data-set.min.js', + '/shoot-hand-html/js/antd-with-locales.min.js' ] } // webpack build externals @@ -49,6 +50,7 @@ const prodExternals = { // vue.config.js const vueConfig = { + publicPath: '/shoot-hand-html/', configureWebpack: { externals: prodExternals, plugins: [