Commit ce9e7617a3396efe8cefe7768f6caed1c2401d0f

Authored by 芋道源码
Committed by Gitee
2 parents 111e944d 53767614

!396 增加商城的提示

Merge pull request !396 from 芋道源码/feature/dev-yunai
Showing 22 changed files with 48 additions and 10 deletions
yudao-framework/yudao-spring-boot-starter-banner/src/main/java/cn/iocoder/yudao/framework/banner/core/BannerApplicationRunner.java
... ... @@ -44,6 +44,10 @@ public class BannerApplicationRunner implements ApplicationRunner {
44 44 if (isNotPresent("cn.iocoder.yudao.module.mp.framework.mp.config.MpConfiguration")) {
45 45 System.out.println("[微信公众号 yudao-module-mp - 已禁用][参考 https://doc.iocoder.cn/mp/build/ 开启]");
46 46 }
  47 + // 微信公众号
  48 + if (isNotPresent("cn.iocoder.yudao.module.trade.framework.web.config.TradeWebConfiguration")) {
  49 + System.out.println("[商城 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");
  50 + }
47 51 });
48 52 }
49 53  
... ...
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/framework/package-info.java
1 1 /**
2   - * 属于 order 模块的 framework 封装
  2 + * 属于 trade 模块的 framework 封装
3 3 *
4 4 * @author 芋道源码
5 5 */
... ...
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/framework/web/config/OrderWebConfiguration.java renamed to yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/framework/web/config/TradeWebConfiguration.java
... ... @@ -6,19 +6,19 @@ import org.springframework.context.annotation.Bean;
6 6 import org.springframework.context.annotation.Configuration;
7 7  
8 8 /**
9   - * order 模块的 web 组件的 Configuration
  9 + * trade 模块的 web 组件的 Configuration
10 10 *
11 11 * @author 芋道源码
12 12 */
13 13 @Configuration(proxyBeanMethods = false)
14   -public class OrderWebConfiguration {
  14 +public class TradeWebConfiguration {
15 15  
16 16 /**
17   - * order 模块的 API 分组
  17 + * trade 模块的 API 分组
18 18 */
19 19 @Bean
20   - public GroupedOpenApi orderGroupedOpenApi() {
21   - return YudaoSwaggerAutoConfiguration.buildGroupedOpenApi("order");
  20 + public GroupedOpenApi tradeGroupedOpenApi() {
  21 + return YudaoSwaggerAutoConfiguration.buildGroupedOpenApi("trade");
22 22 }
23 23  
24 24 }
... ...
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/framework/web/package-info.java
1 1 /**
2   - * order 模块的 web 配置
  2 + * trade 模块的 web 配置
3 3 */
4 4 package cn.iocoder.yudao.module.trade.framework.web;
... ...
yudao-server/src/main/java/cn/iocoder/yudao/server/controller/DefaultController.java
... ... @@ -27,4 +27,12 @@ public class DefaultController {
27 27 "[微信公众号 yudao-module-mp - 已禁用][参考 https://doc.iocoder.cn/mp/build/ 开启]");
28 28 }
29 29  
  30 + @RequestMapping(value = {"/admin-api/product/**", // 商品中心
  31 + "/admin-api/trade/**", // 交易中心
  32 + "/admin-api/promotion/**"}) // 营销中心
  33 + public CommonResult<Boolean> mall404() {
  34 + return CommonResult.error(NOT_IMPLEMENTED.getCode(),
  35 + "[商城 yudao-module-mp - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");
  36 + }
  37 +
30 38 }
... ...
yudao-ui-admin/src/components/DocAlert/index.vue
... ... @@ -28,5 +28,6 @@ export default {
28 28 <style scoped>
29 29 .el-alert--success.is-light {
30 30 margin-bottom: 10px;
  31 + cursor: pointer;
31 32 }
32 33 </style>
... ...
yudao-ui-admin/src/utils/request.js
... ... @@ -119,6 +119,13 @@ service.interceptors.response.use(async res =&gt; {
119 119 type: 'error'
120 120 })
121 121 return Promise.reject(new Error(msg))
  122 + } else if (code === 501) {
  123 + Message({
  124 + type: 'error',
  125 + duration: 0,
  126 + message: msg
  127 + })
  128 + return Promise.reject(new Error(msg))
122 129 } else if (code === 901) {
123 130 Message({
124 131 type: 'error',
... ...
yudao-ui-admin/src/views/infra/build/RightPanel.vue
... ... @@ -545,7 +545,7 @@
545 545 <el-switch v-model="activeData.__config__.required" />
546 546 </el-form-item>
547 547  
548   - <template v-if="activeData.__config__.layoutTree">
  548 + <template v-if="activeData.__config__.layoutTree" v-slot="{ node, data }">
549 549 <el-divider>布局结构树</el-divider>
550 550 <el-tree
551 551 :data="[activeData.__config__]"
... ... @@ -554,7 +554,7 @@
554 554 default-expand-all
555 555 draggable
556 556 >
557   - <span v-slot="{ node, data }">
  557 + <span>
558 558 <span class="node-label">
559 559 <svg-icon class="node-icon" :icon-class="data.__config__?data.__config__.tagIcon:data.tagIcon" />
560 560 {{ node.label }}
... ...
yudao-ui-admin/src/views/mall/market/banner/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4 5 <!-- 搜索工作栏 -->
5 6 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
... ...
yudao-ui-admin/src/views/mall/product/brand/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4   -« <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
  5 + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
5 6 <el-form-item label="品牌名称" prop="name">
6 7 <el-input v-model="queryParams.name" placeholder="请输入品牌名称" clearable @keyup.enter.native="handleQuery"/>
7 8 </el-form-item>
... ...
yudao-ui-admin/src/views/mall/product/category/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4 5 <!-- 搜索工作栏 -->
5 6 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
... ...
yudao-ui-admin/src/views/mall/product/property/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4 5 <!-- 搜索工作栏 -->
5 6 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
... ...
yudao-ui-admin/src/views/mall/product/property/value.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
  4 +
3 5 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4 6 <el-form-item label="属性项" prop="propertyId">
5 7 <el-select v-model="queryParams.propertyId">
... ...
yudao-ui-admin/src/views/mall/product/spu/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
  4 +
3 5 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4 6 <el-form-item label="商品名称" prop="name">
5 7 <el-input v-model="queryParams.name" placeholder="请输入商品名称" clearable @keyup.enter.native="handleQuery"/>
... ...
yudao-ui-admin/src/views/mall/promotion/coupon/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
  4 +
3 5 <!-- 搜索工作栏 -->
4 6 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
5 7 <el-form-item label="会员昵称" prop="nickname">
... ...
yudao-ui-admin/src/views/mall/promotion/couponTemplate/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4 5 <!-- 搜索工作栏 -->
5 6 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="82px">
... ...
yudao-ui-admin/src/views/mall/promotion/discountActivity/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4 5 <!-- 搜索工作栏 -->
5 6 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
... ...
yudao-ui-admin/src/views/mall/promotion/rewardActivity/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4 5 <!-- 搜索工作栏 -->
5 6 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
... ...
yudao-ui-admin/src/views/mall/promotion/seckill/seckillActivity/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4 5 <!-- 搜索工作栏 -->
5 6 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
... ...
yudao-ui-admin/src/views/mall/promotion/seckill/seckillTime/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4 5 <!-- 操作工具栏 -->
5 6 <el-row :gutter="10" class="mb8">
... ...
yudao-ui-admin/src/views/mall/trade/afterSale/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
3 4  
4 5 <!-- 搜索工作栏 -->
5 6 <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
... ...
yudao-ui-admin/src/views/mall/trade/order/index.vue
1 1 <template>
2 2 <div class="app-container">
  3 + <doc-alert title="功能开启" url="https://doc.iocoder.cn/mall/build/" />
  4 +
3 5 <!-- 搜索工作栏 -->
4 6 <!-- TODO: inline 看看是不是需要; v-show= 那块逻辑还是要的 -->
5 7 <el-row :gutter="20">
... ...