This commit is contained in:
yuekuo
2023-03-28 11:29:47 +08:00
parent 05933af6b8
commit f732115817
4 changed files with 18 additions and 13 deletions
@@ -227,7 +227,8 @@ export default {
},
url:{
addModel:''
}
},
record:{}
}
},
mounted() {
@@ -235,10 +236,12 @@ export default {
},
methods: {
...mapGetters(['userInfo']),
addModel(flag) {
if(flag=='1')
this.disabled=true
this.showButton=true
addModel(record,flag) {
if(flag=='1'){
this.disabled=true
this.showButton=true
}
this.record=record
this.visible = true
this.formInline = {}
this.formInline.dataList = [{}]
@@ -274,7 +277,7 @@ export default {
// }
// })
this.visible = false
this.$emit('addModelList')
this.$emit('addModelList',this.record)
}
})
},
@@ -143,9 +143,9 @@
@click="maintenanceClick(record)">{{$t('maintenance')}}</a>
<a class="text-operation"
@click="endUpgrade(record , '0')" v-if="!onShow">{{$t('endUpgrade')}}</a>
@click="endUpgrade(record , '0')" v-if="!record.onShow">{{$t('endUpgrade')}}</a>
<a class="text-operation"
@click="endUpgrade(record , '1')" v-if="onShow">{{$t('upgradecompletion')}}</a>
@click="endUpgrade(record , '1')" v-if="record.onShow">{{$t('upgradecompletion')}}</a>
<a class="text-operation"
@click="handleExport(record)">{{$t('export')}}</a>
<a class="text-operation"
@@ -310,7 +310,6 @@ export default {
],
userInfoQuery: {},
administrators: false,
onShow:false
}
},
mounted() {
@@ -445,7 +444,7 @@ export default {
},
// 结束升级
endUpgrade(record,flag){
this.$refs.upgradecompletionRef.addModel(flag)
this.$refs.upgradecompletionRef.addModel(record,flag)
},
// 查看
detailclick(){
@@ -468,8 +467,9 @@ export default {
handleModule(){
downloadFile('params/paramsInfo/exportTemplate', this.$t('parameterTemplateExportName') + '.xlsx', {})
},
addModelList(){
this.onShow=true
addModelList(record){
record.onShow=true
this.$forceUpdate()
}
}
}
@@ -198,6 +198,7 @@ import ImportFile from '@/components/ImportFileData/index'
getAction('/ota/otaBaSjSjmbcx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
if(res.code == 200){
this.form=res.result ==null?{}:res.result
}
})
},
@@ -320,7 +320,8 @@ import { message } from 'ant-design-vue'
this.form.cpmc=res.result.cpmc
this.form.cpxh=res.result.cpxh
this.form.txzd=res.result.txzd
this.form.cdotasj=res.result.cdotasj
this.form.txzd=res.result.txzd
this.form.id=res.result.id
if(this.$route.query.type == 1 && res.result.cxmb == null){
this.form.cxmb = this.form.ggpc+'-'+ this.form.cpmc+'-'+this.form.cpxh
}else {