From 9cb389b74302ce6b0a2333328922e7c462234a56 Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期五, 01 十二月 2023 18:31:27 +0800 Subject: [PATCH] feat: 基础信息 新增、编辑增加防重提交 列表也优化 --- admin-web/src/views/foundation/store/person.vue | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/admin-web/src/views/foundation/store/person.vue b/admin-web/src/views/foundation/store/person.vue index 1a4e5dc..dc647b3 100644 --- a/admin-web/src/views/foundation/store/person.vue +++ b/admin-web/src/views/foundation/store/person.vue @@ -1,5 +1,5 @@ <template> - <win-md :title="setting.title" @close="close" :width="'800px'"> + <win-md :title="setting.title" @close="close" :width="'800px'" :loading="loading"> <div class="section-container"> <div class="section-left"> <div class="header-row"><span class="title">閫夋嫨浜哄憳锛�</span></div> @@ -35,11 +35,9 @@ </template> <script> -import { departmentListAll } from '@/api/system/deptment'; -import { userSelectDepartment, warehouseManagerAdd, warehouseManagerList } from '@/api/foudation/store'; +import {userSelectDepartment, warehouseManagerList} from '@/api/foudation/store'; import winMd from '@/components/win/win-md'; import myButton from '@/components/myButton/myButton'; -import * as finsystenant from '@/api/baseSetting/finsystenant'; export default { name: 'person', @@ -52,6 +50,8 @@ }, data() { return { + loading:true, + loadingText:'鍔犺浇涓�', selectdSections: [], treeData: [], formData: {}, @@ -64,15 +64,10 @@ }, computed: { checkedKeys() { - console.log( - 1111, - this.selectdSections.map((v) => v.id), - ); return this.selectdSections.map((v) => v.id); }, }, created() { - console.log(this.setting); if (this.setting.info) { this.formData = Object.assign({}, JSON.parse(this.setting.info)); } @@ -84,6 +79,7 @@ return item; }); this.key = Math.random(); + this.loading = false }); }, methods: { @@ -145,12 +141,16 @@ managerName: item.name, }); }); - debugger; - warehouseManagerAdd(params).then((res) => { + setTimeout(()=>{ this.$message.success('淇濆瓨鎴愬姛锛�'); this.close(); this.$emit('search'); - }); + },6000) + // warehouseManagerAdd(params).then((res) => { + // this.$message.success('淇濆瓨鎴愬姛锛�'); + // this.close(); + // this.$emit('search'); + // }); }, }, }; -- Gitblit v1.9.1