From 399367ef477d4a719366af2fccdcd07ce5bff62a Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期日, 07 四月 2024 10:18:21 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/intention/index.vue | 62 ++++++++++++++++++++-----------
1 files changed, 40 insertions(+), 22 deletions(-)
diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue
index c6b3d38..9b83381 100644
--- a/src/views/repositoryai/intention/index.vue
+++ b/src/views/repositoryai/intention/index.vue
@@ -495,7 +495,7 @@
</el-form-item>
</el-col>
</el-row>
- <el-card class="box-card" style="margin-bottom: 20px">
+ <!-- <el-card class="box-card" style="margin-bottom: 20px">
<el-table v-loading="loading" :data="testuserList">
<el-table-column
label="搴忓彿"
@@ -568,9 +568,15 @@
</template>
</el-table-column>
</el-table>
- </el-card>
+ </el-card> -->
<el-card class="box-card" style="margin-bottom: 20px">
- <Regular :TargetoptionList="testuserList" />
+ <Regular
+ :TargetoptionList="testuserList"
+ @addoption="addoption"
+ @deloption="deloption"
+ @syioption="syioption"
+ @xiayioption="xiayioption"
+ />
</el-card>
<el-row :gutter="20">
<el-col :span="12">
@@ -690,13 +696,6 @@
<script>
import {
- listUser,
- getUser,
- delUser,
- addUser,
- updateUser,
-} from "@/api/system/user";
-import {
gettargetInfo,
particulartarget,
gettargetInfoedit,
@@ -794,11 +793,6 @@
queryParams: {
pageNum: 1,
pageSize: 10,
- userName: undefined,
- phonenumber: undefined,
- status: undefined,
- deptId: undefined,
- IDnumber: undefined,
},
// 琛ㄥ崟鏍¢獙
@@ -808,10 +802,12 @@
watch: {
// 鏍规嵁鍚嶇О绛涢�夐儴闂ㄦ爲
sidecolumnval(val) {
+ console.log(val);
this.$refs.tree.filter(val);
},
},
created() {
+ // 鍒濆鍖栨暟鎹�
this.getList();
this.gettabList();
this.getDeptTree();
@@ -820,7 +816,6 @@
this.languagelist = store.getters.languagelist;
this.qyoptions = store.getters.usable;
},
-
methods: {
/** 鏌ヨ鎸囨爣鍒楄〃 */
getList() {
@@ -834,12 +829,14 @@
},
processElement(element) {
+ // 杩斿洖涓�涓柊鐨勫璞★紝灏唀lement瀵硅薄鐨勫睘鎬soperation璁剧疆涓�1
return { ...element, isoperation: 1 };
},
+ // 杩斿洖鏁扮粍涓寚瀹氬厓绱犵殑绱㈠紩
getIndexInArray(arr, obj) {
+ // 杩斿洖鏁扮粍涓寚瀹氬厓绱犵殑绱㈠紩
return arr.indexOf(obj);
},
-
//鍒犻櫎鍒嗙被
deletefenlei(row) {
if (this.deleteVisible) {
@@ -881,7 +878,6 @@
}
},
remoteMethod(value) {
- console.log(value);
const illnessqueryParams = {
pageNum: 1,
pageSize: 100,
@@ -983,8 +979,9 @@
guid: 1,
id: this.indexform.id,
targettype: this.indexform.targettype,
- targetvalue: "璐",
- targetregex: "(?!涓�.*|娌�.*|鏈�.*)^.*([璐钩鍑]|璐|璇勫|璇勫),10",
+ targetvalue: "",
+ targetregex: "",
+ targetregex2: "",
};
this.testuserList.push(objvakue);
// this.indexform.targetoptionList.push(objvakue);
@@ -1131,7 +1128,10 @@
resetQuery() {
this.dateRange = [];
this.resetForm("queryForm");
- this.queryParams.deptId = undefined;
+ this.queryParams = {
+ pageNum: 1,
+ pageSize: 10,
+ };
this.$refs.tree.setCurrentKey(null);
this.handleQuery();
},
@@ -1290,7 +1290,7 @@
margin-top: 20px;
margin: 20px;
padding: 30px;
- background: #edf1f7;
+ background: #fff;
border: 1px solid #dcdfe6;
-webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
0 0 6px 0 rgba(0, 0, 0, 0.04);
@@ -1382,6 +1382,24 @@
font-size: 20px;
cursor: pointer;
}
+::v-deep .el-tree {
+ position: relative;
+ cursor: default;
+ border-radius: 5px;
+ background: #eff8fe;
+ color: #606266;
+ border: 1px solid #bbe1fa;
+ // border: 1px solid #dcdfe6;
+ -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+ 0 0 6px 0 rgba(0, 0, 0, 0.04);
+}
+::v-deep
+ .el-tree--highlight-current
+ .el-tree-node.is-current
+ > .el-tree-node__content {
+ background-color: #7799fb;
+ color: #fff;
+}
::v-deep .el-button--mini.is-circle {
padding: 7px;
margin: 0;
--
Gitblit v1.9.3