Browse Source

后台管理系统-----项目归档树>>此处的项目排序,应与项目列表中保持一致

duy 4 days ago
parent
commit
f554c3a536
2 changed files with 33 additions and 49 deletions
  1. 1 1
      public/version.json
  2. 32 48
      src/views/manager/projectinfo/archivetreeconfig.vue

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20251212171607"
+  "value": "20251215101329"
 }

+ 32 - 48
src/views/manager/projectinfo/archivetreeconfig.vue

@@ -1,26 +1,13 @@
 <template>
   <basic-container>
-  <el-alert
-    title="可独立修改私有项目的归档规则,不会影响其他项目归档规则"
-    type="warning"
-    :closable="false">
-  </el-alert>
-    <avue-crud :option="option"
-               :table-loading="loading"
-               :data="data"
-               :page.sync="page"
-               :permission="permissionList"
-              
-               v-model="form"
-               ref="crud"
-             
-               @current-change="currentChange"
-               @size-change="sizeChange"
-               @refresh-change="refreshChange"
-               @on-load="onLoad">
-       <template slot-scope="{type,size,row}" slot="menu">
+    <el-alert title="可独立修改私有项目的归档规则,不会影响其他项目归档规则" type="warning" :closable="false">
+    </el-alert>
+    <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" :permission="permissionList"
+      v-model="form" ref="crud" @current-change="currentChange" @size-change="sizeChange"
+      @refresh-change="refreshChange" @on-load="onLoad">
+      <template slot-scope="{type,size,row}" slot="menu">
         <el-button icon="el-icon-setting" :size="size" :type="type" @click="configurationClick(row)">配置规则</el-button>
-       
+
       </template>
     </avue-crud>
   </basic-container>
@@ -28,8 +15,8 @@
 
 <script>
 // import {getList, getDetail, add, update, remove} from "@/api/tentative/testcollect";
-import { getProjectList } from "@/api/manager/projectinfo";
-import {mapGetters} from "vuex";
+import { getProjectListPage } from "@/api/manager/projectinfo";
+import { mapGetters } from "vuex";
 
 export default {
   data() {
@@ -42,25 +29,25 @@ export default {
         currentPage: 1,
         total: 0
       },
-      search:{},
+      search: {},
       selectionList: [],
       option: {
-        
-        addBtn:false,
-        editBtn:false,
-        delBtn:false,
-        menuWidth:330,
-        height:'auto',
+
+        addBtn: false,
+        editBtn: false,
+        delBtn: false,
+        menuWidth: 330,
+        height: 'auto',
         calcHeight: 30,
         tip: false,
         searchShow: false,
         searchMenuSpan: 0,
         border: true,
         index: true,
-       
+
         selection: false,
         dialogClickModal: false,
-        labelWidth:150,
+        labelWidth: 150,
         column: [
           {
             label: "项目名称",
@@ -84,7 +71,7 @@ export default {
         //addBtn: this.vaildData(this.permission.imageclassificationconfig_add, false),
         //viewBtn: this.vaildData(this.permission.imageclassificationconfig_view, false),
         //delBtn: this.vaildData(this.permission.imageclassificationconfig_delete, false),
-       // editBtn: this.vaildData(this.permission.imageclassificationconfig_edit, false)
+        // editBtn: this.vaildData(this.permission.imageclassificationconfig_edit, false)
       };
     },
     ids() {
@@ -96,16 +83,10 @@ export default {
     }
   },
   methods: {
-
-
-
-
-  
- 
-    currentChange(currentPage){
+    currentChange(currentPage) {
       this.page.currentPage = currentPage;
     },
-    sizeChange(pageSize){
+    sizeChange(pageSize) {
       this.page.pageSize = pageSize;
     },
     refreshChange() {
@@ -115,7 +96,7 @@ export default {
     //   this.loading = true;
     //   getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
     //     const data = res.data.data;
-         
+
     //     this.page.total = data.total;
     //     // this.data = data.records;
     //      this.data = [{name:'重庆乌江白马枢纽工程项目'}]
@@ -125,28 +106,31 @@ export default {
     // },
     onLoad(page, params = {}) {
       this.loading = true;
-      getProjectList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+      getProjectListPage({
+        ...this.query,
+        current: page.currentPage,
+        size: page.pageSize,
+      }).then(res => {
         const data = res.data.data;
-         
+
         this.page.total = data.total;
         this.data = data.records;
         this.loading = false;
       });
     },
-    configurationClick(row){
+    configurationClick(row) {
       //console.log(row);
       //return;
       this.$router.push({
         path: '/manager/projectinfo/archivetreeRule',
         query: {
-          projectId:row.id,
+          projectId: row.id,
         }
       });
     },
- 
+
   }
 };
 </script>
 
-<style>
-</style>
+<style></style>