feat:配置权限
This commit is contained in:
1 parent
7d780d9f0c
commit
c4f10ac9fe
5 files changed
+28
-7
No files matched your search
@@ -15,6 +15,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="每一餐的上限" prop="payAmountEnable">
|
||||
<el-switch
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
v-model="form.payAmountEnable"
|
||||
@@ -27,6 +28,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="每一餐的上限" prop="payAmountMealLimit">
|
||||
<el-input
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 300px"
|
||||
type="number"
|
||||
v-model="form.payAmountMealLimit"
|
||||
@@ -39,6 +41,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="倍数" prop="payAmountMealTimes">
|
||||
<el-input
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 300px"
|
||||
type="number"
|
||||
v-model="form.payAmountMealTimes"
|
||||
@@ -63,6 +66,8 @@
|
||||
import { storePrice, displayPrice } from "/@/utils/formatMoney"
|
||||
import { useMessage } from "/@/hooks/message"
|
||||
import { getObj, putObj } from "/@/api/wallet/wallet-setting"
|
||||
import { auth } from "/@/utils/authFunction"
|
||||
|
||||
// 定义变量内容
|
||||
const dataFormRef = ref()
|
||||
const loading = ref(false)
|
||||
|
||||
Reference in new issue
Block a user