diff --git a/src/components/time.vue b/src/components/time.vue index 62f1f03..7c621bc 100644 --- a/src/components/time.vue +++ b/src/components/time.vue @@ -58,7 +58,7 @@ export default { height 61px padding-left 10px .date-wraper - _font(12px, 20px, #909399,,) + _font(16px, 24px, #909399,,) .time-wraper - _font(12px, 20px, #909399,,) + _font(16px, 24px, #909399,,) diff --git a/src/config/rem.js b/src/config/rem.js index 66d660e..21a35f9 100644 --- a/src/config/rem.js +++ b/src/config/rem.js @@ -1,5 +1,5 @@ /** 10.4寸屏,4:3的,1366*768 */ -// apt设备尺寸分辨率1024*768 +// apt设备尺寸分辨率1024*768 现在新设备1920*1080 (function (doc, win) { var docEl = doc.documentElement var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize' diff --git a/src/pages/modules/login/login.vue b/src/pages/modules/login/login.vue index 8898968..da17727 100644 --- a/src/pages/modules/login/login.vue +++ b/src/pages/modules/login/login.vue @@ -68,6 +68,7 @@ export default { } }, mounted () { + window.localStorage.removeItem('defaultActive') // 点对点项目分辨率 1024 * 768 // alert(document.body.clientWidth, 'a') // alert(document.body.clientHeight, 'b') diff --git a/src/pages/modules/systemmanage/role.vue b/src/pages/modules/systemmanage/role.vue index ce90f93..497df5b 100644 --- a/src/pages/modules/systemmanage/role.vue +++ b/src/pages/modules/systemmanage/role.vue @@ -187,9 +187,11 @@ export default { return } try { - await sysRoleAdd(this.rolename, this.remark) - this.toast('操作成功') - this._sysRoleQuery() + let res = await sysRoleAdd(this.rolename, this.remark) + if (res.code === '1') { + this._sysRoleQuery() + } + this.toast(res.desc) this.$refs.child.active = false this.$refs.child.disabled = false } catch (e) { @@ -205,9 +207,11 @@ export default { return } try { - await sysRoleEdit(this.pkObj.roleId, this.rolename, this.remark) - this.toast('操作成功') - this._sysRoleQuery() + let res = await sysRoleEdit(this.pkObj.roleId, this.rolename, this.remark) + if (res.code === '1') { + this._sysRoleQuery() + } + this.toast(res.desc) this.$refs.child.active = false this.$refs.child.disabled = false } catch (e) { @@ -218,9 +222,11 @@ export default { async _sysRoleDelete () { this.$refs.child.disabled = true try { - await sysRoleDelete([this.pkObj.roleId]) - this.toast('操作成功') - this._sysRoleQuery() + let res = await sysRoleDelete([this.pkObj.roleId]) + if (res.code === '1') { + this._sysRoleQuery() + } + this.toast(res.desc) this.$refs.child.active = false this.$refs.child.disabled = false } catch (e) { diff --git a/src/pages/modules/systemmanage/user.vue b/src/pages/modules/systemmanage/user.vue index 71ecaec..d7f8c9a 100644 --- a/src/pages/modules/systemmanage/user.vue +++ b/src/pages/modules/systemmanage/user.vue @@ -290,9 +290,11 @@ export default { phone: this.phone, rolesIds: rolesIds } - await usersEdit(obj) - this.toast('操作成功') - this._usersQuery() + let res = await usersEdit(obj) + if (res.code === '1') { + this._usersQuery() + } + this.toast(res.desc) this.$refs.child.active = false this.$refs.child.disabled = false } catch (e) { @@ -307,9 +309,11 @@ export default { userId: this.pkObj.userId, password: '123456' } - await usersEdit(obj) - this.toast('操作成功') - this._usersQuery() + let res = await usersEdit(obj) + if (res.code === '1') { + this._usersQuery() + } + this.toast(res.desc) this.$refs.child.active = false this.$refs.child.disabled = false } catch (e) { @@ -320,9 +324,11 @@ export default { async _usersDelete () { this.$refs.child.disabled = true try { - await usersDelete([this.pkObj.userId]) - this.toast('操作成功') - this._usersQuery() + let res = await usersDelete([this.pkObj.userId]) + if (res.code === '1') { + this._usersQuery() + } + this.toast(res.desc) this.$refs.child.active = false this.$refs.child.disabled = false } catch (e) { diff --git a/src/pages/modules/teach/teach.vue b/src/pages/modules/teach/teach.vue index 1e3b037..4fa7ed0 100644 --- a/src/pages/modules/teach/teach.vue +++ b/src/pages/modules/teach/teach.vue @@ -1,12 +1,19 @@ diff --git a/src/pages/modules/vehicleinformation/vehiclecontrol.vue b/src/pages/modules/vehicleinformation/vehiclecontrol.vue index f4cfb59..3764703 100644 --- a/src/pages/modules/vehicleinformation/vehiclecontrol.vue +++ b/src/pages/modules/vehicleinformation/vehiclecontrol.vue @@ -1,14 +1,14 @@