|
|
@@ -129,6 +129,15 @@
|
|
|
>导出安全保卫工作情况统计</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-upload2"
|
|
|
+ size="mini"
|
|
|
+ @click="handleExportOrgExtend"
|
|
|
+ >导出机构补充信息</el-button
|
|
|
+ >
|
|
|
+ </el-col>
|
|
|
<right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
|
@queryTable="getList"
|
|
|
@@ -176,7 +185,7 @@
|
|
|
prop="shortName"
|
|
|
label="机构简称"
|
|
|
></el-table-column>
|
|
|
-
|
|
|
+
|
|
|
<el-table-column align="center" prop="type" label="机构类型">
|
|
|
<template v-slot="scope">
|
|
|
<dict-tag
|
|
|
@@ -250,7 +259,7 @@
|
|
|
scope.row.type == 10 ||
|
|
|
scope.row.type == 5
|
|
|
" -->
|
|
|
- <el-button
|
|
|
+ <el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-plus"
|
|
|
@@ -417,10 +426,10 @@
|
|
|
<el-form-item v-if="isEdit" label="机构缩略词" prop="breviary">
|
|
|
<el-input
|
|
|
:maxlength="5"
|
|
|
- style="width: 200px;"
|
|
|
+ style="width: 200px;"
|
|
|
v-model="form.breviary"
|
|
|
placeholder="请输入机构缩略词"
|
|
|
-
|
|
|
+
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -438,7 +447,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
@@ -670,7 +679,7 @@ export default {
|
|
|
this.total = response.data.total;
|
|
|
this.isEdit=response.isEdit;
|
|
|
this.loading = false;
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
|
|
|
@@ -701,6 +710,20 @@ this.isEdit=response.isEdit;
|
|
|
`机构信息管理-安全保卫工作情况统计表_${new Date().getTime()}.xlsx`
|
|
|
);
|
|
|
},
|
|
|
+ handleExportOrgExtend(){
|
|
|
+ console.log("111")
|
|
|
+ if (this.queryParams.type && !(this.queryParams.type === "4" || this.queryParams.type === "5" || this.queryParams.type === "6" || this.queryParams.type === "10")){
|
|
|
+ this.$modal.msgError("该机构类型暂不支持导出补充信息,请重新选择机构类型");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.download(
|
|
|
+ "system/dept/exportOrgExtend",
|
|
|
+ {
|
|
|
+ ...this.queryParams,
|
|
|
+ },
|
|
|
+ `机构补充信息_${new Date().getTime()}.xlsx`
|
|
|
+ );
|
|
|
+ },
|
|
|
/** 转换机构数据结构 */
|
|
|
// normalizer(node) {
|
|
|
// if (node.children && !node.children.length) {
|