From 17b041e2e7ebd5afe75403fefc57cc6a88b51dad Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 06 八月 2024 13:23:58 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/general/index.vue | 58 ++++++++++++++++++++++++++++++---------------------------- 1 files changed, 30 insertions(+), 28 deletions(-) diff --git a/src/views/repositoryai/general/index.vue b/src/views/repositoryai/general/index.vue index 4388313..5e63317 100644 --- a/src/views/repositoryai/general/index.vue +++ b/src/views/repositoryai/general/index.vue @@ -153,12 +153,7 @@ @selection-change="handleSelectionChange" > <el-table-column type="selection" width="50" align="center" /> - <el-table-column - label="搴忓彿" - align="center" - key="targetid" - prop="targetid" - /> + <el-table-column label="搴忓彿" align="center" key="id" prop="id" /> <el-table-column label="閫氱敤搴撳悕绉�" align="center" @@ -215,6 +210,7 @@ <el-table-column label="鎿嶄綔" align="center" + fixed="right" width="200" class-name="small-padding fixed-width" > @@ -463,6 +459,8 @@ addgeneralclassify(this.classifyform).then((res) => { this.getDeptTree(); this.$modal.msgSuccess("鏂板鎴愬姛"); + this.classifyform = {}; + this.dialogFormVisible = false; }); }, remove(a, b) { @@ -509,7 +507,7 @@ reset() { this.indexform = { suitWay: undefined, - targetid: undefined, + id: undefined, targetdesc: undefined, baseTagList: [], targetoptionList: [], @@ -533,29 +531,15 @@ }, // 澶氶�夋閫変腑鏁版嵁 handleSelectionChange(selection) { - this.ids = selection.map((item) => item.targetid); + this.ids = selection.map((item) => item.id); this.single = selection.length != 1; this.multiple = !selection.length; }, /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { - this.reset(); - this.title = "鏂板閫氱敤搴�"; - this.indexform = { - baseTagList: [], - targetoptionList: [], - }; - this.testuserList = [ - { - guid: 1, - isoperation: 1, - targettype: "1", - targetvalue: "", - targetregex: "", - }, - ]; - this.indexopen = true; - this.measurement = false; + this.$router.push({ + path: "/knowledge/general/particulars/", + }); }, /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { @@ -585,7 +569,7 @@ this.targetoptionList ); if (valid) { - if (this.indexform.targetid != undefined) { + if (this.indexform.id != undefined) { this.indexform.isoperation = 2; editgeneral(this.indexform).then((response) => { this.$modal.msgSuccess("淇敼鎴愬姛"); @@ -606,7 +590,7 @@ }, /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete(row) { - const userIds = row.targetid || this.ids; + const userIds = row.id || this.ids; this.$modal .confirm('鏄惁纭鍒犻櫎閫氱敤搴撳悕绉颁负"' + row.targetname + '"鐨勬暟鎹」锛�') .then(function () { @@ -681,7 +665,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); @@ -773,6 +757,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