src/views/system/contract/contract-result/index.vue
@@ -43,6 +43,7 @@
          range-separator="-"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          @change="handleQuery"
        ></el-date-picker>
      </el-form-item>
      <el-form-item>
@@ -111,7 +112,7 @@
      >
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>{{ item.contractName }}</span>
            <span>{{ item.unitName + item.whichYear +'年'+item.whichMonth+'月考核报告' }}</span>
            <el-button
              style="float: right; padding: 3px 6px"
              type="text"
@@ -141,7 +142,7 @@
              size="small"
              round
              style="float: right"
              disabled
              @click="handlePublish(item)"
              v-show="item.publish == 1"
              v-hasPermi="['contract:result:publish']"
              >已发布</el-button
@@ -290,8 +291,8 @@
    };
  },
  created() {
    this.getList();
    this.getUnitSelect();
    this.getList();
  },
  methods: {
    getUnitSelect() {
@@ -306,6 +307,9 @@
      if (null != this.daterangeCheckTime && "" != this.daterangeCheckTime) {
        this.queryParams["createStartTime"] = this.daterangeCheckTime[0];
        this.queryParams["createEndTime"] = this.daterangeCheckTime[1];
      }else {
        this.queryParams["createStartTime"] = null;
        this.queryParams["createEndTime"] = null;
      }
      console.log("this.queryParams", this.queryParams);
      listCheckResult(this.queryParams).then((response) => {
@@ -369,7 +373,7 @@
      let text = row.publish == 1 ? "取消发布" : "发布";
      const ids = row.id || this.ids;
      this.$modal
        .confirm("是否确认" + text + '考核结果编号为"' + ids + '"的数据项?')
        .confirm("是否确认" + text + row.unitName + row.whichYear +'年'+row.whichMonth+'月考核报告?')
        .then(function () {
          return publishCheckResult(ids);
        })