From b6b64df51bc4a39d90240d275cee47c96e3fc13f Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 12 Mar 2021 14:20:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=B8=82=E5=9C=BA=20?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=90=9C=E7=B4=A2=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage_company/template/market.vue | 36 +++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/src/views/manage_company/template/market.vue b/src/views/manage_company/template/market.vue index ff28e0cf..0a0ed598 100644 --- a/src/views/manage_company/template/market.vue +++ b/src/views/manage_company/template/market.vue @@ -18,7 +18,12 @@
子行业名称
-->
{{node.label}}
@@ -89,14 +94,25 @@ export default { templateTreeList: [], currentHeadNode: null, addedTemplateIdMap: {}, - searchTempName: "" // 搜索模板名称 + searchKeywords: "" // 搜索模板名称 }; }, - filters: {}, mounted: function () { this.loadTemplateList(); }, methods: { + filterViewList(secIndNodeList) { + const keywords = this.searchKeywords; + if(!keywords) return secIndNodeList; + return secIndNodeList.reduce((headList, secIndNode) =>{ + const tempNodeList = secIndNode.children.filter(tempNode => tempNode.label.indexOf(keywords) !== -1); + if(tempNodeList.length) { + const copyNode = { ...secIndNode, children: tempNodeList } + headList.push(copyNode); + } + return headList; + }, []); + }, /** * 查看模板详情 */ @@ -286,6 +302,10 @@ function composeIndustryAndTemplate(templateList, indList) { &_box { height: 72px; border-bottom: 1px solid #cccdd7; + padding: 22px 24px; + box-sizing: border-box; + + } } .float_title { @@ -382,5 +402,13 @@ function composeIndustryAndTemplate(templateList, indList) { } } } + ::v-deep .el-input_mini .el-input__inner { + border-color: #c4c4c4; + &:hover { + border-color: #8c00ff; + } + } } + + \ No newline at end of file