From 859a64b36d107b147f44eccd0c0a76471c5e49ea Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 15 六月 2023 18:20:39 +0800 Subject: [PATCH] 优化bug --- Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue | 53 ++++++++++++++++++++++------------------------------- 1 files changed, 22 insertions(+), 31 deletions(-) diff --git a/Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue b/Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue index 8724503..64471d3 100644 --- a/Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue +++ b/Source/UBCS-WEB/src/views/system/PasswordManagement/passwords.vue @@ -33,7 +33,8 @@ // getOnesearch, getadd, getupdata, - getremove + getremove, + combination } from "@/api/system/passwords"; export default { name: "passwords.vue", @@ -189,24 +190,12 @@ message: "璇烽�夋嫨缁勫悎鏂规硶", trigger: "blur" }], - dicData: [ - { - label: "鏁板瓧", - value: '1638024706425188354' - }, - { - label: "绗﹀彿", - value: '1638097837516926977' - }, - { - label: "灏忓啓瀛楁瘝", - value: '1638097772983365634' - }, - { - label: "澶у啓瀛楁瘝", - value: '1638097733707902977' - }, - ], + dicUrl: '/api/ubcs-system/combination/select', + dicMethod: 'get', + props: { + value: "ID", + label: "NAME", + }, }, { label: '蹇呭~绉嶇被', @@ -222,22 +211,22 @@ }], dicData:[{ label:'1绉�', - value:0, + value:1, disabled:false }, { label:'2绉�', - value:1, - disabled:false - }, - { - label:'3绉�', value:2, disabled:false }, { - label:'4绉�', + label:'3绉�', value:3, + disabled:false + }, + { + label:'4绉�', + value:4, disabled:false } ] @@ -334,6 +323,9 @@ }, created() { this.onLoad() + combination().then(res=>{ + console.log("111",res) + }) }, mount() { }, @@ -497,9 +489,8 @@ }); done(row) this.onLoad() - console.log(res) }).catch((res)=>{ - console.log(res) + this.$message.warning(res) }) }, rowEdit(row){ @@ -544,8 +535,8 @@ // this.loading = false; // this.selectionClear(); console.log(res) - this.page.total=res.data.data.totalElements - this.data=res.data.data.content + this.page.total=res.data.data.total + this.data=res.data.data.records }); } } @@ -553,5 +544,5 @@ } </script> -<style lang="scss"> +<style lang="scss" scoped> </style> -- Gitblit v1.9.3