11
WXL
2023-08-28 137a907c96896d7b82fd0f062d5d93e87c53eabf
src/views/project/travelexpenseapply/index.vue
@@ -87,12 +87,7 @@
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
        <el-button type="primary" plain icon="el-icon-plus" @click="handleAdd"
          >新增</el-button
        >
        <!-- v-hasPermi="['project:funddetail:add']" -->
@@ -102,7 +97,6 @@
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          :loading="exportLoading"
          @click="handleExport"
          >导出</el-button
@@ -116,7 +110,7 @@
    </el-row>
    <el-table
      border
      :row-class-name="rowClassName"
      v-loading="loading"
      :data="reimbursementList"
      @selection-change="handleSelectionChange"
@@ -198,7 +192,6 @@
        align="center"
        fixed="right"
        class-name="small-padding fixed-width"
        width="210"
      >
        <template slot-scope="scope">
          <el-button
@@ -1439,7 +1432,7 @@
        this.$modal.msgSuccess(response.msg);
        this.fileList.push({ name: response.fileName, url: response.fileName });
      } else {
        console.log(response.msg);;
        console.log(response.msg);
      }
    },
@@ -1845,10 +1838,10 @@
    /** 新增按钮操作 */
    handleAdd() {
      console.log("defaultperson",this.defaultperson);
      console.log("defaultperson", this.defaultperson);
      this.$router.push({
        path: "/finance/travelexpenseapply/travelexpensedetail/",
        query: { id: 0, pos: 1,routerparam:this.defaultperson}
        query: { id: 0, pos: 1, routerparam: this.defaultperson }
      });
      this.reset();
@@ -1930,7 +1923,7 @@
        path: "/finance/travelexpenseapply/travelexpensedetail/",
        query: { id: row.id, pos: 3 }
      });
      this.dialogType = "detail";
      this.title = "查看报销申请";
@@ -2547,7 +2540,24 @@
        chineseStr += cnInteger;
      }
      return chineseStr;
    },
    //明显提示审批退回记录
    rowClassName({ row, column, rowIndex, columnIndex }) {
      //此判断为最后三行
      if (row.backflowlevel == 199) {
        return "addClassva";
      }
    }
  }
};
</script>
<!-- <style scoped> -->
<!-- 不可加scoped,会独立样式element访问不到 -->
<style>
.addClassva {
  /* background: #10aec2; */
  background: #e8f4ff !important;
  /* color:whitesmoke; */
}
</style>