perf: 优化确认框按钮样式

This commit is contained in:
Pang 2023-08-10 08:05:31 +08:00
parent 00e255a4a8
commit 8d8777ba95
3 changed files with 5 additions and 1 deletions

View File

@ -55,7 +55,7 @@
"stylus-loader": "^7.1.0",
"tinymce": "^5.10.3",
"tui-calendar-hi": "^1.15.1-5",
"view-design-hi": "^4.7.0-47",
"view-design-hi": "^4.7.0-48",
"vite": "^2.9.15",
"vite-plugin-file-copy": "^1.0.0",
"vite-plugin-require": "^1.1.10",

View File

@ -990,6 +990,8 @@
loading: true,
okText: $A.L(config.okText || '确定'),
cancelText: $A.L(config.cancelText || '取消'),
okType: config.okType || 'primary',
cancelType: config.cancelType || 'text',
});
setTimeout(() => {
document.getElementById(inputId) && document.getElementById(inputId).focus();

View File

@ -326,6 +326,7 @@ export default {
placeholder: `请输入审批意见`,
type:"textarea",
okText: type == 1 ? "同意" : "拒绝",
okType: type == 1 ? "primary" : "error",
onOk: (desc) => {
if (type !=1 && !desc) {
return `请输入审批意见`
@ -356,6 +357,7 @@ export default {
$A.modalConfirm({
content: "你确定要撤销吗?",
loading: true,
okType: "warning",
onOk: () => {
return new Promise((resolve, reject) => {
this.$store.dispatch("call", {