hgwms-2099 fix 提示展示逻辑修改

hwork-master
A0066811 2025-11-10 11:00:31 +08:00
parent 8beb440874
commit 26efca11f8
16 changed files with 91 additions and 91 deletions

View File

@ -80,14 +80,14 @@ export default defineComponent({
});
const submit = (e) => {
message.loading({
content: "提交中...",
key,
});
formRef.value
.validate()
.then(() => {
edit(toRaw(formState)).then((response) => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message
.success({

View File

@ -70,13 +70,13 @@ export default defineComponent({
};
const submit = (e) => {
message.loading({
content: "提交中...",
key,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key,
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -83,13 +83,13 @@ export default defineComponent({
};
const submit = (e) => {
message.loading({
content: "提交中...",
key,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -69,13 +69,13 @@ export default defineComponent({
};
const submit = (e) => {
message.loading({
content: "提交中...",
key,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key,
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message.success({

View File

@ -79,10 +79,10 @@ export default defineComponent({
const editKey = "add";
const submit = (e) => {
message.loading({ content: "提交中...", key: editKey });
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({ content: "提交中...", key: editKey });
edit(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -70,10 +70,10 @@ export default defineComponent({
const saveKey = "save";
const submit = (e) => {
message.loading({ content: "提交中...", key: saveKey });
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({ content: "提交中...", key: saveKey });
save(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -63,13 +63,13 @@ export default defineComponent({
});
const submit = (e) => {
message.loading({
content: "提交中...",
key,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -78,13 +78,13 @@ export default defineComponent({
const formRules = {};
const submit = (e) => {
message.loading({
content: "提交中...",
key,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key,
});
save({user:formState.user,tenant:formState.tenant,powerIds:state.powerIds.checked}).then((response) => {
if (response.success) {
message

View File

@ -278,13 +278,13 @@ export default defineComponent({
var a = JSON.stringify(formState.sourceStactics);
formState.sourceStactics = JSON.stringify(formState.sourceStactics);
console.log("formState sourceStactics", a);
message.loading({
content: "提交中...",
key: editKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: editKey,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -195,13 +195,13 @@ export default defineComponent({
const saveKey = "save";
const submit = (e) => {
message.loading({
content: "提交中...",
key: saveKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: saveKey,
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -401,13 +401,13 @@ export default defineComponent({
const editKey = "add";
const submit = (e) => {
message.loading({
content: "提交中...",
key: editKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: editKey,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -378,13 +378,13 @@ export default defineComponent({
const saveKey = "save";
const submit = (e) => {
message.loading({
content: "提交中...",
key: saveKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: saveKey,
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -305,13 +305,13 @@ export default defineComponent({
const editKey = "add";
const submit = (e) => {
message.loading({
content: "提交中...",
key: editKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: editKey,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -222,13 +222,13 @@ export default defineComponent({
const saveKey = "save";
const submit = (e) => {
message.loading({
content: "提交中...",
key: saveKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: saveKey,
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -182,13 +182,13 @@ export default defineComponent({
const editKey = "add";
const submit = (e) => {
message.loading({
content: "提交中...",
key: editKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: editKey,
});
edit(toRaw(formState)).then((response) => {
if (response.success) {
message

View File

@ -164,13 +164,13 @@ export default defineComponent({
const saveKey = "save";
const submit = (e) => {
message.loading({
content: "提交中...",
key: saveKey,
});
formRef.value
.validate()
.then(() => {
.validate()
.then(() => {
message.loading({
content: "提交中...",
key: saveKey,
});
save(toRaw(formState)).then((response) => {
if (response.success) {
message