修改了智能设备页面

This commit is contained in:
chenze 2024-08-21 17:29:59 +08:00
parent 14b2824530
commit 92ab4bc2fb

View File

@ -60,12 +60,11 @@ export default {
beforeCreate () {
},
created () {
this.selectStaffList()
},
methods: {
selectStaffList () {
selectStaff().then(res => {
this.staffLists = res.data
this.staffLists = res.data
})
},
add () {
@ -73,10 +72,12 @@ export default {
this.edit({ id: 0 })
},
edit (record) {
this.selectStaffList()
this.mdl = Object.assign(record)
this.visible = true
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.mdl, 'id', 'type', 'staffId', 'meetingName', 'startTime', 'endDate', 'createBy', 'createTime', 'updateBy', 'updateTime', 'version', 'deleteFlag', 'remake', 'tenantId', 'parkId'))
this.form.setFieldsValue(pick(this.mdl, 'id', 'type', 'staffId', 'staffLists', 'meetingName', 'startTime', 'endDate', 'createBy', 'createTime', 'updateBy', 'updateTime', 'version', 'deleteFlag', 'remake', 'tenantId', 'parkId'))
})
},
handleSubmit (e) {