no message
							parent
							
								
									8ac6ec1924
								
							
						
					
					
						commit
						5e920e8e6b
					
				| 
						 | 
				
			
			@ -17,7 +17,8 @@
 | 
			
		|||
        </el-button>
 | 
			
		||||
      </crudOperation>
 | 
			
		||||
      <!--表单组件-->
 | 
			
		||||
      <el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.add ? '文件上传' : '编辑文件'" width="500px">
 | 
			
		||||
      <el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU"
 | 
			
		||||
                 :visible.sync="crud.status.cu > 0" :title="crud.status.add ? '文件上传' : '编辑文件'" width="500px">
 | 
			
		||||
        <el-form ref="form" :model="form" size="small" label-width="80px">
 | 
			
		||||
 | 
			
		||||
          <el-form-item label="项目名称">
 | 
			
		||||
| 
						 | 
				
			
			@ -61,7 +62,8 @@
 | 
			
		|||
      </el-dialog>
 | 
			
		||||
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" height="70vh" size="small" style="width: 100%;"
 | 
			
		||||
                @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="id" label="id"/>
 | 
			
		||||
        <el-table-column prop="appName" label="项目名称"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +99,8 @@
 | 
			
		|||
          </template>
 | 
			
		||||
        </el-table-column>
 | 
			
		||||
        <el-table-column prop="apkMd5" label="APKMD5"/>
 | 
			
		||||
        <el-table-column v-if="checkPer(['admin','sysAppUpdate:edit','sysAppUpdate:del'])" label="操作" width="150px" align="center">
 | 
			
		||||
        <el-table-column v-if="checkPer(['admin','sysAppUpdate:edit','sysAppUpdate:del'])" label="操作" width="150px"
 | 
			
		||||
                         align="center">
 | 
			
		||||
          <template slot-scope="scope">
 | 
			
		||||
            <udOperation
 | 
			
		||||
              :data="scope.row"
 | 
			
		||||
| 
						 | 
				
			
			@ -107,9 +110,11 @@
 | 
			
		|||
        </el-table-column>
 | 
			
		||||
      </el-table>
 | 
			
		||||
      <!--分页组件2-->
 | 
			
		||||
      <div style="float: right;">
 | 
			
		||||
        <pagination/>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
| 
						 | 
				
			
			@ -120,12 +125,19 @@ import udOperation from '@crud/UD.operation'
 | 
			
		|||
import pagination from '@crud/Pagination'
 | 
			
		||||
import {mapGetters} from 'vuex'
 | 
			
		||||
import {getToken} from '@/utils/auth'
 | 
			
		||||
 | 
			
		||||
const defaultForm = {id: null, name: '', versionCode: '', versionName: '', modifyContent: ''}
 | 
			
		||||
