无人机管理后台前端(已迁走)
张含笑
2025-09-16 68fcf1f3d869b5c411a08d6faf0f7255e693fc3d
feat:综合类禁止删除
2 files modified
14 ■■■■■ changed files
src/views/resource/patchManagement.vue 2 ●●● patch | view | raw | blame | history
src/views/resource/patchTypeManagement.vue 12 ●●●●● patch | view | raw | blame | history
src/views/resource/patchManagement.vue
@@ -35,7 +35,7 @@
        <el-button type="primary" text icon="el-icon-edit" @click="uploadPatch(scope.row, 'edit')"
          >编辑
        </el-button>
        <el-button type="primary" text icon="el-icon-delete" @click="rowDel(scope.row)"
        <el-button :disabled="scope.row.patches_type_desc==='综合类'" type="primary" text icon="el-icon-delete" @click="rowDel(scope.row)"
          >删除
        </el-button>
      </template>
src/views/resource/patchTypeManagement.vue
@@ -29,6 +29,17 @@
      <template #category="{ row }">
        <el-tag>{{ row.categoryName }}</el-tag>
      </template>
        <template #menu="{ row }">
        <el-button
          :disabled="row.patches_type === '综合类'"
          type="primary"
          text
          icon="el-icon-delete"
          @click="rowDel(row)"
        >
          删除
        </el-button>
      </template>
    </avue-crud>
  </basic-container>
</template>
@@ -85,6 +96,7 @@
  gridBtn: false,
  searchShowBtn: false,
  columnBtn: false,
  delBtn: false,
  column: [
    {
      label: '类型名称',