jiangping
2024-06-11 aeff5e4256f5390a369f48ebc0f519c1e482b608
admin/src/views/task/index.vue
@@ -85,7 +85,7 @@
      row-key="id"
      default-expand-all
    >
      <el-table-column prop="name" label="任务类型" min-width="100">
<!--      <el-table-column prop="name" label="任务类型" min-width="100">
        <template v-slot="scope">
          <span
            v-if="
@@ -95,12 +95,12 @@
            >{{ cateList[scope.row.objType].name }}</span
          >
        </template>
      </el-table-column>
      <el-table-column label="提交人" min-width="80">
        <template v-slot="scope">
          <span v-if="scope.row.title">{{
            scope.row.title.split(" - ")[1]
          }}</span>
      </el-table-column>-->
      <el-table-column label="处理事项" min-width="200">
        <template slot-scope="{ row }"> {{ row.title}}
<!--          <span v-if="row.title">{{
            row.title.split("-")[1]
          }}</span>-->
        </template>
      </el-table-column>
      <el-table-column prop="createDate" label="提交时间" min-width="100">
@@ -184,7 +184,7 @@
          },
          {
            filed: 'selDate',
            type: 'daterange',
            type: 'datetimerange',
            label: '起始日期'
          },
          {
@@ -214,12 +214,13 @@
    }
  },
  created () {
    this.getHeadData()
    // this.getHeadData()
    this.changeRadio('0')
    this.getList()
  },
  methods: {
    changeRadio (day) {
      const arr = [dayjs().subtract(day, 'day').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')]
      const arr = [dayjs().subtract(day, 'day').format('YYYY-MM-DD HH:mm:ss'), dayjs().format('YYYY-MM-DD HH:mm:ss')]
      this.$set(this.filters, 'selDate', arr)
      this.getList()
    },
@@ -260,6 +261,7 @@
      }
    },
    getList (page) {
      this.getHeadData()
      console.log(this.filters)
      const { filters, pagination } = this
      if (filters.selDate && filters.selDate.length > 0) {