ludc
2023-09-12 114c0b5aa8bffa7120d7294ba0631d2ef78711c1
Source/UBCS-WEB/src/views/docking/task.vue
@@ -8,6 +8,7 @@
               :permission="permissionList"
               ref="crud"
               @search-change="searchChange"
               @cell-dblclick="cellDbClick"
               @search-reset="searchReset"
               @selection-change="selectionChange"
               @current-change="currentChange"
@@ -15,12 +16,15 @@
               @refresh-change="refreshChange"
               @on-load="onLoad">
      <template slot="menuLeft">
        <el-button type="primary"
                   size="small"
                   plain
                   icon="el-icon-refresh-right"
                   @click="handleSend">手动推送
        </el-button>
          <el-button type="primary"
                     size="small"
                     plain
                     icon="el-icon-refresh-right"
                     @click="handleSend">手动推送
          </el-button>
        <div style="float: right;margin-left: 10px">
          <vci-docking-search :formInline="formInline" :SearchObject="SearchObject" :page="page" :status="status"></vci-docking-search>
        </div>
      </template>
    </avue-crud>
  </basic-container>
@@ -36,6 +40,74 @@
  name: "task",
  data(){
    return {
      //model绑定
      formInline:{
        type:'',
        stateTask:'',
        lastDate:'',
        Date:'',
        text:'',
        taskCut:''
      },
      //各个类型状态
      status:{
        type:'task',
        stateTaskDataFlag:false,
        dateFlag:false,
        lastDateFlag:false,
        sendTypeFlga:false
      },
      //集成类型死数据
      SearchObject:{
        searchData:[
          {
            label:'数据编码',
            prop: "id",
            value:0
          },
          {
            label:'分类代号',
            prop: 'classifyId',
            value:1
          },
          {
            label:'分类名称',
            prop: 'classifyName',
            value:2
          },
          {
            label:'集成系统编号',
            prop: 'systemCode',
            value:3
          },
          {
            label:'集成系统名称',
            prop: 'systemName',
            value:4
          },
          {
            label:'推送类型',
            prop: 'sendType',
            value:5
          },
          {
            label:'任务创建时间',
            prop: 'createTime',
            value:6
          },
          {
            label:'最后推送时间',
            prop: 'lastModifyTime',
            value:7
          },
          {
            label:'是否推送成功',
            prop: 'sendFlag',
            value:8
          }
        ]
      },
      value:'',
      loading: false,
      query: {},
      selectionList: [],
@@ -170,6 +242,19 @@
    }
  },
  methods: {
    async cellDbClick(row, column, cell, event) {
      for (const key in row) {
        if (key === column.property) {
          this.value = row[key];
        }
      }
      try {
        await this.$copyText(this.value);
        this.$message.success('复制成功');
      } catch (error) {
        this.$message.warning('复制失败');
      }
    },
    searchReset() {
      this.query = {};
      this.onLoad(this.page);