qymljy il y a 2 ans
Parent
commit
14f716a162

+ 4 - 3
src/HDrpManagement/projectChange/modules/modules/productSet/index.vue

@@ -2,7 +2,7 @@
 <template>
   <div>
     <div style="margin-bottom: 15px">
-      <add v-if="tool.checkAuth($route.name,'productSetManage') && data.disabled" class="inline-16"  @addSuccess="onSuccess" :discountrate="discountrate"></add>
+      <addProduct v-if="tool.checkAuth($route.name,'productSetManage') && data.disabled" class="inline-16"  @addSuccess="onSuccess" :discountrate="discountrate"></addProduct>
       <el-button  v-if="tool.checkAuth($route.name,'productSetManage') && data.disabled" class="inline-16" size="small" :type="delProductData.length === 0?'':'primary'" @click="onDelProduct" :disabled="delProductData.length === 0">删 除</el-button>
       <el-input
           size="small"
@@ -199,7 +199,8 @@
 </template>
 
 <script>
-import add from './add'
+/*import add from './add'*/
+import addProduct from '@/template/addProduct'
 import edit from "@/HDrpManagement/projectChange/modules/modules/andEnterprise/components/edit";
 import to_del from "@/HDrpManagement/projectChange/modules/modules/andEnterprise/components/toDel";
 import uploadFile from "@/components/upload/hw_obs_upload";
@@ -207,7 +208,7 @@ import previewImage from "@/components/previewImage";
 import delete_product from './deleteProduct'
 export default {
   props:["data"],
-  components:{add,uploadFile, previewImage,delete_product},
+  components:{addProduct,uploadFile, previewImage,delete_product},
   data () {
     return {
       tableHieght:"860px",

+ 55 - 0
src/template/addProduct/index.vue

@@ -0,0 +1,55 @@
+<template>
+  <div>
+    <el-button size="small" type="primary" @click="onShow" >添 加</el-button>
+    <el-drawer
+        title="添加商品"
+        :visible.sync="dialogFormVisible"
+        size="90%"
+        direction="rtl"
+        :show-close="false"
+        append-to-body
+        @close="onClose">
+      <div class="drawer__panel">
+        <div class="flex-align-center flex-between">
+          <el-select v-model="value" placeholder="请选择领域">
+            <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value">
+            </el-option>
+          </el-select>
+        </div>
+      </div>
+    </el-drawer>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "index",
+  data(){
+    return {
+      dialogFormVisible:false,
+
+      options:{
+
+      }
+    }
+  },
+  methods:{
+    onShow(){
+      this.dialogFormVisible = true
+    },
+    onClose(){
+
+    }
+  },
+  mounted() {
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 2 - 2
vue.config.js

@@ -15,8 +15,8 @@ module.exports = {
       proxy: {
         '/apis': {
           // target: 'http://61.164.207.46:8000',  // target host*/
-          //   target: 'http://192.168.3.9:8080',
-          target: 'https://oms.idcgroup.com.cn:8079/',  // target host
+            target: 'http://192.168.3.9:8080',
+          // target: 'https://oms.idcgroup.com.cn:8079/',  // target host
           // target: 'localhost:8080',  // target host
           ws: true,  // proxy websockets 
           changeOrigin: true,  // needed for virtual hosted sites