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

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