修改了智能设备页面

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

View File

@ -60,7 +60,6 @@ export default {
beforeCreate () { beforeCreate () {
}, },
created () { created () {
this.selectStaffList()
}, },
methods: { methods: {
selectStaffList () { selectStaffList () {
@ -73,10 +72,12 @@ export default {
this.edit({ id: 0 }) this.edit({ id: 0 })
}, },
edit (record) { edit (record) {
this.selectStaffList()
this.mdl = Object.assign(record) this.mdl = Object.assign(record)
this.visible = true this.visible = true
this.$nextTick(() => { 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) { handleSubmit (e) {