riku
2025-06-05 16eb4bd55a4fd61ddd7a171b1a07378c45d1665b
src/components/device/DeviceManage.vue
@@ -7,11 +7,7 @@
  >
    设备管理
  </el-button> -->
  <CardDialog
    :model-value="modelValue"
    @changed="handleChange"
    title="走航设备管理"
  >
  <CardDialog v-bind="$attrs" title="走航设备管理">
    <el-row class="device-table">
      <el-col :span="20">
        <el-table
@@ -88,9 +84,9 @@
    return { loading, fetchData };
  },
  props: {
    modelValue: Boolean
    // modelValue: Boolean
  },
  emits: ['update:modelValue'],
  // emits: ['update:modelValue'],
  data() {
    return {
      dialogVisible: false,
@@ -105,9 +101,9 @@
    }
  },
  methods: {
    handleChange(value) {
      this.$emit('update:modelValue', value);
    },
    // handleChange(value) {
    //   this.$emit('update:modelValue', value);
    // },
    deleteDevice(row) {
      this.onConfirm = () => {
        this.deviceStore.deleteDevice(row.deviceCode);