From 28f1259ec675a191d2a852f74566400e6cc40b50 Mon Sep 17 00:00:00 2001 From: wanshenmean <cathay_xy@163.com> Date: 星期三, 11 九月 2024 17:03:11 +0800 Subject: [PATCH] 前端问题改动,与代码优化 --- Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/basicinfo/Dt_LocationInfo.jsx | 31 +++++++++++++++++++++++++++++-- 1 files changed, 29 insertions(+), 2 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/basicinfo/Dt_LocationInfo.js b/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/basicinfo/Dt_LocationInfo.jsx similarity index 85% rename from Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/basicinfo/Dt_LocationInfo.js rename to Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/basicinfo/Dt_LocationInfo.jsx index ef599f4..763722f 100644 --- a/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/basicinfo/Dt_LocationInfo.js +++ b/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/basicinfo/Dt_LocationInfo.jsx @@ -6,11 +6,12 @@ **鍚庡彴鎿嶄綔瑙侊細http://v2.volcore.xyz/document/netCoreDev *****************************************************************************************/ //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 - +import { defineAsyncComponent } from "vue"; let extension = { components: { //鏌ヨ鐣岄潰鎵╁睍缁勪欢 - gridHeader: '', + gridHeader: defineAsyncComponent(() => + import("./demo_Product/LocationChange.vue")), gridBody: '', gridFooter: '', //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 @@ -83,6 +84,32 @@ } //绀轰緥锛氳缃慨鏀规柊寤恒�佺紪杈戝脊鍑烘瀛楁鏍囩鐨勯暱搴� this.boxOptions.labelWidth = 150; + + //琛ㄦ牸涓婃坊鍔犺嚜瀹氫箟鎸夐挳 + this.columns.push({ + title: "鎿嶄綔", + field: "鎿嶄綔", + width: 150, + align: "left", // 'center', + render: (h, { row, column, index }) => { + return ( + <div> + <el-button + onClick={($e) => { + // this.$refs.table.load(); + // console.log(this.$refs.table); + this.$refs.gridHeader.customOpen(row); + }} + type="primary" + plain + style="height:26px; padding: 10px !important;" + > + 鐘舵�佸彉鍔ㄨ褰� + </el-button> + </div> + ); + }, + }); }, onInited() { //妗嗘灦鍒濆鍖栭厤缃悗 -- Gitblit v1.9.3