龚焕茏
2024-03-19 07a671e2ec9c1f75de1d27a3abced6a1f43352bd
考核结果取消发布
1个文件已修改
7 ■■■■■ 已修改文件
src/views/system/check-result/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/check-result/index.vue
@@ -96,7 +96,7 @@
      <div class="text item">考核时间
        <span class="time">{{ item.checkTime }}</span>
        <el-button size="small" round style="float: right;" @click="handlePublish(item)" v-show="item.publish != 1">确认发布</el-button>
        <el-button size="small" round style="float: right;" v-show="item.publish == 1" disabled="true">已发布</el-button>
        <el-button size="small" round style="float: right;" @click="handlePublish(item)" v-show="item.publish == 1">已发布</el-button>
      </div>
    </el-card>
@@ -357,12 +357,13 @@
    },
    handlePublish(row) {
      let text = row.publish == 1 ? '取消发布' : '发布';
      const ids = row.id || this.ids;
      this.$modal.confirm('是否确认发布考核结果编号为"' + ids + '"的数据项?').then(function() {
      this.$modal.confirm('是否确认' + text + '考核结果编号为"' + ids + '"的数据项?').then(function() {
        return publishCheckResult(ids);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("发布成功");
        this.$modal.msgSuccess(text + "成功");
      }).catch(() => {});
    },