|
@@ -212,7 +212,7 @@
|
|
<el-option
|
|
<el-option
|
|
v-for="item in gradeList"
|
|
v-for="item in gradeList"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
- :label="item+'级'"
|
|
|
|
|
|
+ :label="item + '级'"
|
|
:value="item"
|
|
:value="item"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -228,38 +228,40 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <el-button
|
|
|
|
- type="success"
|
|
|
|
- style="border-radius: 20px"
|
|
|
|
- v-show="dimensionality == '0'"
|
|
|
|
- @click="downloadFun"
|
|
|
|
- >
|
|
|
|
- 全院下载
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- type="success"
|
|
|
|
- style="border-radius: 20px"
|
|
|
|
- v-show="dimensionality == '1'"
|
|
|
|
- @click="downloadFun"
|
|
|
|
- >
|
|
|
|
- 下载已选年级
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- type="success"
|
|
|
|
- style="border-radius: 20px"
|
|
|
|
- v-show="dimensionality == '2'"
|
|
|
|
- @click="downloadFun"
|
|
|
|
- >
|
|
|
|
- 下载已选班级
|
|
|
|
- </el-button>
|
|
|
|
- <el-button
|
|
|
|
- type="success"
|
|
|
|
- style="border-radius: 20px"
|
|
|
|
- v-show="dimensionality == '2'"
|
|
|
|
- @click="downloadAllFun"
|
|
|
|
- >
|
|
|
|
- 下载全部班级
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <div style="display: flex; width: 100%; justify-content: center">
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ style="border-radius: 20px"
|
|
|
|
+ v-show="dimensionality == '0'"
|
|
|
|
+ @click="downloadFun"
|
|
|
|
+ >
|
|
|
|
+ 全院下载
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ style="border-radius: 20px"
|
|
|
|
+ v-show="dimensionality == '1'"
|
|
|
|
+ @click="downloadFun"
|
|
|
|
+ >
|
|
|
|
+ 下载已选年级
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ style="border-radius: 20px"
|
|
|
|
+ v-show="dimensionality == '2'"
|
|
|
|
+ @click="downloadFun"
|
|
|
|
+ >
|
|
|
|
+ 下载已选班级
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ style="border-radius: 20px"
|
|
|
|
+ v-show="dimensionality == '2'"
|
|
|
|
+ @click="downloadAllFun"
|
|
|
|
+ >
|
|
|
|
+ 下载全部班级
|
|
|
|
+ </el-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> </span>
|
|
<span slot="footer" class="dialog-footer"> </span>
|
|
@@ -272,6 +274,7 @@
|
|
import { oSessionStorage } from "../../../utils/utils";
|
|
import { oSessionStorage } from "../../../utils/utils";
|
|
import planReport from "../../../components/PlanReport.vue";
|
|
import planReport from "../../../components/PlanReport.vue";
|
|
import { basePath } from "../../../utils/http";
|
|
import { basePath } from "../../../utils/http";
|
|
|
|
+import { Loading } from "element-ui";
|
|
export default {
|
|
export default {
|
|
name: "userManage",
|
|
name: "userManage",
|
|
components: {
|
|
components: {
|
|
@@ -365,6 +368,13 @@ export default {
|
|
courtNum: "",
|
|
courtNum: "",
|
|
grade: "",
|
|
grade: "",
|
|
gradeList: [],
|
|
gradeList: [],
|
|
|
|
+ optionsLoad:{
|
|
|
|
+ lock: true,
|
|
|
|
+ text: '努力下载中',
|
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
|
+ },
|
|
|
|
+ loadingInstance :null
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
@@ -400,7 +410,6 @@ export default {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
this.grade = res.data[0];
|
|
this.grade = res.data[0];
|
|
this.gradeList = res.data;
|
|
this.gradeList = res.data;
|
|
- debugger;
|
|
|
|
// this.orgName = [res.data[0].orgNo];
|
|
// this.orgName = [res.data[0].orgNo];
|
|
// this.orgList = res.data;
|
|
// this.orgList = res.data;
|
|
} else {
|
|
} else {
|
|
@@ -439,6 +448,8 @@ export default {
|
|
classIds: this.orgName,
|
|
classIds: this.orgName,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ this.loadingInstance= Loading.service(this.optionsLoad);
|
|
this.$http.post(`/plan/generate/report`, params, (res) => {
|
|
this.$http.post(`/plan/generate/report`, params, (res) => {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
// this.currentDownFun(res.data);
|
|
// this.currentDownFun(res.data);
|
|
@@ -446,6 +457,10 @@ export default {
|
|
document.body.appendChild(a);
|
|
document.body.appendChild(a);
|
|
a.setAttribute("href", basePath + `/plan/download?path=${res.data}`);
|
|
a.setAttribute("href", basePath + `/plan/download?path=${res.data}`);
|
|
a.click();
|
|
a.click();
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ // 以服务的方式调用的 Loading 需要异步关闭
|
|
|
|
+ this.loadingInstance.close();
|
|
|
|
+ });
|
|
// this.currentDownFun(res.data)
|
|
// this.currentDownFun(res.data)
|
|
// this.grade = res.data[0];
|
|
// this.grade = res.data[0];
|
|
// this.gradeList = res.data;
|
|
// this.gradeList = res.data;
|
|
@@ -459,9 +474,7 @@ export default {
|
|
//开始下载
|
|
//开始下载
|
|
currentDownFun(val) {
|
|
currentDownFun(val) {
|
|
this.$http.getImg(`/plan/download?path=${val}`, {}, (res) => {
|
|
this.$http.getImg(`/plan/download?path=${val}`, {}, (res) => {
|
|
- debugger;
|
|
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
- debugger;
|
|
|
|
// this.grade = res.data[0];
|
|
// this.grade = res.data[0];
|
|
// this.gradeList = res.data;
|
|
// this.gradeList = res.data;
|
|
// this.orgName = [res.data[0].orgNo];
|
|
// this.orgName = [res.data[0].orgNo];
|
|
@@ -486,15 +499,19 @@ export default {
|
|
flag: 2,
|
|
flag: 2,
|
|
classIds: orgNameList,
|
|
classIds: orgNameList,
|
|
};
|
|
};
|
|
|
|
+ Loading.service(options);
|
|
|
|
+ // Loading.service(options);
|
|
this.$http.post(`/plan/generate/report`, params, (res) => {
|
|
this.$http.post(`/plan/generate/report`, params, (res) => {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
let a = document.createElement("a");
|
|
let a = document.createElement("a");
|
|
document.body.appendChild(a);
|
|
document.body.appendChild(a);
|
|
console.log(basePath + `/plan/download?path=${res.data}`);
|
|
console.log(basePath + `/plan/download?path=${res.data}`);
|
|
- debugger;
|
|
|
|
-
|
|
|
|
a.setAttribute("href", basePath + `/plan/download?path=${res.data}`);
|
|
a.setAttribute("href", basePath + `/plan/download?path=${res.data}`);
|
|
a.click();
|
|
a.click();
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ // 以服务的方式调用的 Loading 需要异步关闭
|
|
|
|
+ this.loadingInstance.close();
|
|
|
|
+ });
|
|
// this.currentDownFun(res.data);
|
|
// this.currentDownFun(res.data);
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.msg);
|
|
this.$message.error(res.msg);
|