From 8c6f8c4fcb8bf60efe9f0b9a98f87d8dfad9f25f Mon Sep 17 00:00:00 2001 From: WXL <wl_5969728@163.com> Date: 星期二, 14 十月 2025 17:49:44 +0800 Subject: [PATCH] 捐献历史数据同步问题 --- /dev/null | 0 src/views/project/donationdetails/index.vue | 21 ++++++++++++++++++--- vue.config.js | 2 +- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git "a/dist \0502\051.zip" "b/dist \0502\051.zip" deleted file mode 100644 index 3fdb632..0000000 --- "a/dist \0502\051.zip" +++ /dev/null Binary files differ diff --git a/src/views/project/donationdetails/index.vue b/src/views/project/donationdetails/index.vue index 38ef758..78587ba 100644 --- a/src/views/project/donationdetails/index.vue +++ b/src/views/project/donationdetails/index.vue @@ -1878,6 +1878,9 @@ border :key="tableKey" :data="procureddata" + lazy + :load="loadRowData" + :row-key="row => row.organno" > <el-table-column label="鍣ㄥ畼鍚嶇О" @@ -3054,7 +3057,7 @@ } this.customOrganSort(); }, - deep: true // 娣卞害鐩戝惉锛屽洜涓烘暟缁勫唴瀹瑰彲鑳藉彉鍖� + // deep: true // 娣卞害鐩戝惉锛屽洜涓烘暟缁勫唴瀹瑰彲鑳藉彉鍖� }, allocateddata: { handler(newVal) { @@ -3063,11 +3066,16 @@ } this.allocateddataSort(); }, - deep: true // 娣卞害鐩戝惉锛屽洜涓烘暟缁勫唴瀹瑰彲鑳藉彉鍖� + // deep: true // 娣卞害鐩戝惉锛屽洜涓烘暟缁勫唴瀹瑰彲鑳藉彉鍖� } }, methods: { + loadRowData(row, treeNode, resolve) { + // 鍙湁褰撹灞曞紑鎴栭渶瑕佹椂鎵嶅畬鏁存覆鏌撳唴閮ㄧ粍浠� + this.$set(row, 'loaded', true) + resolve() + }, // 鑾峰彇涓昏〃鍙婇檮灞炴暟鎹� Getbasicinformation() { // 宸︿晶娴佺▼鏁版嵁 @@ -3155,7 +3163,7 @@ if (response.code == 200 && response.rows[0]) { this.affirmform = response.rows[0]; if (this.affirmform.organdecision) { - this.organdecision = this.affirmform.organdecision.split(","); + this.organdecision = this.affirmform.organdecision.split(",").flatMap(item => item === "鍙岃偩鑴�" ? ["宸﹁偩", "鍙宠偩"] : item);; } if (this.affirmform.kinship) { this.kinship = this.affirmform.kinship.split(","); @@ -3334,6 +3342,8 @@ this.$refs["form"].validate(valid => { console.log("鎻愪氦鐨勬暟鎹滑锛�", this.form); if (valid) { + console.log(112); + this.form.birthday = this.$moment(this.form.birthday).format( "YYYY-MM-DD HH:mm:ss" ); @@ -3420,6 +3430,9 @@ } }); } + }else{ + this.$modal.msgError("鍓嶉儴姝ラ琛ㄥ崟淇℃伅鏈夌己婕忚鎺掓煡鍚庨噸鏂颁繚瀛�"); + } }); }, @@ -3666,6 +3679,7 @@ // 1. 鍔犻攣锛岄樆姝㈢洃鍚櫒鎵ц this.isSorting = true; + this.loading = true; // 鑷畾涔夋帓搴忓嚱鏁� this.procureddata.sort((a, b) => { const indexA = this.organOrder.indexOf(a.organname); @@ -3692,6 +3706,7 @@ this.procureddata = [...this.procureddata]; this.$nextTick(() => { this.isSorting = false; + this.loading = false; }); }, allocateddataSort() { diff --git a/vue.config.js b/vue.config.js index 1bbfef2..51f078a 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,7 @@ [process.env.VUE_APP_BASE_API]: { target:`http://localhost:8080`, // target:`http://192.168.100.10:8080`, - // target:`http://192.168.1.4:8086`, + // target:`http://192.168.100.137:8080`, // target: `https://slb.hospitalstar.com:9093`, changeOrigin: true, pathRewrite: { -- Gitblit v1.9.3