<template>
  <div class="eibs-tab">
    <c-col :span="24">
      <!-- ================左=============== -->
      <c-col :span="11">
        <c-col>(Services see 2nd Tab)</c-col>
        <c-col>Running in foreground</c-col>
        <c-col :span="12" :offset="12" style="margin-top: 105px">
          <el-form-item label="Ref No" prop="wfetsk.refno" label-width="50px">
            <c-input
              v-model="model.wfetsk.refno"
              placeholder="请输入"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <!-- ================右=============== -->
      <c-col :span="11" :offset="1">
        <c-col :span="24">
          <el-form-item label="Start Processing" prop="wfetsk.tsklist.strflg">
            <c-select
              v-model="model.wfetsk.tsklist.strflg"
              style="width: 100%"
              placeholder="请选择Automatic Start Flag"
            >
              <el-option
                v-for="item in codes.strflg"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="15">
          <el-form-item label="Started" prop="wfetsk.tsklist.jobstrdat">
            <c-date-picker
              type="date"
              v-model="model.wfetsk.tsklist.jobstrdat"
              style="width: 100%"
              placeholder="请选择"
            ></c-date-picker>
          </el-form-item>
        </c-col>
        <c-col :span="4" :offset="1">
          <el-form-item
            label="h"
            prop="wfetsk.tsklist.jobstrtimhh"
            label-width="20px"
          >
            <c-input
              v-model="model.wfetsk.tsklist.jobstrtimhh"
              placeholder="请输入"
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="4">
          <el-form-item label="min" label-width="20px">
            <c-input
              v-model="model.wfetsk.tsklist.jobstrtimmm"
              placeholder="请输入"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="15">
          <el-form-item label="Termination" prop="wfetsk.tsklist.terflg">
            <c-select
              v-model="model.wfetsk.tsklist.terflg"
              style="width: 100%"
              placeholder="请选择Automatic Termination Flag"
            >
            <el-option
                v-for="item in codes.terflg"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="4" :offset="1">
          <el-form-item
            label="h"
            prop="wfetsk.tsklist.downtimehh"
            label-width="20px"
          >
            <c-input
              v-model="model.wfetsk.tsklist.downtimehh"
              placeholder="请输入"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="4">
          <el-form-item label="min" prop="" label-width="20px">
            <c-input
              v-model="model.wfetsk.tsklist.downtimemm"
              placeholder=""
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="16">
          <el-form-item label="Restart Period" prop="wfetsk.tsklist.redotime">
            <c-input
              v-model="model.wfetsk.tsklist.redotime"
              placeholder="请输入Redotime"
            ></c-input>
          </el-form-item>
        </c-col>
        <!-- <c-col :span="16">
          <span
            v-text="model.wfetsk.tsklist.ininam"
            data-path=".wfetsk.tsklist.ininam"
          >
            Initialization File
          </span>
        </c-col> -->
        <c-col
          ><el-form-item
            label="Initialization File"
            prop="wfetsk.tsklist.ininam"
          >
            <span
              v-text="model.wfetsk.tsklist.ininam"
              data-path=".wfetsk.tsklist.ininam"
            >
            </span> </el-form-item
        ></c-col>
      </c-col>
    </c-col>

    <!-- <c-col :span="12">
      <el-form-item label="Automatic Start Flag" prop="wfetsk.tsklist.strflg">
        <c-select
          v-model="model.wfetsk.tsklist.strflg"
          style="width: 100%"
          placeholder="请选择Automatic Start Flag"
        >
        </c-select>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onTsklistButstr">
        &Start
      </c-button>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onTsklistButstp">
        S&top
      </c-button>
    </c-col>

    <c-col :span="12">
      <span
        v-text="model.wfetsk.tsklist.bcklab"
        data-path=".wfetsk.tsklist.bcklab"
      >
      </span>
    </c-col>

    <c-col :span="12">
      <span v-text="model.wfetsk.labetyextkey" data-path=".wfetsk.labetyextkey">
      </span>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Selected Entity ID" prop="wfetsk.seletyextkey">
        <c-select
          v-model="model.wfetsk.seletyextkey"
          style="width: 100%"
          placeholder="请选择Selected Entity ID"
        >
        </c-select>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <span
        v-text="model.wfetsk.tsklist.timzonlab"
        data-path=".wfetsk.tsklist.timzonlab"
      >
      </span>
    </c-col>

    <c-col :span="12">
      <span v-text="model.wfetsk.labetgextkey" data-path=".wfetsk.labetgextkey">
      </span>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Selected Entity Group" prop="wfetsk.seletgextkey">
        <c-input
          v-model="model.wfetsk.seletgextkey"
          maxlength="8"
          placeholder="请输入Selected Entity Group"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <el-form-item label="Stream of WFE entries" prop="wfetsk.wfestm">
        <c-input
          v-model="model.wfetsk.wfestm"
          placeholder="请输入Stream of WFE entries"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onTsklistButexe">
        &Do Entry
      </c-button>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onTsklistButupd">
        &Upd. List
      </c-button>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onLogdspButdsp">
        &View Log
      </c-button>
    </c-col>

    <c-col :span="12">
      <c-button size="small" type="primary" @click="onTsklistButexi">
        E&xit
      </c-button>
    </c-col> -->
    <c-col :span="22" :offset="1">
      <c-table :border="true" :list="data" style="width:80%,text-align:center">
        <el-table-column label="Entity" width="auto"></el-table-column>
        <el-table-column
          label="Object Identification"
          width="auto"
        ></el-table-column>
        <el-table-column label="Ident" width="auto"></el-table-column>
        <el-table-column label="Service" width="auto"></el-table-column>
        <el-table-column label="Status" width="auto"></el-table-column>
        <el-table-column label="Retries" width="auto"></el-table-column>
        <el-table-column label="Target" width="auto"></el-table-column>
      </c-table>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Mgrtsk/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [CommonProcess],
  data() {
    return {
      data:[],
      };
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>
