From c55d9376565a78ce31a5b8d78dad89df16c2628e Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期四, 18 一月 2024 23:34:54 +0800 Subject: [PATCH] 删除完 更新 --- src/container/ledger/index.vue | 28 +++++++++++++++------------- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/container/ledger/index.vue b/src/container/ledger/index.vue index 2bde0c0..720cfde 100644 --- a/src/container/ledger/index.vue +++ b/src/container/ledger/index.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2024-01-06 17:40:19 * @LastEditors: Sneed - * @LastEditTime: 2024-01-17 00:04:57 + * @LastEditTime: 2024-01-18 23:33:58 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/ledger/index.vue --> <template> @@ -11,41 +11,41 @@ <template slot="search"> <div class="item"> <span>缁熶竴缂栧彿</span> - <el-input class="item-value" v-model="queryInfo.uuid"></el-input> + <el-input class="item-value" v-model="queryInfo.uuid" clearable></el-input> </div> <div class="item"> <span>璁惧瑙勬牸</span> - <el-input class="item-value" v-model="queryInfo.specification"></el-input> + <el-input class="item-value" v-model="queryInfo.specification" clearable></el-input> </div> <div class="item"> <span>璁惧鍨嬪彿</span> - <el-input class="item-value" v-model="queryInfo.type"></el-input> + <el-input class="item-value" v-model="queryInfo.type" clearable></el-input> </div> <div class="item"> <span>鍔犲伐绫诲瀷</span> - <el-select class="item-value" v-model="queryInfo.category" placeholder=""> + <el-select class="item-value" v-model="queryInfo.category" placeholder="" clearable> <el-option v-for="item in deviceType" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> </div> <div class="item"> <span>璐﹀姟灞炴��</span> - <el-select class="item-value" v-model="queryInfo.accountingAttribute" placeholder=""> - <el-option v-for="item in accountingAttribute" :key="item.value" :label="item.label" + <el-select class="item-value" v-model="queryInfo.accountingAttribute" placeholder="" clearable> + <el-option v-for="item in financePro" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> </div> <div class="item"> <span>浣跨敤閮ㄩ棬</span> - <el-select class="item-value" v-model="queryInfo.department"> + <el-select class="item-value" v-model="queryInfo.department" clearable> <el-option v-for="item in departmentlist" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select> </div> <div class="item"> <span>璁惧绠$悊鍒嗙被</span> - <el-select class="item-value" v-model="queryInfo.manageType"> + <el-select class="item-value" v-model="queryInfo.manageType" clearable> <el-option value="A">A</el-option> <el-option value="B">B</el-option> <el-option value="C">C</el-option> @@ -54,15 +54,15 @@ <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> + v-model="queryInfo.productionDate" type="date" clearable placeholder="閫夋嫨鏃ユ湡" clearable></el-date-picker> </div> <div class="item"> <span>鐢熶骇鍘傚</span> - <el-input class="item-value" v-model="queryInfo.manufacturer"></el-input> + <el-input class="item-value" v-model="queryInfo.manufacturer" clearable></el-input> </div> <div class="item"> <span>璁惧绫诲瀷</span> - <el-select class="item-value" v-model="queryInfo.deviceTypeId" placeholder=""> + <el-select class="item-value" v-model="queryInfo.deviceTypeId" placeholder="" clearable> <el-option v-for="item in deviceTypeIds" :key="item.id" :label="item.name" :value="item.id"> </el-option> @@ -73,6 +73,7 @@ <el-button type="primary" size="small" @click="reset">閲嶇疆</el-button> <!-- <div class="reset btn" @click="reset">閲嶇疆</div> --> </div> + </template> <template slot="table-tool"> @@ -258,12 +259,13 @@ type: 'warning' }).then(() => { getRequest('accountDel', { ids: [row.id] }).then(res => { + this.query() this.$message({ type: 'success', message: '鍒犻櫎鎴愬姛锛�' }) this.submitForm() - }).catch(() => { + },() => { this.$message({ type: 'info', message: '宸插彇娑堝垹闄�' -- Gitblit v1.9.3