From 307db148645230afc780a3d5d16ffb97aa32c189 Mon Sep 17 00:00:00 2001 From: jihongshun <1151753686@qq.com> Date: 星期四, 03 七月 2025 16:38:58 +0800 Subject: [PATCH] 模型 && 设备相关 --- src/views/system/device/index.vue | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue index ab8c6f5..dcc511d 100644 --- a/src/views/system/device/index.vue +++ b/src/views/system/device/index.vue @@ -11,9 +11,9 @@ </template> <template #operator="{ row }"> <el-button size="mini" type="text" icon="el-icon-edit" - @click="handleUpdate(row)">淇敼</el-button> + @click.stop="handleUpdate(row)">淇敼</el-button> <el-button size="mini" type="text" icon="el-icon-delete" - @click="handleDelete(row)">鍒犻櫎</el-button> + @click.stop="handleDelete(row)">鍒犻櫎</el-button> </template> </AppTable> </el-col> @@ -50,15 +50,15 @@ tableColumns: [ { label: '璁惧鍚嶇О', - prop: 'name' + prop: 'deviceName' }, { label: '鎵�灞炵嚎璺�', - prop: 'createBy' + prop: 'belongingRoute' }, { label: '鏈濆悜', - prop: 'createTime' + prop: 'face' }, { label: '鎿嶄綔', @@ -98,6 +98,7 @@ }, // 鍒犻櫎鏁版嵁 handleDelete(row) { + console.log(row) const ids = row.id || this.ids const name = row.name || '' this.$api.deleteByName('/tower/device', ids,name).then(res => { @@ -108,10 +109,10 @@ handleImport () { this.$refs.deviceImportDialog.show() }, - clickRow(row){ - console.log(row) - this.showMap =true - }, + // clickRow(row){ + // console.log(row) + // this.showMap =true + // }, }, }; </script> -- Gitblit v1.9.3