mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-25 20:30:19 +00:00
perf: 优化确认框按钮样式
This commit is contained in:
parent
00e255a4a8
commit
8d8777ba95
@ -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",
|
||||
|
||||
2
resources/assets/js/functions/web.js
vendored
2
resources/assets/js/functions/web.js
vendored
@ -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();
|
||||
|
||||
@ -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", {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user