Bläddra i källkod

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

csx 5 år sedan
förälder
incheckning
99fd16fd9b

+ 1 - 1
.idea/codeStyles/Project.xml Visa fil

@@ -1,6 +1,6 @@
1 1
 <component name="ProjectCodeStyleConfiguration">
2 2
   <code_scheme name="Project" version="173">
3
-    <JSCodeStyleSettings version="0">
3
+    <JSCodeStyleSettings>
4 4
       <option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
5 5
       <option name="FORCE_SEMICOLON_STYLE" value="true" />
6 6
       <option name="SPACE_BEFORE_GENERATOR_MULT" value="true" />

+ 5 - 5
config/dev.env.js Visa fil

@@ -8,10 +8,10 @@ module.exports = {
8 8
   ENV_CONFIG: '"dev"',
9 9
   BASE_API:  '"http://api.xt.test.sgjyun.com"',// //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10 10
 
11
-  // SSO_HOST: '"http://testsso.sgjyun.com"',
12
-  // SRCM_HOST: '"http://test1.sgjyun.com"',
13
-  // XT_HOST: '"http://xt.test.sgjyun.com"',
14
-  // MIRCO_MALL_HOST: '"http://mall.test.sgjyun.com"',
15
-  // CDM_HOST: '"http://cdm.test.sgjyun.com"',
11
+  SSO_HOST: '"http://testsso.sgjyun.com"',
12
+  SRCM_HOST: '"http://test1.sgjyun.com"',
13
+  XT_HOST: '"http://xt.test.sgjyun.com"',
14
+  MIRCO_MALL_HOST: '"http://mall.test.sgjyun.com"',
15
+  CDM_HOST: '"http://cdm.test.sgjyun.com"',
16 16
 }
17 17
 

+ 3 - 4
config/index.js Visa fil

@@ -17,11 +17,10 @@ module.exports = {
17 17
     // can be overwritten by process.env.HOST
18 18
     // if you want dev by ip, please set host: '0.0.0.0'
19 19
 
20
-    host: 'xt.test.sgjyun.com',
21
-    // host: 'xt.kuyicloud.com',
22 20
     // host: 'xt.test.sgjyun.com',
23
-    // host:'localhost',
24
-    port:9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
21
+    // host: 'xt.kuyicloud.com',
22
+    host: 'xt.test.sgjyun.com',
23
+    port: 9526, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
25 24
     autoOpenBrowser: true,
26 25
     errorOverlay: true,
27 26
     notifyOnErrors: false,

+ 1 - 0
src/xt_pages/role/admin.vue Visa fil

@@ -171,6 +171,7 @@ export default {
171 171
       })
172 172
     },
173 173
     recoverAdminAction: function(row) {
174
+    
174 175
       const loading = this.$loading({
175 176
         lock: true,
176 177
         text: '正在恢复管理员...',

+ 8 - 6
src/xt_pages/role/components/AdminInfoForm.vue Visa fil

@@ -133,11 +133,13 @@ export default {
133 133
           this.loading = false
134 134
           var resp = rs.data
135 135
           if (resp.state === 1) {
136
-            this.roles.push(...resp.data.roles)
136
+            // this.roles.push(...resp.data.roles)
137
+            this.roles =  resp.data.roles
137 138
             this.qntoken = resp.data.qntoken
138
-            if (this.roles.length > 0) {
139
-              this.form.role = this.roles[0].id
140
-            }
139
+            // if (this.roles.length > 0) {
140
+            //   this.form.role = this.roles[0].id;
141
+            //   console.log("国庆快乐",this.form.role)
142
+            // }
141 143
           } else {
142 144
             this.$message.error(resp.msg)
143 145
           }
@@ -162,11 +164,11 @@ export default {
162 164
             this.form.role = admin.role_id
163 165
             this.form.intro = admin.intro
164 166
           } else {
165
-            this.$message.error(resp.msg)
167
+            this.$message.error("该用户不存在")
166 168
           }
167 169
         }).catch(err => {
168 170
           this.loading = false
169
-          this.$message.error(err)
171
+          this.$message.error("该用户不存在")
170 172
         })
171 173
       }
172 174