From 89a7dda76eddd494aa487f24baca2e0021ee3944 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Thu, 6 Feb 2025 17:36:57 +0800
Subject: [PATCH] up
---
src/views/catalog/index.vue | 2 +-
src/views/record/components/addRecord.vue | 15 +++++++++++----
vue.config.js | 2 +-
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/views/catalog/index.vue b/src/views/catalog/index.vue
index 2e922a4..a1e0daf 100644
--- a/src/views/catalog/index.vue
+++ b/src/views/catalog/index.vue
@@ -66,7 +66,7 @@
prop: 'id',
label: 'id',
align: 'center',
- width: 100
+ width: 200
}, {
prop: 'name',
label: '目录名称',
diff --git a/src/views/record/components/addRecord.vue b/src/views/record/components/addRecord.vue
index d8be852..92faae9 100644
--- a/src/views/record/components/addRecord.vue
+++ b/src/views/record/components/addRecord.vue
@@ -69,21 +69,21 @@
标签:
-
+
-
+
*所属目录:
@@ -235,7 +235,14 @@
this.tagList = tag ? tag : []
},
getSelectedNodes(data, node) {
- console.log("data", data)
+ console.log("data", data)
+ if(data.children && data.children.length>0){
+ this.$Message.warning('当前节点不可选择')
+ this.form.catalog_name = ''
+ this.form.catalog_id = ''
+ this.$refs.tree.setCheckedKeys([]);
+ return
+ }
this.$refs.tree.setCheckedKeys([]); // 删除所有选中节点
this.$refs.tree.setCheckedNodes([data]); // 选中已选中节点
this.form.catalog_name = data.name
diff --git a/vue.config.js b/vue.config.js
index 5201527..c82404e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin',
- outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin',
+ outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin_test',
assetsDir: 'static',
css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项