提交 b89a788b authored 作者: 龙菲's avatar 龙菲

优化展览单元

上级 093303b8
......@@ -6,7 +6,7 @@
top="2vh"
lock-scroll
v-loading="submitLoading"
element-loading-background="rgba(0, 0, 0, 0.7)"
element-loading-background="rgba(0, 0, 0, 0.5)"
:element-loading-text="loadingText"
>
<div class="title" slot="title">
......@@ -411,7 +411,9 @@ export default {
deptId: [
{ required: true, message: "请填写馆藏单位", trigger: "change" },
],
intro: [{ required: true, message: "请填写文物介绍", trigger: "change" }],
intro: [
{ required: true, message: "请填写文物介绍", trigger: "change" },
],
},
};
},
......@@ -462,10 +464,13 @@ export default {
if (this.loading) {
this.loading = false;
}
if (this.submitLoading) {
this.submitLoading = false;
}
this.reset();
},
handleSubmit() {
this.$refs.form.validate(async(valid) => {
this.$refs.form.validate(async (valid) => {
if (valid) {
var that = this;
this.submitLoading = true;
......
<template>
<el-dialog
v-loading="submitLoading"
element-loading-background="rgba(0, 0, 0, 0.7)"
element-loading-background="rgba(0, 0, 0, 0.5)"
:element-loading-text="loadingText"
:visible.sync="dialogVisible"
width="86%"
......@@ -513,9 +513,12 @@ export default {
// 取消编辑
cancelForm() {
if (this.loading) {
if (this.loading ) {
this.loading = false;
}
if (this.submitLoading ) {
this.submitLoading = false;
}
this.reload();
},
......@@ -772,7 +775,7 @@ export default {
this.$emit("refresh");
this.reload();
this.submitLoading = false;
this.$message.success("提交成功!");
this.$message.success("新增展览成功!");
}, 1000);
}
})
......@@ -847,7 +850,7 @@ export default {
setTimeout(() => {
this.loadingText = "上传完毕";
this.submitLoading = false;
this.$message.success("提交成功!");
this.$message.success("修改展览成功!");
}, 1000);
}
})
......
......@@ -226,6 +226,7 @@ export default {
font-weight: 600;
font-family: "仿宋";
text-indent: 32px;
overflow: auto;
}
}
}
......
......@@ -243,11 +243,6 @@ export default {
}
},
handlePreview() {
// debugger
// this.previewDialogVisible = true;
// console.log(this.previewDialogVisible);
},
async handleOperation(value, row) {
console.log(value, row);
switch (value.type) {
......
......@@ -182,7 +182,7 @@ export default {
},
},
created() {
this.loadData();
this.loadData(true);
},
methods: {
async search(form) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论