消除没有使用的接口

This commit is contained in:
aixianling
2023-05-08 11:14:09 +08:00
parent e238a9e052
commit 44e2c25f5b

View File

@@ -161,7 +161,6 @@ export default {
},
areaRootId: '',
mediaList: [],
equipmentList: [],
detailDialog: false,
isAll: false,
input3: '',
@@ -198,15 +197,12 @@ export default {
created() {
this.dict.load('dlbMessageUrgency', 'dlbBroadTaskType', 'dlbDyclingType')
Promise.all([this.getEquipmentList(), this.getMediaList()]).then(() => {
Promise.all([this.getMediaList()]).then(() => {
this.formData.mediaId = this.params.id
this.userAreaId = this.user.info.areaId
})
},
methods: {
// 选择设备
getSelect() {
},
getMediaList() {
return this.instance.post(`/app/appdlbresource/list?current=1&size=10000`).then((res) => {
if (res?.data) {
@@ -217,16 +213,6 @@ export default {
}
})
},
getEquipmentList() {
return this.instance.post(`/app/appdlbquipment/getDlbDeviceList?current=1&size=10000&devStatus=5`).then((res) => {
if (res?.data) {
this.equipmentList = res.data.records?.map((item) => ({
dictName: item.deviceName,
dictValue: item.serialNo
})) || []
}
})
},
// 地区选择
handleAreaSelect(v) {
this.areaName = v?.[0]?.label