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:{ url:{
addModel:'' addModel:''
} },
record:{}
} }
}, },
mounted() { mounted() {
@@ -235,10 +236,12 @@ export default {
}, },
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
addModel(flag) { addModel(record,flag) {
if(flag=='1') if(flag=='1'){
this.disabled=true this.disabled=true
this.showButton=true this.showButton=true
}
this.record=record
this.visible = true this.visible = true
this.formInline = {} this.formInline = {}
this.formInline.dataList = [{}] this.formInline.dataList = [{}]
@@ -274,7 +277,7 @@ export default {
// } // }
// }) // })
this.visible = false this.visible = false
this.$emit('addModelList') this.$emit('addModelList',this.record)
} }
}) })
}, },
@@ -143,9 +143,9 @@
@click="maintenanceClick(record)">{{$t('maintenance')}}</a> @click="maintenanceClick(record)">{{$t('maintenance')}}</a>
<a class="text-operation" <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" <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" <a class="text-operation"
@click="handleExport(record)">{{$t('export')}}</a> @click="handleExport(record)">{{$t('export')}}</a>
<a class="text-operation" <a class="text-operation"
@@ -310,7 +310,6 @@ export default {
], ],
userInfoQuery: {}, userInfoQuery: {},
administrators: false, administrators: false,
onShow:false
} }
}, },
mounted() { mounted() {
@@ -445,7 +444,7 @@ export default {
}, },
// 结束升级 // 结束升级
endUpgrade(record,flag){ endUpgrade(record,flag){
this.$refs.upgradecompletionRef.addModel(flag) this.$refs.upgradecompletionRef.addModel(record,flag)
}, },
// 查看 // 查看
detailclick(){ detailclick(){
@@ -468,8 +467,9 @@ export default {
handleModule(){ handleModule(){
downloadFile('params/paramsInfo/exportTemplate', this.$t('parameterTemplateExportName') + '.xlsx', {}) downloadFile('params/paramsInfo/exportTemplate', this.$t('parameterTemplateExportName') + '.xlsx', {})
}, },
addModelList(){ addModelList(record){
this.onShow=true 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=>{ getAction('/ota/otaBaSjSjmbcx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
if(res.code == 200){ if(res.code == 200){
this.form=res.result ==null?{}:res.result 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.cpmc=res.result.cpmc
this.form.cpxh=res.result.cpxh this.form.cpxh=res.result.cpxh
this.form.txzd=res.result.txzd 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){ if(this.$route.query.type == 1 && res.result.cxmb == null){
this.form.cxmb = this.form.ggpc+'-'+ this.form.cpmc+'-'+this.form.cpxh this.form.cxmb = this.form.ggpc+'-'+ this.form.cpmc+'-'+this.form.cpxh
}else { }else {