|
@@ -23,6 +23,23 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</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>
|
|
</div>
|
|
<!-- 表格主题 -->
|
|
<!-- 表格主题 -->
|
|
<tableLayout
|
|
<tableLayout
|
|
@@ -102,11 +119,14 @@ export default {
|
|
total: 0,
|
|
total: 0,
|
|
currentPage: 0,
|
|
currentPage: 0,
|
|
value: "",
|
|
value: "",
|
|
|
|
+ userType: '',
|
|
|
|
+ userTypeArr: ''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
listData(issearch) {
|
|
listData(issearch) {
|
|
issearch === "search" ? (this.param.content.pageNumber = 1) : "";
|
|
issearch === "search" ? (this.param.content.pageNumber = 1) : "";
|
|
|
|
+ this.param.content.where.usertype = this.userType
|
|
|
|
|
|
this.param.content.where.status =
|
|
this.param.content.where.status =
|
|
this.status === "ALL" ? "" : this.status;
|
|
this.status === "ALL" ? "" : this.status;
|
|
@@ -119,6 +139,28 @@ export default {
|
|
this.currentPage = res.pageNumber;
|
|
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() {
|
|
async userstatus() {
|
|
let param = {
|
|
let param = {
|
|
classname: "sysmanage.develop.optiontype.optiontype",
|
|
classname: "sysmanage.develop.optiontype.optiontype",
|
|
@@ -132,6 +174,8 @@ export default {
|
|
};
|
|
};
|
|
const res = await this.$api.requested(param);
|
|
const res = await this.$api.requested(param);
|
|
this.select = res.data;
|
|
this.select = res.data;
|
|
|
|
+ console.log(this.select);
|
|
|
|
+
|
|
},
|
|
},
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
// console.log(`每页 ${val} 条`);
|
|
// console.log(`每页 ${val} 条`);
|
|
@@ -147,6 +191,9 @@ export default {
|
|
this.$emit("handleSelectionChange", selecttion);
|
|
this.$emit("handleSelectionChange", selecttion);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ this.getRoleData()
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
this.listData();
|
|
this.listData();
|
|
this.userstatus();
|
|
this.userstatus();
|