From f595d6782c7ff6278e35c2346560696271e2bb1c Mon Sep 17 00:00:00 2001
From: xueyinfei <1207092115@qq.com>
Date: Thu, 5 Jun 2025 22:38:49 +0800
Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BD=E6=95=B0=E6=8D=AE=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../module_admin/dao/vecset_dao.py | 3 +-
.../module_admin/entity/do/dataint_do.py | 1 +
.../module_admin/entity/vo/dataint_vo.py | 2 +
.../src/views/dataint/cypz/fccbd.vue | 14 ++--
.../src/views/dataint/sscf/index.vue | 20 +++++-
.../src/views/dataint/vecset/index.vue | 71 ++++++++++++++++---
6 files changed, 91 insertions(+), 20 deletions(-)
diff --git a/vue-fastapi-backend/module_admin/dao/vecset_dao.py b/vue-fastapi-backend/module_admin/dao/vecset_dao.py
index 7c31591..0c6aa57 100644
--- a/vue-fastapi-backend/module_admin/dao/vecset_dao.py
+++ b/vue-fastapi-backend/module_admin/dao/vecset_dao.py
@@ -22,7 +22,8 @@ class VecsetDao:
SysVecset.stab_name == vecset_query.stab_name if vecset_query.stab_name else True,
SysVecset.squery == vecset_query.squery if vecset_query.squery else True,
SysVecset.sanal_plan == vecset_query.sanal_plan if vecset_query.sanal_plan else True,
- SysVecset.status == vecset_query.status if vecset_query.status else True
+ SysVecset.status == vecset_query.status if vecset_query.status else True,
+ SysVecset.data_domain == vecset_query.data_domain if vecset_query.data_domain else True,
).distinct()
)
query_result = await PageUtil.paginate(db, query, vecset_query.page_num, vecset_query.page_size, True)
diff --git a/vue-fastapi-backend/module_admin/entity/do/dataint_do.py b/vue-fastapi-backend/module_admin/entity/do/dataint_do.py
index 90c35ee..9d1fc8e 100644
--- a/vue-fastapi-backend/module_admin/entity/do/dataint_do.py
+++ b/vue-fastapi-backend/module_admin/entity/do/dataint_do.py
@@ -108,6 +108,7 @@ class SysVecset(Base):
onum = Column(String(60), primary_key=True, comment='序号')
dasset_id = Column(String(500), comment='数据域名')
+ data_domain = Column(String(500), comment='数据域')
squery = Column(String(500), comment='查询语句')
sanal_plan = Column(String(500), comment='分析方法')
sintnt_term = Column(String(500), comment='意图词')
diff --git a/vue-fastapi-backend/module_admin/entity/vo/dataint_vo.py b/vue-fastapi-backend/module_admin/entity/vo/dataint_vo.py
index 3b53989..2d6aa12 100644
--- a/vue-fastapi-backend/module_admin/entity/vo/dataint_vo.py
+++ b/vue-fastapi-backend/module_admin/entity/vo/dataint_vo.py
@@ -98,6 +98,7 @@ class VecsetPageObject(BaseModel):
model_config = ConfigDict(alias_generator=to_camel, from_attributes=True)
page_num: int
page_size: int
+ data_domain: Optional[str] = None
stab_name: Optional[str] = None
squery: Optional[str] = None
sanal_plan: Optional[str] = None
@@ -109,6 +110,7 @@ class SaveVecsetModel(BaseModel):
model_config = ConfigDict(alias_generator=to_camel, from_attributes=True)
onum: Optional[str] = None
dasset_id: Optional[str] = None
+ data_domain: Optional[str] = None
stab_name: Optional[str] = None
squery: Optional[str] = None
sanal_plan: Optional[str] = None
diff --git a/vue-fastapi-frontend/src/views/dataint/cypz/fccbd.vue b/vue-fastapi-frontend/src/views/dataint/cypz/fccbd.vue
index b9f1944..42d2d21 100644
--- a/vue-fastapi-frontend/src/views/dataint/cypz/fccbd.vue
+++ b/vue-fastapi-frontend/src/views/dataint/cypz/fccbd.vue
@@ -81,14 +81,14 @@
删除
-
+
-
+
+
+
+
+ {{scope.row.suppExpl.substring(0, 20) + (scope.row.suppExpl && scope.row.suppExpl.length >= 20?"...":"")}}
+
+
+
+
@@ -239,6 +252,7 @@
import { ref, nextTick, computed, watch, reactive, onMounted } from 'vue'
import { getSscfList, saveSscf, deleteSscf, get_dasset_tree, saveDassetTreeNode } from "@/api/dataint/sscf"
+
const { proxy } = getCurrentInstance();
const queryParams = ref({
@@ -414,7 +428,7 @@ function get_tree_data(){
let children = []
dassetOptions.value = []
for (let i = 0; i < treeList.length; i++) {
- if (treeList[i].dassetCode === "1"){
+ if (treeList[i].dassetCode === "root"){
dassetOptions.value.push(treeList[i])
}else {
children.push(treeList[i])
diff --git a/vue-fastapi-frontend/src/views/dataint/vecset/index.vue b/vue-fastapi-frontend/src/views/dataint/vecset/index.vue
index f552a12..1e119a0 100644
--- a/vue-fastapi-frontend/src/views/dataint/vecset/index.vue
+++ b/vue-fastapi-frontend/src/views/dataint/vecset/index.vue
@@ -41,7 +41,10 @@
-
+
+
+
+
@@ -106,11 +109,52 @@
-
-
-
+
+
+
+
+
+
+ {{scope.row.squery.substring(0, 20) + (scope.row.squery && scope.row.squery.length >= 20?"...":"")}}
+
+
+
+
+
+
+
+
+ {{scope.row.sanalPlan.substring(0, 20) + (scope.row.sanalPlan && scope.row.sanalPlan.length >= 20?"...":"")}}
+
+
+
+
-
+
+
+
+
+
+ {{scope.row.ssql.substring(0, 20) + (scope.row.ssql && scope.row.ssql.length >= 20?"...":"")}}
+
+
+
+
@@ -162,7 +206,14 @@
-
+
+
+
+
+
+
@@ -176,7 +227,7 @@
-
+
@@ -235,7 +286,7 @@
label-width="125px">
@@ -264,6 +315,7 @@ const { proxy } = getCurrentInstance();
const queryParams = ref({
dassetId:'',
+ dataDomain:'',
stabName:'',
squery:'',
sanalPlan:'',
@@ -274,6 +326,7 @@ const queryParams = ref({
const currentForm = ref({
operate: 'ADD',
dassetId:'',
+ dataDomain:'',
stabName:'',
squery:'',
sanalPlan:'',
@@ -436,7 +489,7 @@ function get_tree_data(){
let children = []
dassetOptions.value = []
for (let i = 0; i < treeList.length; i++) {
- if (treeList[i].dassetCode === "1"){
+ if (treeList[i].dassetCode === "root"){
dassetOptions.value.push(treeList[i])
}else {
children.push(treeList[i])