|
@@ -6,13 +6,12 @@
|
|
|
v-model="firstForm.grade"
|
|
|
placeholder="请选择年级"
|
|
|
clearable
|
|
|
- @change="getListData"
|
|
|
+ @change="changeGrade"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in gradeList"
|
|
|
:label="item.grade_name"
|
|
|
:value="item.grade_id"
|
|
|
- :key="item.grade_id"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -27,7 +26,6 @@
|
|
|
v-for="item in classList"
|
|
|
:label="item.class_name"
|
|
|
:value="item.class_id"
|
|
|
- :key="item.class_id"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -60,15 +58,12 @@
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<div class="mb20">
|
|
|
- <el-button type="primary" class="ml5" @click="getListData"
|
|
|
+ <el-button type="primary" @click="getListData"
|
|
|
>搜索</el-button
|
|
|
>
|
|
|
- <el-button type="primary" class="ml5" @click="clearData"
|
|
|
- >清空</el-button
|
|
|
- >
|
|
|
</div></el-form
|
|
|
>
|
|
|
- <el-button type="primary" @click="exportAll">导出</el-button>
|
|
|
+ <el-button type="primary" @click="exportAll" :disabled="tableData.length == 0">导出</el-button>
|
|
|
|
|
|
<el-table
|
|
|
:data="tableData"
|
|
@@ -76,10 +71,10 @@
|
|
|
v-loading="loading"
|
|
|
class="mt20"
|
|
|
style="width: 100%"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<el-table-column type="selection" align="center" width="55">
|
|
|
</el-table-column>
|
|
|
-
|
|
|
<el-table-column label="班级" prop="class_name" width="150">
|
|
|
</el-table-column>
|
|
|
<el-table-column label="放学日期" prop="xdfxx_fxrq" width="150">
|
|
@@ -95,7 +90,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="年龄" prop="xdfxx_xsnl" width="100">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="放学状态" prop="xdfxx_fxzt" width="120">
|
|
|
+ <el-table-column label="放学状态" prop="xdfxx_fxzt">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="text-red">{{ scope.row.xdfxx_fxzt }}</span>
|
|
|
</template>
|
|
@@ -150,14 +145,24 @@ export default {
|
|
|
class: "",
|
|
|
},
|
|
|
loading: false,
|
|
|
+ multipleSelection:[]
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleSelectionChange(val) {
|
|
|
+ this.multipleSelection = [];
|
|
|
+ val.forEach(item => {
|
|
|
+ this.multipleSelection.push(item.xdfxx_xsxh)
|
|
|
+ })
|
|
|
+ },
|
|
|
handleCurrentChange(val) {
|
|
|
this.cur_page = val;
|
|
|
this.getListData();
|
|
|
},
|
|
|
-
|
|
|
+ changeGrade() {
|
|
|
+ this.getListData();
|
|
|
+ this.classListData();
|
|
|
+ },
|
|
|
getListData() {
|
|
|
this.loading = true;
|
|
|
let data = {
|
|
@@ -169,8 +174,6 @@ export default {
|
|
|
xdfxx_fxrq: this.xdfxx_fxrq,
|
|
|
grade_id: this.firstForm.grade,
|
|
|
class_id: this.firstForm.class,
|
|
|
-
|
|
|
- grade_id: this.grade_id,
|
|
|
xdfxx_fxzt: "3",
|
|
|
};
|
|
|
|
|
@@ -201,6 +204,7 @@ export default {
|
|
|
classListData() {
|
|
|
let data = {
|
|
|
page: 1,
|
|
|
+ grade_id:this.firstForm.grade,
|
|
|
limit: 9999,
|
|
|
};
|
|
|
class_search(data).then((res) => {
|
|
@@ -218,7 +222,7 @@ export default {
|
|
|
let link =
|
|
|
window.globalVariables.api +
|
|
|
"/xddy/dygl_fxxt_xsfx_xs/index?api=xls&page=1&limit=10000&token=" +
|
|
|
- token;
|
|
|
+ token+'&xdfxx_fxzt=3&xdfxx_xsxh='+this.multipleSelection.join(',');
|
|
|
window.open(link, "_blank");
|
|
|
},
|
|
|
// detailData() {
|