cuiwei 1 місяць тому
батько
коміт
79766c086d
2 змінених файлів з 16 додано та 2 видалено
  1. 8 1
      src/views/platform/user.vue
  2. 8 1
      src/views/system/user.vue

+ 8 - 1
src/views/platform/user.vue

@@ -391,7 +391,7 @@ export default {
             currentRow: null,
             isAdminSelect: false,
             isGroupUser: false,
-            defaultPassword: 'Smx2024_518',
+            defaultPassword: '',
 
             // 用户维护相关
             dialogVisible: false,
@@ -420,6 +420,10 @@ export default {
         }
     },
     mounted() {
+        this.sysParamRequest('getValueByCode/defaultPassword', {}).then((res) => {
+            this.defaultPassword = res.data;
+        })
+
         if (this.$common.currUser().groupId) {
             this.isGroupUser = true
         }
@@ -1003,6 +1007,9 @@ export default {
         },
         deptAttrRequest: function(opUrl, postData) {
             return this.$channel.baseRequest('SysDeptAttrController', opUrl, postData, 'SysDeptAttr')
+        },
+        sysParamRequest: function(opUrl, postData) {
+            return this.$channel.baseRequest('SysParamController', opUrl, postData, 'SysDeptAttr')
         }
     }
 }

+ 8 - 1
src/views/system/user.vue

@@ -402,7 +402,7 @@ export default {
             currentRow: null,
             isAdminSelect: false,
             isGroupUser: false,
-            defaultPassword: 'Smx2024_518',
+            defaultPassword: '',
 
             // 用户维护相关
             dialogVisible: false,
@@ -439,6 +439,10 @@ export default {
         }
     },
     mounted() {
+        this.sysParamRequest('getValueByCode/defaultPassword', {}).then((res) => {
+            this.defaultPassword = res.data;
+        })
+
         if (this.$common.currUser().groupId) {
             this.isGroupUser = true
         }
@@ -1204,6 +1208,9 @@ export default {
         },
         deptAttrRequest: function(opUrl, postData) {
             return this.$channel.baseRequest('SysDeptAttrController', opUrl, postData, 'SysDeptAttr')
+        },
+        sysParamRequest: function(opUrl, postData) {
+            return this.$channel.baseRequest('SysParamController', opUrl, postData, 'SysDeptAttr')
         }
     }
 }