From f26808b4a9f2441a938a02540675b65db0a00ce5 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 25 八月 2023 17:20:44 +0800 Subject: [PATCH] 11 --- src/views/project/travelexpenseapply/index.vue | 36 +++++++++++++++++++++++------------- 1 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/views/project/travelexpenseapply/index.vue b/src/views/project/travelexpenseapply/index.vue index 6342f60..0e6ef90 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 @@ -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> --> +<!-- 涓嶅彲鍔爏coped,浼氱嫭绔嬫牱寮廵lement璁块棶涓嶅埌 --> +<style> +.addClassva { + /* background: #10aec2; */ + background: #93b5cf !important; + /* color:whitesmoke; */ +} +</style> -- Gitblit v1.9.3