瀏覽代碼

促销活动商品列表增加”取消上架“/”恢复上架“

qymljy 2 年之前
父節點
當前提交
1b4f852dbf
共有 4 個文件被更改,包括 6 次插入23 次删除
  1. 2 2
      src/HDrpManagement/promotion/modules/detail.vue
  2. 3 3
      vue.config.js
  3. 1 1
      yos/index.html
  4. 0 17
      yos/index2.html

+ 2 - 2
src/HDrpManagement/promotion/modules/detail.vue

@@ -51,8 +51,8 @@
             ></importFile>
           </template>
           <template v-slot:isOnSale="scope">
-            <el-button :disabled="!isEdit"  class="inline-16" type="text" size="mini" @click="productOnsale(scope.data)" v-if="scope.data.isonsale === 1 && tool.checkAuth($route.name,'isonsale')">取 消 上 架</el-button>
-            <el-button :disabled="!isEdit"  class="inline-16" type="text" size="mini" @click="productOnsale(scope.data)" v-if="scope.data.isonsale !== 1 && tool.checkAuth($route.name,'isonsale')">恢 复 上 架</el-button>
+            <el-button :disabled="mainData.status == '关闭'"  class="inline-16" type="text" size="mini" @click="productOnsale(scope.data)" v-if="scope.data.isonsale === 1 && tool.checkAuth($route.name,'isonsale')">取 消 上 架</el-button>
+            <el-button :disabled="mainData.status == '关闭'"  class="inline-16" type="text" size="mini" @click="productOnsale(scope.data)" v-if="scope.data.isonsale !== 1 && tool.checkAuth($route.name,'isonsale')">恢 复 上 架</el-button>
           </template>
           <template v-slot:delProduct="scope">
             <el-button :disabled="!isEdit" type="text" size="mini" @click="productDel(scope.data)">删 除</el-button>

+ 3 - 3
vue.config.js

@@ -14,9 +14,9 @@ module.exports = {
       port: 8000,
       proxy: {
         '/apis': {
-          // target: 'http://61.164.207.46:8200/',  // target host*/
-          target: 'http://cucu.cnyunl.com:8008',  // target host*/
-          ws: true,  // proxy websockets 
+          target: 'http://61.164.207.46:8200/',  // target host*/
+          // target: 'http://cucu.cnyunl.com:8008',  // target host*/
+          ws: true,  // proxy websockets
           changeOrigin: true,  // needed for virtual hosted sites
           pathRewrite: {
             '^/apis': ''  // rewrite path

+ 1 - 1
yos/index.html

@@ -1 +1 @@
-<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>yos_manage</title><script defer="defer" type="module" src="js/chunk-vendors.e428fee0.js"></script><script defer="defer" type="module" src="js/app.308c6c9d.js"></script><link href="css/app.fafa1607.css" rel="stylesheet"><script defer="defer" src="js/chunk-vendors-legacy.0beef1e9.js" nomodule></script><script defer="defer" src="js/app-legacy.5e57f35b.js" nomodule></script></head><body><noscript><strong>We're sorry but yos_manage doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body><head><meta http-equiv="pragma" content="no-cache"></head></html>
+<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>yos_manage</title><script defer="defer" type="module" src="js/chunk-vendors.e428fee0.js"></script><script defer="defer" type="module" src="js/app.b6447b9a.js"></script><link href="css/app.fafa1607.css" rel="stylesheet"><script defer="defer" src="js/chunk-vendors-legacy.0beef1e9.js" nomodule></script><script defer="defer" src="js/app-legacy.39b95217.js" nomodule></script></head><body><noscript><strong>We're sorry but yos_manage doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body><head><meta http-equiv="pragma" content="no-cache"></head></html>

+ 0 - 17
yos/index2.html

@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-  <head>
-    <meta charset="UTF-8" />
-    <link rel="icon" type="image/svg+xml" href="./vite.svg" />
-    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <title>楚楚E订单</title>
-    <script type="module" crossorigin src="./assets/index-36df604f.js"></script>
-    <link rel="modulepreload" crossorigin href="./assets/vue-15ee4564.js">
-    <link rel="modulepreload" crossorigin href="./assets/vue-router-0190217c.js">
-    <link rel="stylesheet" href="./assets/index-93f0a7d4.css">
-  </head>
-  <body>
-    <div id="app"></div>
-    
-  </body>
-</html>