From 4162d0e6692f3b02a183312d4e7f984a2a4baef5 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 21 六月 2024 17:41:14 +0800 Subject: [PATCH] qxtj --- src/views/system/package/index.vue | 33 ++++++++++++++++++++++++++++----- 1 files changed, 28 insertions(+), 5 deletions(-) diff --git a/src/views/system/package/index.vue b/src/views/system/package/index.vue index f7284cb..a503853 100644 --- a/src/views/system/package/index.vue +++ b/src/views/system/package/index.vue @@ -432,6 +432,23 @@ style="width: 150px" /> </el-form-item> + <el-form-item label="浣撴绫诲埆" prop="tjCategory"> + <el-select + v-model="form.tjCategory" + placeholder="璇烽�夋嫨鏄惁涓婃灦" + style="width: 150px" + filterable + clearable + > + <el-option + v-for="dict in dict.type.dict_tjtype" + :key="dict.value" + :label="dict.label" + :value="dict.value" + ></el-option> + </el-select> + </el-form-item> + <div v-if="!isCollapsed" style="display: flex"> <div> @@ -587,7 +604,7 @@ </template> </el-table-column>--> </el-table> - <div>鍚堣锛歿{ pics }}鍏�</div> + <h3 style="font-weight: 600;">鍚堣锛歿{ pics }}鍏�</h3> </div> </el-col> </el-row> @@ -640,7 +657,7 @@ import { Message } from "element-ui"; export default { name: "Package", - dicts: ["sys_normal_disable", "sys_yes_no"], + dicts: ["sys_normal_disable", "sys_yes_no","dict_tjtype"], components: { Packages }, data() { let checkPhoneNum = (rule, value, callback) => { @@ -765,7 +782,11 @@ }, filterNode(value, data) { if (!value) return true; - return data.proName.indexOf(value) !== -1; + if(value == data.proName){ + return data.proName.indexOf(value) !== -1; + }else{ + return data.proEngName.indexOf(value) !== -1; + } }, /** 鏌ヨ浣撴濂楅鍒楄〃 */ getList() { @@ -935,6 +956,7 @@ this.form.keywords = this.form.keywords.slice(0, -1); this.form.keywords = this.form.keywords.split(","); this.DataList = []; + // this.pics = 0; this.checkedkey = []; this.checkedListkey = []; this.getDataList(); @@ -1077,15 +1099,14 @@ item2.disabled = true; this.checkedListkey.push(item2.proId); this.DataList.push(item2); - this.pics = 0; if (this.DataList.length != 0) { this.DataList.forEach((item) => { - this.pics += item.proPrice; if (item.proParentId == item1.proId) { item.propinName = item1.proName; item.propinPrice = item1.proPrice; } }); + this.pics = 0; this.DataList.forEach((item) => { this.pics += item.proPrice; }); @@ -1108,6 +1129,7 @@ item.propinName = this.Treedata[0].proName; item.propinPrice = this.Treedata[0].proPrice; }); + this.pics = 0; this.DataList.forEach((item) => { this.pics += item.proPrice; }); @@ -1424,6 +1446,7 @@ max-height: 400px; overflow-y: auto; border: 1px solid #d9d9d9; + } /* .custom-tree-node { flex: 1; -- Gitblit v1.8.0