mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-18 14:13:58 +00:00
perf: 优化确认框按钮样式
This commit is contained in:
parent
00e255a4a8
commit
8d8777ba95
@ -55,7 +55,7 @@
|
|||||||
"stylus-loader": "^7.1.0",
|
"stylus-loader": "^7.1.0",
|
||||||
"tinymce": "^5.10.3",
|
"tinymce": "^5.10.3",
|
||||||
"tui-calendar-hi": "^1.15.1-5",
|
"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": "^2.9.15",
|
||||||
"vite-plugin-file-copy": "^1.0.0",
|
"vite-plugin-file-copy": "^1.0.0",
|
||||||
"vite-plugin-require": "^1.1.10",
|
"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,
|
loading: true,
|
||||||
okText: $A.L(config.okText || '确定'),
|
okText: $A.L(config.okText || '确定'),
|
||||||
cancelText: $A.L(config.cancelText || '取消'),
|
cancelText: $A.L(config.cancelText || '取消'),
|
||||||
|
okType: config.okType || 'primary',
|
||||||
|
cancelType: config.cancelType || 'text',
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.getElementById(inputId) && document.getElementById(inputId).focus();
|
document.getElementById(inputId) && document.getElementById(inputId).focus();
|
||||||
|
|||||||
@ -326,6 +326,7 @@ export default {
|
|||||||
placeholder: `请输入审批意见`,
|
placeholder: `请输入审批意见`,
|
||||||
type:"textarea",
|
type:"textarea",
|
||||||
okText: type == 1 ? "同意" : "拒绝",
|
okText: type == 1 ? "同意" : "拒绝",
|
||||||
|
okType: type == 1 ? "primary" : "error",
|
||||||
onOk: (desc) => {
|
onOk: (desc) => {
|
||||||
if (type !=1 && !desc) {
|
if (type !=1 && !desc) {
|
||||||
return `请输入审批意见`
|
return `请输入审批意见`
|
||||||
@ -356,6 +357,7 @@ export default {
|
|||||||
$A.modalConfirm({
|
$A.modalConfirm({
|
||||||
content: "你确定要撤销吗?",
|
content: "你确定要撤销吗?",
|
||||||
loading: true,
|
loading: true,
|
||||||
|
okType: "warning",
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.$store.dispatch("call", {
|
this.$store.dispatch("call", {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user