Browse Source

1. 优化

MONSTER-ygh 1 year ago
parent
commit
0533f099a8

+ 2 - 0
package.json

@@ -43,6 +43,7 @@
     "@riophae/vue-treeselect": "0.4.0",
     "@smallwei/avue": "^3.2.20",
     "@sscfaith/avue-form-design": "^1.5.6",
+    "awe-dnd": "^0.3.4",
     "axios": "0.24.0",
     "beautifier": "^0.1.7",
     "china-area-data": "^5.0.1",
@@ -65,6 +66,7 @@
     "quill": "1.3.7",
     "screenfull": "5.0.2",
     "sortablejs": "1.10.2",
+    "ty-drag-select": "^1.0.42",
     "voca": "^1.4.0",
     "vue": "2.6.12",
     "vue-barcode": "^1.3.0",

+ 9 - 0
src/api/ticketMr/ticketMr.js

@@ -51,3 +51,12 @@ export function getSelectById(id) {
     method: 'get'
   })
 }
+
+// 获取行政区划
+export function basePositionApi(data) {
+  return request({
+    url: '/system/basePosition/pageList',
+    method: 'get',
+    params:data
+  })
+}

+ 7 - 0
src/main.js

@@ -73,6 +73,13 @@ Vue.use(AvueFormDesign)
 Vue.use(designer);
 DictData.install()
 
+import VueDND from 'awe-dnd'
+ 
+Vue.use(VueDND)
+
+import dragSelect from 'ty-drag-select'
+
+Vue.use(dragSelect)
 /**
  * If you don't want to use mock-server
  * you want to use MockJs for mock api

+ 6 - 2
src/views/distribution/detailMr/index.vue

@@ -74,7 +74,11 @@
     <el-table ref="tables" v-loading="loading" :data="dataList" border>
       <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
       <el-table-column label="分销商名称" align="center" prop="personsName" />
-      <el-table-column label="分销商类型" align="center" prop="personType" />
+      <el-table-column label="分销商类型" align="center" prop="personType">
+        <template slot-scope="scope">
+          <dict-tag :options="dict.type.distribution_type" :value="scope.row.personType"/>
+        </template>
+      </el-table-column>
       <el-table-column label="金额(元)" align="center" prop="type">
         <template slot-scope="scope">
           <span v-if="scope.row.balance">¥{{ scope.row.balance }}</span>
@@ -110,7 +114,7 @@ import { pageList, downOrderListXls } from '@/api/distribution/detailsMr'
 import { exportExcel } from '@/utils/exportexcel'
 export default {
   name: "agreement",
-  dicts: ['agreement_type'],
+  dicts: ['distribution_type'],
   data() {
     return {
       // 遮罩层

+ 25 - 3
src/views/distribution/personnelMr/dialog/addAndEdit.vue

@@ -67,7 +67,6 @@
             reserve-keyword
             placeholder="请选择上级分销人员"
             :remote-method="remoteMethod"
-            @change=""
             :loading="parentNameLoading">
             <el-option
               v-for="item in parentNameList"
@@ -149,7 +148,7 @@ export default {
         contact: [{ required: true, message: "请输入负责人", trigger: ["change","blur"] }],
         mobile: [{ required: true, message: "请输入账号/联系电话", trigger: ["change","blur"] }],
         allowWithdraw: [{ required: true, message: "请选择是否可提现", trigger: ["change","blur"] }],
-        parentId: [{ required: true, message: "请选择上级分销人员", trigger: ["change","blur"] }],
+        //parentId: [{ required: true, message: "请选择上级分销人员", trigger: ["change","blur"] }],
         salePerson: [{ required: true, message: "请输入销售人员名称", trigger: ["change","blur"] }],
       },
       uploadObj: {
@@ -186,6 +185,7 @@ export default {
       const id = row.id
       getSelectById(id).then(response => {
         const obj = response.data;
+        this.getList({id:row.parentId})
         this.$nextTick(() => {
           this.$set(this.form, 'id', obj.id);
           this.$set(this.form, 'name', obj.name);
@@ -194,8 +194,11 @@ export default {
           this.$set(this.form, 'mobile', obj.mobile);
           this.$set(this.form, 'allowWithdraw', obj.allowWithdraw);
           this.$set(this.form, 'parentName', obj.parentName);
+          this.$set(this.form, 'parentId', obj.parentId);
+          this.$set(this.form, 'salePerson', obj.salePerson);
         });
       });
+      
     },
     /**
      * 保存
@@ -302,7 +305,26 @@ export default {
           })
           .then(response => {
               this.parentNameLoading = false;
-              this.parentNameList = response.data.rows;
+              this.parentNameList = [].concat(response.data.rows);
+              this.parentNameLoading = false;
+            }
+          ).catch ((error)=>{
+            console.error('error===',error)
+            this.parentNameLoading = false;
+          })
+        } else {
+          this.parentNameList = [];
+        }
+      },
+      getList(query) {
+        if (query !== '') {
+          this.parentNameLoading = true;
+          pageList({
+            ...query
+          })
+          .then(response => {
+              this.parentNameLoading = false;
+              this.parentNameList = [].concat(response.data.rows);
               this.parentNameLoading = false;
             }
           ).catch ((error)=>{

+ 1 - 0
src/views/order/orderMr/index.vue

@@ -312,6 +312,7 @@ export default {
       this.$set(this.queryParams, 'goodsName', '');
       this.$set(this.queryParams, 'performDate', '');
       this.$set(this.queryParams, 'timeSnapshot', '');
+      this.$set(this.queryParams, 'performTimeId', '');
       this.queryParams.pageNum = 1;
       this.handleQuery();
     },

+ 1 - 0
src/views/team/applicationMr/dialog/applicationDetails.vue

@@ -226,6 +226,7 @@ export default {
     getSelectByIdApi(row) {
       const id = row.id
       getSelectById(id).then(response => {
+        this.details = {}
         this.details = response.data;
       });
     },

+ 1 - 0
src/views/team/applicationMr/dialog/orderDetails.vue

@@ -168,6 +168,7 @@ export default {
     getSelectByIdApi(row) {
       const id = row.id
       getOrderDetail(id).then(response => {
+        this.form = {}
         this.form = response.data;
       });
     },

+ 42 - 0
src/views/ticket/ticketMr/dialog/FreightMgrIndexMi.js

@@ -0,0 +1,42 @@
+export default {
+    data() {
+        return {
+            selectDeliveryAreaDialogList:[],
+            getCityDataRequestList:[],
+            currentChargeRegionList:[],
+            currentChargeRegionList:[],
+            getCityDataRequestList:[],
+            currentFilterAreaObj: {},
+            currentEchoedRegions: [],
+            currentAreaIndex: null,
+            selectDeliveryAreaDialogOpen: false,
+            selectDeliveryAreaDialogTitle: '可售区域',
+        }
+    },
+    methods: {
+        /**
+         * 取消查看可配送区域对话框
+         */
+        deliverableAreaDialogCancel() {
+            this.selectDeliveryAreaDialogOpe = true;
+        },
+        /** 关闭弹窗  */
+        selectDeliveryAreaDialogCancel(){
+            this.selectDeliveryAreaDialogOpe = false;
+        },
+        selectDeliveryAreaDialogSubmitForm(){
+            
+        },
+        /**  获取行政区划  */
+        async basePositionFun(upCode) {
+            try {
+                let res = await basePositionApi({upCode})
+                if(res.code == 200) {
+                this.selectDeliveryAreaDialogList = [].concat(res.data.rows)
+                }
+            } catch (error) {
+                
+            }
+        },
+    }
+}

+ 70 - 5
src/views/ticket/ticketMr/dialog/addAndEdit.vue

@@ -31,15 +31,14 @@
             <el-form-item label="实名信息:" prop="isAuth">
               <el-radio v-model="form.isAuth" label="1">全部观影人员均实名</el-radio>
             </el-form-item>
-            <el-form-item label="停止售卖时间:" prop="beforeTime1">
+            <el-form-item label="停止售卖时间:" prop="stopSaleTime">
               <span style="margin-right: 5px">开演前</span>
               <el-input
-                v-model="form.beforeTime1"
-                @change="changePriceAmount('beforeTime1')"
+                v-model="form.stopSaleTime"
                 type="number"
                 placeholder="停止售卖时间"
                 clearable
-                style="width: 120px;"
+                style="width: 180px;"
               >
               </el-input>
               <span style="margin-left: 5px">分钟内<i style="font-size: 12px;margin-left: 5px;">注:必须大于核销时间至少30秒</i></span>
@@ -112,6 +111,10 @@
             <el-form-item label="售票渠道:" required label-width="100px">
               <el-checkbox v-model="form.channelWx">小程序</el-checkbox>
               <el-checkbox v-model="form.channelWindow">窗口</el-checkbox>
+              <el-checkbox v-model="form.channelAutoSale">自助售/取票机</el-checkbox>
+            </el-form-item>
+            <el-form-item label="可售区域:" required label-width="100px">
+              <span @click="deliverableAreaDialogCancel">请选择</span>
             </el-form-item>
           </el-tab-pane>
 
@@ -160,6 +163,47 @@
         <span v-else>保存</span>
       </el-button>
     </span>
+    <!-- 选择配送区域对话框 Start -->
+    <el-dialog
+        :visible.sync="selectDeliveryAreaDialogOpen"
+        :title="selectDeliveryAreaDialogTitle"
+        width="60%"
+        append-to-body
+        class="delivery-area-dialog"
+        @close="selectDeliveryAreaDialogCancel"
+      >
+        <div class="area-container">
+          <el-row>
+            <el-col
+              v-for="(areaItem, areaIndex) in selectDeliveryAreaDialogList"
+              :key="areaItem.areaCode"
+              class="area-wrap"
+              :span="8"
+            >
+              <el-checkbox
+                v-model="areaItem.selected"
+                :label="areaItem.areaName"
+                class="area-wrap-province"
+                @change="handleChangeProvince(areaIndex, areaItem)"
+              >
+                <template #default>
+                  <span
+                    :class="areaItem.hasChildrenSelect ? 'area-province-label' : ''"
+                  >{{ areaItem.name }}</span>
+                </template>
+              </el-checkbox>
+            </el-col>
+          </el-row>
+        </div>
+        <template #footer>
+          <div class="dialog-footer">
+            <el-button @click="selectDeliveryAreaDialogCancel">取 消</el-button>
+            <el-button type="primary" @click="selectDeliveryAreaDialogSubmitForm">确 定</el-button>
+          </div>
+        </template>
+      </el-dialog>
+      <!-- 选择配送区域对话框 End -->
+    <!-- 添加或修改对话框 End -->
   </el-dialog>
 </template>
 
