shaogen1995 3 лет назад
Родитель
Сommit
28f8cf9112
5 измененных файлов с 8 добавлено и 7 удалено
  1. 1 1
      src/utils/api.js
  2. 3 3
      src/utils/request.js
  3. 1 1
      src/views/Tab6/add.vue
  4. 1 1
      src/views/Tab6/index.vue
  5. 2 1
      src/views/Tab8/accredit.vue

+ 1 - 1
src/utils/api.js

@@ -216,6 +216,6 @@ export const userDetail = (id) => {
 export const userAuth = (projectIds,userId) => {
   return axios({
     method: 'get',
-    url: `/sys/user/auth/${projectIds}/${userId}`,
+    url: `/sys/user/auth/${userId}?projectIds=${projectIds}`,
   })
 }

+ 3 - 3
src/utils/request.js

@@ -1,8 +1,8 @@
 import axios from 'axios'
 const service = axios.create({
-  // baseURL: 'http://192.168.0.135:8001', // 本地调试
-  baseURL: 'http://8.135.106.227:8023', // 线上调试
-  // baseURL: '', // build
+  // baseURL: 'http://192.168.0.135:8023', // 本地调试
+  // baseURL: 'http://8.135.106.227:8023', // 线上调试
+  baseURL: '', // build
   timeout: 5000
 })
 // 请求拦截器

+ 1 - 1
src/views/Tab6/add.vue

@@ -5,7 +5,7 @@
     <div class="title">数据{{ ruleForm.id ? "编辑" : "新增" }}</div>
     <div class="from">
       <div class="row" v-for="item in data" :key="item.name">
-        <div>{{ item.remark }}:</div>
+        <div>{{ item.name }}:</div>
         <el-input
           v-if="item.type === 'varchar'"
           v-model="ruleForm[item.name]"

+ 1 - 1
src/views/Tab6/index.vue

@@ -60,7 +60,7 @@
           width="200"
           v-for="item in tableHead"
           :key="item.name"
-          :label="`${item.remark}(${item.type})`"
+          :label="`${item.name}(${item.type})`"
         >
           <template #default="{ row }">
             <span class="tabTxt" :title="row[item.name]">{{

+ 2 - 1
src/views/Tab8/accredit.vue

@@ -102,7 +102,7 @@ export default {
       let res = await userAuth(temp.join(","), this.userId);
       if (res.code === 0) {
         this.$message.success("授权成功!");
-        this.disBtn=1
+        this.disBtn = 1;
       } else this.$message.warning(res.msg);
     },
     // 分页器
@@ -129,6 +129,7 @@ export default {
         }
       });
       this.$nextTick(() => {
+        if (this.userData && this.userData.length === 0) this.disBtn++;
         this.userData.forEach((v) => {
           this.$refs.table.toggleRowSelection(v, true);
         });