This commit is contained in:
parent
42cd4e2f55
commit
73f057edd7
|
|
@ -56,7 +56,7 @@
|
|||
@change="selDeviceTypeChange"
|
||||
style="width: 240px"
|
||||
v-model="selDeviceTypeChangeValue"
|
||||
:disabled="leaseApplyDetails.length > 0"
|
||||
:disabled="leaseApplyDetails.length > 0 || !queryParams.unitId || !queryParams.proId"
|
||||
placeholder="请选择设备类型"
|
||||
clearable
|
||||
filterable
|
||||
|
|
@ -518,6 +518,7 @@ export default {
|
|||
methods: {
|
||||
// 获取 来往单位 列表数据
|
||||
async GetUnitData() {
|
||||
this.selDeviceTypeChangeValue = ''
|
||||
this.leaseApplyDetails.splice(0, this.leaseApplyDetails.length)
|
||||
const params = {
|
||||
id: this.queryParams.proId /* */,
|
||||
|
|
@ -529,6 +530,7 @@ export default {
|
|||
},
|
||||
// 获取 工程名称 列表数据
|
||||
async GetProData() {
|
||||
this.selDeviceTypeChangeValue = ''
|
||||
this.leaseApplyDetails.splice(0, this.leaseApplyDetails.length)
|
||||
const params = {
|
||||
id: this.queryParams.unitId,
|
||||
|
|
@ -544,10 +546,19 @@ export default {
|
|||
agreementId: agreementId,
|
||||
// this.agreementId
|
||||
}
|
||||
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: '加载中...',
|
||||
})
|
||||
try {
|
||||
const res = await getUseTypeTreee(params)
|
||||
console.log('resgetUseTypeTreee==========', res)
|
||||
// console.log('resgetUseTypeTreee==========', res)
|
||||
this.deviceTypeTree = res.data
|
||||
loading.close()
|
||||
} catch (error) {
|
||||
console.log('🚀 ~ GetDeviceTypeTreeFn ~ error:', error)
|
||||
loading.close()
|
||||
}
|
||||
},
|
||||
// 获取 协议id
|
||||
async GetAgreementInfoById() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue