hgwms-2099 fix 提示展示逻辑修改
parent
8beb440874
commit
26efca11f8
|
|
@ -80,14 +80,14 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
edit(toRaw(formState)).then((response) => {
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key,
|
||||||
|
});
|
||||||
|
edit(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
.success({
|
.success({
|
||||||
|
|
|
||||||
|
|
@ -70,13 +70,13 @@ export default defineComponent({
|
||||||
};
|
};
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key,
|
||||||
|
});
|
||||||
save(toRaw(formState)).then((response) => {
|
save(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -83,13 +83,13 @@ export default defineComponent({
|
||||||
};
|
};
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key,
|
||||||
|
});
|
||||||
edit(toRaw(formState)).then((response) => {
|
edit(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message.success({
|
message.success({
|
||||||
|
|
|
||||||
|
|
@ -69,13 +69,13 @@ export default defineComponent({
|
||||||
};
|
};
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key,
|
||||||
|
});
|
||||||
save(toRaw(formState)).then((response) => {
|
save(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message.success({
|
message.success({
|
||||||
|
|
|
||||||
|
|
@ -79,10 +79,10 @@ export default defineComponent({
|
||||||
const editKey = "add";
|
const editKey = "add";
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({ content: "提交中...", key: editKey });
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({ content: "提交中...", key: editKey });
|
||||||
edit(toRaw(formState)).then((response) => {
|
edit(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -70,10 +70,10 @@ export default defineComponent({
|
||||||
const saveKey = "save";
|
const saveKey = "save";
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({ content: "提交中...", key: saveKey });
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({ content: "提交中...", key: saveKey });
|
||||||
save(toRaw(formState)).then((response) => {
|
save(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -63,13 +63,13 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key,
|
||||||
|
});
|
||||||
edit(toRaw(formState)).then((response) => {
|
edit(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -78,13 +78,13 @@ export default defineComponent({
|
||||||
const formRules = {};
|
const formRules = {};
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key,
|
||||||
|
});
|
||||||
save({user:formState.user,tenant:formState.tenant,powerIds:state.powerIds.checked}).then((response) => {
|
save({user:formState.user,tenant:formState.tenant,powerIds:state.powerIds.checked}).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -278,13 +278,13 @@ export default defineComponent({
|
||||||
var a = JSON.stringify(formState.sourceStactics);
|
var a = JSON.stringify(formState.sourceStactics);
|
||||||
formState.sourceStactics = JSON.stringify(formState.sourceStactics);
|
formState.sourceStactics = JSON.stringify(formState.sourceStactics);
|
||||||
console.log("formState sourceStactics", a);
|
console.log("formState sourceStactics", a);
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key: editKey,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key: editKey,
|
||||||
|
});
|
||||||
edit(toRaw(formState)).then((response) => {
|
edit(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -195,13 +195,13 @@ export default defineComponent({
|
||||||
const saveKey = "save";
|
const saveKey = "save";
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key: saveKey,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key: saveKey,
|
||||||
|
});
|
||||||
save(toRaw(formState)).then((response) => {
|
save(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -401,13 +401,13 @@ export default defineComponent({
|
||||||
const editKey = "add";
|
const editKey = "add";
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key: editKey,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key: editKey,
|
||||||
|
});
|
||||||
edit(toRaw(formState)).then((response) => {
|
edit(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -378,13 +378,13 @@ export default defineComponent({
|
||||||
const saveKey = "save";
|
const saveKey = "save";
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key: saveKey,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key: saveKey,
|
||||||
|
});
|
||||||
save(toRaw(formState)).then((response) => {
|
save(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -305,13 +305,13 @@ export default defineComponent({
|
||||||
const editKey = "add";
|
const editKey = "add";
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key: editKey,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key: editKey,
|
||||||
|
});
|
||||||
edit(toRaw(formState)).then((response) => {
|
edit(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -222,13 +222,13 @@ export default defineComponent({
|
||||||
const saveKey = "save";
|
const saveKey = "save";
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key: saveKey,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key: saveKey,
|
||||||
|
});
|
||||||
save(toRaw(formState)).then((response) => {
|
save(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -182,13 +182,13 @@ export default defineComponent({
|
||||||
const editKey = "add";
|
const editKey = "add";
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key: editKey,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key: editKey,
|
||||||
|
});
|
||||||
edit(toRaw(formState)).then((response) => {
|
edit(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
|
|
@ -164,13 +164,13 @@ export default defineComponent({
|
||||||
const saveKey = "save";
|
const saveKey = "save";
|
||||||
|
|
||||||
const submit = (e) => {
|
const submit = (e) => {
|
||||||
message.loading({
|
|
||||||
content: "提交中...",
|
|
||||||
key: saveKey,
|
|
||||||
});
|
|
||||||
formRef.value
|
formRef.value
|
||||||
.validate()
|
.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
message.loading({
|
||||||
|
content: "提交中...",
|
||||||
|
key: saveKey,
|
||||||
|
});
|
||||||
save(toRaw(formState)).then((response) => {
|
save(toRaw(formState)).then((response) => {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
message
|
message
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue