GuLiMmo
2024-01-05 901607bb65a40aebf55a246d64b09d3f3a99cd5c
src/option/assessmentTask/assessmentTask.js
@@ -1,3 +1,13 @@
import { ElMessage } from 'element-plus'
const getNowDate = () => {
  const date = new Date()
  const year = date.getFullYear()
  const month = date.getMonth() + 1
  const day = date.getDate()
  return year + '-' + month + '-' + day + ' ' + '00:00:00'
}
export default {
  height: 'auto',
  calcHeight: 30,
@@ -8,8 +18,9 @@
  index: false,
  viewBtn: false,
  delBtn: false,
  editBtn: false,
  editBtn: true,
  selection: true,
  menuWidth: 250,
  dialogClickModal: false,
  column: [
    // {
@@ -29,7 +40,7 @@
      prop: "assessmentNo",
      type: "input",
      search: true,
      width: 100,
      minWidth: 100,
      disabled: true,
      rules: [
        {
@@ -44,6 +55,8 @@
      label: "考核种类",
      prop: "assessmentPurpose",
      type: "select",
      minWidth: 100,
      overHidden: true,
      dicData: [
        {
          label: '月度考核',
@@ -99,9 +112,11 @@
      label: "开始时间",
      prop: "startTime",
      type: "date",
      value: getNowDate(),
      disabled: true,
      format: "YYYY-MM-DD HH:mm:ss",
      valueFormat: "YYYY-MM-DD HH:mm:ss",
      width: 200,
      // valueFormat: "YYYY-MM-DD HH:mm:ss",
      minWidth: 200,
      rules: [
        {
          required: true,
@@ -116,7 +131,7 @@
      type: "date",
      format: "YYYY-MM-DD HH:mm:ss",
      valueFormat: "YYYY-MM-DD HH:mm:ss",
      width: 200,
      minWidth: 200,
      rules: [
        {
          required: true,
@@ -128,7 +143,9 @@
    {
      label: "备注",
      prop: "remark",
      type: "textarea"
      type: "textarea",
      overHidden: true,
      minWidth: 300
    },
    {
      label: "任务状态",
@@ -137,48 +154,6 @@
      display: false,
      width: 100,
      slot: true
    },
    // {
    //   label: "创建人",
    //   prop: "createUser",
    //   type: "input",
    //   hide: true,
    // },
    // {
    //   label: "创建部门",
    //   prop: "createDept",
    //   type: "input",
    //   hide: true,
    // },
    // {
    //   label: "创建时间",
    //   prop: "createTime",
    //   type: "input",
    //   hide: true,
    // },
    // {
    //   label: "修改人",
    //   prop: "updateUser",
    //   type: "input",
    //   hide: true,
    // },
    // {
    //   label: "修改时间",
    //   prop: "updateTime",
    //   type: "input",
    //   hide: true,
    // },
    // {
    //   label: "状态",
    //   prop: "status",
    //   type: "input",
    //   hide: true,
    // },
    // {
    //   label: "是否已删除",
    //   prop: "isDeleted",
    //   type: "input",
    //   hide: true,
    // },
    }
  ]
}