| | |
| | | |
| | | <el-dialog title="" append-to-body :visible.sync="popupTableUserShow" width="80%" :before-close="userHandleClose"> |
| | | <basic-container> |
| | | <avue-crud :data="userData" :page="userPage" :option="userOption" @search-change="searchChange" |
| | | @search-reset="searchReset"> |
| | | <avue-crud :data="userData" :page="userPage" :option="userOption" @current-change="currentChange" |
| | | @search-change="searchChange" @search-reset="searchReset"> |
| | | <template slot-scope="{type,size,row }" slot="menuLeft"> |
| | | <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出 |
| | | </el-button> |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | currentChange(currentPage) { |
| | | this.userPage.currentPage = currentPage |
| | | }, |
| | | |
| | | addC(number) { |
| | | console.log("******************", number) |
| | |
| | | } |
| | | data = Qs.stringify(data) |
| | | exportBlob( |
| | | `/api/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data).then( |
| | | res => { |
| | | downloadXls(res.data, `投票人员${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | | }) |
| | | `/api/blade-userTopics/userTopics/exportUser?${this.website.tokenHeader}=${getToken()}&` + data) |
| | | .then( |
| | | res => { |
| | | downloadXls(res.data, `投票人员${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | | }) |
| | | |
| | | }) |
| | | }, |
| | | |
| | |
| | | done() |
| | | }, |
| | | |
| | | openUser(row, type = 0) { |
| | | openUser(row, type) { |
| | | this.type = type |
| | | this.popupTableUserShow = true |
| | | this.query = {} |
| | |
| | | this.userPage.total = data.total |
| | | this.userData = data.records |
| | | this.userData.forEach(item => { |
| | | if (item.avatar.length > 0) { |
| | | if (item.avatar) { |
| | | item.avatar = website.minioUrl + item.avatar |
| | | } |
| | | if (item.signaturePath && item.signaturePath.length > 0) { |