|
@@ -53,6 +53,7 @@
|
|
|
:page.sync="page"
|
|
|
@search-change="searchChange"
|
|
|
@search-reset="resetChange"
|
|
|
+ @on-load="onLoad"
|
|
|
>
|
|
|
|
|
|
|
|
@@ -184,7 +185,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {tabTypeLazyTree,tabTypeLazyTreeAll} from "@/api/manager/wbsprivate";
|
|
|
+import {tabTypeLazyTree} from "@/api/manager/wbsprivate";
|
|
|
import {
|
|
|
updateBatchNodeTableInfo,
|
|
|
selectByNodeTable,
|
|
@@ -203,6 +204,7 @@ import Relation from './qutediaolog/relation.vue'//关联清表
|
|
|
import EditElement from "@/views/manager/projectinfo/editElement/editElement.vue";//编辑元素
|
|
|
import dynamicExcel from "./treeTemplate/dynamicExcel.vue";
|
|
|
import FormulaEdit from "@/views/formula/edit.vue";
|
|
|
+import {removeTableByCondition } from "@/api/manager/wbsformelement";
|
|
|
|
|
|
export default {
|
|
|
components: { dynamicExcel, EditElement, Qute,Relation,FormulaEdit },
|
|
@@ -416,10 +418,19 @@ export default {
|
|
|
this.tabTypeLazyTree(this.treeId, this.projectid,this.page.current,this.page.size,params.title).then((res)=>{
|
|
|
console.log(res.records);
|
|
|
this.loadData=res.records;
|
|
|
- this.page.total=this.loadData.length
|
|
|
+ this.page.total=res.total
|
|
|
done();
|
|
|
})
|
|
|
|
|
|
+ },
|
|
|
+ onLoad(page){
|
|
|
+ console.log(page,'page');
|
|
|
+ if(this.treeId){
|
|
|
+ this.tabTypeLazyTreeAll(this.treeId, page.currentPage,page.pageSize).then((res)=>{
|
|
|
+ this.loadData=res.records
|
|
|
+ this.page.total=res.total
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
resetChange(item){
|
|
@@ -427,7 +438,7 @@ export default {
|
|
|
this.tabTypeLazyTree(this.treeId, this.projectid,this.page.current,this.page.size).then((res)=>{
|
|
|
console.log(res.records);
|
|
|
this.loadData=res.records;
|
|
|
- this.page.total=this.loadData.length
|
|
|
+ this.page.total=res.total
|
|
|
|
|
|
})
|
|
|
},
|
|
@@ -437,7 +448,7 @@ export default {
|
|
|
this.tabTypeLazyTree(data.id, this.projectid,this.page.current,this.page.size).then((res)=>{
|
|
|
console.log(res.records);
|
|
|
this.loadData=res.records;
|
|
|
- this.page.total=this.loadData.length
|
|
|
+ this.page.total=res.total
|
|
|
|
|
|
})
|
|
|
},
|
|
@@ -453,6 +464,7 @@ export default {
|
|
|
this.$refs.Qute.show();
|
|
|
|
|
|
},
|
|
|
+
|
|
|
handleDelete () {
|
|
|
if (this.selectionList.length === 0) {
|
|
|
this.$message.warning("请选择至少一条数据");
|
|
@@ -464,7 +476,7 @@ export default {
|
|
|
type: "warning"
|
|
|
})
|
|
|
.then(() => {
|
|
|
- // return remove(this.ids);
|
|
|
+ // return removeTableByCondition(this.ids);
|
|
|
console.log(this.ids,'this.ids删除');
|
|
|
})
|
|
|
.then(() => {
|