hgwms-2099 fix 提示展示逻辑修改
parent
0ad90ebf0e
commit
8beb440874
|
|
@ -57,10 +57,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.success({ content: '保存成功', key: editKey, duration: 1 }).then(()=>{
|
||||
|
|
|
|||
|
|
@ -48,10 +48,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.success({ content: '保存成功', key: saveKey, duration: 1 }).then(()=>{
|
||||
|
|
|
|||
|
|
@ -52,10 +52,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.success({ content: '保存成功', key: editKey, duration: 1 }).then(()=>{
|
||||
|
|
|
|||
|
|
@ -59,10 +59,10 @@ export default defineComponent({
|
|||
}
|
||||
|
||||
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.success({ content: '保存成功', key: saveKey, duration: 1 }).then(()=>{
|
||||
|
|
|
|||
|
|
@ -74,10 +74,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.success({ content: '保存成功', key: editKey, duration: 1 }).then(()=>{
|
||||
|
|
|
|||
|
|
@ -125,13 +125,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -110,13 +110,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -195,13 +195,13 @@ export default defineComponent({
|
|||
};
|
||||
|
||||
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
|
||||
|
|
|
|||
|
|
@ -407,13 +407,13 @@
|
|||
]);
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -118,13 +118,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
|
||||
|
|
|
|||
|
|
@ -154,13 +154,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
|
||||
|
|
|
|||
|
|
@ -471,13 +471,13 @@
|
|||
// console.log("formState.formState", formState.formState)
|
||||
formState.details = state.param.data
|
||||
console.log("formState.details", formState.details)
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: save
|
||||
});
|
||||
formRef.value
|
||||
.validate()
|
||||
.then(() => {
|
||||
.validate()
|
||||
.then(() => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: save
|
||||
});
|
||||
// console.log("formState.canEdite", formState.canEdite)
|
||||
// if (formState.canEdite) {
|
||||
// console.log("1")
|
||||
|
|
|
|||
|
|
@ -351,13 +351,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -962,13 +962,13 @@
|
|||
// let JsonString = JSON.stringify(formState);
|
||||
// console.log("formState 之后", a)
|
||||
// console.log("aJsonString 之后", a)
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: save
|
||||
});
|
||||
formRef.value
|
||||
.validate()
|
||||
.then(() => {
|
||||
.validate()
|
||||
.then(() => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: save
|
||||
});
|
||||
console.log("state.canEdite", state.canEdite)
|
||||
if (state.canEdite) {
|
||||
//单据和主表一起新增 方法1
|
||||
|
|
|
|||
|
|
@ -989,13 +989,13 @@
|
|||
// let JsonString = JSON.stringify(formState);
|
||||
// console.log("formState 之后", a)
|
||||
// console.log("aJsonString 之后", a)
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: save
|
||||
});
|
||||
formRef.value
|
||||
.validate()
|
||||
.then(() => {
|
||||
.validate()
|
||||
.then(() => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: save
|
||||
});
|
||||
console.log("state.canEdite", state.canEdite)
|
||||
if (state.canEdite) {
|
||||
//单据和主表一起新增 方法1
|
||||
|
|
|
|||
|
|
@ -387,13 +387,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -72,14 +72,14 @@
|
|||
const editKey = "add";
|
||||
|
||||
const submit = (e) => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: editKey
|
||||
});
|
||||
console.log(formState.ids)
|
||||
formRef.value
|
||||
.validate()
|
||||
.then(() => {
|
||||
.validate()
|
||||
.then(() => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: editKey
|
||||
});
|
||||
changeLocStatus(toRaw(formState)).then((response) => {
|
||||
if (response.success) {
|
||||
message.success({
|
||||
|
|
|
|||
|
|
@ -75,13 +75,13 @@
|
|||
const editKey = "add";
|
||||
|
||||
const submit = (e) => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: editKey
|
||||
});
|
||||
formRef.value
|
||||
.validate()
|
||||
.then(() => {
|
||||
.validate()
|
||||
.then(() => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: editKey
|
||||
});
|
||||
changeLocStoreStatus(toRaw(formState)).then((response) => {
|
||||
if (response.success) {
|
||||
message.success({
|
||||
|
|
|
|||
|
|
@ -294,13 +294,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -294,14 +294,14 @@
|
|||
|
||||
|
||||
const submit = (e) => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: saveKey
|
||||
});
|
||||
formRef.value
|
||||
.validate()
|
||||
.then(() => {
|
||||
save(toRaw(formState)).then((response) => {
|
||||
.validate()
|
||||
.then(() => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: saveKey
|
||||
});
|
||||
save(toRaw(formState)).then((response) => {
|
||||
if (response.success) {
|
||||
message.success({
|
||||
content: '保存成功',
|
||||
|
|
|
|||
|
|
@ -76,13 +76,13 @@
|
|||
const saveKey = "palletCheck";
|
||||
|
||||
const submit = (e) => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: saveKey
|
||||
});
|
||||
formRef.value
|
||||
.validate()
|
||||
.then(() => {
|
||||
.validate()
|
||||
.then(() => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: saveKey
|
||||
});
|
||||
palletCheck(toRaw(formState)).then((response) => {
|
||||
if (response.success) {
|
||||
message.success({
|
||||
|
|
|
|||
|
|
@ -100,13 +100,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -216,13 +216,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
|
||||
|
|
|
|||
|
|
@ -227,13 +227,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -133,13 +133,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -121,13 +121,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -108,13 +108,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -104,13 +104,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -97,13 +97,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -82,14 +82,14 @@
|
|||
const editKey = "add";
|
||||
|
||||
const submit = (e) => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: editKey
|
||||
});
|
||||
console.log(formState.ids)
|
||||
formRef.value
|
||||
.validate()
|
||||
.then(() => {
|
||||
.validate()
|
||||
.then(() => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: editKey
|
||||
});
|
||||
changeLocStatus(toRaw(formState)).then((response) => {
|
||||
if (response.success) {
|
||||
message.success({
|
||||
|
|
|
|||
|
|
@ -85,13 +85,13 @@
|
|||
const editKey = "add";
|
||||
|
||||
const submit = (e) => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: editKey
|
||||
});
|
||||
formRef.value
|
||||
.validate()
|
||||
.then(() => {
|
||||
.validate()
|
||||
.then(() => {
|
||||
message.loading({
|
||||
content: '提交中...',
|
||||
key: editKey
|
||||
});
|
||||
changeLocStoreStatus(toRaw(formState)).then((response) => {
|
||||
if (response.success) {
|
||||
message.success({
|
||||
|
|
|
|||
|
|
@ -200,13 +200,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -230,13 +230,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -127,13 +127,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -113,13 +113,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -97,13 +97,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -108,13 +108,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -79,13 +79,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -89,13 +89,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -82,13 +82,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -92,13 +92,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -83,13 +83,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -92,13 +92,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -202,13 +202,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -140,13 +140,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -202,13 +202,13 @@
|
|||
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.success({
|
||||
|
|
|
|||
|
|
@ -140,13 +140,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -81,13 +81,13 @@
|
|||
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
|
|
@ -90,13 +90,13 @@
|
|||
}]);
|
||||
|
||||
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.success({
|
||||
|
|
|
|||
Loading…
Reference in New Issue