平台件项目库 关联平台件修改

This commit is contained in:
zyx.net
2023-09-19 11:13:00 +08:00
parent 7c13da7fe7
commit cf568d87d7
5 changed files with 64 additions and 64 deletions
@@ -32,32 +32,32 @@
:triggerChange="false" :dictCode="'brand'"/> :triggerChange="false" :dictCode="'brand'"/>
</div> </div>
</a-col> </a-col>
<template v-if="toggleSearchStatus"> <!-- <template v-if="toggleSearchStatus">-->
<a-col :md="12" :sm="8"> <!-- <a-col :md="12" :sm="8">-->
<div class="box-title-text"> <!-- <div class="box-title-text">-->
<div class="title-text" :title="$t('ModelPlatform')"> <!-- <div class="title-text" :title="$t('ModelPlatform')">-->
<span>{{$t('ModelPlatform')}}</span> <!-- <span>{{$t('ModelPlatform')}}</span>-->
</div> <!-- </div>-->
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('ModelPlatform')" <!-- <a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('ModelPlatform')"-->
v-model="queryParam.vehiclePlatform"></a-input> <!-- v-model="queryParam.vehiclePlatform"></a-input>-->
</div> <!-- </div>-->
</a-col> <!-- </a-col>-->
<a-col :md="12" :sm="8"> <!-- <a-col :md="12" :sm="8">-->
<div class="box-title-text"> <!-- <div class="box-title-text">-->
<div class="title-text" :title="$t('DigitalPlatform')"> <!-- <div class="title-text" :title="$t('DigitalPlatform')">-->
<span>{{$t('DigitalPlatform')}}</span> <!-- <span>{{$t('DigitalPlatform')}}</span>-->
</div> <!-- </div>-->
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('DigitalPlatform')" <!-- <a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('DigitalPlatform')"-->
v-model="queryParam.digitalPlatform"></a-input> <!-- v-model="queryParam.digitalPlatform"></a-input>-->
</div> <!-- </div>-->
</a-col> <!-- </a-col>-->
</template> <!-- </template>-->
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a @click="handleToggleSearch"> <!-- <a @click="handleToggleSearch">-->
{{ !toggleSearchStatus ? $t('open') : $t('away') }} <!-- {{ !toggleSearchStatus ? $t('open') : $t('away') }}-->
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> <!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
</a> <!-- </a>-->
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button> <a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" type="primary" @click="searchQuery">{{$t('query')}}</a-button> <a-button class="box-button" style="margin-left: 8px" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
</a-col> </a-col>
@@ -119,21 +119,29 @@
dataIndex: 'projectNameId', dataIndex: 'projectNameId',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
width: 235 width: 120
}, },
{ {
title: this.$t('StudioEngineer'), title: this.$t('regulatoryEngineer'),
dataIndex: 'studioEngineerName', dataIndex: 'createBy',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
width: 235 width: 235
}, },
{
title: this.$t('brand'),
align: 'left',
width: 120,
sorter:true,
ellipsis: true,
dataIndex: 'brandText'
},
{ {
title: this.$t('configurationItem'), title: this.$t('configurationItem'),
dataIndex: 'ipdInfo', dataIndex: 'ipdInfo',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
width: 235 width: 180
}, },
{ {
title: this.$t('explain'), title: this.$t('explain'),
@@ -142,20 +150,6 @@
ellipsis: true, ellipsis: true,
width: 235 width: 235
}, },
{
title: this.$t('ModelPlatform'),
dataIndex: 'vehiclePlatform',
align: 'left',
ellipsis: true,
width: 235
},
{
title: this.$t('DigitalPlatform'),
dataIndex: 'digitalPlatform',
align: 'left',
ellipsis: true,
width: 235
},
], ],
dataList: [], dataList: [],
content: [], content: [],
@@ -165,16 +159,18 @@
total: 0, total: 0,
flag:'', flag:'',
type:'', type:'',
ids:'',
} }
}, },
mounted() { mounted() {
}, },
methods: { methods: {
transferModel(flag,type) { transferModel(flag,type,ids) {
this.visible = true this.visible = true
this.flag = flag this.flag = flag
this.type = type this.type = type
this.ids = ids
this.queryParam = {} this.queryParam = {}
this.selectedRowKeys = [] this.selectedRowKeys = []
this.replacePage() this.replacePage()
@@ -204,7 +200,7 @@
...this.queryParam ...this.queryParam
} }
this.loading = true this.loading = true
postAction(this.url.transferUrl, query).then((res) => { postAction('platform/projectLibraryBase/page', query).then((res) => {
if (res.success) { if (res.success) {
this.dataList = res.result.records || [] this.dataList = res.result.records || []
this.total = res.result.total this.total = res.result.total
@@ -228,7 +224,7 @@
this.confirmLoading = true this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
this.confirmLoading = false this.confirmLoading = false
this.$emit('associatedplatForm',selectedRowKeys.join(','),this.flag,this.type) this.$emit('associatedplatForm',selectedRowKeys.join(','),this.flag,this.type,this.ids)
this.selectedRowKeys = [] this.selectedRowKeys = []
// postAction(this.url.addModel, { // postAction(this.url.addModel, {
// dummyInventoryBaseId: selectedRowKeys.join(','), // dummyInventoryBaseId: selectedRowKeys.join(','),
@@ -161,16 +161,17 @@
total: 0, total: 0,
type:'', type:'',
id:'', id:'',
ids:'',
} }
}, },
mounted() { mounted() {
}, },
methods: { methods: {
transferModel(id,type) { transferModel(id,type,ids) {
this.visible = true
this.id = id this.id = id
this.type = type this.type = type
this.ids = ids
this.queryParam = {} this.queryParam = {}
this.selectedRowKeys = [] this.selectedRowKeys = []
this.replacePage() this.replacePage()
@@ -195,17 +196,18 @@
}, },
replacePage() { replacePage() {
let query = { let query = {
pageNo: this.pageNo, ids: this.ids,
pageSize: this.pageSize, projectLibraryIds: this.id,
...this.queryParam ...this.queryParam
} }
this.loading = true this.loading = true
postAction(this.url.transferUrl, query).then((res) => { postAction('project/projectLibraryBase/listPlatform', query).then((res) => {
if (res.success) { if (res.success) {
this.dataList = res.result.records || [] this.dataList = res.result.records || []
this.selectedRowKeys = this.dataList.map(item => item.id) this.selectedRowKeys = this.dataList.map(item => item.id)
this.total = res.result.total this.total = res.result.total
this.loading = false this.loading = false
this.visible = true
} else { } else {
this.loading = false this.loading = false
} }
@@ -145,16 +145,18 @@ export default {
total: 0, total: 0,
flag:'', flag:'',
type:'', type:'',
ids:'',
} }
}, },
mounted() { mounted() {
}, },
methods: { methods: {
transferModel(flag,type) { transferModel(flag,type,ids) {
this.visible = true this.visible = true
this.flag = flag this.flag = flag
this.type = type this.type = type
this.ids = ids
this.queryParam = {} this.queryParam = {}
this.selectedRowKeys = [] this.selectedRowKeys = []
this.replacePage() this.replacePage()
@@ -208,7 +210,7 @@ export default {
this.confirmLoading = true this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
this.confirmLoading = false this.confirmLoading = false
this.$emit('associatedplattwoForm',selectedRowKeys.join(','),this.type) this.$emit('associatedplattwoForm',selectedRowKeys.join(','),this.type,this.ids)
this.selectedRowKeys = [] this.selectedRowKeys = []
// postAction(this.url.addModel, { // postAction(this.url.addModel, {
// dummyInventoryBaseId: selectedRowKeys.join(','), // dummyInventoryBaseId: selectedRowKeys.join(','),
@@ -1297,18 +1297,18 @@
} }
}else{ }else{
flag = '2' flag = '2'
this.$refs.associatedplatRef.transferModel(flag,type) this.$refs.associatedplatRef.transferModel(flag,type,this.selectedRowKeys.join(','))
} }
}, },
associatedplatForm(id,flag,type){ associatedplatForm(id,flag,type,ids){
if(flag == '1'){ if(flag == '1'){
this.$refs.associatedplatthreeRef.transferModel(id,type) this.$refs.associatedplatthreeRef.transferModel(id,type,ids)
}else{ }else{
this.$refs.associatedplattwoRef.transferModel(id,type) this.$refs.associatedplattwoRef.transferModel(id,type,ids)
} }
}, },
associatedplattwoForm(id,type){ associatedplattwoForm(id,type,ids){
this.$refs.associatedplatthreeRef.transferModel(id,type) this.$refs.associatedplatthreeRef.transferModel(id,type,ids)
}, },
associatedplatthreeForm(id){ associatedplatthreeForm(id){
console.log(id) console.log(id)
@@ -1968,18 +1968,18 @@
} }
}else{ }else{
flag = '2' flag = '2'
this.$refs.associatedplatRef.transferModel(flag,type) this.$refs.associatedplatRef.transferModel(flag,type,this.selectedRowKeys.join(','))
} }
}, },
associatedplatForm(id,flag,type){ associatedplatForm(id,flag,type,ids){
if(flag == '1'){ if(flag == '1'){
this.$refs.associatedplatthreeRef.transferModel(id,type) this.$refs.associatedplatthreeRef.transferModel(id,type,ids)
}else{ }else{
this.$refs.associatedplattwoRef.transferModel(id,type) this.$refs.associatedplattwoRef.transferModel(id,type,ids)
} }
}, },
associatedplattwoForm(id,type){ associatedplattwoForm(id,type,ids){
this.$refs.associatedplatthreeRef.transferModel(id,type) this.$refs.associatedplatthreeRef.transferModel(id,type,ids)
}, },
associatedplatthreeForm(id){ associatedplatthreeForm(id){
console.log(id) console.log(id)