<template>
  <el-dialog
    :append-to-body="true"
    :modal-append-to-body="true"
    :close-on-click-modal="false"
    :visible.sync="showDialog"
    :modal="false"
    custom-class="dialog-style list-dialog dialog-checkbox pd_0"
    width="572px"
    @close="dialogClose"
    v-el-drag-dialog
    v-el-dialog-center
  >
    <template #title>
      <span class="el-dialog__title">{{ $t2('流程催办', 'components.wf.wfUrging') }}<span
        style="margin-left: 10px;margin-right: 10px;">—</span><b class="f-red"
                                                                 style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}：{{
          wfInfo.taskName
        }}</b></span>
    </template>
    <div class="cont" style="height:450px">
      <vxe-grid
        class="is-pointer"
        ref="table-m1"
        v-bind="vxeOption"
        @resizable-change="$vxeTableUtil.onColumnWitchChange"
        @custom="$vxeTableUtil.customHandle"
        @checkbox-change="addDataTable"
        @checkbox-all="checkAll"
      >
      </vxe-grid>
    </div>
    <label id="labBtn" class="transverse">
      <div class="icon">
        <i class="el-icon-more"></i>
        <i class="el-icon-more"></i>
      </div>
    </label>
    <div class="multipleChoice">
      <el-tooltip :enterable="false" effect="dark" :content="$t2('全部删除', 'system.button.allDelete')"
                  placement="top"><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
      <div class="list">
        <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
          <p>{{ checkRow.name }}</p>
          <a class="el-icon-close" @click="clearTable1Select(index)"></a>
        </div>
      </div>
    </div>
    <span slot="footer" class="dialog-footer">
			<el-button type="primary" plain class="button-sty" @click="dialogClose">
				<i class="el-icon-close el-icon"></i>
				{{ $t2('取 消', 'system.button.cancel2') }}
			</el-button>
			<el-button type="primary" @click="subUrgingForm" class="button-sty">
				<i class="el-icon-check el-icon"></i>
				{{ $t2('确认催办', 'system.button.确认催办') }}
			</el-button>
		</span>
  </el-dialog>
</template>

<script>
import {selectDialogMixins} from '../../mixins/selectDialog/index.js';
import {wfUrgingMixin} from './wf.js';

export default {
  name: 'urgingDialog',
  mixins: [selectDialogMixins, wfUrgingMixin]
};
</script>
