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="refreshQrCodeEnable">
|
||||
<el-switch
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
v-model="form.refreshQrCodeEnable"
|
||||
@@ -27,6 +28,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="钱包二维码自动刷新间隔" prop="refreshQrCodeFre">
|
||||
<el-input
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 300px"
|
||||
type="number"
|
||||
v-model="form.refreshQrCodeFre"
|
||||
@@ -52,6 +54,8 @@ import { useDict } from "/@/hooks/dict"
|
||||
import { storePrice } 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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="离线订单是否需要审批" prop="offLineOrderApplyEnable">
|
||||
<el-switch
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
v-model="form.offLineOrderApplyEnable"
|
||||
@@ -40,6 +41,8 @@ import { useDict } from "/@/hooks/dict"
|
||||
import { storePrice } 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)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="退款理由" prop="afterSaleRefundReasons">
|
||||
<el-select
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 500px"
|
||||
v-model="form.afterSaleRefundReasons"
|
||||
allow-create
|
||||
@@ -34,6 +35,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="退货理由" prop="afterSaleReturnReasons">
|
||||
<el-select
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 500px"
|
||||
v-model="form.afterSaleReturnReasons"
|
||||
allow-create
|
||||
@@ -65,6 +67,8 @@
|
||||
import { storePrice } 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