codeMan 2 gadi atpakaļ
vecāks
revīzija
62c626381c

+ 47 - 0
src/HManagement/accountManage/modules/list.vue

@@ -23,6 +23,23 @@
           ></el-option>
         </el-select>
       </div>
+      <div class="flex-align-center" style="margin-left: 30px">
+        <p style="width:70px">用户类型:</p>
+        <el-select
+          style="width: 120px"
+          size="small"
+          v-model="userType"
+          placeholder="请选择"
+          @change="listData('search')"
+        >
+          <el-option
+            v-for="item in userTypeArr"
+            :label="item.remarks"
+            :value="item.value"
+            :key="item.rowindex"
+          ></el-option>
+        </el-select>
+      </div>
     </div>
     <!-- 表格主题 -->
     <tableLayout
@@ -102,11 +119,14 @@ export default {
       total: 0,
       currentPage: 0,
       value: "",
+      userType: '',
+      userTypeArr: ''
     };
   },
   methods: {
     listData(issearch) {
       issearch === "search" ? (this.param.content.pageNumber = 1) : "";
+      this.param.content.where.usertype = this.userType
 
       this.param.content.where.status =
         this.status === "ALL" ? "" : this.status;
@@ -119,6 +139,28 @@ export default {
         this.currentPage = res.pageNumber;
       });
     },
+    //获取用户类型
+    async getRoleData() {
+      let param = {
+          "accesstoken": "4a6559d45d2a4c6e0ebac2c803344106",
+          "classname": "sysmanage.develop.optiontype.optiontype",
+          "method": "optiontypeselect",
+          "content": {
+              "pageNumber": 1,
+              "pageSize": 20,
+              "typename": "usertype",
+              "parameter": {
+              }
+          }
+      }
+      let res = await this.$api.requested(param)
+      res.data.unshift({
+        remarks:'全部',
+        rowindex:100,
+        value: ''
+      })
+      this.userTypeArr = res.data
+    },
     async userstatus() {
       let param = {
         classname: "sysmanage.develop.optiontype.optiontype",
@@ -132,6 +174,8 @@ export default {
       };
       const res = await this.$api.requested(param);
       this.select = res.data;
+      console.log(this.select);
+      
     },
     handleSizeChange(val) {
       // console.log(`每页 ${val} 条`);
@@ -147,6 +191,9 @@ export default {
       this.$emit("handleSelectionChange", selecttion);
     },
   },
+  created() {
+    this.getRoleData()
+  },
   mounted() {
     this.listData();
     this.userstatus();

+ 2 - 0
src/views/homePage/index.vue

@@ -59,6 +59,8 @@ export default {
   },
   methods:{
     redictToModules (item) {
+      console.log(item.apps[0].path);
+      
       this.$router.push({path:item.apps[0].path})
       sessionStorage.setItem('active_modules',JSON.stringify(item))
       window.sessionStorage.setItem('currentPath',item.apps[0].path)