From 5200b8b5a92b707ae7f115c7fd07cb7afc109980 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期四, 03 七月 2025 15:44:03 +0800 Subject: [PATCH] 更新配置和扩展功能,优化代码结构 修改 `http.js` 中的 `axios.defaults.baseURL` 配置,调整开发环境 URL。 - 在 `Dt_BillGroupStock_Hty.jsx` 和 `Dt_OutTime.jsx` 中添加作者信息和文档链接,增强组件扩展功能。 - 新增 `tables.js` 中的路由配置,包含 `Dt_BillGroupStock_Hty` 的路径。 - 在 `Dt_BillGroupStock_Hty.vue` 和 `Dt_OutTime.vue` 中定义表格列、编辑和搜索表单字段。 - 新增 `IStockInfoHtyRepository.cs` 和 `IStockInfoHtyService.cs` 接口定义。 - 在 `StockInfoHtyRepository.cs` 和 `StockInfoHtyService.cs` 中实现分页查询和批量删除功能。 - 更新 `appsettings.json` 中的数据库连接字符串,修改数据库名称。 --- Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js | 45 +++++++++++++++++++++++++++------------------ 1 files changed, 27 insertions(+), 18 deletions(-) diff --git a/Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js b/Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js index ca16186..54d708c 100644 --- a/Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js +++ b/Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js @@ -1,29 +1,39 @@ - -import gridBody from './extend/importDevicePro.vue' +import gridBody from "./extend/importDevicePro.vue"; let extension = { components: { //鏌ヨ鐣岄潰鎵╁睍缁勪欢 - gridHeader: '', + gridHeader: "", gridBody: gridBody, - gridFooter: '', + gridFooter: "", //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 - modelHeader: '', - modelBody: '', - modelFooter: '' + modelHeader: "", + modelBody: "", + modelFooter: "", }, - tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + tableAction: "", //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� methods: { //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� onInit() { // console.log(this.detailOptions.buttons); // console.log(this.$refs.detail) - var detailImport = this.detailOptions.buttons.find(item=>item.value == 'import'); - if(detailImport){ + var detailImport = this.detailOptions.buttons.find( + (item) => item.value == "import" + ); + if (detailImport) { detailImport.onClick = function () { this.$refs.gridBody.open(); - } + }; } + // this.buttons.unshift({ + // //涔熷彲浠ョ敤push鎴栬�卻plice鏂规硶鏉ヤ慨鏀筨uttons鏁扮粍 + // name: "寮�鍚湇鍔�", //鎸夐挳鍚嶇О + // icon: "el-icon-document", //鎸夐挳鍥炬爣vue2鐗堟湰瑙乮view鏂囨。icon锛寁ue3鐗堟湰瑙乪lement ui鏂囨。icon(娉ㄦ剰涓嶆槸element puls鏂囨。) + // type: "primary", //鎸夐挳鏍峰紡vue2鐗堟湰瑙乮view鏂囨。button锛寁ue3鐗堟湰瑙乪lement ui鏂囨。button + // onClick: function () { + // this.$Message.success("寮�鍚湇鍔�"); + // }, + // }); }, onInited() { //妗嗘灦鍒濆鍖栭厤缃悗 @@ -64,15 +74,14 @@ //console.log(this.$refs) this.$nextTick(() => { if (this.$refs.upload_excel) { - alert('鐐瑰嚮浜嗕笂浼犳寜閽�') + alert("鐐瑰嚮浜嗕笂浼犳寜閽�"); this.$refs.upload_excel.upload = function () { - console.log('鐐瑰嚮浜嗕笂浼犳寜閽�') - } + console.log("鐐瑰嚮浜嗕笂浼犳寜閽�"); + }; } // alert(1) - }) - - } - } + }); + }, + }, }; export default extension; -- Gitblit v1.9.3