|
@@ -19,7 +19,7 @@
|
|
@refresh-change="refreshChange"
|
|
@refresh-change="refreshChange"
|
|
@on-load="onLoad">
|
|
@on-load="onLoad">
|
|
<template slot-scope="{type,size,row}" slot="menu">
|
|
<template slot-scope="{type,size,row}" slot="menu">
|
|
- <el-button icon="el-icon-setting" :size="size" :type="type" @click="configurationClick">配置规则</el-button>
|
|
|
|
|
|
+ <el-button icon="el-icon-setting" :size="size" :type="type" @click="configurationClick(row)">配置规则</el-button>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
</avue-crud>
|
|
</avue-crud>
|
|
@@ -27,7 +27,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {getList, getDetail, add, update, remove} from "@/api/tentative/testcollect";
|
|
|
|
|
|
+// import {getList, getDetail, add, update, remove} from "@/api/tentative/testcollect";
|
|
|
|
+import { getProjectList } from "@/api/manager/projectinfo";
|
|
import {mapGetters} from "vuex";
|
|
import {mapGetters} from "vuex";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -63,7 +64,7 @@ export default {
|
|
column: [
|
|
column: [
|
|
{
|
|
{
|
|
label: "项目名称",
|
|
label: "项目名称",
|
|
- prop: "name",
|
|
|
|
|
|
+ prop: "projectName",
|
|
rules: [{
|
|
rules: [{
|
|
required: true,
|
|
required: true,
|
|
message: "请输入分类名称",
|
|
message: "请输入分类名称",
|
|
@@ -110,23 +111,35 @@ export default {
|
|
refreshChange() {
|
|
refreshChange() {
|
|
this.onLoad(this.page, this.query);
|
|
this.onLoad(this.page, this.query);
|
|
},
|
|
},
|
|
|
|
+ // onLoad(page, params = {}) {
|
|
|
|
+ // 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:'重庆乌江白马枢纽工程项目'}]
|
|
|
|
+ // this.loading = false;
|
|
|
|
+ // this.selectionClear();
|
|
|
|
+ // });
|
|
|
|
+ // },
|
|
onLoad(page, params = {}) {
|
|
onLoad(page, params = {}) {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
|
|
|
|
+ getProjectList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
|
|
const data = res.data.data;
|
|
const data = res.data.data;
|
|
|
|
|
|
this.page.total = data.total;
|
|
this.page.total = data.total;
|
|
- // this.data = data.records;
|
|
|
|
- this.data = [{name:'重庆乌江白马枢纽工程项目'}]
|
|
|
|
|
|
+ this.data = data.records;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
- this.selectionClear();
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- configurationClick(){
|
|
|
|
|
|
+ configurationClick(row){
|
|
|
|
+ //console.log(row);
|
|
|
|
+ //return;
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/manager/projectinfo/archivetreeRule',
|
|
path: '/manager/projectinfo/archivetreeRule',
|
|
query: {
|
|
query: {
|
|
- projectId:'1578599210897772545',//暂时传参
|
|
|
|
|
|
+ projectId:row.id,
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|