export default {
 | 
			
		||||
  components: {pagination, crudOperation, udOperation},
 | 
			
		||||
  mixins: [presenter(), header(), form(defaultForm), crud()],
 | 
			
		||||
  cruds() {
 | 
			
		||||
    return CRUD({ title: 'app_update', url: 'api/sysAppUpdate', idField: 'id', sort: 'id,desc', crudMethod: { ...crudSysAppUpdate }})
 | 
			
		||||
    return CRUD({
 | 
			
		||||
      title: 'app_update',
 | 
			
		||||
      url: 'api/sysAppUpdate',
 | 
			
		||||
      idField: 'id',
 | 
			
		||||
      sort: 'id,desc',
 | 
			
		||||
      crudMethod: {...crudSysAppUpdate}
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -44,7 +44,7 @@
 | 
			
		|||
        </div>
 | 
			
		||||
      </el-dialog>
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" height="67vh" size="small" style="width: 100%;"
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" height="63vh" size="small" style="width: 100%;"
 | 
			
		||||
                @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="code" label="库区编号"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -35,7 +35,7 @@
 | 
			
		|||
        </div>
 | 
			
		||||
      </el-dialog>
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;"
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" height="63vh" size="small" style="width: 100%;"
 | 
			
		||||
                @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="code" label="编码"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -51,9 +51,11 @@
 | 
			
		|||
        </el-table-column>
 | 
			
		||||
      </el-table>
 | 
			
		||||
      <!--分页组件-->
 | 
			
		||||
      <div style="float: right;">
 | 
			
		||||
        <pagination/>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -100,7 +100,7 @@
 | 
			
		|||
        :data="crud.data"
 | 
			
		||||
        size="small"
 | 
			
		||||
        style="width: 100%;"
 | 
			
		||||
        height="68vh"
 | 
			
		||||
        height="63vh"
 | 
			
		||||
        @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="code" label="编码" width="150"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -180,7 +180,7 @@
 | 
			
		|||
        </div>
 | 
			
		||||
      </el-dialog>
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table" height="66vh" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;"
 | 
			
		||||
      <el-table ref="table" height="63vh" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;"
 | 
			
		||||
                @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="code" label="代码"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
      <div v-if="crud.props.searchToggle">
 | 
			
		||||
        <!-- 搜索 -->
 | 
			
		||||
        <label class="el-form-item-label">代码</label>
 | 
			
		||||
        <el-input v-model="query.code" clearable placeholder="代码" style="width: 150px;" class="filter-item"
 | 
			
		||||
        <el-input v-model="query.code" clearable placeholder="代码" style="width: 130px;" class="filter-item"
 | 
			
		||||
                  @keyup.enter.native="crud.toQuery"/>
 | 
			
		||||
 | 
			
		||||
        <label class="el-form-item-label">状态</label>
 | 
			
		||||
| 
						 | 
				
			
			@ -15,7 +15,7 @@
 | 
			
		|||
          size="small"
 | 
			
		||||
          placeholder="状态"
 | 
			
		||||
          class="filter-item"
 | 
			
		||||
          style="width: 150px"
 | 
			
		||||
          style="width: 130px"
 | 
			
		||||
          @change="crud.toQuery"
 | 
			
		||||
        >
 | 
			
		||||
          <el-option
 | 
			
		||||
| 
						 | 
				
			
			@ -33,7 +33,7 @@
 | 
			
		|||
          size="small"
 | 
			
		||||
          placeholder="容器类型"
 | 
			
		||||
          class="filter-item"
 | 
			
		||||
          style="width: 150px"
 | 
			
		||||
          style="width: 130px"
 | 
			
		||||
          @change="crud.toQuery"
 | 
			
		||||
        >
 | 
			
		||||
          <el-option
 | 
			
		||||
| 
						 | 
				
			
			@ -45,7 +45,7 @@
 | 
			
		|||
        </el-select>
 | 
			
		||||
 | 
			
		||||
        <label class="el-form-item-label">库区</label>
 | 
			
		||||
        <el-select v-model="query.areaName" style="width: 120px;" clearable placeholder="库区"
 | 
			
		||||
        <el-select v-model="query.areaName" style="width: 130px;" clearable placeholder="库区"
 | 
			
		||||
                   @keyup.enter.native="crud.toQuery" class="filter-item" @change="crud.toQuery">
 | 
			
		||||
          <el-option
 | 
			
		||||
            v-for="area in areas"
 | 
			
		||||
| 
						 | 
				
			
			@ -56,7 +56,7 @@
 | 
			
		|||
        </el-select>
 | 
			
		||||
 | 
			
		||||
        <label class="el-form-item-label">点位</label>
 | 
			
		||||
        <el-input v-model="query.pointCode" clearable placeholder="点位" style="width: 150px;" class="filter-item"
 | 
			
		||||
        <el-input v-model="query.pointCode" clearable placeholder="点位" style="width: 130px;" class="filter-item"
 | 
			
		||||
                  @keyup.enter.native="crud.toQuery"/>
 | 
			
		||||
 | 
			
		||||
        <rrOperation :crud="crud"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -146,7 +146,7 @@
 | 
			
		|||
      <CallContainer ref="callContainer"/>
 | 
			
		||||
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table" height="66vh" v-loading="crud.loading" :data="crud.data" size="small"
 | 
			
		||||
      <el-table ref="table" height="63vh" v-loading="crud.loading" :data="crud.data" size="small"
 | 
			
		||||
                style="width: 100%;height: 90%" @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="code" label="代码"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
    <div class="head-container">
 | 
			
		||||
      <el-form ref="form4" :inline="true" :model="form4" label-width="70px">
 | 
			
		||||
        <el-form-item label="物料编码">
 | 
			
		||||
          <el-select v-model="query.itemCode" filterable placeholder="请输入物料编码" style="width: 160px;"
 | 
			
		||||
          <el-select v-model="query.itemCode" filterable placeholder="请输入物料编码" style="width: 140px;"
 | 
			
		||||
                     class="filter-item">
 | 
			
		||||
            <el-option
 | 
			
		||||
              @keyup.enter.native="crud.toQuery"
 | 
			
		||||
| 
						 | 
				
			
			@ -19,13 +19,13 @@
 | 
			
		|||
        </el-form-item>
 | 
			
		||||
 | 
			
		||||
        <el-form-item label="物料名称">
 | 
			
		||||
          <el-input v-model="query.itemName" clearable placeholder="请输入物料名称" style="width: 170px;"
 | 
			
		||||
          <el-input v-model="query.itemName" clearable placeholder="请输入物料名称" style="width: 140px;"
 | 
			
		||||
                    class="filter-item"
 | 
			
		||||
                    @keyup.enter.native="crud.toQuery"/>
 | 
			
		||||
        </el-form-item>
 | 
			
		||||
 | 
			
		||||
        <el-form-item label="MO票">
 | 
			
		||||
          <el-input v-model="query.po" clearable placeholder="请输入MO票" style="width: 170px;" class="filter-item"
 | 
			
		||||
          <el-input v-model="query.po" clearable placeholder="请输入MO票" style="width: 140px;" class="filter-item"
 | 
			
		||||
                    @keyup.enter.native="crud.toQuery"/>
 | 
			
		||||
        </el-form-item>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -246,7 +246,7 @@
 | 
			
		|||
      </div>
 | 
			
		||||
    </el-dialog>
 | 
			
		||||
    <!--表格渲染-->
 | 
			
		||||
    <el-table ref="table" height="68vh" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;"
 | 
			
		||||
    <el-table ref="table" height="58vh" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;"
 | 
			
		||||
              @selection-change="this.selectionChangeHandler" @row-click="this.clickRow">
 | 
			
		||||
      <el-table-column type="selection" width="55"/>
 | 
			
		||||
      <el-table-column prop="xh" type="index" :index="indexMethod" label="序号"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
        <!-- 搜索 -->
 | 
			
		||||
        <div>
 | 
			
		||||
          <label class="el-form-item-label">创建日期</label>
 | 
			
		||||
          <date-range-picker v-model="query.createTime" style="width: 365px;" class="filter-item"/>
 | 
			
		||||
          <date-range-picker v-model="query.createTime" style="width: 250px;" class="filter-item"/>
 | 
			
		||||
 | 
			
		||||
          <label class="el-form-item-label">容器编码</label>
 | 
			
		||||
          <el-input
 | 
			
		||||
| 
						 | 
				
			
			@ -20,7 +20,7 @@
 | 
			
		|||
          <el-input v-model="query.startSlotCode" clearable placeholder="起点位置" style="width: 170px;"
 | 
			
		||||
                    class="filter-item" @keyup.enter.native="crud.toQuery"/>
 | 
			
		||||
          <label class="el-form-item-label">终点位置</label>
 | 
			
		||||
          <el-input v-model="query.endSlotCode" clearable placeholder="终点位置" style="width: 140px;"
 | 
			
		||||
          <el-input v-model="query.endSlotCode" clearable placeholder="终点位置" style="width: 170px;"
 | 
			
		||||
                    class="filter-item" @keyup.enter.native="crud.toQuery"/>
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
| 
						 | 
				
			
			@ -120,7 +120,7 @@
 | 
			
		|||
        v-loading="crud.loading"
 | 
			
		||||
        :data="crud.data"
 | 
			
		||||
        size="small"
 | 
			
		||||
        height="56vh"
 | 
			
		||||
        height="54vh"
 | 
			
		||||
        style="width: 100%;"
 | 
			
		||||
        :default-sort="{prop: 'id', order: 'descending'}"
 | 
			
		||||
        @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -55,7 +55,7 @@
 | 
			
		|||
      <!--表单组件-->
 | 
			
		||||
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table" height="66vh" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;"
 | 
			
		||||
      <el-table ref="table" height="60vh" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;"
 | 
			
		||||
                @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="xh" type="index" :index="indexMethod" label="序号"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -54,7 +54,7 @@
 | 
			
		|||
        </div>
 | 
			
		||||
      </el-dialog>
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;"
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" height="63vh" size="small" style="width: 100%;"
 | 
			
		||||
                @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="xh" label="序号" type="index" width="50"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -79,8 +79,11 @@
 | 
			
		|||
        </el-table-column>
 | 
			
		||||
      </el-table>
 | 
			
		||||
      <!--分页组件-->
 | 
			
		||||
      <div style="float: right;">
 | 
			
		||||
        <pagination/>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,15 +5,15 @@
 | 
			
		|||
      <div v-if="crud.props.searchToggle">
 | 
			
		||||
        <!-- 搜索 -->
 | 
			
		||||
        <label class="el-form-item-label">单品物料</label>
 | 
			
		||||
        <el-input v-model="query.itemCode" clearable placeholder="单品物料" style="width: 185px;" class="filter-item"
 | 
			
		||||
        <el-input v-model="query.itemCode" clearable placeholder="单品物料" style="width: 140px;" class="filter-item"
 | 
			
		||||
                  @keyup.enter.native="crud.toQuery"/>
 | 
			
		||||
 | 
			
		||||
        <label class="el-form-item-label">成品物料</label>
 | 
			
		||||
        <el-input v-model="query.bigItemCode" clearable placeholder="成品物料" style="width: 185px;" class="filter-item"
 | 
			
		||||
        <el-input v-model="query.bigItemCode" clearable placeholder="成品物料" style="width: 140px;" class="filter-item"
 | 
			
		||||
                  @keyup.enter.native="crud.toQuery"/>
 | 
			
		||||
 | 
			
		||||
        <label class="el-form-item-label">单据类型</label>
 | 
			
		||||
        <el-select v-model="query.orderType" filterable clearable placeholder="请选择" style="width: 185px;"
 | 
			
		||||
        <el-select v-model="query.orderType" filterable clearable placeholder="请选择" style="width: 140px;"
 | 
			
		||||
                   class="filter-item">
 | 
			
		||||
          <el-option
 | 
			
		||||
            v-for="item in dict.gd_type"
 | 
			
		||||
| 
						 | 
				
			
			@ -23,7 +23,7 @@
 | 
			
		|||
        </el-select>
 | 
			
		||||
 | 
			
		||||
        <label class="el-form-item-label">需求工位</label>
 | 
			
		||||
        <el-input v-model="query.station" clearable placeholder="需求工位" style="width: 185px;" class="filter-item"
 | 
			
		||||
        <el-input v-model="query.station" clearable placeholder="需求工位" style="width: 140px;" class="filter-item"
 | 
			
		||||
                  @keyup.enter.native="crud.toQuery"/>
 | 
			
		||||
 | 
			
		||||
        <rrOperation :crud="crud"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -104,7 +104,7 @@
 | 
			
		|||
        </div>
 | 
			
		||||
      </el-dialog>
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;"
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" height="63vh" size="small" style="width: 100%;"
 | 
			
		||||
                @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="xh" label="序号" type="index" width="50"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -128,9 +128,11 @@
 | 
			
		|||
        </el-table-column>
 | 
			
		||||
      </el-table>
 | 
			
		||||
      <!--分页组件-->
 | 
			
		||||
      <div style="float: right;">
 | 
			
		||||
        <pagination/>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -91,7 +91,7 @@
 | 
			
		|||
        size="small"
 | 
			
		||||
        style="width: 100%;"
 | 
			
		||||
        @selection-change="crud.selectionChangeHandler"
 | 
			
		||||
        height="70vh"
 | 
			
		||||
        height="63vh"
 | 
			
		||||
      >
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column :show-overflow-tooltip="true" prop="itemCode" label="物料编码">
 | 
			
		||||
| 
						 | 
				
			
			@ -127,10 +127,10 @@
 | 
			
		|||
        <el-table-column v-if="checkPer(['admin','fileManagement:edit','fileManagement:del'])" label="操作"
 | 
			
		||||
                         width="150px" align="center" fixed="right">
 | 
			
		||||
          <template slot-scope="scope">
 | 
			
		||||
            <el-popconfirm title="确定删除吗?"
 | 
			
		||||
<!--            <el-popconfirm title="确定删除吗?"
 | 
			
		||||
                           @confirm="deleteDataM(scope.row.id)">
 | 
			
		||||
              <el-button slot="reference" type="danger">删除</el-button>
 | 
			
		||||
            </el-popconfirm>
 | 
			
		||||
            </el-popconfirm>-->
 | 
			
		||||
          </template>
 | 
			
		||||
        </el-table-column>
 | 
			
		||||
      </el-table>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,7 +52,7 @@
 | 
			
		|||
        size="small"
 | 
			
		||||
        style="width: 100%;"
 | 
			
		||||
        @selection-change="crud.selectionChangeHandler"
 | 
			
		||||
        height="70vh"
 | 
			
		||||
        height="58vh"
 | 
			
		||||
      >
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column :show-overflow-tooltip="true" prop="itemCode" label="物料编码">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -77,7 +77,7 @@
 | 
			
		|||
        </div>
 | 
			
		||||
      </el-dialog>
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;"
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" height="63vh" size="small" style="width: 100%;"
 | 
			
		||||
                @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55"/>
 | 
			
		||||
        <el-table-column prop="xh" label="序号" type="index" width="50"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -101,7 +101,7 @@
 | 
			
		|||
 | 
			
		||||
      <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small"
 | 
			
		||||
                style="width: 100%;"
 | 
			
		||||
                height="58vh"
 | 
			
		||||
                height="63vh"
 | 
			
		||||
                @selection-change="selectionChangeHandlerTwo">
 | 
			
		||||
        <el-table-column type="selection" width="50"/>
 | 
			
		||||
        <el-table-column prop="xh" label="序号" type="index" width="50"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,6 +52,7 @@
 | 
			
		|||
      <!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
 | 
			
		||||
      <crudOperation :permission="permission" :tableKey="this.$options.name">
 | 
			
		||||
        <el-button
 | 
			
		||||
          v-if="false"
 | 
			
		||||
            slot="left"
 | 
			
		||||
            class="filter-item"
 | 
			
		||||
            type="success"
 | 
			
		||||
| 
						 | 
				
			
			@ -65,7 +66,7 @@
 | 
			
		|||
      <!--表单组件-->
 | 
			
		||||
 | 
			
		||||
      <!--表格渲染-->
 | 
			
		||||
      <el-table ref="table"  height="66vh" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
      <el-table ref="table"  height="58vh" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
        <el-table-column type="selection" width="55" />
 | 
			
		||||
        <el-table-column prop="xh" type="index" :index="indexMethod"  label="序号"/>
 | 
			
		||||
        <el-table-column :show-overflow-tooltip="true" prop="itemCode" label="物料编码">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,8 @@
 | 
			
		|||
      </crudOperation>
 | 
			
		||||
    </div>
 | 
			
		||||
    <!--表格渲染-->
 | 
			
		||||
    <el-table ref="table" v-loading="crud.loading" :data="crud.data" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
    <el-table ref="table" v-loading="crud.loading" :data="crud.data" height="64vh" style="width: 100%;"
 | 
			
		||||
              @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
      <el-table-column type="expand">
 | 
			
		||||
        <template slot-scope="props">
 | 
			
		||||
          <el-form label-position="left" inline class="demo-table-expand">
 | 
			
		||||
| 
						 | 
				
			
			@ -48,8 +49,10 @@
 | 
			
		|||
      <el-table-column prop="createTime" label="创建日期" width="180px"/>
 | 
			
		||||
    </el-table>
 | 
			
		||||
    <!--分页组件-->
 | 
			
		||||
    <div style="float: right;">
 | 
			
		||||
      <pagination/>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
| 
						 | 
				
			
			@ -102,15 +105,18 @@ export default {
 | 
			
		|||
.demo-table-expand {
 | 
			
		||||
  font-size: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.demo-table-expand label {
 | 
			
		||||
  width: 70px;
 | 
			
		||||
  color: #99a9bf;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.demo-table-expand .el-form-item {
 | 
			
		||||
  margin-right: 0;
 | 
			
		||||
  margin-bottom: 0;
 | 
			
		||||
  width: 100%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.demo-table-expand .el-form-item__content {
 | 
			
		||||
  font-size: 12px;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,8 @@
 | 
			
		|||
    <div class="head-container">
 | 
			
		||||
      <div v-if="crud.props.searchToggle">
 | 
			
		||||
        <!-- 搜索 -->
 | 
			
		||||
        <el-input v-model="query.jobName" clearable size="small" placeholder="输入任务名称搜索" style="width: 200px;" class="filter-item" @keyup.enter.native="toQuery" />
 | 
			
		||||
        <el-input v-model="query.jobName" clearable size="small" placeholder="输入任务名称搜索" style="width: 200px;"
 | 
			
		||||
                  class="filter-item" @keyup.enter.native="toQuery"/>
 | 
			
		||||
        <date-range-picker v-model="query.createTime" class="date-item"/>
 | 
			
		||||
        <rrOperation/>
 | 
			
		||||
      </div>
 | 
			
		||||
| 
						 | 
				
			
			@ -17,12 +18,14 @@
 | 
			
		|||
          type="info"
 | 
			
		||||
          icon="el-icon-tickets"
 | 
			
		||||
          @click="doLog"
 | 
			
		||||
        >日志</el-button>
 | 
			
		||||
        >日志
 | 
			
		||||
        </el-button>
 | 
			
		||||
      </crudOperation>
 | 
			
		||||
      <Log ref="log"/>
 | 
			
		||||
    </div>
 | 
			
		||||
    <!--Form表单-->
 | 
			
		||||
    <el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" append-to-body width="730px">
 | 
			
		||||
    <el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0"
 | 
			
		||||
               :title="crud.status.title" append-to-body width="730px">
 | 
			
		||||
      <el-form ref="form" :inline="true" :model="form" :rules="rules" size="small" label-width="100px">
 | 
			
		||||
        <el-form-item label="任务名称" prop="jobName">
 | 
			
		||||
          <el-input v-model="form.jobName" style="width: 220px;"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -70,7 +73,8 @@
 | 
			
		|||
      </div>
 | 
			
		||||
    </el-dialog>
 | 
			
		||||
    <!--表格渲染-->
 | 
			
		||||
    <el-table ref="table" v-loading="crud.loading" :data="crud.data" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
    <el-table ref="table" v-loading="crud.loading" :data="crud.data" height="63vh" style="width: 100%;"
 | 
			
		||||
              @selection-change="crud.selectionChangeHandler">
 | 
			
		||||
      <el-table-column :selectable="checkboxT" type="selection" width="55"/>
 | 
			
		||||
      <el-table-column :show-overflow-tooltip="true" prop="id" label="任务ID"/>
 | 
			
		||||
      <el-table-column :show-overflow-tooltip="true" prop="jobName" label="任务名称"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -80,16 +84,25 @@
 | 
			
		|||
      <el-table-column :show-overflow-tooltip="true" prop="cronExpression" label="cron表达式"/>
 | 
			
		||||
      <el-table-column :show-overflow-tooltip="true" prop="isPause" width="90px" label="状态">
 | 
			
		||||
        <template slot-scope="scope">
 | 
			
		||||
          <el-tag :type="scope.row.isPause ? 'warning' : 'success'">{{ scope.row.isPause ? '已暂停' : '运行中' }}</el-tag>
 | 
			
		||||
          <el-tag :type="scope.row.isPause ? 'warning' : 'success'">{{
 | 
			
		||||
              scope.row.isPause ? '已暂停' : '运行中'
 | 
			
		||||
            }}
 | 
			
		||||
          </el-tag>
 | 
			
		||||
        </template>
 | 
			
		||||
      </el-table-column>
 | 
			
		||||
      <el-table-column :show-overflow-tooltip="true" prop="description" width="150px" label="描述"/>
 | 
			
		||||
      <el-table-column :show-overflow-tooltip="true" prop="createTime" width="136px" label="创建日期"/>
 | 
			
		||||
      <el-table-column v-if="checkPer(['admin','timing:edit','timing:del'])" label="操作" width="170px" align="center" fixed="right">
 | 
			
		||||
      <el-table-column v-if="checkPer(['admin','timing:edit','timing:del'])" label="操作" width="170px" align="center"
 | 
			
		||||
                       fixed="right">
 | 
			
		||||
        <template slot-scope="scope">
 | 
			
		||||
          <el-button v-permission="['admin','timing:edit']" size="mini" style="margin-right: 3px;" type="text" @click="crud.toEdit(scope.row)">编辑</el-button>
 | 
			
		||||
          <el-button v-permission="['admin','timing:edit']" style="margin-left: -2px" type="text" size="mini" @click="execute(scope.row.id)">执行</el-button>
 | 
			
		||||
          <el-button v-permission="['admin','timing:edit']" style="margin-left: 3px" type="text" size="mini" @click="updateStatus(scope.row.id,scope.row.isPause ? '恢复' : '暂停')">
 | 
			
		||||
          <el-button v-permission="['admin','timing:edit']" size="mini" style="margin-right: 3px;" type="text"
 | 
			
		||||
                     @click="crud.toEdit(scope.row)">编辑
 | 
			
		||||
          </el-button>
 | 
			
		||||
          <el-button v-permission="['admin','timing:edit']" style="margin-left: -2px" type="text" size="mini"
 | 
			
		||||
                     @click="execute(scope.row.id)">执行
 | 
			
		||||
          </el-button>
 | 
			
		||||
          <el-button v-permission="['admin','timing:edit']" style="margin-left: 3px" type="text" size="mini"
 | 
			
		||||
                     @click="updateStatus(scope.row.id,scope.row.isPause ? '恢复' : '暂停')">
 | 
			
		||||
            {{ scope.row.isPause ? '恢复' : '暂停' }}
 | 
			
		||||
          </el-button>
 | 
			
		||||
          <el-popover
 | 
			
		||||
| 
						 | 
				
			
			@ -101,7 +114,8 @@
 | 
			
		|||
            <p>确定停止并删除该任务吗?</p>
 | 
			
		||||
            <div style="text-align: right; margin: 0">
 | 
			
		||||
              <el-button size="mini" type="text" @click="$refs[scope.row.id].doClose()">取消</el-button>
 | 
			
		||||
              <el-button :loading="delLoading" type="primary" size="mini" @click="delMethod(scope.row.id)">确定</el-button>
 | 
			
		||||
              <el-button :loading="delLoading" type="primary" size="mini" @click="delMethod(scope.row.id)">确定
 | 
			
		||||
              </el-button>
 | 
			
		||||
            </div>
 | 
			
		||||
            <el-button slot="reference" type="text" size="mini">删除</el-button>
 | 
			
		||||
          </el-popover>
 | 
			
		||||
| 
						 | 
				
			
			@ -109,8 +123,10 @@
 | 
			
		|||
      </el-table-column>
 | 
			
		||||
    </el-table>
 | 
			
		||||
    <!--分页组件-->
 | 
			
		||||
    <div style="float: right;">
 | 
			
		||||
      <pagination/>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
| 
						 | 
				
			
			@ -122,7 +138,20 @@ import crudOperation from '@crud/CRUD.operation'
 | 
			
		|||
import pagination from '@crud/Pagination'
 | 
			
		||||
import DateRangePicker from '@/components/DateRangePicker'
 | 
			
		||||
 | 
			
		||||
const defaultForm = { id: null, jobName: null, subTask: null, beanName: null, methodName: null, params: null, cronExpression: null, pauseAfterFailure: true, isPause: false, personInCharge: null, email: null, description: null }
 | 
			
		||||
const defaultForm = {
 | 
			
		||||
  id: null,
 | 
			
		||||
  jobName: null,
 | 
			
		||||
  subTask: null,
 | 
			
		||||
  beanName: null,
 | 
			
		||||
  methodName: null,
 | 
			
		||||
  params: null,
 | 
			
		||||
  cronExpression: null,
 | 
			
		||||
  pauseAfterFailure: true,
 | 
			
		||||
  isPause: false,
 | 
			
		||||
  personInCharge: null,
 | 
			
		||||
  email: null,
 | 
			
		||||
  description: null
 | 
			
		||||
}
 | 
			
		||||
export default {
 | 
			
		||||
  name: 'Timing',
 | 
			
		||||
  components: {Log, pagination, crudOperation, rrOperation, DateRangePicker},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue