zhaoke vor 2 Jahren
Ursprung
Commit
17248af6ed

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

@@ -234,7 +234,7 @@ export default {
           const obj = {
             name: nameIndex[index],
             value: item,
-            userid: getToken('userid')
+            // userid: getToken('userid')
           }
           datas.push(obj)
         })

+ 2 - 3
src/views/newRole/index.vue

@@ -197,9 +197,7 @@ export default {
   methods: {
     //获取tree数据
     async setTreeData () {
-      const { code, returnData } = await this.getQueryList(SERVICE_ID.sysAuthId, [{
-        user_id: getToken('userid')
-      }])
+      const { code, returnData } = await this.getQueryList(SERVICE_ID.sysAuthId)
       if (code == 0) {
         const treeMenu = listToTree(returnData, 'up_auth_id', 'auth_id')
         this.treeData[0].children = treeMenu
@@ -272,6 +270,7 @@ export default {
     },
     //获取角色已有权限
     async getRoleQuth (item) {
+      console.log(item)
       this.$refs.tree.setCheckedKeys([])
       const newItem = _.cloneDeep(item)
       const newObj = {}

+ 4 - 3
src/views/newUserManagement/index.vue

@@ -91,6 +91,9 @@
               <el-table-column prop="user_name" label="用户名">
               </el-table-column>
               <el-table-column prop="user_status" label="状态">
+                <template slot-scope="scope">
+                  <div>{{ scope.row.user_status ? '启用' :'禁用' }}</div>
+                </template>
               </el-table-column>
               <!-- <el-table-column prop="token_valid_duration" label="令牌有效时长">
               </el-table-column> -->
@@ -300,9 +303,7 @@ export default {
   },
   methods: {
     async getTreeData () {
-      const { code, returnData } = await this.getQueryListAuth(this.queryId, [{
-        user_id: getToken('userid'),
-      }])
+      const { code, returnData } = await this.getQueryListAuth(this.queryId)
       if (code == 0) {
         if (returnData && returnData.length) {
           this.arrTree = _.cloneDeep(returnData)

+ 1 - 1
src/views/systemSettings/views/newMachine/components/table.vue

@@ -284,7 +284,7 @@ export default {
       try {
         const { code, returnData } = await Query({
           serviceId: SERVICE_ID.sysUserAuthId,
-          dataContent: [{ user_id: getToken('userid'), auth_id: this.datasource_id }],
+          dataContent: [{ auth_id: this.datasource_id,user_id: getToken('userid'), }],
           event: '0'
         });
         if (code == 0) {

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

@@ -337,8 +337,8 @@ export default {
           serviceId: SERVICE_ID.sysUserAuthId,
           dataContent: [
             {
+              auth_id: id,
               user_id: getToken('userid'),
-              auth_id: id
             }
           ],
           page: 1,