From 26380f8a9ad6dede4a99a903afb78a0dce8bfed0 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Sun, 23 Apr 2023 14:55:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=95=86=E5=93=81=E8=BF=87=E6=BB=A4=E6=8E=89=E5=8D=A1=E5=AF=86?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=EF=BC=8C=E6=9C=AC=E5=9C=B0=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=9B=BE=E7=89=87=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/upload/storage/Local.php | 4 ++-- .../admin/src/pages/marketing/lottery/addGoods.vue | 12 ++++++++++-- .../src/pages/marketing/storeBargain/create.vue | 1 + .../src/pages/marketing/storeCombination/create.vue | 1 + .../src/pages/marketing/storeIntegral/create.vue | 1 + .../src/pages/marketing/storeSeckill/create.vue | 1 + 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/crmeb/crmeb/services/upload/storage/Local.php b/crmeb/crmeb/services/upload/storage/Local.php index dc690c81c..366eb3d62 100644 --- a/crmeb/crmeb/services/upload/storage/Local.php +++ b/crmeb/crmeb/services/upload/storage/Local.php @@ -150,11 +150,11 @@ class Local extends BaseUpload /** * 文件流上传 - * @param string $fileContent + * @param $fileContent * @param string|null $key * @return array|bool|mixed|\StdClass */ - public function stream(string $fileContent, string $key = null) + public function stream($fileContent, string $key = null) { if (!$key) { $key = $this->saveFileName(); diff --git a/template/admin/src/pages/marketing/lottery/addGoods.vue b/template/admin/src/pages/marketing/lottery/addGoods.vue index 1ceaccf61..7c7ac771e 100644 --- a/template/admin/src/pages/marketing/lottery/addGoods.vue +++ b/template/admin/src/pages/marketing/lottery/addGoods.vue @@ -49,7 +49,7 @@
- +
@@ -116,7 +116,7 @@ width="900" @on-cancel="cancel" > - + @@ -232,6 +232,14 @@ export default { }); }, methods: { + // 选择商品 + changeGoods() { + this.modals = true; + this.$refs.goodslist.formValidate.is_presale = 0; + this.$refs.goodslist.formValidate.is_virtual = 0; + this.$refs.goodslist.getList(); + this.$refs.goodslist.goodsCategory(); + }, getCouponId(e) { this.formValidate.coupon_id = e.id; this.formValidate.coupon_title = e.coupon_title; diff --git a/template/admin/src/pages/marketing/storeBargain/create.vue b/template/admin/src/pages/marketing/storeBargain/create.vue index 333314057..7ca48eb08 100644 --- a/template/admin/src/pages/marketing/storeBargain/create.vue +++ b/template/admin/src/pages/marketing/storeBargain/create.vue @@ -955,6 +955,7 @@ export default { changeGoods() { this.modals = true; this.$refs.goodslist.formValidate.is_presale = 0; + this.$refs.goodslist.formValidate.is_virtual = 0; this.$refs.goodslist.getList(); this.$refs.goodslist.goodsCategory(); }, diff --git a/template/admin/src/pages/marketing/storeCombination/create.vue b/template/admin/src/pages/marketing/storeCombination/create.vue index 4f0da17d4..cbf420bc7 100644 --- a/template/admin/src/pages/marketing/storeCombination/create.vue +++ b/template/admin/src/pages/marketing/storeCombination/create.vue @@ -949,6 +949,7 @@ export default { changeGoods() { this.modals = true; this.$refs.goodslist.formValidate.is_presale = 0; + this.$refs.goodslist.formValidate.is_virtual = 0; this.$refs.goodslist.getList(); this.$refs.goodslist.goodsCategory(); }, diff --git a/template/admin/src/pages/marketing/storeIntegral/create.vue b/template/admin/src/pages/marketing/storeIntegral/create.vue index ce1bf2e9c..a59219635 100644 --- a/template/admin/src/pages/marketing/storeIntegral/create.vue +++ b/template/admin/src/pages/marketing/storeIntegral/create.vue @@ -699,6 +699,7 @@ export default { changeGoods() { this.modals = true; this.$refs.goodslist.formValidate.is_presale = 0; + this.$refs.goodslist.formValidate.is_virtual = 0; this.$refs.goodslist.getList(); this.$refs.goodslist.goodsCategory(); }, // 移动 diff --git a/template/admin/src/pages/marketing/storeSeckill/create.vue b/template/admin/src/pages/marketing/storeSeckill/create.vue index f3d3d345d..e3f322c21 100644 --- a/template/admin/src/pages/marketing/storeSeckill/create.vue +++ b/template/admin/src/pages/marketing/storeSeckill/create.vue @@ -875,6 +875,7 @@ export default { changeGoods() { this.modals = true; this.$refs.goodslist.formValidate.is_presale = 0; + this.$refs.goodslist.formValidate.is_virtual = 0; this.$refs.goodslist.getList(); this.$refs.goodslist.goodsCategory(); }, // 移动 From f793e917f02497ebb5a1813dd69c878fa721fb7d Mon Sep 17 00:00:00 2001 From: From-wh Date: Sun, 23 Apr 2023 15:28:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?improve:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting/systemOutInterface/index.vue | 2 ++ .../pages/system/backendRouting/debugging.vue | 6 +--- .../src/pages/system/backendRouting/index.vue | 36 ++++++++++++++----- .../components/FoundationFor.vue | 10 +++++- 4 files changed, 40 insertions(+), 14 deletions(-) diff --git a/template/admin/src/pages/setting/systemOutInterface/index.vue b/template/admin/src/pages/setting/systemOutInterface/index.vue index 72b4e9335..76fd5010f 100644 --- a/template/admin/src/pages/setting/systemOutInterface/index.vue +++ b/template/admin/src/pages/setting/systemOutInterface/index.vue @@ -1010,6 +1010,8 @@ export default { .text-area { white-space: pre-wrap; + word-break: break-word; + } } diff --git a/template/admin/src/pages/system/backendRouting/debugging.vue b/template/admin/src/pages/system/backendRouting/debugging.vue index d07bba3fe..0226219bd 100644 --- a/template/admin/src/pages/system/backendRouting/debugging.vue +++ b/template/admin/src/pages/system/backendRouting/debugging.vue @@ -330,11 +330,7 @@ export default { ? this.jsonBody : this.filtersData((await this.$refs.yTable.getTableData().tableData) || []); let h = this.filtersData((await this.$refs.zTable.getTableData().tableData) || []); - let h1 = this.filtersData((await this.$refs.zaTable.getTableData().tableData) || []); - headers = { - ...h, - ...h1, - }; + headers = h; console.log(url, method, params, body, headers); this.codes = ''; requestMethod(url, method, params, body, headers) diff --git a/template/admin/src/pages/system/backendRouting/index.vue b/template/admin/src/pages/system/backendRouting/index.vue index 73ef78695..5921d074e 100644 --- a/template/admin/src/pages/system/backendRouting/index.vue +++ b/template/admin/src/pages/system/backendRouting/index.vue @@ -9,11 +9,11 @@ --> - +
- +
@@ -24,7 +24,8 @@ :model="treeData" default-tree-node-name="默认文件夹" default-leaf-node-name="默认接口名" - v-bind:default-expanded="true" + v-bind:default-expanded="false" + :expand-only-one="true" >
- +
@@ -581,9 +582,15 @@ export default { }, methods: { syncRoute() { - syncRoute(this.app_name).then((res) => { - this.getInterfaceList('one'); - this.$Message.success(res.msg); + this.$Modal.warning({ + title: '立即同步', + content: '您确认立即同步路由权限?', + onOk: () => { + syncRoute(this.app_name).then((res) => { + this.getInterfaceList('one'); + this.$Message.success(res.msg); + }); + }, }); }, debugging() { @@ -616,6 +623,9 @@ export default { if (res.data.length) { res.data[0].expand = false; this.treeData = new Tree(res.data); + this.$nextTick((e) => { + if (disk_type) document.querySelectorAll('.vtl-icon-caret-right')[0].click(); + }); if (res.data[0].children && res.data[0].children.length) { this.onClick(res.data[0].children[0]); } @@ -960,12 +970,14 @@ export default { margin-left: 10px; } .card-tree { + background: #fff; height: 72px; box-sizing: border-box; overflow-x: scroll; /* 设置溢出滚动 */ white-space: nowrap; overflow-y: hidden; /* 隐藏滚动条 */ + border-radius: 4px; scrollbar-width: none; /* firefox */ -ms-overflow-style: none; /* IE 10+ */ } @@ -977,15 +989,23 @@ export default { display: flex; .main-btn { display:flex; + position: sticky; + padding: 15px 15px 0 15px; + width: 100%; + background: #fff; + top: 0px; + background-color: rgba(255, 255, 255, 0.6); + backdrop-filter: blur(4px); } .card-tree{ - width: 270px; + width: 290px; height: calc(100vh - 115px); overflow-y: scroll; } >>> .tree { .tree-list{ margin-left:10px; + padding: 0 15px; } .vtl-caret{ diff --git a/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue b/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue index 16de791c8..3471d0104 100644 --- a/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue +++ b/template/admin/src/pages/system/codeGeneration/components/FoundationFor.vue @@ -45,7 +45,12 @@
用于生成模块名称
- +
用于生成CRUD指定的表名,不需要携带表前缀;对于生成过的表将不能在进行生成;或者可以删除对应的文件重新生成!对应系统中重要的数据表将不允许生成!
@@ -269,6 +274,9 @@ export default { this.addRow(); } }, + initTableName() { + this.tableField = []; + }, addRow() { if (!this.foundation.tableName) return this.$Message.warning('请先填写表名'); if (!this.tableField.length) {