From 128aec95c834751e587e7f6615310ffbe3b13b64 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 27 九月 2023 16:37:53 +0800 Subject: [PATCH] 11 --- src/views/project/travelexpenseapply/index.vue | 52 ++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 38 insertions(+), 14 deletions(-) diff --git a/src/views/project/travelexpenseapply/index.vue b/src/views/project/travelexpenseapply/index.vue index 6342f60..faf9fc8 100644 --- a/src/views/project/travelexpenseapply/index.vue +++ b/src/views/project/travelexpenseapply/index.vue @@ -68,6 +68,19 @@ </el-select> </el-form-item> </el-col> + </el-row> + <el-row> + <el-col :span="5"> + <el-form-item label="鎹愮尞鑰�" prop="donorname" style="float: left"> + <el-input + v-model="queryParams.donorname" + placeholder="璇疯緭鍏ョ敵璇蜂汉鎹愮尞鑰�" + clearable + size="small" + @keyup.enter.native="flowconclusion" + /> + </el-form-item> + </el-col> <el-col :span="4"> <el-form-item> <el-button @@ -87,12 +100,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 +110,6 @@ type="warning" plain icon="el-icon-download" - size="mini" :loading="exportLoading" @click="handleExport" >瀵煎嚭</el-button @@ -116,7 +123,7 @@ </el-row> <el-table - border + :row-class-name="rowClassName" v-loading="loading" :data="reimbursementList" @selection-change="handleSelectionChange" @@ -198,7 +205,6 @@ align="center" fixed="right" class-name="small-padding fixed-width" - width="210" > <template slot-scope="scope"> <el-button @@ -220,7 +226,7 @@ <el-button size="mini" type="text" - icon="el-icon-edit" + icon="el-icon-view" @click="handleDetail(scope.row)" >鏌ョ湅</el-button > @@ -1439,7 +1445,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 +1851,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 +1936,7 @@ path: "/finance/travelexpenseapply/travelexpensedetail/", query: { id: row.id, pos: 3 } }); - + this.dialogType = "detail"; this.title = "鏌ョ湅鎶ラ攢鐢宠"; @@ -2136,6 +2142,7 @@ /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete(row) { const ids = row.id || this.ids; + console.log(ids); this.$modal .confirm("鏄惁纭鍒犻櫎璇ユ潯璁板綍锛�") .then(function() { @@ -2547,7 +2554,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