From 4fc9abfa57e81e83b74bdbd2e2f6d71d3500ef66 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 19 九月 2023 11:26:07 +0800
Subject: [PATCH] 11
---
src/views/project/travelexpenseapply/index.vue | 39 +++++++++++++++++++++++++--------------
1 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/src/views/project/travelexpenseapply/index.vue b/src/views/project/travelexpenseapply/index.vue
index 6342f60..24412c3 100644
--- a/src/views/project/travelexpenseapply/index.vue
+++ b/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
@@ -220,7 +213,7 @@
<el-button
size="mini"
type="text"
- icon="el-icon-edit"
+ icon="el-icon-view"
@click="handleDetail(scope.row)"
>鏌ョ湅</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 = "鏌ョ湅鎶ラ攢鐢宠";
@@ -2136,6 +2129,7 @@
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete(row) {
const ids = row.id || this.ids;
+ console.log(ids);
this.$modal
.confirm("鏄惁纭鍒犻櫎璇ユ潯璁板綍锛�")
.then(function() {
@@ -2547,7 +2541,24 @@
chineseStr += cnInteger;
}
return chineseStr;
+ },
+
+ //鏄庢樉鎻愮ず瀹℃壒閫�鍥炶褰�
+ rowClassName({ row, column, rowIndex, columnIndex }) {
+ //姝ゅ垽鏂负鏈�鍚庝笁琛�
+ if (row.backflowlevel == 199) {
+ return "addClassva";
+ }
}
}
};
</script>
+<!-- <style scoped> -->
+<!-- 涓嶅彲鍔爏coped,浼氱嫭绔嬫牱寮廵lement璁块棶涓嶅埌 -->
+<style>
+.addClassva {
+ /* background: #10aec2; */
+ background: #e8f4ff !important;
+ /* color:whitesmoke; */
+}
+</style>
--
Gitblit v1.9.3