|
|
@@ -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>
|