| | |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total" |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | |
| | | this.listRoot = response.data.data; |
| | | // alert(this.listRoot) |
| | | this.total = response.data.length; |
| | | this.pageNum=1; |
| | | this.pageSize=10; |
| | | // alert(this.total) |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |
| | | /** 查询类别信息 */ |
| | | getCateInfor() |
| | | { |
| | | let _this = this |
| | | getCategory().then(response=>{ |
| | | |
| | | response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | }) |
| | | }) |
| | | }, |
| | | // getCateInfor() |
| | | // { |
| | | // let _this = this |
| | | // getCategory().then(response=>{ |
| | | // |
| | | // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | // }) |
| | | // }) |
| | | // }, |
| | | //身份选择 |
| | | getSrc(identity) { |
| | | if (identity === '1'){ |
| | |
| | | } |
| | | }, |
| | | |
| | | /** 导入操作*/ |
| | | // handleEnport(params){ |
| | | // var file = params.file; |
| | | // var formData = new FormData(); |
| | | // formData.append('excelImport', file); |
| | | // let _this = this |
| | | // enload(formData).then(response => { |
| | | // _this.getList(); |
| | | // Message({ message: "导入成功", type: 'warning' }) |
| | | // |
| | | // }).catch(err) |
| | | // { |
| | | // Message({ message: "导入失败", type: 'error' }) |
| | | // } |
| | | // |
| | | // } |
| | | } |
| | | }; |
| | | </script> |