修改问题

master
夜笙歌 5 days ago
parent d46eaf0410
commit dc9d0306ed

@ -75,7 +75,6 @@ export default {
methods: { methods: {
async getData(e) { async getData(e) {
let data = await this.$getFinalData(this.defaultData.requests) let data = await this.$getFinalData(this.defaultData.requests)
console.log('data', data)
this.$set(this, 'networkData', data) this.$set(this, 'networkData', data)
}, },
getOption() { getOption() {

@ -87,9 +87,12 @@ export default {
props: ['defaultData', 'isDialog'], props: ['defaultData', 'isDialog'],
watch: { watch: {
'defaultData.requests': { 'defaultData.requests': {
handler() { async handler() {
console.log('this.networkData1122') setTimeout(async ()=>{
await this.getData()
this.dataChange() this.dataChange()
},1000)
console.log('this.networkData1122')
}, },
deep: true deep: true
}, },
@ -109,12 +112,12 @@ export default {
this.dataChange() this.dataChange()
setInterval(async () => { setInterval(async () => {
await this.getData() await this.getData()
}, 1000 * 10) }, 1000 * 60)
}, },
methods: { methods: {
async getData(e) { async getData(e) {
console.log('data1-1', data)
let data = await this.$getFinalData(this.defaultData.requests) let data = await this.$getFinalData(this.defaultData.requests)
console.log('data', data)
this.$set(this, 'networkData', data) this.$set(this, 'networkData', data)
}, },
async onSubmit() { async onSubmit() {

@ -404,6 +404,7 @@ export default {
this.$set(this.requests[k], 'endTime', new Date(this.equipmentIntervalForm.time[1]).getTime()) this.$set(this.requests[k], 'endTime', new Date(this.equipmentIntervalForm.time[1]).getTime())
} }
}) })
this.setIntervalDialogVisible = false
}, },
subtractRequest(key) { subtractRequest(key) {
if (this.requests?.length > 1) { if (this.requests?.length > 1) {
@ -438,8 +439,6 @@ export default {
this.addRequestForm = {} this.addRequestForm = {}
}, },
addEquipmentConfirm() { addEquipmentConfirm() {
console.log('123123,345345,12313',this.addEquipmentForm)
console.log('123123,345345,12313',this.requests)
if (this.updateDeviceFlag) { if (this.updateDeviceFlag) {
this.$set(this.requests, this.updateDeviceIndex, Vue.observable({ this.$set(this.requests, this.updateDeviceIndex, Vue.observable({
...this.addEquipmentForm, ...this.addEquipmentForm,

Loading…
Cancel
Save