From 5b4e348267b5541d54fffcc75c7b307ad514a692 Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期六, 15 二月 2025 18:24:58 +0800 Subject: [PATCH] 20250215 --- src/views/system/package/index.vue | 169 +------------------------------------------------------- 1 files changed, 4 insertions(+), 165 deletions(-) diff --git a/src/views/system/package/index.vue b/src/views/system/package/index.vue index 839dfd1..2af9a0f 100644 --- a/src/views/system/package/index.vue +++ b/src/views/system/package/index.vue @@ -698,7 +698,10 @@ </template> </el-table-column>--> </el-table> - <!-- <h3 style="font-weight: 600">鍚堣锛歿{ pics }}鍏�</h3> --> + <!-- 娣诲姞椤圭洰鎬绘暟鏄剧ず --> + <div style="margin-top: 10px; text-align: right;font-size: 14px"> + 鍏辫 <span style="font-weight: bold;">{{ DataList.length }}</span> 鏉¢」鐩� + </div> </div> </el-col> </el-row> @@ -1302,68 +1305,6 @@ }); this.loading = false; }, - // getDataList() { - // this.loading = true; - - // getProParentIdDxList(this.queryParams).then((response) => { - // this.Treedata = response.data.list; - // /* if (this.form.tjProjectList) { - // this.form.tjProjectList.forEach((item) => { - // this.Treedata.forEach((item1) => { - // if (item.proId == item1.proId) { - // this.checkedkey.push(item1.proId); - - // this.DataList.push(item1); - - // this.DataList.forEach((item1) => { - // item1.limits = 10; - // if (item1.limits > 10) { - // item1.limits = 10; // 寮哄埗灏嗗�艰缃负鏈�澶у�� - // } else if (item1.limits < 0) { - // item1.limits = 0; // 寮哄埗灏嗗�艰缃负鏈�灏忓�� - // } - // this.updateProPrice(item1); // 鏇存柊浠锋牸鎴栧叾浠栭�昏緫 - // }); - - // } - // }); - // }); - // } */ /* else { - // this.checkedkey.push(this.Treedata[0].proId); - // let proId = this.Treedata[0].proId; - // this.TreedataList = this.Treedata.filter( - // (item) => item.proId == proId - // ); */ - - // // 灏嗙涓�涓」鐩坊鍔犲埌 DataList - // // this.TreedataList.forEach((item) => { - // // this.checkedListkey.push(item.proId); - // // this.DataList.push(item); - // // }); - // /* getProSonDxList(proId).then((res) => { - // this.TreedataList = res.data.list; - // this.TreedataList.forEach((item) => { - // item.disabled = true; - // this.checkedListkey.push(item.proId); - // this.DataList.push(item); - // this.DataList.forEach((item) => { - // item.propinName = this.Treedata[0].proName; - // item.propinPrice = this.Treedata[0].proPrice; - // }); - // this.pics = 0; - // this.DataList.forEach((item) => { - // this.pics += item.proPrice; - // }); - // }); - // }); */ - // // } - // this.pics = this.DataList.reduce( - // (total, item) => total + item.priceOrd, - // 0 - // ); - // this.loading = false; - // }); - // }, handleFilterInput() { this.queryParams1.page = 1; // 鎼滅储鏃堕噸缃负绗竴椤� this.getDataList(); // 璋冪敤鎺ュ彛鑾峰彇鏁版嵁 @@ -1531,71 +1472,6 @@ this.getList(); }); }, - /* submitForm() { - if (this.form.pacName) { - this.form.tjProjectList = []; - if (this.DataList.length != 0) { - this.treeList = JSON.parse(JSON.stringify(this.DataList)); - for (var i = 0; i < this.treeList.length; i++) { - for (var j = i + 1; j < this.treeList.length; j++) { - if ( - this.treeList[i].proParentId == this.treeList[j].proParentId - ) { - this.treeList.splice(j, 1); - j--; - } - } - } - this.treeList.forEach((item) => { - this.form.tjProjectList.push({ - // id: 0, - proName: item.propinName, - // allSonProName: item.proName + ",", - proPrice: item.propinPrice, - priceNow: item.propinPrice, - proId: item.proParentId, - }); - }); - } - this.$refs["form"].validate((valid) => { - if (valid) { - if (this.form.pacId != null) { - // if (this.form.pacStatus === "鍚敤") { - // this.form.pacStatus = 0; - // } else { - // this.form.pacStatus = 1; - // } - if (this.keys) { - this.form.keywords = this.keys; - } else { - this.form.keywords = this.form.keywords.toString(); - } - - updatePackage(this.form).then((response) => { - this.$modal.msgSuccess("淇敼鎴愬姛"); - this.open = false; - this.getList(); - }); - } else { - this.form.keywords = this.keys; - // if (this.form.pacStatus === "鍚敤") { - // this.form.pacStatus = 0; - // } else { - // this.form.pacStatus = 1; - // } - // return; - addPackage(this.form).then((response) => { - this.$modal.msgSuccess("鏂板鎴愬姛"); - this.open = false; - this.getList(); - }); - } - } - }); - } else { - Message.warning("璇峰厛濉啓濂楅鍚嶇О"); - } - }, */ /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete(row) { const pacIds = row.pacId || this.ids; @@ -1627,43 +1503,6 @@ `package_${new Date().getTime()}.xlsx` ); }, - // 濂楅璇︽儏 - // handleSeach(row) { - // this.Seachopen = true; - // this.loading = true; - // const pacId = row.pacId; - // this.pacId = row.pacId - // let data = { - // pacId: pacId, - // }; - // getAllPackage(data).then((response) => { - // this.allpackageList = response.data.tjProjectList; - // this.loading = false; - // let arr = []; - // this.allpackageList.forEach((item) => { - // arr.push(item.proName); - // }); - // this.newproName = arr; - // }); - - // getAllPackageList().then((response) => { - // this.allList = response.data; - // this.loading = false; - // }); - // }, - // // 鍏ㄩ�� - // handleCheckAllChange(val) { - // this.newproName = val ? this.allList : []; - // this.isIndeterminate = false; - // }, - - // handleCheckedCitiesChange(value) { - // let checkedCount = value.length; - // this.checkAll = checkedCount === this.allList.length; - // this.isIndeterminate = - // checkedCount > 0 && checkedCount < this.allList.length; - // }, - submitcheckbox() { let _this = this; let proIds = []; -- Gitblit v1.8.0