|
|
@@ -89,7 +89,7 @@
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
- <el-col :span="1.5">
|
|
|
+ <el-col :span="12">
|
|
|
<el-button
|
|
|
type="warning"
|
|
|
plain
|
|
|
@@ -97,10 +97,21 @@
|
|
|
size="mini"
|
|
|
:loading="exportLoading"
|
|
|
@click="handleExport"
|
|
|
- v-hasPermi="['his:user:export']"
|
|
|
+ v-hasPermi="['his:user:export']" style="margin-right: 10px;"
|
|
|
>导出</el-button>
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ :loading="exportLoading"
|
|
|
+ @click="handleExportOpenId"
|
|
|
+ v-hasPermi="['his:user:exportOpenId']"
|
|
|
+ >服务号用户OPENID导出</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" style="float: right;"></right-toolbar>
|
|
|
</el-col>
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
<el-table height="660" v-loading="loading" border :data="userList" @selection-change="handleSelectionChange" >
|
|
|
@@ -275,7 +286,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listUser, getUser, delUser, addUser, updateUser, exportUser, addPoint } from "@/api/his/user";
|
|
|
+import { listUser, getUser, delUser, addUser, updateUser, exportUser, addPoint,exportOpenId } from "@/api/his/user";
|
|
|
import { getCompanyUserList, changeCompanyUser, getCompanyList } from '@/api/company/companyUser';
|
|
|
import userDetails from '../../components/his/userDetails.vue';
|
|
|
import userDetailsByNew from './userDetails.vue';
|
|
|
@@ -582,6 +593,22 @@ export default {
|
|
|
this.exportLoading = false;
|
|
|
});
|
|
|
},
|
|
|
+ /** 导出服务号用户OPENID */
|
|
|
+ handleExportOpenId() {
|
|
|
+ this.$confirm('是否确认导出服务号用户OPENID数据?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ this.exportLoading = true;
|
|
|
+ return exportOpenId();
|
|
|
+ }).then(response => {
|
|
|
+ this.download(response.msg);
|
|
|
+ this.exportLoading = false;
|
|
|
+ }).catch(() => {
|
|
|
+ this.exportLoading = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|