From 0d626ae57149d5ed40a32bd8b808ca6069aa6d5e Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期日, 14 一月 2024 16:35:08 +0800 Subject: [PATCH] update --- src/container/ledger/index.vue | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 40 insertions(+), 7 deletions(-) diff --git a/src/container/ledger/index.vue b/src/container/ledger/index.vue index e222a74..749b994 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:09:50 + * @LastEditTime: 2024-01-14 16:31:53 * @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,17 +53,20 @@ </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> <el-input class="item-value" v-model="queryInfo.manufacturer"></el-input> </div> <div class="item"> - <div class="query btn" @click="query">鏌ヨ</div> + <el-button type="primary" size="small" @click="query">鏌ヨ</el-button> + <!-- <div class="query btn" @click="query">鏌ヨ</div> --> </div> <div class="item"> - <div class="reset btn" @click="reset">閲嶇疆</div> + <el-button type="primary" size="small" @click="reset">閲嶇疆</el-button> + <!-- <div class="reset btn" @click="reset">閲嶇疆</div> --> </div> </template> @@ -126,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> @@ -137,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: { @@ -216,7 +220,7 @@ query() { this.$refs.list.pageQuery(this.queryInfo) }, - reset () { + reset() { Object.keys(this.queryInfo).forEach(key => { this.queryInfo[key] = '' }) @@ -235,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].join(',') }).then(res => { + this.$message({ + type: 'success', + message: '鍒犻櫎鎴愬姛锛�' + }) + this.submitForm() + }).catch(() => { + this.$message({ + type: 'info', + message: '宸插彇娑堝垹闄�' + }) + }) + }) } }, } @@ -247,6 +271,14 @@ border-radius: 2px; border: 1px solid #435F9E; } + } + + .el-button--mini { + background: transparent; + } + + .el-button--primary { + background-color: transparent; } } </style> @@ -261,6 +293,7 @@ .nav { padding: 10px 30px; + font-size: 14px; } .item { -- Gitblit v1.9.3