| | |
| | | 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=" |
| | |
| | | >{{ 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"> |
| | |
| | | }, |
| | | { |
| | | filed: 'selDate', |
| | | type: 'daterange', |
| | | type: 'datetimerange', |
| | | label: '起始日期' |
| | | }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | 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() |
| | | }, |
| | |
| | | } |
| | | }, |
| | | getList (page) { |
| | | this.getHeadData() |
| | | console.log(this.filters) |
| | | const { filters, pagination } = this |
| | | if (filters.selDate && filters.selDate.length > 0) { |