From 0d008a06894ae1adc178e45a5b42bf86b3d8dd49 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 1 Jun 2023 09:34:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/toast.vue | 5 ++--- src/config/getData2.js | 4 +--- src/pages/modules/login/login.vue | 2 +- src/pages/modules/systemmanage/developer.vue | 6 ++++++ src/pages/modules/systemmanage/role.vue | 3 +++ src/pages/modules/teach/teach.vue | 4 +++- src/pages/modules/vehicleinformation/vehiclestatus.vue | 9 ++++++++- src/pages/shells/index/index.vue | 7 ++++--- src/vuex/modules/com.js | 2 +- 9 files changed, 29 insertions(+), 13 deletions(-) diff --git a/src/components/toast.vue b/src/components/toast.vue index ff347af..fa51c83 100644 --- a/src/components/toast.vue +++ b/src/components/toast.vue @@ -25,14 +25,13 @@ export default { .toast-wrap position fixed z-index 10001 - width 100% - height 48px + width 90% + min-height 48px text-align center left 50% top 50% transform translate(-50%, -50%) .text - height 48px line-height 18px display inline-block width auto diff --git a/src/config/getData2.js b/src/config/getData2.js index 26c334d..4d08781 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -119,9 +119,7 @@ export const paramEdit = (id, code, name, value, remark) => post('api/param/edit remark: remark }) // 1.4 删除参数 -export const paramDelete = (paramsIds) => post('api/param/delete', { - paramsIds: paramsIds -}) +export const paramDelete = (paramsIds) => post('api/param/delete', paramsIds) // 修改密码 export const updatePass = (newPass, oldPass) => post('api/users/updatePass', { diff --git a/src/pages/modules/login/login.vue b/src/pages/modules/login/login.vue index 4b38238..b0e4a4c 100644 --- a/src/pages/modules/login/login.vue +++ b/src/pages/modules/login/login.vue @@ -23,7 +23,7 @@
配置信息
- 忘记密码 +
diff --git a/src/pages/modules/systemmanage/developer.vue b/src/pages/modules/systemmanage/developer.vue index cb3a8d9..0d608ed 100644 --- a/src/pages/modules/systemmanage/developer.vue +++ b/src/pages/modules/systemmanage/developer.vue @@ -128,6 +128,7 @@ export default { diff --git a/src/pages/modules/systemmanage/role.vue b/src/pages/modules/systemmanage/role.vue index 4f6d74a..0a04cb1 100644 --- a/src/pages/modules/systemmanage/role.vue +++ b/src/pages/modules/systemmanage/role.vue @@ -254,6 +254,9 @@ export default { } }, toSave () { + if (!this.pkId) { + return + } let arr = this.$refs.tree.getCheckedKeys() let arr1 = [] arr.map(el => { diff --git a/src/pages/modules/teach/teach.vue b/src/pages/modules/teach/teach.vue index 815775c..db6c7b8 100644 --- a/src/pages/modules/teach/teach.vue +++ b/src/pages/modules/teach/teach.vue @@ -13,7 +13,9 @@ _wh(100%, 100%) .iframe position absolute - top -70px + top -160px left 0 _wh(100%, 100%) +>>>.body-conatiner + padding-top 0 diff --git a/src/pages/modules/vehicleinformation/vehiclestatus.vue b/src/pages/modules/vehicleinformation/vehiclestatus.vue index b4b6411..d61c5f7 100644 --- a/src/pages/modules/vehicleinformation/vehiclestatus.vue +++ b/src/pages/modules/vehicleinformation/vehiclestatus.vue @@ -16,7 +16,7 @@
传感器状态
-
+
急停按钮 @@ -163,4 +163,11 @@ export default { opacity 1 .state_item_2_dot background-color #00c852 +.state_content__h2 + height auto +.state_item_3_txt1 + width 170px +.state_item_3_txt2 + width calc(100% - 170px) + word-break break-all diff --git a/src/pages/shells/index/index.vue b/src/pages/shells/index/index.vue index e98bbc4..64d864c 100644 --- a/src/pages/shells/index/index.vue +++ b/src/pages/shells/index/index.vue @@ -15,8 +15,8 @@
运行
自动
-
-
中文 
+ +
@@ -94,6 +94,7 @@ import jxTime from '@components/time.vue' import jxDialog from '@components/dialog.vue' import { updatePass } from '@config/getData2.js' +import {encrypt} from '../../../main.js' export default { components: { jxTime, @@ -282,7 +283,7 @@ export default { return } try { - let res = await updatePass(this.newpassword1, this.oldpassword) + let res = await updatePass(encrypt(this.newpassword1), encrypt(this.oldpassword)) this.toast(res.desc) this.$refs.child.active = false this.$refs.child.disabled = false diff --git a/src/vuex/modules/com.js b/src/vuex/modules/com.js index 12e0526..f8d308c 100644 --- a/src/vuex/modules/com.js +++ b/src/vuex/modules/com.js @@ -1,7 +1,7 @@ import * as types from '../types' import { getStore, setStore } from '@config/utils.js' -const baseUrl = process.env.NODE_ENV === 'development' ? 'http://43.139.166.161:8018' : 'http://43.139.166.16:8018' +const baseUrl = process.env.NODE_ENV === 'development' ? 'http://43.139.166.161:8018' : 'http://43.139.166.161:8018' const setTime = '5000' const state = { baseUrl: getStore('baseUrl') || baseUrl,