From b356dca701ddbafbcf17ef8e1f9035fef31d60e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Wed, 28 Aug 2024 15:06:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96=EF=BC=8C?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- .env.staging | 2 +- src/components/Business/SmUser/UserInput.vue | 1 + src/components/ImageUpload/index.vue | 14 +++++ src/views/dashboard/component/TodoList.vue | 10 +++- src/views/login.vue | 2 +- src/views/register.vue | 2 +- src/views/ss/ad/index.vue | 4 +- src/views/ss/shareCode/index.vue | 34 ++++++++++-- src/views/ss/userVerify/index.vue | 4 ++ src/views/system/device/detail.vue | 54 +++++++++++--------- src/views/system/device/index.vue | 2 +- src/views/system/model/index.vue | 30 +++++------ src/views/system/recharge/detail.vue | 6 ++- src/views/system/smUser/detail.vue | 54 +++++++++++--------- src/views/system/smUser/index.vue | 12 ++--- src/views/userLogin.vue | 2 +- vue.config.js | 2 +- 19 files changed, 152 insertions(+), 87 deletions(-) diff --git a/.env.development b/.env.development index cd50909..4c5fef8 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 扫码床垫-开发 +VUE_APP_TITLE = 创亿康-开发 # 开发环境配置 ENV = 'development' diff --git a/.env.production b/.env.production index 508632c..cce54e9 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 扫码床垫管理系统 +VUE_APP_TITLE = 创亿康管理系统 # 生产环境配置 ENV = 'production' diff --git a/.env.staging b/.env.staging index 3eca93d..a44e4ae 100644 --- a/.env.staging +++ b/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 扫码床垫管理系统 +VUE_APP_TITLE = 创亿康管理系统 NODE_ENV = production diff --git a/src/components/Business/SmUser/UserInput.vue b/src/components/Business/SmUser/UserInput.vue index d2d4ff4..37164a4 100644 --- a/src/components/Business/SmUser/UserInput.vue +++ b/src/components/Business/SmUser/UserInput.vue @@ -161,6 +161,7 @@ export default { doLoad(ids) { listSmUserByIds(ids).then(res => { this.selected = res.data; + this.$emit('load', this.selected) }) }, // 修改值 diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index b34f852..addaf90 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -25,6 +25,7 @@ 请上传 + 的文件 @@ -53,6 +54,11 @@ export default { type: Number, default: 5, }, + // 像素大小 + filePx: { + type: String, + default: null, + }, // 大小限制(MB) fileSize: { type: Number, @@ -67,6 +73,14 @@ export default { isShowTip: { type: Boolean, default: true + }, + width: { + type: String, + default: null, + }, + height: { + type: String, + default: null, } }, data() { diff --git a/src/views/dashboard/component/TodoList.vue b/src/views/dashboard/component/TodoList.vue index 2619c0a..e08a4db 100644 --- a/src/views/dashboard/component/TodoList.vue +++ b/src/views/dashboard/component/TodoList.vue @@ -1,5 +1,12 @@ - + - - - {{item.point | money | defaultValue}} % - +
+ + + + {{item.point | money | defaultValue}} % + +
- - + - + - - - - - - @@ -174,6 +173,9 @@ import { $serviceType, $view } from '@/utils/mixins' import LineField from '@/components/LineField/index.vue' import RechargeList from '@/views/ss/store/components/rechargeList.vue' import Recharge from '@/views/system/recharge/index.vue' +import { isEmpty } from '@/utils' +import hasPermi from '@/directive/permission/hasPermi' +import { checkPermi } from '@/utils/permission' export default { name: 'Device/:deviceId', @@ -231,6 +233,8 @@ export default { clearInterval(this.timer); }, methods: { + checkPermi, + isEmpty, handleUnbind() { this.$confirm('是否强制解绑该设备?', '警告', { confirmButtonText: '确定', diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue index a4be2fb..6f097de 100644 --- a/src/views/system/device/index.vue +++ b/src/views/system/device/index.vue @@ -194,7 +194,7 @@ type="text" icon="el-icon-view" @click="handleSee(scope.row)" - v-hasPermi="['system:device:detail']" + v-hasPermi="['system:device:query']" >详情 - - - - - - + + + + + + + + + + + + + + + @@ -56,56 +61,53 @@ - + - - - - + @@ -136,6 +138,7 @@ import StoreInvestor from '@/views/ss/storeInvestor/index.vue' import SmUser from '@/views/system/smUser/index.vue' import User from '@/views/system/user/index.vue' import UserLink from '@/components/Business/SmUser/UserLink.vue' +import { checkPermi } from '@/utils/permission' export default { name: 'User/:userId', @@ -165,6 +168,7 @@ export default { this.initData(); }, methods: { + checkPermi, initData() { this.loading = true; getSmUser(this.$route.params.userId).then(response => { diff --git a/src/views/system/smUser/index.vue b/src/views/system/smUser/index.vue index b22f2ed..85c18c0 100644 --- a/src/views/system/smUser/index.vue +++ b/src/views/system/smUser/index.vue @@ -17,18 +17,18 @@ @keyup.enter.native="handleQuery" /> - + - + diff --git a/src/views/userLogin.vue b/src/views/userLogin.vue index ffb9284..0f57bfe 100644 --- a/src/views/userLogin.vue +++ b/src/views/userLogin.vue @@ -1,7 +1,7 @@