1
李喆(开发组)
2025-06-17 3ff60a88872ae10cd1b7ff69ed606fcfd125cde5
1
已修改1个文件
80 ■■■■■ 文件已修改
src/views/flowmgr/timeoutQuery.vue 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/flowmgr/timeoutQuery.vue
@@ -1,5 +1,6 @@
<template>
  <basic-container>
    <avue-form v-model="searchForm" :option="serachOption" @submit="searchSubmit"></avue-form>
    <avue-crud
      :addBtn="false"
      :option="option"
@@ -26,6 +27,35 @@
export default {
  data() {
    return {
      searchForm: {},
      serachOption: {
        labelWidth: 90,
        menuSpan: 6,
        submitText: "查询",
        emptyBtn: false,
        column: [
          {
            label: "任务时间",
            prop: "daterange",
            type: "daterange",
            format: 'YYYY-MM-DD',
            valueFormat: 'YYYY-MM-DD',
            startPlaceholder: '日期开始范围自定义',
            endPlaceholder: '日期结束范围自定义',
            span: 6
          },
          {
            label: '执行人员',
            prop: 'assigneeName',
            span: 6
          },
          {
            label: '关键字',
            prop: 'keyword',
            span: 6
          }
        ]
      },
      search: {
        keyword: "",
        machineGroupCode: ""
@@ -46,38 +76,28 @@
        menu: false,
        column: [
          {
            label: '任务时间',
            type: 'input',
            prop: '',
            search: true,
            hide: true
          },
          {
            label: '执行人员',
            type: 'input',
            prop: '',
            search: true
            prop: 'assigneeName',
          },
          {
            label: '任务名称',
            prop: '',
            prop: 'taskName',
          },
          {
            label: '任务节点',
            prop: '',
            prop: 'assignee',
          },
          {
            label: '任务到达时间',
            prop: '',
            prop: 'createTime',
          },
          {
            label: '要求完成时间',
            prop: '',
            prop: 'claimTime',
          },
          {
            label: '详情',
            prop: '',
            search: true,
            label: '关键字',
            prop: 'keyword',
            hide: true
          }
        ],
@@ -86,6 +106,10 @@
    };
  },
  methods: {
    searchSubmit(params,done) {
      this.onLoad(params);
      done();
    },
    handleEdit(row,index) {
      
    },
@@ -106,18 +130,22 @@
    refreshChange() {
      
    },
    onLoad() {
      this.loading = true;
      var obj = {
        keyword: this.search.keyword,
        machineGroupCode: this.search.machineGroupCode,
        current: this.mypage.current,
        size: this.mypage.size,
    onLoad(params) {
      if(this.searchForm.daterange == undefined) {
        this.searchForm.createTimeBegin = "";
        this.searchForm.createTimeEnd = "";
      }else if(this.searchForm.daterange.length == 1) {
        this.searchForm.createTimeBegin = this.searchForm.daterange[0];
      }else if(this.searchForm.daterange.length == 2) {
        this.searchForm.createTimeBegin = this.searchForm.daterange[0];
        this.searchForm.createTimeEnd = this.searchForm.daterange[1];
      }
      console.log(this.searchForm,111)
      this.loading = true;
      axios({
        url: '/blade-mdm/machine/page',
        url: '/blade-mdm/flow/mgr/overtime-list',
        method: 'get',
        date: obj,
        params: this.searchForm,
      }).then(
        res => {
          const data = res.data.data;