@@ -168,9 +212,23 @@
 import { saveAndEdit, getSelectById } from '@/api/ticketMr/ticketMr'
 import { getToken } from "@/utils/auth";
 import { pageList } from '@/api/performMr/performMr'
+import FreightMgrIndexMi from "./FreightMgrIndexMi"
 export default {
   name: "addAndEdit",
+  mixins: [FreightMgrIndexMi],
   data() {
+    let validateNumber = (rule, value, callback) => {
+      let regNumber=/^(([1-9]\d*)|([0][.]{1}[0-9]{0,2}[0-9]+)|([1-9]\d*[.]{1}[0-9]+))$/g;
+      if (value === '') {
+        callback(new Error('请输入大于等于0的数值!!!'));
+      } else if(value==0){
+        callback();
+      }else if (!regNumber.test(value)) {
+        callback(new Error('只能大于等于0的数值!!!'));
+      } else{
+        callback();
+      }
+    };
     return {
       channelList: [
         {id: 1, name: '小程序', value: 1},
@@ -197,6 +255,10 @@ export default {
       },
       rules: {
         goodsName: [{ required: true, message: "请输入票务名称", trigger: ["change","blur"] }],
+        stopSaleTime: [
+          { required: true, message: "请输入停止售卖时间", trigger: ["change","blur"] },
+          { validator: validateNumber, trigger: ["blur","change"]},
+        ],
         beforeTime: [{ required: true, message: "请输入核销时间", trigger: ["change","blur"] }],
         verificationSpeaker: [{ required: true, message: "请输入核销播报次数", trigger: ["change","blur"] }],
         detail: [{ required: true, message: "请输入票务说明", trigger: ["change","blur"] }],
@@ -270,6 +332,7 @@ export default {
           this.$set(this.form, 'isAuth', '1');
           this.$set(this.form, 'verificationSpeaker', obj.goodsPerform.verificationSpeaker);
           this.$set(this.form, 'beforeTime', obj.goodsPerform.beforeTime);
+          this.$set(this.form, 'stopSaleTime', obj.goodsPerform.stopSaleTime);
           this.$set(this.form, 'detail', obj.goodsPerform.detail);
 
 
@@ -283,6 +346,7 @@ export default {
           }
           this.$set(this.form, 'channelWx', obj.goodsPerform.channelWx == 0);
           this.$set(this.form, 'channelWindow', obj.goodsPerform.channelWindow == 0);
+          this.$set(this.form, 'channelAutoSale', obj.goodsPerform.channelAutoSale == 0);
 
           this.$set(this.form, 'backStatus', obj.goodsPerform.backStatus);
           this.$set(this.form, 'backTime', '1');
@@ -327,12 +391,13 @@ export default {
 
             postMap.salePrice = this.form.salePrice;
             postMap.goodsPerform.buyAstrict = this.form.buyAstrictType == '1' ? this.form.buyAstrict : '-1';
-            if(!(this.form.channelWx || this.form.channelWindow)){
+            if(!(this.form.channelWx || this.form.channelWindow || this.form.channelAutoSale)){
               this.$message.error("请选择销售渠道!");
               return false;
             }
             postMap.goodsPerform.channelWx = this.form.channelWx ? 0 : 1;
             postMap.goodsPerform.channelWindow = this.form.channelWindow  ? 0 : 1;
+            postMap.goodsPerform.channelAutoSale = this.form.channelAutoSale  ? 0 : 1;
             postMap.goodsPerform.backStatus = this.form.backStatus;
             if(this.form.backStatus == '0') {
               postMap.performRefundRule.days = this.form.days;

+ 6 - 0
src/views/ticket/ticketMr/dialog/details.vue

@@ -26,6 +26,12 @@
         <el-col :span="12">
           <div class="grid-content bg-purple item-class">实名信息: <span>全部观影人员均实名</span></div>
         </el-col>
+        <!-- <el-col :span="12">
+          <div class="grid-content bg-purple item-class">停止售卖时间: <span>开演前{{ form.stopSaleTime || '' }}分钟内</span></div>
+        </el-col> -->
+        <el-col :span="12">
+          <div class="grid-content bg-purple item-class">核销时间: <span>开演前{{ form.goodsPerform && form.goodsPerform.beforeTime || '' }}分钟内</span></div>
+        </el-col>
         <el-col :span="12" v-if="form.goodsPerform">
           <div class="grid-content bg-purple item-class">核销播报次数: <span>{{ form.goodsPerform.verificationSpeaker + '次' || '' }}</span></div>
         </el-col>

+ 391 - 0
src/views/venue/performanceHallMr/dialog/seatTemplateEdit copy 2.vue

@@ -0,0 +1,391 @@
+<!--
+ * @Description: 新增/编辑弹框
+ * @Author: Sugar.
+ * @Date: 2023-11-24 13:55:00
+ * @LastEditors: Sugar.
+ * @LastEditTime: 22023-11-24 13:55:00
+ * @FilePath: \cattle_webui\src\views\venue\performanceHallMr\dialog\seatTemplateEdit.vue
+ * @Copyright: Copyright (c) 2016~2023 by Sugar., All Rights Reserved.
+-->
+<template>
+  <el-dialog
+    :title="title"
+    :visible.sync="open"
+    width="90%"
+    append-to-body
+    :close-on-click-modal="false"
+    @close="cancel"
+    :fullscreen="dialogFull"
+    class="ygh-dialog"
+  >
+    <template slot="title">
+        <div class="avue-crud__dialog__header">
+            <span class="el-dialog__title">
+            <span style="display:inline-block;background-color: #3478f5;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px"></span>
+              座位配置
+            </span>
+          <div class="avue-crud__dialog__menu" @click="dialogFull? dialogFull=false: dialogFull=true">
+            <i class="el-icon-full-screen"></i>
+          </div>
+        </div>
+      </template>
+    <div class="dialog">
+      <seatManagementTable />
+    </div>
+    <span slot="footer" class="dialog-footer">
+      <el-button @click="cancel">取消</el-button>
+      <el-button
+        type="primary"
+        @click="submitForm"
+        v-loading.fullscreen.lock="loading"
+        element-loading-text="提交中..."
+        element-loading-spinner="el-icon-loading"
+        element-loading-background="rgba(0, 0, 0, 0.8)"
+      >
+        <span v-if="loading">提交中...</span>
+        <span v-else>保存</span>
+      </el-button>
+    </span>
+  </el-dialog>
+</template>
+
+<script>
+import { pageList } from '@/api/seatTypeMr/seatTypeMr'
+import { seatSaveAndEdit, saveAndEdit, getSelectById } from "@/api/performanceHallMr/performanceHallMr";
+import { getToken } from "@/utils/auth";
+import seatManagementTable from "../model/seatManagementTable"
+export default {
+  name: "seatTemplateEdit",
+  that: this,
+  components: {
+    seatManagementTable
+  },
+  data() {
+    return {
+      title: "编辑",
+      model: "EDIT",
+      activeName: '01',
+      open: false,
+      seatType: false,
+      loading: false,
+      seatWidth: null,
+      seatMap: {
+        row: 0,
+        col: 0,
+      },
+      seatMapRow: '',
+      seatMapCol: '',
+      seatSetMap: {},
+      seatTemplateMap: [],
+      colSeatMap: {},
+      form: {
+        id: undefined,
+        status: "1",
+        content: "",
+      },
+      seatList: [],
+      auditoriumId: '',
+      zoom: 10,
+      boxWidth: '',
+      initWidth: '',
+      moveStatus: false,
+      mouseMap: {},
+      mousemoveMap: {},
+      scrollTop: 0,
+      scrollLeft: 0,
+      scrollEvenTop: 0,
+      scrollEvenLeft: 0,
+      dragStatus: true,
+      canNum: [],
+      unCanNum: [],
+
+      drawForm: {
+        status: '1'
+      },
+      drawDialogType: false,
+      drawRules: {
+        status: [{ required: true, message: "请选择状态", trigger: ["change","blur"] }],
+        seatTypeId: [{ required: true, message: "请选择座位类型", trigger: ["change","blur"] }]
+      },
+
+      dialogFull: false,
+    };
+  },
+  methods: {
+    /**
+     * 打开弹框
+     * @date 2023-11-22
+     * @param {any} obj
+     * @returns {any}
+     */
+    openDialog(title, obj) {
+      this.open = true;
+      this.seatType = false;
+      this.getSeatTypeList();
+      this.colSeatMap = {}
+      this.drawForm = {};
+      this.$set(this.drawForm, 'status', '1')
+      this.boxWidth = 0;
+      this.dragStatus = true;
+      this.$set(this.form, 'status', '1')
+      if (obj){ // 编辑模式
+        this.title = "座位模板";
+        this.auditoriumId = obj.id;
+        this.$set(this.seatMap, 'row', obj.rows);
+        this.$set(this.seatMap, 'col', obj.cols);
+        this.$set(this, 'seatMapRow', obj.rows);
+        this.$set(this, 'seatMapCol', obj.cols);
+
+        this.getSelectByIdApi(obj)
+      }else{ // 新增模式
+        this.seatType = true;
+        this.title = "座位模板";
+        this.$nextTick(() => {
+          this.$refs["form"].clearValidate();
+        });
+      }
+    },
+    /** 获取详情 */
+    getSelectByIdApi(row) {
+      const id = row.id
+      getSelectById(id).then(response => {
+        const dataList = response.data;
+        this.$nextTick(() =>{
+          dataList.forEach(item => {
+            if(item.status == 2){
+              item.color = '#7d7d7e';
+            }
+            this.$set(this.colSeatMap, item.sortId + '_', item);
+          })
+          this.seatType = true;
+        })
+      });
+    },
+    /** 座位类型列表 */
+    getSeatTypeList() {
+      pageList(this.addDateRange({pageNum: 1, pageSize: 100}))
+        .then(response => {
+            this.seatList = response.data.rows;
+          }
+        );
+    },
+    /**
+     * 保存
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    submitForm() {
+      let that = this;
+      this.$refs["form"].validate(async (valid) => {
+        if (valid) {
+          let postList = []
+          for (const codeKey in this.colSeatMap) {
+            postList.push(this.colSeatMap[codeKey])
+          }
+          try {
+            this.loading = true;
+            const { code } = await saveAndEdit({ id: this.auditoriumId, rows: this.seatMap.row, cols: this.seatMap.col });
+            if (code === 200) {
+              let postList = []
+              for (const codeKey in this.colSeatMap) {
+                postList.push(this.colSeatMap[codeKey])
+              }
+              const { code } = await seatSaveAndEdit(postList);
+              if (code === 200) {
+                that.$message.success("操作成功!");
+                that.$emit("getList");
+                that.cancel();
+              }
+            }
+          } catch (error) {
+          } finally {
+            this.loading = false;
+          }
+        }
+      });
+    },
+    /**
+     * 重置
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    reset() {
+      this.$refs["form"].resetFields();
+      this.form.id = undefined;
+    },
+    /**
+     * 关闭弹框
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    cancel() {
+      this.reset();
+      this.open = false;
+    },
+    /**
+     * 上传成功
+     * @date 2023-11-22
+     * @param {any} res
+     * @returns {any}
+     */
+    handleAvatarSuccess(res) {
+      if (res.code === 200) {
+        // this.form.mainImg = res?.data?.url;
+        this.$set(this.form, 'mainImg', res?.data?.url)
+      }
+    },
+    /**
+     * 上传文件之前之前
+     * @date 2023-11-22
+     * @param {any} file
+     * @returns {any}
+     */
+    beforeAvatarUpload(file) {
+      const isJPG = file.type === "image/jpeg" || "image/png";
+      if (!isJPG) {
+        this.$message.error("上传头像图片只能是jpg或png格式!");
+      }
+      return isJPG;
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.dialog {
+  padding: 0 30px;
+  max-height: 75vh;
+  overflow-y: auto;
+}
+.draw-dialog-class{
+  border-radius: 10px;
+  height: 240px;
+  width: 220px;
+  background-color: #fff;
+  position: absolute;
+  z-index: 55;
+  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
+}
+.dialog {
+  padding: 0 30px;
+
+  .title-class{
+    text-align: center;
+    color: #6e6e6e;
+    margin: 10px auto;
+  }
+  .box-top-class{
+    .stage-class{
+      margin: 10px auto;
+      width: 160px;
+      height: 80px;
+      border: 2px solid #7d7d7e;
+      text-align: center;
+      line-height: 80px;
+    }
+  }
+  .box-class ::-webkit-scrollbar{ /*滚动条基本样式,高度*/
+    width:10px;height:10px;
+  }
+  .box-class{
+    width: 100%;
+    height: 500px;
+    border: 2px solid #7d7d7e;
+    border-radius: 4px;
+    padding: 10px;
+
+    .box-bottom-class{
+      //border: 2px solid #5656c2;
+      //margin-top: 15px;
+      //padding-left: 4px;
+
+      .seat-tag{
+        display: inline-block;
+        border: 1px solid #7d7d7e;
+        margin-right: 2px;
+        cursor: pointer;
+        background: url("../../../../assets/images/seat-icon.png") no-repeat;
+        background-size: 100% 100%;
+        position: relative;
+
+        &:hover{
+          opacity: 0.8;
+        }
+      }
+      .seat-p-class{
+        position: absolute;
+        left: 0;
+        top: 0;
+        text-align: center;
+        font-size: 18px;
+        display: inline-block;
+        color: white;
+      }
+    }
+  }
+
+  .upload-btn {
+    width: 100px;
+    height: 100px;
+    background-color: #fbfdff;
+    border: dashed 1px #c0ccda;
+    border-radius: 5px;
+    i {
+      font-size: 30px;
+      margin-top: 20px;
+    }
+    &-text {
+      margin-top: -10px;
+    }
+  }
+  .avatar {
+    cursor: pointer;
+  }
+}
+
+//这里注意:我当前将css样式加载全局上,如果单页添加样式需要每个样式前添加 ‘/deep/’ 修饰符
+
+/*  dialog*/
+.ygh-dialog ::v-deep .el-dialog__header {
+  padding: 16px 20px 15px;
+}
+.el-dialog__headerbtn{
+  top: 15px;
+}
+
+/*dialog header*/
+.el-dialog__header{
+  background: #e3eaed;
+}
+.avue-crud__dialog__header {
+  display: -webkit-box;
+  display: -ms-flexbox;
+  display: flex;
+  -webkit-box-align: center;
+  -ms-flex-align: center;
+  align-items: center;
+  -webkit-box-pack: justify;
+  -ms-flex-pack: justify;
+  justify-content: space-between;
+}
+.el-dialog__title {
+  color: rgba(0,0,0,.85);
+  font-weight: 500;
+  word-wrap: break-word;
+}
+.avue-crud__dialog__menu {
+  padding-right: 20px;
+  float: left;
+}
+.avue-crud__dialog__menu i {
+  color: #909399;
+  font-size: 15px;
+}
+.el-icon-full-screen{
+  cursor: pointer;
+}
+.el-icon-full-screen:before {
+  content: "\e719";
+}
+
+</style>

+ 682 - 0
src/views/venue/performanceHallMr/dialog/seatTemplateEdit copy.vue

@@ -0,0 +1,682 @@
+<!--
+ * @Description: 新增/编辑弹框
+ * @Author: Sugar.
+ * @Date: 2023-11-24 13:55:00
+ * @LastEditors: Sugar.
+ * @LastEditTime: 22023-11-24 13:55:00
+ * @FilePath: \cattle_webui\src\views\venue\performanceHallMr\dialog\seatTemplateEdit.vue
+ * @Copyright: Copyright (c) 2016~2023 by Sugar., All Rights Reserved.
+-->
+<template>
+  <el-dialog
+    :title="title"
+    :visible.sync="open"
+    width="1200px"
+    append-to-body
+    :close-on-click-modal="false"
+    @close="cancel"
+  >
+    <div class="dialog">
+      <el-row>
+        <el-col :span="18" style="padding-right: 15px">
+          <div class="title-class">
+            <el-row>
+              <el-col :span="8" style="padding-right: 15px">
+                <el-input placeholder="请输入" v-model.number="seatMapRow">
+                  <template slot="append">行</template>
+                </el-input>
+              </el-col>
+              <el-col :span="8" style="padding-left: 15px">
+                <el-input placeholder="请输入" v-model.number="seatMapCol">
+                  <template slot="append">列</template>
+                </el-input>
+              </el-col>
+              <el-col :span="8" style="padding-left: 15px">
+                <el-button @click="setRowCol(seatMapRow, seatMapCol)" style="width: 100%;" type="primary">生成模板</el-button>
+              </el-col>
+            </el-row>
+          </div>
+          <div class="box-top-class" style="position:relative;">
+            <div class="stage-class">舞台</div>
+            <el-button :type="!dragStatus ? 'danger' : 'primary'" size="mini" @click="dragEven" style="position: absolute; bottom: 0; right: 0" icon="el-icon-rank">{{dragStatus ? '开始设置' : '关闭设置'}}</el-button>
+          </div>
+          <div class="box-class scroll-container-class"
+               v-if="seatType"
+               @contextmenu.prevent.stop="contextmenuEven"
+               @wheel.prevent="wheelHandle"
+               ref="scrollContainer"
+               style="position: relative; overflow: hidden; padding: 0;"
+               >
+            <!--  画框确定  -->
+            <div class="draw-dialog-class" id="draw-dialog-type" v-show="drawDialogType">
+              <div class="box-class" style="border: none; height: 280px" @wheel.stop="wheelDrawHandle">
+                <el-form :model="drawForm" ref="drawForm" :rules="drawRules" label-width="100px" label-position="top">
+                  <el-form-item label="" prop="status">
+                    <el-radio v-model="drawForm.status" label="1">可售</el-radio>
+                    <el-radio v-model="drawForm.status" label="2">不可售</el-radio>
+                  </el-form-item>
+                  <el-form-item label="" prop="seatTypeId" v-if="drawForm.status == 1">
+                    <el-select
+                      v-model="drawForm.seatTypeId"
+                      placeholder="座位类型"
+                      clearable
+                      style="width: 100%"
+                      @change="seatTypeDrawChange"
+                    >
+                      <el-option
+                        v-for="dict in seatList"
+                        :key="dict.id"
+                        :label="dict.name"
+                        :value="dict.id"
+                      />
+                    </el-select>
+                  </el-form-item>
+                  <el-form-item label="" v-if="drawForm.status == 1">
+                    <el-input
+                      v-model.number="drawForm.priority"
+                      placeholder="座位自动分配优先级"
+                      clearable
+                      style="width: 100%;"
+                    />
+                  </el-form-item>
+                  <el-form-item >
+                    <el-button @click="drawDialogClen">取 消</el-button>
+                    <el-button @click="drawDialogOk" style="float: right" type="primary">确 定</el-button>
+                  </el-form-item>
+                </el-form>
+              </div>
+            </div>
+            <div style="position: relative;">
+              <div class="box-bottom-class scroll-container" style="position: absolute; width: 100%; height: 100%" id="drawBox" v-drag :style="{ width: boxWidth ? boxWidth + 'px' : '100%', height: boxWidth ? boxWidth + 'px' : '100%'}" ref="seatBox" v-if="seatType">
+                <div v-for="row in seatMap.row" :key="row" style="display: inline-block">
+                  <div class="seat-tag"
+                       :id="(((row - 1) * seatMap.col) + index + '_')"
+                       @click.stop="setSeatTemplateMap((((row - 1) * seatMap.col) + index + '_'))"
+                       v-for="(col, index) in seatMap.col"
+                       :key="col"
+                       :style="{
+                       width: seatWidth + 'px',
+                       height: seatWidth + 'px',
+                       backgroundColor: colSeatMap[((row - 1) * seatMap.col) + index + '_'] && colSeatMap[((row - 1) * seatMap.col) + index + '_'].color ? colSeatMap[((row - 1) * seatMap.col) + index + '_'].color : ''}"
+                  >
+                    <div v-if="seatWidth > 160" :style="{paddingTop: (seatWidth / 4) + 'px', width: seatWidth + 'px', height: seatWidth + 'px'}" class="seat-p-class">
+                      <p style="font-size: 16px !important;"><span>{{colSeatMap[((row - 1) * seatMap.col) + index + '_'].name ? colSeatMap[((row - 1) * seatMap.col) + index + '_'].name : (colSeatMap[((row - 1) * seatMap.col) + index + '_'].rowNo + '排' + (colSeatMap[((row - 1) * seatMap.col) + index + '_'].columnNo) + '座')}}</span><span style="font-size: 14px !important;" v-if="colSeatMap[((row - 1) * seatMap.col) + index + '_'].seatLabel">({{colSeatMap[((row - 1) * seatMap.col) + index + '_'].seatLabel}})</span></p>
+                      <p style="font-size: 14px !important;" v-if="colSeatMap[((row - 1) * seatMap.col) + index + '_'].priority">自动分配优先级 <span>({{colSeatMap[((row - 1) * seatMap.col) + index + '_'].priority}})</span></p>
+                    </div>
+                  </div>
+                </div>
+              </div>
+            </div>
+          </div>
+          <div style="margin-top: 5px">
+            总座位数:{{ seatMap.row * seatMap.col || 0}}; 可售数量:<span style="color: #67c23a">{{ canNum.length }}</span>; 不可售数量:<span style="color: #f56c6c">{{ unCanNum.length }}</span>
+          </div>
+        </el-col>
+        <el-col :span="6" style="padding-left: 15px">
+          <div class="title-class">座位设置</div>
+          <div class="box-class" style="height: 540px">
+            <el-form :model="form" ref="form" label-width="100px" label-position="top">
+              <el-form-item label="是否可售">
+                <el-radio v-model="form.status" label="1">可售</el-radio>
+                <el-radio v-model="form.status" label="2">不可售</el-radio>
+              </el-form-item>
+              <el-form-item label="座位类型">
+                <el-select
+                  v-model="form.seatTypeId"
+                  placeholder="座位类型"
+                  clearable
+                  style="width: 100%"
+                  @change="seatTypeChange"
+                >
+                  <el-option
+                    v-for="dict in seatList"
+                    :key="dict.id"
+                    :label="dict.name"
+                    :value="dict.id"
+                  />
+                </el-select>
+              </el-form-item>
+              <el-form-item label="座位自动分配优先级">
+                <el-input
+                  v-model.number="form.priority"
+                  placeholder="优先级"
+                  clearable
+                  style="width: 100%;"
+                />
+              </el-form-item>
+              <el-form-item label="自定义座位名">
+                <el-input
+                  v-model="form.name"
+                  placeholder="自定义座位名"
+                  clearable
+                  style="width: 100%;"
+                />
+              </el-form-item>
+
+              <el-form-item >
+                <el-button @click="setSeatMap" style="width: 100%; margin-top: 20px" type="primary">确 定</el-button>
+              </el-form-item>
+            </el-form>
+          </div>
+        </el-col>
+      </el-row>
+    </div>
+    <span slot="footer" class="dialog-footer">
+      <el-button @click="cancel">取消</el-button>
+      <el-button
+        type="primary"
+        @click="submitForm"
+        v-loading.fullscreen.lock="loading"
+        element-loading-text="提交中..."
+        element-loading-spinner="el-icon-loading"
+        element-loading-background="rgba(0, 0, 0, 0.8)"
+      >
+        <span v-if="loading">提交中...</span>
+        <span v-else>保存</span>
+      </el-button>
+    </span>
+  </el-dialog>
+</template>
+
+<script>
+import { pageList } from '@/api/seatTypeMr/seatTypeMr'
+import { seatSaveAndEdit, saveAndEdit, getSelectById } from "@/api/performanceHallMr/performanceHallMr";
+import { getToken } from "@/utils/auth";
+export default {
+  name: "seatTemplateEdit",
+  that: this,
+  data() {
+    return {
+      title: "编辑",
+      model: "EDIT",
+      activeName: '01',
+      open: false,
+      seatType: false,
+      loading: false,
+      seatWidth: null,
+      seatMap: {
+        row: 0,
+        col: 0,
+      },
+      seatMapRow: '',
+      seatMapCol: '',
+      seatSetMap: {},
+      seatTemplateMap: [],
+      colSeatMap: {},
+      form: {
+        id: undefined,
+        status: "1",
+        content: "",
+      },
+      seatList: [],
+      auditoriumId: '',
+      zoom: 10,
+      boxWidth: '',
+      initWidth: '',
+      moveStatus: false,
+      mouseMap: {},
+      mousemoveMap: {},
+      scrollTop: 0,
+      scrollLeft: 0,
+      scrollEvenTop: 0,
+      scrollEvenLeft: 0,
+      dragStatus: true,
+      canNum: [],
+      unCanNum: [],
+
+      drawForm: {
+        status: '1'
+      },
+      drawDialogType: false,
+      drawRules: {
+        status: [{ required: true, message: "请选择状态", trigger: ["change","blur"] }],
+        seatTypeId: [{ required: true, message: "请选择座位类型", trigger: ["change","blur"] }]
+      },
+    };
+  },
+  methods: {
+    drawDialogClen() {
+      let drawDialog = document.getElementById("draw-dialog-type");
+      drawDialog.style.display = "none";
+      let drawDiv = document.getElementById("drawDiv");
+      drawDiv.remove();
+
+      this.$forceUpdate();
+    },
+    // 画框座位设置
+    drawDialogOk() {
+      this.$refs["drawForm"].validate(async (valid) => {
+        if (valid) {
+          let drawDialog = document.getElementById("drawDiv");
+          // 获取div元素的坐标点
+          let rect = drawDialog.getBoundingClientRect();
+          let P_div = document.getElementById("drawBox");
+
+          let P_div_list = P_div.children; // 获取行子集
+          let select_div = [];
+          // 循环判断是否在选择框里
+          for (let i = 0; i < P_div_list.length; i++) {
+            if(P_div_list[i] && P_div_list[i].childNodes) {
+              let child_div = P_div_list[i].children
+              for (let j = 0; j <child_div.length; j++) {
+                let rect_div = child_div[j].getBoundingClientRect();
+                if(rect.top < (rect_div.top + rect_div.height) && rect.bottom > (rect_div.bottom - rect_div.height) &&
+                  rect.left < (rect_div.left + rect_div.width) && rect.right > (rect_div.right - rect_div.width)) {
+                  select_div.push(child_div[j].getAttribute("id"));
+                }
+              }
+            }
+          }
+          for (let i = 0; i < select_div.length; i++) {
+            this.setSeatDrawMap(select_div[i]);
+          }
+          this.drawDialogClen()
+        }
+      });
+    },
+    // 画框座位放置参数
+    setSeatDrawMap(key) {
+      let map = this.colSeatMap[key];
+      map.status = this.drawForm.status;
+      map.color = this.drawForm.seat ? this.drawForm.seat.color : '';
+      map.seatTypeId = this.drawForm.seat ? this.drawForm.seat.id : '';
+      map.seatLabel = this.drawForm.seat ? this.drawForm.seat.name : '';
+      map.name = "";
+      map.priority = this.drawForm.priority;
+
+      if(this.drawForm.status == 2) {
+        map.color = '#7d7d7e';
+        map.seatTypeId = '';
+        map.seatLabel = '';
+      }
+      this.$set(this.colSeatMap, key, map);
+      this.countNum();
+      this.$forceUpdate()
+    },
+    // 鼠标滚动
+    wheelHandle(e) {
+      if(e.wheelDelta > 0){
+        this.seatWidth = Math.trunc(this.seatWidth + 10);
+      } else {
+        if(this.initWidth > this.seatWidth + 5){
+          // this.seatWidth = this.initWidth;
+        } else {
+          this.seatWidth = Math.trunc(this.seatWidth -10)
+        }
+      }
+      this.boxWidth = this.seatWidth * this.seatMap.col + 100;
+      // this.seatWidth = (this.seatWidth + this.zoom);
+      this.$forceUpdate();
+    },
+    wheelDrawHandle(e) {
+      if(e.preventDefault){
+        e.preventDefault()
+      } else {
+        e.returnValue = false
+      }
+      return false
+    },
+    contextmenuEven(e) {
+      return false;
+    },
+    dragEven(){
+      this.dragStatus = !this.dragStatus;
+    },
+    /**
+     * 打开弹框
+     * @date 2023-11-22
+     * @param {any} obj
+     * @returns {any}
+     */
+    openDialog(title, obj) {
+      this.open = true;
+      this.seatType = false;
+      this.getSeatTypeList();
+      this.colSeatMap = {}
+      this.drawForm = {};
+      this.$set(this.drawForm, 'status', '1')
+      this.boxWidth = 0;
+      this.dragStatus = true;
+      this.$set(this.form, 'status', '1')
+      if (obj){
+        this.title = "座位模板";
+        this.auditoriumId = obj.id;
+        this.$set(this.seatMap, 'row', obj.rows);
+        this.$set(this.seatMap, 'col', obj.cols);
+        this.$set(this, 'seatMapRow', obj.rows);
+        this.$set(this, 'seatMapCol', obj.cols);
+
+        this.getSelectByIdApi(obj)
+      }else{
+        this.seatType = true;
+        this.title = "座位模板";
+        this.$nextTick(() => {
+          this.$refs["form"].clearValidate();
+        });
+      }
+    },
+    /** 获取详情 */
+    getSelectByIdApi(row) {
+      const id = row.id
+      getSelectById(id).then(response => {
+        const dataList = response.data;
+        this.$nextTick(() =>{
+          dataList.forEach(item => {
+            if(item.status == 2){
+              item.color = '#7d7d7e';
+            }
+            this.$set(this.colSeatMap, item.sortId + '_', item);
+          })
+          this.seatType = true;
+          this.$nextTick(() =>{
+            this.boxWidth = this.$refs.seatBox.offsetWidth;
+            this.seatWidth = ((this.$refs.seatBox.offsetWidth - 10 - (this.seatMap.col * 2))/this.seatMap.col);
+            this.initWidth = Math.trunc((this.$refs.seatBox.offsetWidth - 10 - (this.seatMap.col * 2))/this.seatMap.col);
+          })
+          this.countNum();
+        })
+      });
+    },
+    /** 设置座位模板行列 */
+    setRowCol(row, col) {
+      if(!row || !col){
+        this.$message.error("请输入行和列!");
+        return false;
+      }
+      if(row <= 0 || col <= 0){
+        this.$message.error("请输入大于0的行和列!");
+        return false;
+      }
+      if(this.colSeatMap) {
+        this.$confirm('此操作将重置座位模板, 是否继续?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }).then(() => {
+          this.seatMap.row = row;
+          this.seatMap.col = col;
+          this.seatType = false;
+          this.seatType = true;
+          this.colSeatMap  = {}
+          let index = 0;
+          for (let i = 1; i < this.seatMap.row + 1; i++) {
+            for (let j = this.seatMap.col; j > 0; j--) {
+              let rowColMap = {
+                "auditoriumId": this.auditoriumId,
+                "name": "",
+                "rowNo": i,
+                "sortId": index,
+                "columnNo": j,
+                "seatTypeColor": '#fdfdfd',
+                "seatTypeId": "",
+                "seatLabel": "",
+                "priority": "",
+                "status": 2
+              };
+              this.$set(this.colSeatMap, index + '_', rowColMap);
+              index ++;
+            }
+          }
+          this.$nextTick(() =>{
+            this.boxWidth = this.$refs.seatBox.offsetWidth;
+            this.seatWidth = ((this.$refs.seatBox.offsetWidth - 10 - (this.seatMap.col * 2))/this.seatMap.col);
+            this.initWidth = Math.trunc((this.$refs.seatBox.offsetWidth - 10 - (this.seatMap.col * 2))/this.seatMap.col);
+          })
+          this.countNum();
+        }).catch(() => {
+
+        });
+      }
+    },
+    /** 座位类型列表 */
+    getSeatTypeList() {
+      pageList(this.addDateRange({pageNum: 1, pageSize: 100}))
+        .then(response => {
+            this.seatList = response.data.rows;
+          }
+        );
+    },
+    /** 座位类型选择事件 */
+    seatTypeChange(val) {
+      this.$set(this.form, 'priority', '');
+      this.$set(this.form, 'name', '');
+      this.seatList.forEach(item => {
+        if(val == item.id){
+          this.form.seat = item
+        }
+      })
+    },
+    /** 画框座位类型选择事件 */
+    seatTypeDrawChange(val) {
+      this.$set(this.drawForm, 'priority', '');
+      this.seatList.forEach(item => {
+        if(val == item.id){
+          this.drawForm.seat = item
+        }
+      })
+    },
+    /** 座位设置确认事件 */
+    setSeatMap() {
+      this.seatSetMap = {};
+      this.seatSetMap.status = this.form.status;
+      this.seatSetMap.color = this.form.seat.color;
+      this.seatSetMap.seatTypeId = this.form.seat.id;
+      this.seatSetMap.seatLabel = this.form.seat.name;
+      this.seatSetMap.name = this.form.name;
+      this.seatSetMap.priority = this.form.priority;
+
+      if(this.seatSetMap.status == 2) {
+        this.seatSetMap.color = '#7d7d7e';
+        this.seatSetMap.seatTypeId = '';
+        this.seatSetMap.seatLabel = '';
+      }
+    },
+
+    // 计算可售和不可售数量
+    countNum() {
+      this.canNum = [];
+      this.unCanNum = [];
+      if(this.colSeatMap) {
+        for (const key in this.colSeatMap) {
+          if(this.colSeatMap[key].status == 2 || !this.colSeatMap[key].status){
+            this.unCanNum.push(key)
+          } else if (this.colSeatMap[key].status == 1) {
+            this.canNum.push(key)
+          }
+        }
+      }
+    },
+
+    // 点击座位放置参数
+    setSeatTemplateMap(key) {
+      if(this.dragStatus){
+        return false
+      }
+      if(!this.seatSetMap.status){
+        this.seatSetMap.color = '#7d7d7e';
+      }
+      let map = this.colSeatMap[key];
+      map.status = this.seatSetMap.status;
+      map.color = this.seatSetMap.color;
+      map.seatTypeId = this.seatSetMap.seatTypeId;
+      map.seatLabel = this.seatSetMap.seatLabel;
+      map.name = this.seatSetMap.name;
+      map.priority = this.seatSetMap.priority;
+      this.$set(this.colSeatMap, key, map);
+      this.countNum();
+      this.$forceUpdate()
+    },
+    /**
+     * 保存
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    submitForm() {
+      let that = this;
+      this.$refs["form"].validate(async (valid) => {
+        if (valid) {
+          let postList = []
+          for (const codeKey in this.colSeatMap) {
+            postList.push(this.colSeatMap[codeKey])
+          }
+          try {
+            this.loading = true;
+            const { code } = await saveAndEdit({ id: this.auditoriumId, rows: this.seatMap.row, cols: this.seatMap.col });
+            if (code === 200) {
+              let postList = []
+              for (const codeKey in this.colSeatMap) {
+                postList.push(this.colSeatMap[codeKey])
+              }
+              const { code } = await seatSaveAndEdit(postList);
+              if (code === 200) {
+                that.$message.success("操作成功!");
+                that.$emit("getList");
+                that.cancel();
+              }
+            }
+          } catch (error) {
+          } finally {
+            this.loading = false;
+          }
+        }
+      });
+    },
+    /**
+     * 重置
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    reset() {
+      this.$refs["form"].resetFields();
+      this.form.id = undefined;
+    },
+    /**
+     * 关闭弹框
+     * @date 2023-11-22
+     * @returns {any}
+     */
+    cancel() {
+      this.reset();
+      this.open = false;
+    },
+    /**
+     * 上传成功
+     * @date 2023-11-22
+     * @param {any} res
+     * @returns {any}
+     */
+    handleAvatarSuccess(res) {
+      if (res.code === 200) {
+        // this.form.mainImg = res?.data?.url;
+        this.$set(this.form, 'mainImg', res?.data?.url)
+      }
+    },
+    /**
+     * 上传文件之前之前
+     * @date 2023-11-22
+     * @param {any} file
+     * @returns {any}
+     */
+    beforeAvatarUpload(file) {
+      const isJPG = file.type === "image/jpeg" || "image/png";
+      if (!isJPG) {
+        this.$message.error("上传头像图片只能是jpg或png格式!");
+      }
+      return isJPG;
+    },
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.dialog {
+  padding: 0 30px;
+  max-height: 75vh;
+  overflow-y: auto;
+}
+.draw-dialog-class{
+  border-radius: 10px;
+  height: 240px;
+  width: 220px;
+  background-color: #fff;
+  position: absolute;
+  z-index: 55;
+  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
+}
+.dialog {
+  padding: 0 30px;
+
+  .title-class{
+    text-align: center;
+    color: #6e6e6e;
+    margin: 10px auto;
+  }
+  .box-top-class{
+    .stage-class{
+      margin: 10px auto;
+      width: 160px;
+      height: 80px;
+      border: 2px solid #7d7d7e;
+      text-align: center;
+      line-height: 80px;
+    }
+  }
+  .box-class ::-webkit-scrollbar{ /*滚动条基本样式,高度*/
+    width:10px;height:10px;
+  }
+  .box-class{
+    width: 100%;
+    height: 500px;
+    border: 2px solid #7d7d7e;
+    border-radius: 4px;
+    padding: 10px;
+
+    .box-bottom-class{
+      //border: 2px solid #5656c2;
+      //margin-top: 15px;
+      //padding-left: 4px;
+
+      .seat-tag{
+        display: inline-block;
+        border: 1px solid #7d7d7e;
+        margin-right: 2px;
+        cursor: pointer;
+        background: url("../../../../assets/images/seat-icon.png") no-repeat;
+        background-size: 100% 100%;
+        position: relative;
+
+        &:hover{
+          opacity: 0.8;
+        }
+      }
+      .seat-p-class{
+        position: absolute;
+        left: 0;
+        top: 0;
+        text-align: center;
+        font-size: 18px;
+        display: inline-block;
+        color: white;
+      }
+    }
+  }
+
+  .upload-btn {
+    width: 100px;
+    height: 100px;
+    background-color: #fbfdff;
+    border: dashed 1px #c0ccda;
+    border-radius: 5px;
+    i {
+      font-size: 30px;
+      margin-top: 20px;
+    }
+    &-text {
+      margin-top: -10px;
+    }
+  }
+  .avatar {
+    cursor: pointer;
+  }
+}
+</style>

+ 961 - 0
src/views/venue/performanceHallMr/model/seatManagementTable.vue

@@ -0,0 +1,961 @@
+<template>
+    <div class="sm">
+        <div style="width: 1300px;">
+            <div style="display: flex;align-items: center;">
+                <span style="margin-right: 5px;font-size: 14px;">放大/缩小:</span> 
+                <div style="width: 100px;">
+                    <el-slider input-size="mini" v-model="whNum" :min="16" :max="60"></el-slider>
+                </div>
+            </div>
+            <div>
+
+            </div>
+        </div>
+        <div class="sm-box">
+            <div class="sm-scroll-box">
+                <el-table
+                    v-dragSelect="{
+                        selectClass: ['.row-item'],
+                        change: dragSelectChange,
+                        lostItem: dragLostItemChange,
+                        reSelect: reSelect
+                    }"
+                    :data="tableData"
+                    width="100%"
+                    height="100%"
+                    ref="table" 
+                    row-key="id"
+                    class="exchange_table"
+                    :style="{
+                        '--row-w': whNum+'px',
+                        '--row-h': whNum+'px',
+                    }"
+                    :data-source="ranking_goods"
+                    :cell-class-name="tableCellClassName"
+                    @cell-dblclick="cellDblclick"
+                    
+                    >
+                        <el-table-column 
+                        type="index"
+                        fixed=left
+                        label="#"
+                        align="center"
+                        v-if="tableHeader.length!=0"
+                        :width="50">
+                            <template slot-scope="scope">
+                                <span>{{ scope.$index + 1 }}#</span>
+                            </template>
+                        </el-table-column>
+                        <el-table-column
+                        v-for="(item,index) in tableHeader"
+                        :prop="item.key"
+                        :label="item.title"
+                        :width="((whNum+7.5)*item.length)+'px'"
+                        align="center"
+                        >
+                        <template slot-scope="scope">
+                            <div class="row-item-box" :style='{display: "flex",flexWrap: "nowrap",justifyContent: item.align}'>
+                                <div 
+                                class="row-item"
+                                v-for="(item1,index1) in scope.row[item.key]" 
+                                :key="item1.id"
+                                dragSelectType="div"
+                                :dragSelectId="item1.id"
+                                >
+                                    <i style="line-height: 15px;">{{ item1.colNo }}</i>
+                                    <i style="line-height: 15px;">{{ item1.seatNo }}</i>
+                                    <i style="line-height: 15px;">vip</i>
+                                </div>
+                            </div>
+                        </template>
+                        </el-table-column>
+                </el-table>
+            </div>
+            <!--  编辑页  -->
+            <div class="table-tool">
+                <div class="table-tool-tab">
+                    <el-tabs 
+                    v-model="activeName" 
+                    @tab-click="handleClick">
+                        <el-tab-pane label="创建区域" name="first"></el-tab-pane>
+                        <el-tab-pane label="座位管理" name="second"></el-tab-pane>
+                        <el-tab-pane label="批量处理" name="second"></el-tab-pane>
+                    </el-tabs>
+                </div>
+                <div 
+                v-if="activeName == 'first'"
+                class="qu-first-box">
+                    <div class="qu-first-form">
+                        <el-form :model="ruleForm" size="mini" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
+                            <el-form-item label="座位总排数">
+                                <el-input v-model="rowAll">
+                                    <el-button slot="append" @click="createTableList">创建排数</el-button>
+                                </el-input>
+                            </el-form-item>
+                            <el-form-item label="区域名称" prop="name">
+                                <el-input v-model="ruleForm.name"></el-input>
+                            </el-form-item>
+                            <el-form-item label="座位排练" prop="region">
+                                <el-select v-model="ruleForm.region" placeholder="请选择座位排练">
+                                    <el-option label="靠左" value="flex-start"></el-option>
+                                    <el-option label="居中" value="center"></el-option>
+                                    <el-option label="靠右" value="flex-end"></el-option>
+                                </el-select>
+                            </el-form-item>
+                            <el-form-item>
+                                <el-button size="mini" type="primary" @click="submitForm('ruleForm')">创建区域</el-button>
+                                <el-button size="mini" @click="resetForm('ruleForm')">重置</el-button>
+                            </el-form-item>
+                        </el-form>
+                    </div>
+                    <div class="qu-first-info">
+                        <div class="qu-first-info-title">
+                            <span>已创建的区域</span>
+                            <span>(注:从左至右排序如下)</span>
+                        </div> 
+                        <div class="qu-first-info-list">
+                            <transition-group>
+                                <div 
+                                class="qu-first-info-item"
+                                v-for="(item,index) in tableHeader"
+                                :key="index"
+                                v-dragging="{item: item, list:tableHeader}"
+                                >
+                                    <span>{{ item.title }}</span>
+                                    <div>
+                                        <span>编辑</span>
+                                        <span>删除</span>
+                                    </div>
+                                </div>
+                            </transition-group>
+                            
+                        </div>
+                    </div>
+                </div>
+                
+                <div v-if="activeName == 'second'" class="qu-second-box">
+                    <div class="qu-second-select">
+                        <span>当前选择的是:</span> 
+                        <span v-if="currentRow">{{ currentRow }}排</span>
+                        <span v-if="currentRow">--</span>  
+                        <span v-if="currentLabel">{{ currentLabel }}区</span>  
+                    </div>
+                    <div class="qu-second-form">
+                        <el-form :model="ruleForm1" size="mini" :rules="rules1" ref="ruleForm1" label-width="80px" class="demo-ruleForm">
+                            <el-form-item label="创建方式" prop="resource">
+                                <el-radio-group v-model="ruleForm1.resource">
+                                    <el-radio :label="1">单个</el-radio>
+                                    <el-radio :label="2">批量</el-radio>
+                                </el-radio-group>
+                            </el-form-item>
+                            <el-form-item label="座位类型" prop="region">
+                                <el-select v-model="ruleForm1.region" placeholder="请选择座位排练">
+                                    <el-option label="普通坐" value="qutong"></el-option>
+                                    <el-option label="VIP坐" value="VIP"></el-option>
+                                    <el-option label="老人坐" value="old"></el-option>
+                                </el-select>
+                            </el-form-item>
+                            <el-form-item label="座位名称" prop="name">
+                                <el-input v-model="ruleForm1.name"></el-input>
+                            </el-form-item>
+                            <el-form-item style="margin-bottom: 0px"  v-if="ruleForm1.resource == 2 " label="座位区间" prop="name">
+                                <div style="display: flex;">
+                                    <el-form-item label="" label-width="0" prop="name">
+                                        <el-input v-model="ruleForm1.colMin" placeholder="最小座位号"></el-input>
+                                    </el-form-item>
+                                    <span style="white-space: nowrap;">--</span>
+                                    <el-form-item label="" prop="name">
+                                        <el-input v-model="ruleForm1.colMax"  placeholder="最大座位号"></el-input>
+                                    </el-form-item>
+                                </div>
+                            </el-form-item>
+                            
+                            <el-form-item>
+                                <el-button size="mini" type="primary" @click="submitForm1('ruleForm1')">创建座位</el-button>
+                                <el-button size="mini" @click="resetForm1('ruleForm1')">重置</el-button>
+                            </el-form-item>
+                        </el-form>
+                    </div>  
+                    <div class="qu-second-info">
+                        <div class="qu-second-info-title">
+                            <span>该区已创建的座位</span>
+                            <span>(注:从左至右排序如下)</span>
+                        </div> 
+                        <div class="qu-second-info-list">
+                            <div 
+                            class="qu-second-info-item"
+                            v-for="(item,index) in currentTabelList">
+                                <span>{{ item.seatNo }}</span>
+                            </div>
+                        </div>
+                    </div>                 
+                </div>
+            </div>
+        </div>
+    </div>
+</template>
+ 
+<script>
+import Sortable from "sortablejs";
+import dragSelect from 'ty-drag-select';
+export default {
+    name: 'sysIndex',
+    components: {},
+    data() {
+        return {
+            // 页面渲染的数据
+            seatList: [],
+            // 后端返回的数据
+            arrList: [
+                {
+                    id: 1,
+                    seatNo: '1排1座',
+                    status: 'N',
+                    rowNo: '1',
+                    colNo: '1',
+                    sort: '0'
+                }
+            ],
+            tableHeader: [
+                // { title: '左1',key: 'zuo',align: 'flex-end' },
+                // { title: '过道2',key: 'zuo11',align: 'center' },
+                // { title: '中3',key: 'zhong',align: 'center' },
+                // { title: '过道4',key: 'zuo22',align: 'center' },
+                // { title: '右5',key: 'you',align: 'flex-start' },
+                // { title: '右6',key: 'you',align: 'flex-start' },
+                // { title: '右7',key: 'you',align: 'flex-start' },
+
+                // { title: '右8',key: 'you',align: 'flex-start' },
+                // { title: '右9',key: 'you',align: 'flex-start' },
+            ],
+            tableData: [],
+            widthAll: '100%',
+            heightAll: '100%',
+            width: 26,
+            height: 26,
+            spacing: 10,
+            whNum: 26,
+
+
+            sortable: null,
+            ranking_goods: [],
+
+            
+            // tool
+            rowAll: null,
+            activeName: 'second',
+            
+            // 创建区域
+            ruleForm: {},
+            rules: {
+                name: [
+                    { required: true, message: '请输入活动名称', trigger: ['blur','change'] }
+                ],
+                region: [
+                    { required: true, message: '请选择活动区域', trigger: ['blur','change'] }
+                ],
+            },
+            // 创建座位
+            ruleForm1: {
+                name: '${row}排${col}座'
+            },
+            rules1: {
+                resource: [
+                    { required: true, message: '请选择创建方式', trigger: ['blur','change'] }
+                ],
+                name: [
+                    { required: true, message: '请选择座位名称', trigger: ['blur','change'] }
+                ],
+                region: [
+                    { required: true, message: '请输入座位类型', trigger: ['blur','change'] }
+                ],
+            },
+            currentRow: null, // 当前选择的单元格行
+            currentRegion: null, // 当前选择的单元格列
+            currentLabel: null, // 当前选择的单元格列 名称
+            currentProperty: null, // 当前选择的key
+            currentTabelList: [], // 当前单元格的座位列表
+        };
+    },
+    mounted() {
+        //this.initData()
+        // this.initDataCopy()
+        // setTimeout(() => {
+        //   let tbody = document.getElementsByClassName('exchange_table')[0].getElementsByTagName('tbody');
+        //   tbody[0] && (tbody[0].className += ' box-table');
+        //   this.initSortTable();
+        // }, 1000)
+        // 拖拽事件
+        this.columnDrop() 
+
+        this.$dragging.$on("dragged", (result) => {
+            // 将排序后的结果重新赋值
+            this.tableHeader = [].concat(JSON.parse(JSON.stringify(result.value.list)))
+        });
+
+    },
+    methods: {
+        //初始化排序
+        initSortTable() {
+            let that = this;
+            this.sortable = new Sortable(document.getElementsByClassName('box-table')[0], {
+            animation: 150,
+            handle: '.drag-btn',
+            onEnd: (e) => {
+                // 获取排序之后的data数据
+                that.ranking_goods.splice(e.newIndex, 0, that.ranking_goods.splice(e.oldIndex, 1)[0]);
+                var newArray = that.ranking_goods.slice(0);
+                that.ranking_goods = []
+                that.$nextTick(function () {
+                that.ranking_goods = newArray
+                })
+            }
+            })
+
+        },
+        /**  生成座位  */
+        initDataCopy() {
+            let row = 20
+            let col = 46
+            let list = []
+            let listCopy = []
+
+            this.widthAll = this.spacing * col + this.width * col
+            this.height = this.spacing * row + this.height * row
+            for(let i = 1;i <= row;i++) {
+                if(i==1){
+                    col = 19
+                }else if(i==10){
+                    col = 30
+                }else {
+                    col = 46
+                }
+                for(let j = 1;j <= col;j++) {
+                    let key = ''
+                    if(j<=10){
+                        key = this.tableHeader[0].key
+                    }else if(j>10&&j<=40) {
+                        key = this.tableHeader[2].key
+                    }else{
+                        key = this.tableHeader[4].key
+                    }
+                    list.push({
+                        id: i+'_'+j,
+                        seatNo: `${i}排${j}座`,
+                        status: 'Y',
+                        rowNo: i,
+                        colNo: j,
+                        key,
+                        sort: j,
+                    })
+                }
+            }
+            this.seatList = [].concat(list)
+
+            console.log("this.seatList ==",this.seatList)
+
+            this.dateSet()
+        },
+
+        /** 设置数据 -- 为自己想要的数据 */
+        dateSet(){
+            let tableList = []
+            let list = []
+
+            //  归类
+            let row = 20
+            let list_1 = []
+            let list_1_1 = []
+            for(let i = 1; i<=row;i++) {
+                list_1_1 = []
+                for(let j = 0;j < this.seatList.length;j++) {
+                    if(i == this.seatList[j].rowNo){
+                        list_1_1.push(JSON.parse(JSON.stringify(this.seatList[j])))
+                    }
+                }
+                list_1.push([].concat(list_1_1))
+            }
+            console.log("归类===",list_1)
+
+            //  每排分区归类
+            let list_2 = []
+            let list_2_1 = {} // 每一排
+            let list_2_2= []
+            let tableheader = JSON.parse(JSON.stringify(this.tableHeader))
+            for(let k = 0;k < row;k++) {
+                list_2_1 = {}
+                for(let i = 0; i < tableheader.length;i++) {
+                    tableheader[i]['width'] = 1
+                    list_2_2 = []
+                    for(let j = 0;j < list_1[k].length;j++) {
+                        if(tableheader[i].key == list_1[k][j].key){
+                            list_2_2.push(JSON.parse(JSON.stringify(list_1[k][j])))
+                        }
+                    }
+                    if(list_2_2.length>tableheader[i]['width']) {
+                        tableheader[i]['width'] = list_2_2.length
+                    }
+                    list_2_1[tableheader[i].key] = [].concat(list_2_2)
+                }
+                list_2.push(JSON.parse(JSON.stringify(list_2_1)))
+            }
+            console.log("每排分区归类===",list_2)
+            console.log("表头1===",tableheader)
+            //this.$set(this,"tableHeader",JSON.parse(JSON.stringify(tableheader)))
+            this.tableHeader = [].concat(JSON.parse(JSON.stringify(tableheader))) 
+            console.log("表头===",this.tableHeader)
+            this.tableData = [].concat(list_2)
+        },
+
+
+        initData(){
+            // 找到行的最大值
+            const rowMax = this.findObjInArrMax(this.arrList, 'rowNo', true);
+            // 找到列的最大值
+            const colMax = this.findObjInArrMax(this.arrList, 'colNo', true);
+            const rowNoMax = parseInt(rowMax.rowNo) + 1;
+            const colNoMax = parseInt(colMax.colNo) + 1;
+            // 将一维数组装成二维数组
+            let list = [];
+            for (var index = 0; index < rowNoMax; index++) {
+                list[index] = [];
+                for (var index1 = 0; index1 < colNoMax; index1++) {
+                    list[index][index1] = {};
+                }
+            }
+            // 后端返回的数据组合到二维数组里面
+            list.forEach((item1, index1) => {
+                item1.forEach((item2, index2) => {
+                    this.arrList.forEach((item, index) => {
+                        item.isCheck = false;
+                        list[item.rowNo][item.colNo] = item;
+                    });
+                });
+            });
+            console.log('list', list);
+            this.seatList = list;
+        },
+        // 点击座位表
+        seatClk(item) {
+            // 如果是可以选择,而且没有选中状态
+            if (item.status === 'Y' && !item.isCheck) {
+                item.isCheck = true;
+            } else if (item.status === 'Y' && item.isCheck) {
+                item.isCheck = false;
+            }
+            console.log(item);
+            this.$forceUpdate();
+        },
+        // 找到数组对象中的最大值
+        findObjInArrMax(list, atr, returnVal) {
+            let res = Math.max.apply(
+                Math,
+                list.map((item) => {
+                    return item[atr];
+                })
+            );
+            if (returnVal) {
+                return list.filter((item) => {
+                    return item[atr] == res;
+                })[0];
+            } else {
+                return res;
+            }
+        },
+        // 找到数组对象中的最小值
+        findObjInArrMin(list, atr, returnVal) {
+            let res = Math.min.apply(
+                Math,
+                list.map((item) => {
+                    return item[atr];
+                })
+            );
+            if (returnVal) {
+                return list.filter((item) => {
+                    return item[atr] == res;
+                })[0];
+            } else {
+                return res;
+            }
+        },
+        showImage(item){
+            let src = ''
+            if(item.status === 'N'){
+                src = 'https://hijinka.oss-cn-shanghai.aliyuncs.com/uploads/mall1/20220307/669dde5d9fe28a377c151cadecb8dd65.png'
+            }else if(item.status === 'Y' && !item.isCheck){
+                src = 'https://hijinka.oss-cn-shanghai.aliyuncs.com/uploads/mall1/20220307/123044531581e70133020f0265bcabb2.png'
+            }else if(item.status === 'Y' && item.isCheck) {
+                src = 'https://hijinka.oss-cn-shanghai.aliyuncs.com/uploads/mall1/20220307/899c7f9e0365ce6d97f9d5fe89ffe878.png'
+            }
+            return src
+        },
+
+        /**  右侧工具 */
+        handleClick(){
+
+        },
+        /**  创建区域  开始 */
+        submitForm(formName) {
+            this.$refs[formName].validate((valid) => {
+            if (valid) {
+                let key = 'zuo_'+this.tableHeader.length
+                this.tableHeader.push({
+                    title: this.ruleForm.name,
+                    key,
+                    align: this.ruleForm.region,
+                    length: 0,
+                    width:0,
+                })
+                this.resetForm('ruleForm')
+                if(this.rowAll) {
+                    this.createTableList()
+                }
+            } else {
+                console.log('error submit!!');
+                return false;
+            }
+            });
+        },
+        resetForm(formName) {
+            this.$refs[formName].resetFields();
+        },
+
+        /**
+        *  创建排数
+        */
+        createTableList(){
+            let list = JSON.parse(JSON.stringify(this.tableData))
+            for(let i = 0;i<this.rowAll;i++) {
+                if(this.tableHeader && this.tableHeader.length){
+                    let obj = {
+                        id: "row_"+i
+                    }
+                    this.tableHeader.forEach((item,index)=>{
+                        obj[item.key] = []
+                    })
+                    if(list[i] && JSON.stringify(list[i]) != '{}') {
+                        list[i] = Object.assign(obj,list[i])
+                    }else {
+                        list.push(obj)
+                    }
+                }else if(!list[i]){
+                    list.push({})
+                }
+            }
+            this.tableData = JSON.parse(JSON.stringify(list))
+            console.log("this.tableData===",this.tableData)
+        },
+        /**  创建区域  结束 */
+
+
+        /**  创建座位  开始  */
+        tableCellClassName({row, column, rowIndex, columnIndex}){
+            //注意这里是解构
+            //利用单元格的 className 的回调方法,给行列索引赋值
+            row.index=rowIndex;
+            column.index=columnIndex;
+        },
+        cellDblclick(row, column, cell, event){
+            this.currentRow = row.index + 1
+            this.currentRegion = column.index
+            this.currentLabel = column.label
+            this.currentProperty = column.property
+            console.log('this.tableData===', this.tableData)
+            console.log("this.tableData111=====",this.currentRow,this.currentProperty,this.tableData[this.currentRow-1][this.currentProperty])
+
+            let list = this.tableData[this.currentRow-1][this.currentProperty]
+            this.currentTabelList = list && list.length>0 ? JSON.parse(JSON.stringify(list)) : []
+            console.log("row, column, cell, event===",row, column, cell, event)
+        },
+        submitForm1(formName) {
+            this.$refs[formName].validate((valid) => {
+            if (valid) {
+                if(this.ruleForm1.resource == 2){ // 批量
+                    let list = []
+                    let min = Number(this.ruleForm1.colMin)
+                    let max = Number(this.ruleForm1.colMax)
+                    for(let i = min;i<=max;i++) {
+                        list.push({
+                            id: this.currentRow+"_"+this.currentProperty+"_"+i,
+                            seatNo: this.ruleForm1.name.replace('${row}',this.currentRow).replace('${col}',i),
+                            status: this.ruleForm1.region,
+                            rowNo: this.currentRow,
+                            colNo: i,
+                            sort: i,
+                            style: {key: this.currentProperty}
+                        })
+                    }
+                    this.$set(this.tableData[this.currentRow-1],this.currentProperty,list)
+                    this.currentTabelList = JSON.parse(JSON.stringify(this.tableData[this.currentRow-1][this.currentProperty]))
+                }else { // 单个
+                    console.log("this.tableData=====",this.tableData)
+                    console.log("this.tableData111=====",this.currentRow,this.currentProperty,this.tableData[this.currentRow-1][this.currentProperty])
+                    let index = this.tableData[this.currentRow-1][this.currentProperty].length
+                    this.tableData[this.currentRow-1][this.currentProperty].push({
+                        id: this.currentRow+"_"+this.currentProperty+"_"+(index+1),
+                        seatNo: this.ruleForm1.name,
+                        status: this.ruleForm1.region,
+                        rowNo: this.currentRow,
+                        colNo: index+1,
+                        sort: index+1
+                    })
+                    this.currentTabelList = JSON.parse(JSON.stringify(this.tableData[this.currentRow-1][this.currentProperty]))
+                }
+                this.countRegionW()
+                
+            } else {
+                console.log('error submit!!');
+                return false;
+            }
+            });
+        },
+        resetForm1(formName) {
+            this.$refs[formName].resetFields();
+        },
+
+        // 计算区域的宽度
+        countRegionW(){
+            let list = JSON.parse(JSON.stringify(this.tableHeader))
+            for(let i = 0; i < list.length; i++) {
+                for(let j = 0;j < this.tableData.length; j++) {
+                    if(list[i].length<this.tableData[j][list[i].key].length){
+                        list[i].length = this.tableData[j][list[i].key].length
+                    }
+                }
+            }
+            console.log("list=====111",list)
+            this.tableHeader = [].concat(list)
+        },
+        /**  创建座位  结束  */
+
+
+        //列拖拽
+        columnDrop() {
+            // 阻止默认行为
+            document.body.addEventListener("drop", (event) => {
+                event.preventDefault();
+                event.stopPropagation();
+            });
+            const wrapperTr = document.querySelector(".el-table__header-wrapper tr");
+            this.sortable = Sortable.create(wrapperTr, {
+                animation: 180,
+                delay: 0,
+                onEnd: (evt) => {
+                    const oldItem = this.dropCol[evt.oldIndex];
+                    this.dropCol.splice(evt.oldIndex, 1);
+                    this.dropCol.splice(evt.newIndex, 0, oldItem);
+                },
+            });
+        },
+
+        dragSelectChange(e){
+            console.log("e===",e)
+            if(e && e.div) {
+                let  list = JSON.parse(JSON.stringify(e.div))
+                console.log("e===",new Set(list))
+            }
+            
+        },
+        dragLostItemChange(){},
+        reSelect() {
+
+        }
+    }
+};
+</script>
+ 
+<style scoped lang="scss">
+
+.sm {
+    width: 100%;
+    height: 100%;
+    box-sizing: border-box;
+    padding-top: 20px;
+    display: flex;
+    flex-direction: column;
+    justify-content: center;
+    align-items: center;
+}
+
+.sm-box {
+    width: 1300px;
+    height: 600px; 
+    box-sizing: border-box;
+    display: flex;
+    justify-content: center;
+    --row-w: 26px;
+    --row-h: 26px;
+}
+.sm-scroll-box {
+    width: 1000px;
+    height: 100%;
+    border: 1px solid #ccc;
+    box-sizing: border-box;
+    background-color: aqua;
+}
+
+.row-item-box {
+    border: 1px dashed #ccc;
+    width: 100%;
+    height: 100%;
+    align-items: center;
+    padding: 5px;
+}
+
+.row-item-box:hover {
+    background-color: #409eff;
+}
+
+.row-item {
+    width: var(--row-w);
+    height: var(--row-h);
+    margin-left: 5px;
+    border: 1px solid #ccc;
+    display: flex;
+    flex-direction: column;
+    flex-shrink: 0;
+    font-size: 12px;
+    align-items: center;
+    box-sizing: border-box;
+    justify-content: center;
+    overflow: hidden;
+}
+
+.row-item:first-child {
+    margin-left: 0;
+} 
+
+.el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf {
+    border-bottom: none !important;
+}
+
+
+.table-tool {
+    width: calc( 100% - 1000px );
+    height: 100%;
+    padding: 0 10px;
+    box-sizing: border-box;
+    border: 1px solid #ccc;
+}
+.table-tool-tab {
+    height: 40px;
+}
+
+.qu-first-box {
+    width: 100%;
+    height: 100%;
+    .qu-first-row {
+        display: flex;
+        align-items: center;
+    }
+
+    .qu-first-form {
+        width: 100%;
+        height: 200px;
+        overflow: hidden;
+        padding-top: 10px;
+        box-sizing: border-box;
+        border-bottom: 1px solid #ccc;
+    }
+
+    .qu-first-info {
+        width: 100%;
+        height: calc( 100% - 200px );
+        overflow: hidden;
+        .qu-first-info-title {
+            width: 100%;
+            height: 25px;
+            display: flex;
+            align-items: flex-end;
+            padding-bottom: 5px;
+            span:first-child{
+                font-size: 16px;
+            }
+            span:last-child{
+                font-size: 12px;
+                margin-left: 10px;
+            }
+        }
+
+        .qu-first-info-list {
+            width: 100%;
+            height: calc( 100% - 30px );
+            box-sizing: border-box;
+            padding-right: 5px;
+            overflow: hidden;
+            overflow-y: auto;
+            .qu-first-info-item {
+                width: 100%;
+                height: 40px;
+                box-sizing: border-box;
+                border: 1px solid #ccc;
+                margin-bottom: 5px;
+                display: flex;
+                justify-content: space-between;
+                align-items: center;
+                font-size: 16px;
+                border-radius: 10px;
+                >span {
+                    width: 100%;
+                    height: 100%;
+                    display: flex;
+                    align-items: center;
+                    padding: 0 20px;
+                    font-weight: 600;
+                }
+                >div {
+                    display: flex;
+                    span {
+                        display: flex;
+                        padding: 0 10px;
+                        height: 100%;
+                        align-items: center;
+                        font-size: 12px;
+                        white-space: nowrap;
+                    }
+                    span:first-child {
+                        color: #409eff;
+                    }
+                    span:last-child {
+                        color: #f56c6c;
+                    }
+                }
+            }
+        }
+        .qu-first-info-list::-webkit-scrollbar {
+            width: 2px;
+        }
+        .qu-first-info-list::-webkit-scrollbar-track {
+            background-color: #ccc;
+        }
+    }
+}
+
+.qu-second-box {
+    width: 100%;
+    height: 100%;
+    .qu-second-select{
+        width: 100%;
+        height: 25px;
+        display: flex;
+        align-items: flex-end;
+        padding-bottom: 5px;
+        span:nth-child(1){
+            font-size: 16px;
+        }
+        span:not(:first-child){
+            font-size: 18px;
+            margin-left: 10px;
+            font-weight: 600;
+        }
+    }
+
+    .qu-second-row {
+        display: flex;
+        align-items: center;
+    }
+
+    .qu-second-form {
+        width: 100%;
+        height: 240px;
+        overflow: hidden;
+        padding-top: 10px;
+        box-sizing: border-box;
+        border-bottom: 1px solid #ccc;
+    }
+
+    .qu-second-info {
+        width: 100%;
+        height: calc( 100% - 320px );
+        overflow: hidden;
+        .qu-second-info-title {
+            width: 100%;
+            height: 25px;
+            display: flex;
+            align-items: flex-end;
+            padding-bottom: 5px;
+            span:first-child{
+                font-size: 16px;
+            }
+            span:last-child{
+                font-size: 12px;
+                margin-left: 10px;
+            }
+        }
+
+        .qu-second-info-list {
+            width: 100%;
+            height: calc( 100% - 30px );
+            box-sizing: border-box;
+            padding-right: 5px;
+            overflow: hidden;
+            overflow-y: auto;
+            .qu-second-info-item {
+                width: 100%;
+                height: 40px;
+                box-sizing: border-box;
+                border: 1px solid #ccc;
+                margin-bottom: 5px;
+                display: flex;
+                justify-content: space-between;
+                align-items: center;
+                font-size: 16px;
+                border-radius: 10px;
+                >span {
+                    width: 100%;
+                    height: 100%;
+                    display: flex;
+                    align-items: center;
+                    padding: 0 20px;
+                    font-weight: 600;
+                }
+                >div {
+                    display: flex;
+                    span {
+                        display: flex;
+                        padding: 0 10px;
+                        height: 100%;
+                        align-items: center;
+                        font-size: 12px;
+                        white-space: nowrap;
+                    }
+                    span:first-child {
+                        color: #409eff;
+                    }
+                    span:last-child {
+                        color: #f56c6c;
+                    }
+                }
+            }
+        }
+        .qu-second-info-list::-webkit-scrollbar {
+            width: 2px;
+        }
+        .qu-second-info-list::-webkit-scrollbar-track {
+            background-color: #ccc;
+        }
+    }
+}
+
+::v-deep .exchange_table {
+  th {
+    padding: 0 !important;
+    height: 10px;
+    line-height: 10px;
+  }
+  td {
+    padding: 0 !important;
+    height: 30px;
+    line-height: 30px;
+  }
+  .cell {
+    height: 100%;
+  }
+
+  td.el-table__cell, th.el-table__cell.is-leaf {
+        border-bottom: none !important;
+    }
+}
+
+
+</style>