修改工厂

jg-waiwang-pro
XI_TENG\xixi_ 8 months ago
parent a7b6ce6f39
commit 8ad8d3a7cc

@ -28,7 +28,7 @@
<!-- 父级 -->
<FatherVue :upfuid="treeActiveId" />
</div>
<div class="JNPF-common-layout-center" v-else-if="diffFlag=='5'">
<div class="JNPF-common-layout-center" v-if="diffFlag=='5'">
<!-- 子级 -->
<SonVue :upfuids="treeActiveId" />
</div>
@ -104,6 +104,7 @@ export default {
query: {
code: undefined,
type: undefined,
parentId: undefined,
},
treeProps: {
children: 'children',
@ -356,18 +357,19 @@ export default {
},
handleNodeClick(data, node) {
this.treeActiveId = data.id
this.diffFlag = ''
this.diffFlag = data.diffFlag
for (let key in this.query) {
this.query[key] = undefined
}
this.query.parentId = data.id
this.listQuery = {
currentPage: 1,
pageSize: 20,
sort: "desc",
sidx: "",
}
this.initData()
// for (let key in this.query) {
// this.query[key] = undefined
// }
// this.query.parentId = data.id
// this.listQuery = {
// currentPage: 1,
// pageSize: 20,
// sort: "desc",
// sidx: "",
// }
// this.initData()
},
async initSearchDataAndListData() {
await this.initSearchData()

@ -63,6 +63,7 @@
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c
@selection-change="handleSelectionChange" :span-method="arraySpanMethod">
<!-- <el-table-column prop="code" label="业务线编号" align="left">
@ -158,7 +159,7 @@ export default {
props: {
upfuid: { // treeActiveId
type: String,
default: ''
default: '',
}
},
data() {
@ -227,9 +228,12 @@ export default {
return this.$route.meta.modelId || ''
}
},
watch: {
upfuid: function (val) {
this.initData()
}
},
created() {
console.log(this.upfuid, '------------');
getFormById("521634040684484613").then(res1 => {
let flowId = res1.data && res1.data.id
getFlowList(flowId, '1').then(res2 => {
@ -442,7 +446,7 @@ export default {
var _list = res.data.list;
console.log(_list);
console.log(_list, '工厂');
this.list = _list.map(o => ({
...o,
...this.expandObj,

@ -225,6 +225,11 @@ export default {
return this.$route.meta.modelId || ''
}
},
watch: {
upfuids: function (val) {
this.initData()
}
},
created() {
getFormById("521949393889270917").then(res1 => {
let flowId = res1.data && res1.data.id

Loading…
Cancel
Save