| | |
| | | <!-- @click="handleImport"--> |
| | | <!-- >导入--> |
| | | <!-- </el-button>--> |
| | | <!-- <el-button--> |
| | | <!-- type="warning"--> |
| | | <!-- size="small"--> |
| | | <!-- plain--> |
| | | <!-- v-if="userInfo.role_name.includes('admin')"--> |
| | | <!-- icon="el-icon-download"--> |
| | | <!-- @click="handleExport"--> |
| | | <!-- >导出--> |
| | | <!-- </el-button>--> |
| | | <el-button |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | v-if="userInfo.role_name.includes('admin')" |
| | | icon="el-icon-download" |
| | | @click="handleExport" |
| | | >导出 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{ row }" slot="tenantName"> |
| | | <el-tag>{{ row.tenantName }}</el-tag> |
| | |
| | | done(); |
| | | }, |
| | | handleExport() { |
| | | var deptId = "" |
| | | |
| | | if (this.treeDeptId == ""){ |
| | | |
| | | if (this.userInfo.role_name.indexOf("administrator") ==-1){ |
| | | deptId = this.userInfo.dept_id |
| | | } |
| | | }else{ |
| | | deptId = this.treeDeptId.id |
| | | } |
| | | let deptId = "1734016112398020609" |
| | | |
| | | this.$confirm("是否导出用户数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | |
| | | type: "warning" |
| | | }).then(() => { |
| | | window.open( |
| | | `/api/blade-user/export-user?${ |
| | | `/api/userWx/export-user?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&account=${this.search.account}&realName=${ |
| | | this.search.realName |
| | | }&deptId=${deptId}` |
| | | }&deptId=${deptId}&cardid=${this.search.cardid}` |
| | | ); |
| | | }); |
| | | }, |