|
@@ -323,7 +323,6 @@ export default {
|
|
|
name: null,
|
|
|
code: null,
|
|
|
certId: null,
|
|
|
- certMajor: null,
|
|
|
email: null,
|
|
|
phone: null,
|
|
|
},
|
|
@@ -377,16 +376,31 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.getList();
|
|
|
- this.getTemp();
|
|
|
+ this.initGetList();
|
|
|
+ // this.getTemp();
|
|
|
},
|
|
|
methods: {
|
|
|
/** 查询B类证书列表 */
|
|
|
tempHandle(val){
|
|
|
- console.log(val,this.tempValueOptions)
|
|
|
+ // console.log(val,this.tempValueOptions)
|
|
|
let arr = this.tempValueOptions.filter(item=>item.value===val)
|
|
|
return arr[0].label
|
|
|
},
|
|
|
+ initGetList() {
|
|
|
+ this.loading = true;
|
|
|
+ listContract(this.queryParams).then(async(response) => {
|
|
|
+ let res = await listTemp()
|
|
|
+ // console.log(res,2222222)
|
|
|
+ let arr = res.rows.map(item => {
|
|
|
+ return { label: item.name, value: item.id }
|
|
|
+ });
|
|
|
+ // console.log(arr,22)
|
|
|
+ this.tempValueOptions = arr
|
|
|
+ this.contractList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listContract(this.queryParams).then(response => {
|