Browse Source

拉代码

shaun-sheep 5 years ago
parent
commit
382c4122f4

+ 6 - 5
src/components/business_space/business/handsontable.vue

@@ -6,7 +6,7 @@
         <el-button @click="addZoneBtn">添加分区</el-button>
         <el-select v-model="zoneValue" placeholder="请选择">
           <el-option
-            v-for="item in addZone"
+            v-for="item in zoneList"
             :key="item.value"
             :label="item.label"
             :value="item.value">
@@ -48,7 +48,7 @@
     <qrcode :dialog="dialog" :qrcodeUrl="qrcodeUrl" :addBody="true" ref="qrcode"></qrcode>
     <!--      上传图片-->
     <upload-img-dialog :read="onlyRead" @changeFile="imgChange" :keysArr="imgsArr" :dialog="myDialog"/>
-    <dialogZone ref="zone"/>
+    <dialogZone ref="zone" @addZone="addZone"/>
   </div>
 </template>
 <script>
@@ -74,11 +74,9 @@
     createZone,
     BeatchQueryParam,
     updateRelateInSpAndBuild,
-
   } from "@/api/scan/request";
   import {mapGetters, mapActions} from "vuex";
   import dialogZone from "../../ledger/addDialog/dialogZone";
-  import {getZoneQuery} from "../../../api/scan/request";
 
   export default {
     props: {
@@ -140,7 +138,7 @@
           uploadImgs: false, //上传图片弹窗
         },
         imgsArr: [], //空间图片
-        addZone: [{
+        zoneList: [{
           value: '选项1',
           label: '黄金糕'
         }, {
@@ -719,6 +717,9 @@
       },
       addZoneBtn() {
         this.$refs.zone.dialogFormVisible = true
+      },
+      addZone() {
+
       }
     },
     watch: {

+ 0 - 1
src/components/business_space/newGraphy/graphy.vue

@@ -134,7 +134,6 @@ import {
   getIspNotInSpace,
   createRelateInZoneAndISp,
   groupCreRelaZoneAndISp,
-  getZoneQuery
 } from "@/api/scan/request"
 
 export default {

+ 1 - 0
src/components/ledger/addDialog/dialogZone.vue

@@ -46,6 +46,7 @@
       submitForm(formName) {
         this.$refs[formName].validate((valid) => {
           if (valid) {
+            this.$emit('addZone',this.ruleForm)
             this.dialogFormVisible = false
             this.ruleForm.name = ''
             this.ruleForm.id = ''