liuyg
2021-08-07 49e8a69a09a1b33545b77eb47b3a8f8d1ce0c261
src/views/dispatch/dispatchChildoperable.vue
@@ -1,8 +1,9 @@
<template>
  <div class="dispatchChildoperable">
    <!-- <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs> -->
    <!-- <span v-if="typeTABS.prop === 'tab1'"> -->
    <!-- <avue-crud
  <basic-container>
    <div class="dispatchChildoperable">
      <!-- <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs> -->
      <!-- <span v-if="typeTABS.prop === 'tab1'"> -->
      <!-- <avue-crud
        :option="option"
        :data="data"
        :page.sync="page"
@@ -28,28 +29,28 @@
          </el-button>
        </template>
      </avue-crud> -->
    <!-- <avue-form ref="form" v-model="obj0" :option="option0"> -->
    <!-- <template slot-scope="scope" slot="menuForm">
      <!-- <avue-form ref="form" v-model="obj0" :option="option0"> -->
      <!-- <template slot-scope="scope" slot="menuForm">
          <el-button @click="tip">自定义按钮</el-button>
        </template> -->
    <!-- </avue-form>
      <!-- </avue-form>
    </span>
    <span v-else-if="typeTABS.prop === 'tab2'"> -->
    <avue-crud
      :option="option1"
      :data="data1"
      :page.sync="page1"
      ref="crudrec1"
      :table-loading="loading1"
      @row-save="rowSave1"
      @search-change="searchChange1"
      @search-reset="searchReset1"
      @row-update="rowUpdate1"
      @row-del="rowDel1"
      @selection-change="selectionChange1"
      @refresh-change="refreshChange1"
    >
      <!-- <template slot="menuLeft">
      <avue-crud
        :option="option1"
        :data="data1"
        :page.sync="page1"
        ref="crudrec1"
        :table-loading="loading1"
        @row-save="rowSave1"
        @search-change="searchChange1"
        @search-reset="searchReset1"
        @row-update="rowUpdate1"
        @row-del="rowDel1"
        @selection-change="selectionChange1"
        @refresh-change="refreshChange1"
      >
        <!-- <template slot="menuLeft">
          <el-button
            type="danger"
            size="small"
@@ -59,10 +60,11 @@
            >删 除
          </el-button>
        </template> -->
    </avue-crud>
    <!-- </span> -->
    <!-- <span v-else-if="typeTABS.prop === 'tab3'">选项卡内容3</span> -->
  </div>
      </avue-crud>
      <!-- </span> -->
      <!-- <span v-else-if="typeTABS.prop === 'tab3'">选项卡内容3</span> -->
    </div>
  </basic-container>
</template> 
<script>
@@ -228,11 +230,10 @@
            label: "保安公司",
            prop: "deptId",
            labelWidth: 120,
            searchLabelWidth: 120,
            search: true,
            overHidden: true,
            type: "tree",
            searchSpan: 5,
            searchSpan: 4,
            cascaderItem: ["name"],
            // cascaderItem: ["city", "area"],
            props: {
@@ -255,7 +256,7 @@
            labelWidth: 120,
            type: "tree",
            search: true,
            searchSpan: 5,
            searchSpan: 4,
            cell: true,
            props: {
              label: "realName",
@@ -342,7 +343,7 @@
            format: "yyyy-MM-dd hh:mm:ss",
            valueFormat: "yyyy-MM-dd hh:mm:ss",
            labelWidth: 120,
            searchSpan: 4,
            searchSpan: 5,
            // search: true,
            overHidden: true,
            rules: [
@@ -370,7 +371,7 @@
              },
            ],
            // search: true,
            // searchSpan: 5,
            // searchSpan: 4,
            // overHidden: true
          },
          {
@@ -381,7 +382,7 @@
            valueFormat: "yyyy-MM-dd",
            searchValue: [this.getStartTime(), this.getEndTime()],
            searchRange: true,
            searchSpan: 5,
            searchSpan: 4,
            hide: true,
            addDisplay: false,
            editDisplay: false,