GuLiMmo
2023-12-25 36cf6c5a265d3300a286e2aff6058b82bca8227e
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,
@@ -30,6 +40,7 @@
      type: "input",
      search: true,
      width: 100,
      disabled: true,
      rules: [
        {
          required: true,
@@ -39,9 +50,24 @@
      ],
    },
    {
      label: "考核目的",
      // label: "考核目的",
      label: "考核种类",
      prop: "assessmentPurpose",
      type: "input",
      type: "select",
      dicData: [
        {
          label: '月度考核',
          value: '月度考核'
        },
        {
          label: '季度考核',
          value: '季度考核'
        },
        {
          label: '年度考核',
          value: '年度考核'
        }
      ],
      rules: [
        {
          required: true,
@@ -83,6 +109,8 @@
      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,