hutongqing
2024-08-21 b5bc0d6eb2d2e55ea830a1b286252b9754cbf8e9
WIDESEAWCS_Client/src/extension/taskinfo/extend/taskExecuteDetail.vue
@@ -52,16 +52,16 @@
              ></el-step>
            </el-steps>
          </div>
          <el-row height="50">
          <el-row height="50" v-show="previousShow || nextShow">
            <el-col :span="12">
              <div class="grid-content content-text">
              <div v-show="previousShow" class="grid-content content-text">
                <el-button type="danger" @click="previous"
                  >回滚到上一步</el-button
                >
              </div>
            </el-col>
            <el-col :span="12">
              <div class="grid-content content-text">
              <div v-show="nextShow" class="grid-content content-text">
                <el-button type="warning" @click="next">跳转到下一步</el-button>
              </div>
            </el-col>
@@ -105,6 +105,8 @@
      viewType: 1,
      height: "200px",
      tableData: [],
      previousShow: false,
      nextShow: false,
    };
  },
  methods: {
@@ -116,6 +118,14 @@
      } else {
        this.getDetailDatas();
      }
      this.$emit("parentCall", ($vue) => {
        var previousButton = $vue.buttons.find((x) => x.value == "Previous");
        this.previousShow = previousButton != null;
        var nextButton = $vue.buttons.find((x) => x.value == "Next");
        this.nextShow = nextButton != null;
      });
    },
    getSteps() {
      this.http
@@ -178,7 +188,8 @@
      }
    },
    tableRowClassName({ row, rowIndex }) {
      if (row.isNormal) {
      if (!row.isNormal) {
        return "error-row";
      } else if (row.isManual) {
        return "warning-row";
      }
@@ -210,7 +221,7 @@
</style>
<style>
.el-table .warning-row {
  background: #e6a23c;
  background: #fcf1e2;
}
.el-table .success-row {
@@ -218,6 +229,6 @@
}
.el-table .error-row {
  background: #f56c6c;
  background: #fde2e2;
}
</style>