|
@@ -3,6 +3,7 @@
|
|
<el-form :inline="true" :model="firstForm">
|
|
<el-form :inline="true" :model="firstForm">
|
|
<el-form-item class="mr10" label="德育维度:">
|
|
<el-form-item class="mr10" label="德育维度:">
|
|
<el-select v-model="firstForm.dywd" placeholder="请选择维度" @change="getListData">
|
|
<el-select v-model="firstForm.dywd" placeholder="请选择维度" @change="getListData">
|
|
|
|
+ <el-option value="">全部</el-option>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in wdList"
|
|
v-for="item in wdList"
|
|
:label="item.xdww_name"
|
|
:label="item.xdww_name"
|
|
@@ -13,6 +14,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item class="mr10" label="使用状态:">
|
|
<el-form-item class="mr10" label="使用状态:">
|
|
<el-select v-model="firstForm.syzt" placeholder="请选择状态" @change="getListData">
|
|
<el-select v-model="firstForm.syzt" placeholder="请选择状态" @change="getListData">
|
|
|
|
+ <el-option value="">全部</el-option>
|
|
<el-option
|
|
<el-option
|
|
|
|
|
|
v-for="item in ztList"
|
|
v-for="item in ztList"
|
|
@@ -27,11 +29,12 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-button type="primary" @click="getListData">搜索</el-button>
|
|
<el-button type="primary" @click="getListData">搜索</el-button>
|
|
</el-form>
|
|
</el-form>
|
|
- <el-button type="primary">导出</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="exportAll" :disabled="tableData.length === 0">导出</el-button>
|
|
<el-table
|
|
<el-table
|
|
:data="tableData"
|
|
:data="tableData"
|
|
tooltip-effect="dark"
|
|
tooltip-effect="dark"
|
|
class="mt20"
|
|
class="mt20"
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
>
|
|
>
|
|
<el-table-column type="selection" align="center" width="55">
|
|
<el-table-column type="selection" align="center" width="55">
|
|
@@ -121,8 +124,9 @@ export default {
|
|
loading: false,
|
|
loading: false,
|
|
logoSrc: '',
|
|
logoSrc: '',
|
|
appSrc: '',
|
|
appSrc: '',
|
|
- dialogVisible:false
|
|
|
|
- };
|
|
|
|
|
|
+ dialogVisible:false,
|
|
|
|
+ multipleSelection: []
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getWdList() {
|
|
getWdList() {
|
|
@@ -158,16 +162,31 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
exportAll() {
|
|
exportAll() {
|
|
- let link =
|
|
|
|
- window.globalVariables.api +
|
|
|
|
- "/xddy/dygl_wypj_dyewm/index?api=xls&page=1&limit=10000&token=" +
|
|
|
|
- token;
|
|
|
|
|
|
+ let link = '';
|
|
|
|
+ if(this.multipleSelection.length === 0) {
|
|
|
|
+ link =
|
|
|
|
+ window.globalVariables.api +
|
|
|
|
+ "/xddy/dygl_wypj_dyewm/index?api=xls&page=1&limit=10000&token=" +
|
|
|
|
+ token;
|
|
|
|
+ } else {
|
|
|
|
+ link =
|
|
|
|
+ window.globalVariables.api +
|
|
|
|
+ "/xddy/dygl_wypj_dyewm/index?api=xls&page=1&limit=10000&token=" +
|
|
|
|
+ token + '&xdww_id='+this.multipleSelection.join(',');
|
|
|
|
+ }
|
|
window.open(link, "_blank");
|
|
window.open(link, "_blank");
|
|
},
|
|
},
|
|
showQr(item) {
|
|
showQr(item) {
|
|
this.appSrc = 'dy,'+item.xdww_id + ','+ item.xdwx_xsxh+ ','+ item.dept_id;
|
|
this.appSrc = 'dy,'+item.xdww_id + ','+ item.xdwx_xsxh+ ','+ item.dept_id;
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
},
|
|
},
|
|
|
|
+ handleSelectionChange(val) {
|
|
|
|
+ this.multipleSelection = [];
|
|
|
|
+ for(let i in val) {
|
|
|
|
+ this.multipleSelection.push(val[i].xdww_id);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|