
<template>
  <div>
    <basicLayout 
      ref="list" 
      :oldFormPath="{
        add:'HDrpManagement/serveWorkBillTask/components'
      }"
      tableName="serveToskTable" 
      idName="sa_workpresetid" 
      :apiId="{query:20230207132803,del:20230207132903}"
      :options="options"
      :detailPath="{
        path:'/serveWorkTaskDetail'
      }">
      <div slot="custom"></div>
      <template v-slot:tbList="scope">
        <div v-if="scope.data.column.columnname == 'fileupload'" :style="scope.data.column.data.fileupload ? scope.data.column.data.fileupload == 1 ? 'color:green' : 'color:red' : 'color:#333333'">
          {{scope.data.column.data.fileupload ? scope.data.column.data.fileupload == 1 ? '非必填' : '必填' : '无'}}
        </div>
        <div v-else-if="scope.data.column.columnname == 'additem'" :style="scope.data.column.data.additem ? scope.data.column.data.additem == 1 ? 'color:green' : 'color:red' : 'color:#333333'">
          {{scope.data.column.data.additem ? scope.data.column.data.additem == 1 ? '添加' : '必添加' : '不添加'}}
        </div>
        <div v-else-if="scope.data.column.columnname == 'textedit'" :style="scope.data.column.data.textedit ? scope.data.column.data.textedit == 1 ? 'color:green' : 'color:red' : 'color:#333333'">
          {{scope.data.column.data.textedit ? scope.data.column.data.textedit == 1 ? '非必填' : '必填' : '无'}}
        </div>
        <div v-else-if="scope.data.column.columnname == 'contractupload'" :style="scope.data.column.data.contractupload ? scope.data.column.data.contractupload == 1 ? 'color:green' : 'color:red' : 'color:#333333'">
          {{scope.data.column.data.contractupload ? scope.data.column.data.contractupload == 1 ? '非必填' : '必填' : '无'}}
        </div>
        <div v-else-if="scope.data.column.columnname == 'isadditem'" :style="scope.data.column.data.isadditem ? scope.data.column.data.isadditem == 1 ? 'color:green' : 'color:red' : 'color:#333333'">
          {{scope.data.column.data.isadditem ? scope.data.column.data.isadditem == 1 ? '非必填' : '必填' : '无'}}
        </div>
        <div v-else-if="scope.data.column.columnname == 'addperson'" :style="scope.data.column.data.addperson ? scope.data.column.data.addperson == 1 ? 'color:green' : 'color:red' : 'color:#333333'">
          {{scope.data.column.data.addperson ? scope.data.column.data.addperson == 1 ? '非必填' : '必填' : '无'}}
        </div>
        <div v-else-if="scope.data.column.columnname == 'amountpay'" :style="scope.data.column.data.amountpay ? scope.data.column.data.amountpay == 1 ? 'color:green' : 'color:red' : 'color:#333333'">
          {{scope.data.column.data.amountpay ? scope.data.column.data.amountpay == 1 ? '非必填' : '必填' : '无'}}
        </div>
        <div v-else-if="scope.data.column.columnname == 'required'" :style="scope.data.column.data.required ? scope.data.column.data.required == 1 ? 'color:green' : 'color:red' : 'color:#333333'">
          {{scope.data.column.data.required ? scope.data.column.data.required == 1 ? '非必填' : '必填' : '无'}}
        </div>
        <div v-else>
          {{scope.data.column.data[[scope.data.column.columnname]]?scope.data.column.data[[scope.data.column.columnname]]:'--'}}
        </div>
      </template>
      <template v-slot:tbOpreation="scope">
      </template>
    </basicLayout>
  </div>
</template>

<script>
export default {
  data () {
    return {
      options:[]
      
    }
  },
  methods:{
  }
}

</script>
<style>
</style>