From ea10117a46fbbe7dd831c3816217493d0da01bf9 Mon Sep 17 00:00:00 2001 From: yangys <y_ys79@sina.com> Date: 星期六, 13 一月 2024 22:46:44 +0800 Subject: [PATCH] 设备类型1 --- src/container/Map/addMachine.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/container/Map/addMachine.vue b/src/container/Map/addMachine.vue index 7c740bc..1a0c427 100644 --- a/src/container/Map/addMachine.vue +++ b/src/container/Map/addMachine.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2024-01-10 22:28:38 * @LastEditors: Sneed - * @LastEditTime: 2024-01-10 23:19:26 + * @LastEditTime: 2024-01-12 21:21:48 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/addMachine.vue --> <template> @@ -111,10 +111,10 @@ getWsl().then(res => { this.workshopList = res.data }) - getRequest('accountQuery',{pageSize: 1000,current: 1}).then(res => { + getRequest('accountQuery',{}).then(res => { console.log(res) try { - this.accountList = res.data.records + this.accountList = res.data } catch (error) { this.accountList = [] } @@ -123,6 +123,8 @@ }, methods: { saveDevice () { + this.$emit('setmachineId',this.addInfo.id) + return this.$http.postJson('/machine/save',{ ...this.addInfo, plantId: this.id -- Gitblit v1.9.3