|
@@ -14,7 +14,14 @@
|
|
|
@addClick="addClick"
|
|
|
:loading="loading"
|
|
|
@editInfo="editInfo"
|
|
|
+ ref="tableList"
|
|
|
+ rowKey="moduleExamId"
|
|
|
>
|
|
|
+ <template slot="customize">
|
|
|
+ <el-button size="medium" @click="batchDel" type="warning"
|
|
|
+ >批量删除</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
<template slot="btn" slot-scope="props">
|
|
|
<el-button type="text" @click="addClick(props.scope.row, 0)"
|
|
|
>修改</el-button
|
|
@@ -38,7 +45,7 @@ import tableList from "@/components/tableList";
|
|
|
import pagination from "@/components/pagination";
|
|
|
export default {
|
|
|
components: { searchBoxNew, tableList, pagination },
|
|
|
- name:"VolumeManagement",
|
|
|
+ name: "VolumeManagement",
|
|
|
data() {
|
|
|
return {
|
|
|
loading: false, //当前表单加载是否加载动画
|
|
@@ -46,10 +53,11 @@ export default {
|
|
|
title: "模块管理",
|
|
|
index: 0,
|
|
|
ch: "条",
|
|
|
- border:true,
|
|
|
+ border: true,
|
|
|
num: false,
|
|
|
choice: true,
|
|
|
addHide: false,
|
|
|
+ openCheckMore: true,
|
|
|
backFatherBtn: {
|
|
|
status: false,
|
|
|
title: "未定义",
|
|
@@ -66,13 +74,13 @@ export default {
|
|
|
prop: "businessId",
|
|
|
placeholder: "业务层次",
|
|
|
scope: "businessLevel",
|
|
|
- edu:"educationId"
|
|
|
+ edu: "educationId",
|
|
|
},
|
|
|
{
|
|
|
prop: "subjectId",
|
|
|
placeholder: "科目",
|
|
|
scope: "sujectType",
|
|
|
- edu:"educationId"
|
|
|
+ edu: "educationId",
|
|
|
},
|
|
|
{
|
|
|
prop: "publishStatus",
|
|
@@ -128,7 +136,7 @@ export default {
|
|
|
prop3: "businessName",
|
|
|
prop4: "subjectName",
|
|
|
hidden: false,
|
|
|
- scope:"eduTypes",
|
|
|
+ scope: "eduTypes",
|
|
|
},
|
|
|
{
|
|
|
label: "关联商品",
|
|
@@ -136,7 +144,7 @@ export default {
|
|
|
prop1: "goodsName",
|
|
|
hidden: false,
|
|
|
scope: "aboutChapter",
|
|
|
- int:8
|
|
|
+ int: 8,
|
|
|
},
|
|
|
{
|
|
|
label: "章卷总数",
|
|
@@ -176,10 +184,41 @@ export default {
|
|
|
mounted() {
|
|
|
this.search();
|
|
|
},
|
|
|
- activated(){
|
|
|
+ activated() {
|
|
|
this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
+ batchDel() {
|
|
|
+ if (!this.$refs.tableList.allCheckData.length) {
|
|
|
+ this.$message.warning("请勾选需要删除的模块卷");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.$confirm(
|
|
|
+ `此操作将永久删除所勾选的${this.$refs.tableList.allCheckData.length}条模块卷, 是否继续?`,
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ const questionIdsList = this.$refs.tableList.allCheckData.map(
|
|
|
+ (item) => item.moduleExamId
|
|
|
+ );
|
|
|
+ this.$api
|
|
|
+ .editbankquestion({
|
|
|
+ status: -1,
|
|
|
+ questionIds: questionIdsList,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.$message.success("批量删除成功");
|
|
|
+ this.$refs.tableList.clearMoreActive();
|
|
|
+ this.search(1);
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
editInfo(v) {
|
|
|
this.addClick(v, 0);
|
|
|
},
|
|
@@ -195,13 +234,16 @@ export default {
|
|
|
pageNum: 1,
|
|
|
};
|
|
|
}
|
|
|
- this.$api.inquireBankModule(this.formData).then((res) => {
|
|
|
- this.tableData = res.rows;
|
|
|
- this.total = res.total;
|
|
|
- this.navText.index = res.total;
|
|
|
- }).finally(()=>{
|
|
|
- this.loading = false;
|
|
|
- })
|
|
|
+ this.$api
|
|
|
+ .inquireBankModule(this.formData)
|
|
|
+ .then((res) => {
|
|
|
+ this.tableData = res.rows;
|
|
|
+ this.total = res.total;
|
|
|
+ this.navText.index = res.total;
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
init() {
|
|
|
this.search(2);
|
|
@@ -239,11 +281,11 @@ export default {
|
|
|
} else {
|
|
|
const jump = () => {
|
|
|
this.$router.push({
|
|
|
- path: "volumeManagementEdit",
|
|
|
- query: {
|
|
|
- id: v.moduleExamId,
|
|
|
- },
|
|
|
- });
|
|
|
+ path: "volumeManagementEdit",
|
|
|
+ query: {
|
|
|
+ id: v.moduleExamId,
|
|
|
+ },
|
|
|
+ });
|
|
|
};
|
|
|
const statusPage = this.$store.state.tagsView.visitedViews.some(
|
|
|
(item) => {
|