jihongshun
2025-07-03 307db148645230afc780a3d5d16ffb97aa32c189
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>