zhangjie 2 anni fa
parent
commit
c65060462a

+ 1 - 1
src/modules/paper-export/views/PaperTemplateManage.vue

@@ -146,7 +146,7 @@ export default {
 
       const res = await paperTemplatePageListApi({
         ...this.searchForm,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
 

+ 1 - 1
src/modules/paper/components/AuditPaperApply.vue

@@ -96,7 +96,7 @@ export default {
       this.loading = true;
       const res = await auditPaperApplyPageListApi({
         ...this.filter,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
       this.loading = false;

+ 1 - 1
src/modules/paper/components/AuditPaperAudited.vue

@@ -91,7 +91,7 @@ export default {
       this.loading = true;
       const res = await auditPaperAuditedPageListApi({
         ...this.filter,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
       this.loading = false;

+ 1 - 1
src/modules/paper/components/AuditPaperUnsubmit.vue

@@ -92,7 +92,7 @@ export default {
       this.loading = true;
       const res = await auditPaperUnsubmitPageListApi({
         ...this.filter,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
       this.loading = false;

+ 1 - 1
src/modules/paper/components/AuditPaperWait.vue

@@ -127,7 +127,7 @@ export default {
       this.loading = true;
       const res = await auditPaperWaitPageListApi({
         ...this.filter,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
       this.loading = false;

+ 1 - 1
src/modules/paper/components/PaperAuditInfo.vue

@@ -63,7 +63,7 @@ export default {
     async getList() {
       const res = await paperAuditInfoApi({
         paperId: this.paperId,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
       if (!res) return;

+ 1 - 1
src/modules/question/components/AuditQuestionApply.vue

@@ -117,7 +117,7 @@ export default {
       this.loading = true;
       const res = await auditQuestionApplyPageListApi({
         ...this.filter,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
       this.loading = false;

+ 1 - 1
src/modules/question/components/AuditQuestionAudited.vue

@@ -111,7 +111,7 @@ export default {
       this.loading = true;
       const res = await auditQuestionAuditedPageListApi({
         ...this.filter,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
       this.loading = false;

+ 1 - 1
src/modules/question/components/AuditQuestionUnsubmit.vue

@@ -115,7 +115,7 @@ export default {
       this.loading = true;
       const res = await auditQuestionsUnsubmitPageListApi({
         ...this.filter,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
       this.loading = false;

+ 1 - 1
src/modules/question/components/AuditQuestionWait.vue

@@ -146,7 +146,7 @@ export default {
       this.loading = true;
       const res = await auditQuestionWaitPageListApi({
         ...this.filter,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       }).catch(() => {});
       this.loading = false;

+ 1 - 1
src/modules/question/components/FolderQuestionManageDialog.vue

@@ -250,7 +250,7 @@ export default {
       this.loading = true;
       let data = {
         ...this.filter,
-        pageNumber: this.currentPage,
+        curPage: this.currentPage,
         pageSize: this.pageSize,
       };
       data.propertyIdList = data.propertyIdList.join();

+ 1 - 3
src/modules/question/components/QuestionEditDialog.vue

@@ -155,9 +155,7 @@ export default {
 
       if (this.isEdit) {
         this.sourceDetailList = this.sourceDetailAllList;
-        return;
-      }
-      if (this.sourceDetailAllList.length > this.limitShowCount) {
+      } else if (this.sourceDetailAllList.length > this.limitShowCount) {
         this.sourceDetailList = this.sourceDetailAllList.slice(
           0,
           this.limitShowCount

+ 5 - 23
src/modules/questions/views/Course.vue

@@ -52,21 +52,13 @@
       <div class="part-box-action">
         <div>
           <el-button
-            type="success"
+            type="danger"
             plain
             :disabled="noBatchSelected"
             icon="icon icon-play"
-            @click="enableByIds"
-            >启用
+            @click="deleteByIds"
+            >删除
           </el-button>
-          <el-button
-            type="danger"
-            plain
-            :disabled="noBatchSelected"
-            icon="icon icon-delete"
-            @click="disableByIds"
-            >禁用</el-button
-          >
           <el-button
             type="primary"
             plain
@@ -152,22 +144,12 @@
               编辑
             </el-button>
             <el-button
-              v-if="!scope.row.enable"
-              size="mini"
-              plain
-              type="primary"
-              @click="enableById(scope.row)"
-            >
-              启用
-            </el-button>
-            <el-button
-              v-if="scope.row.enable"
               size="mini"
               plain
               type="danger"
-              @click="disableById(scope.row)"
+              @click="deleteById(scope.row)"
             >
-              禁用
+              删除
             </el-button>
           </div>
         </el-table-column>

+ 3 - 4
src/modules/questions/views/PropertyInfo.vue

@@ -65,7 +65,7 @@
             type="danger"
             plain
             icon="icon icon-delete"
-            :disabled="showButton"
+            :disabled="!multipleSelection.length"
             @click="deleteProperty"
             >删除</el-button
           >
@@ -104,7 +104,6 @@
         :default-expanded-keys="ids"
         highlight-current
         show-checkbox
-        check-strictly
         @node-click="handleNodeClick"
         @check-change="checkChange"
         ><span
@@ -440,9 +439,9 @@ export default {
         .delete(
           QUESTION_API +
             "/property/delete/" +
-            this.curProperty.id +
+            this.multipleSelection.join() +
             "/" +
-            this.curProperty.coursePropertyId
+            this.coursePropertyId
         )
         .catch((error) => {
           this.$notify({