修改钱包充值申请报错提示
This commit is contained in:
1 parent
22a07637cb
commit
c5f5bb0649
1 file changed
+29
-6
@@ -126,8 +126,9 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
v-auth="'wallet_walletRechargeApply_view'"
|
v-auth="'wallet_walletRechargeApply_view'"
|
||||||
@click="doInfo(row)"
|
@click="doInfo(row)"
|
||||||
>数据</el-button
|
|
||||||
>
|
>
|
||||||
|
数据
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="row.importTime && !row.processId"
|
v-if="row.importTime && !row.processId"
|
||||||
icon="Connection"
|
icon="Connection"
|
||||||
@@ -135,8 +136,9 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
v-auth="'wallet_walletRechargeApply_apply'"
|
v-auth="'wallet_walletRechargeApply_apply'"
|
||||||
@click="doApply(row)"
|
@click="doApply(row)"
|
||||||
>申请</el-button
|
|
||||||
>
|
>
|
||||||
|
申请
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="!row.processId"
|
v-if="!row.processId"
|
||||||
icon="edit-pen"
|
icon="edit-pen"
|
||||||
@@ -144,8 +146,9 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
v-auth="'wallet_walletRechargeApply_edit'"
|
v-auth="'wallet_walletRechargeApply_edit'"
|
||||||
@click="formDialogRef.openDialog(row.id)"
|
@click="formDialogRef.openDialog(row.id)"
|
||||||
>编辑</el-button
|
|
||||||
>
|
>
|
||||||
|
编辑
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="false"
|
v-if="false"
|
||||||
icon="delete"
|
icon="delete"
|
||||||
@@ -153,8 +156,9 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
v-auth="'wallet_walletRechargeApply_del'"
|
v-auth="'wallet_walletRechargeApply_del'"
|
||||||
@click="handleDelete([row.id])"
|
@click="handleDelete([row.id])"
|
||||||
>删除</el-button
|
|
||||||
>
|
>
|
||||||
|
删除
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="row.isCheckUser && row.processStatus == '1'"
|
v-if="row.isCheckUser && row.processStatus == '1'"
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -193,7 +197,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table"
|
|||||||
import * as walletRechargeApplyApi from "/@/api/wallet/wallet-recharge-apply"
|
import * as walletRechargeApplyApi from "/@/api/wallet/wallet-recharge-apply"
|
||||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||||
import { useDict } from "/@/hooks/dict"
|
import { useDict } from "/@/hooks/dict"
|
||||||
import { ElLoading } from "element-plus"
|
import { ElLoading, ElMessage } from "element-plus"
|
||||||
import ProcessDrawer from "/@/components/processDrawer/index.vue"
|
import ProcessDrawer from "/@/components/processDrawer/index.vue"
|
||||||
import { getDicts } from "/@/api/admin/dict"
|
import { getDicts } from "/@/api/admin/dict"
|
||||||
|
|
||||||
@@ -254,7 +258,26 @@ const doApply = async (row: any) => {
|
|||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
loading.close()
|
loading.close()
|
||||||
if (error && error.code != 0) {
|
if (error && error.code != 0) {
|
||||||
useMessage().error(error.msg)
|
// useMessage().error(error.msg)
|
||||||
|
ElMessage({
|
||||||
|
message: h("div", { style: { maxHeight: "80vh", overflow: "auto", marginRight: "20px" } }, [
|
||||||
|
h(
|
||||||
|
"table",
|
||||||
|
{ style: { color: "#7f7f7f" } },
|
||||||
|
error.msg.split("\n").map((item: string) => {
|
||||||
|
return h("tr", {}, [
|
||||||
|
// h("td", { style: { padding: "0 4px", border: "1px solid #7f7f7f77", textAlign: "center" } }, index),
|
||||||
|
item.split(",").map((i: string) => {
|
||||||
|
return h("td", { style: { padding: "0 4px", border: "1px solid #7f7f7f77" } }, i)
|
||||||
|
}),
|
||||||
|
])
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
showClose: true,
|
||||||
|
duration: 10000,
|
||||||
|
type: "error",
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user