From fcb6eb2c02f00b0da864a8915af2afcb285a63a8 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期二, 16 一月 2024 20:29:59 +0800 Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/mdc-front --- src/container/ledger/index.vue | 37 +++++++++++++++++++++++++++++++------ 1 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/container/ledger/index.vue b/src/container/ledger/index.vue index 45a3577..31192dd 100644 --- a/src/container/ledger/index.vue +++ b/src/container/ledger/index.vue @@ -1,12 +1,12 @@ <!-- * @Date: 2024-01-06 17:40:19 * @LastEditors: Sneed - * @LastEditTime: 2024-01-13 11:33:09 + * @LastEditTime: 2024-01-14 18:56:40 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/ledger/index.vue --> <template> <div class="maintenance"> - <div class="nav">璁惧淇濆吇/鏃ュ父淇濆吇</div> + <div class="nav">鍙拌处</div> <List ref="list" url="/account/pageQuery"> <template slot="search"> <div class="item"> @@ -53,7 +53,8 @@ </div> <div class="item"> <span>鎶曚骇鏃ユ湡</span> - <el-date-picker class="item-value" format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="queryInfo.productionDate" type="date" clearable placeholder="閫夋嫨鏃ユ湡"></el-date-picker> + <el-date-picker class="item-value" format="yyyy-MM-dd" value-format="yyyy-MM-dd" + v-model="queryInfo.productionDate" type="date" clearable placeholder="閫夋嫨鏃ユ湡"></el-date-picker> </div> <div class="item"> <span>鐢熶骇鍘傚</span> @@ -93,7 +94,7 @@ align="center" prop="classes"> </el-table-column> --> - <el-table-column label="浣跨敤閮ㄩ棬" align="center" prop="department"> + <el-table-column label="浣跨敤閮ㄩ棬" align="center" prop="departmentName"> </el-table-column> <el-table-column label="璁惧绫诲瀷" align="center" prop="category"> </el-table-column> @@ -128,6 +129,7 @@ <el-table-column fixed="right" align="center" label="鎿嶄綔"> <template slot-scope="scope"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row)">缂栬緫</el-button> + <el-button type="text" size="small" @click="del(scope.row)">鍒犻櫎</el-button> </template> </el-table-column> </template> @@ -139,7 +141,7 @@ </template> <script> import ManageAddUpdate from './Manage-add-update' -import { getUseDpts } from '@/api/Api' +import { getUseDpts, getRequest } from '@/api/Api' import List from '../list/index.vue' export default { components: { @@ -218,7 +220,7 @@ query() { this.$refs.list.pageQuery(this.queryInfo) }, - reset () { + reset() { Object.keys(this.queryInfo).forEach(key => { this.queryInfo[key] = '' }) @@ -237,6 +239,26 @@ addOrUpdateHandle(row) { this.row = row this.addOrUpdateVisible = true + }, + del(row) { + this.$confirm('纭畾瑕佹案涔呭垹闄ゆ椤�?', '鎻愮ず', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷', + type: 'warning' + }).then(() => { + getRequest('accountDel', { ids: [row.id] }).then(res => { + this.$message({ + type: 'success', + message: '鍒犻櫎鎴愬姛锛�' + }) + this.submitForm() + }).catch(() => { + this.$message({ + type: 'info', + message: '宸插彇娑堝垹闄�' + }) + }) + }) } }, } @@ -250,9 +272,11 @@ border: 1px solid #435F9E; } } + .el-button--mini { background: transparent; } + .el-button--primary { background-color: transparent; } @@ -269,6 +293,7 @@ .nav { padding: 10px 30px; + font-size: 14px; } .item { -- Gitblit v1.9.3