Commit 3d6fd721 authored by 郝聪敏's avatar 郝聪敏

fix: 修改预览未生效bug;修改字体路径问题

parent adc56c9e
...@@ -56,12 +56,12 @@ export default class DynamicForm extends Vue { ...@@ -56,12 +56,12 @@ export default class DynamicForm extends Vue {
} }
preview() { preview() {
this.formCustom.pageName = this.formCustom.pageName ?? '未命名'; this.formCustom.pageName = this.formCustom.pageName || '未命名';
this.handleSubmit('preview'); this.handleSubmit('preview');
} }
autoSave() { autoSave() {
this.formCustom.pageName = this.formCustom.pageName ?? '未命名'; this.formCustom.pageName = this.formCustom.pageName || '未命名';
this.handleSubmit('autoSave'); this.handleSubmit('autoSave');
} }
......
...@@ -45,6 +45,7 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin, ...@@ -45,6 +45,7 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
isDragIn: boolean = false; isDragIn: boolean = false;
isDraging: boolean = false; isDraging: boolean = false;
showSubmitPopup: boolean = false; showSubmitPopup: boolean = false;
inTheSave: boolean = false;
async created() { async created() {
const { pageId, templateId } = this.$route.params; const { pageId, templateId } = this.$route.params;
...@@ -95,10 +96,13 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin, ...@@ -95,10 +96,13 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
} catch (e) { } catch (e) {
this.showSubmitPopup = false; this.showSubmitPopup = false;
this.$Notice.error({ title: e?.message || '出现未知错误!' }); this.$Notice.error({ title: e?.message || '出现未知错误!' });
} finally {
this.inTheSave = false;
} }
} }
async preview() { async preview() {
this.inTheSave = true;
(this.$refs.basicPageForm as any).preview(); (this.$refs.basicPageForm as any).preview();
} }
......
...@@ -26,9 +26,20 @@ ...@@ -26,9 +26,20 @@
</Row> </Row>
<BasicPageFormModal ref="basicPageForm" v-model="showSubmitPopup" @submit="save" /> <BasicPageFormModal ref="basicPageForm" v-model="showSubmitPopup" @submit="save" />
<RecordModal ref="recordModal" v-model="showRecordModal" @ok="recover" @cancel="cancel" /> <RecordModal ref="recordModal" v-model="showRecordModal" @ok="recover" @cancel="cancel" />
<Spin size="large" fix v-if="inTheSave"></Spin>
</Row> </Row>
</template> </template>
<style lang="less" scoped> <style lang="less" scoped>
@font-face {
font-weight: normal;
font-family: 'cr-icon';
font-style: normal;
font-display: auto;
src:
url('https://misc.lkbang.net/fonts/cr-icon.b0d72989.woff2') format('woff2'),
url('https://misc.lkbang.net/fonts/cr-icon.71b60fa6.woff') format('woff'),
url('https://misc.lkbang.net/fonts/cr-icon.2dca9b1b.ttf') format('truetype');
}
.dashboard { .dashboard {
min-width: 1280px; min-width: 1280px;
height: 100% !important; height: 100% !important;
...@@ -88,6 +99,10 @@ ...@@ -88,6 +99,10 @@
} }
} }
} }
/deep/ .ivu-spin-fix {
z-index: 10001;
}
} }
</style> </style>
<script lang="ts" src="./index.ts"></script> <script lang="ts" src="./index.ts"></script>
...@@ -1456,9 +1456,9 @@ ...@@ -1456,9 +1456,9 @@
} }
}, },
"@qg/citrus-ui": { "@qg/citrus-ui": {
"version": "0.0.50", "version": "0.0.51",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.0.50.tgz", "resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.0.51.tgz",
"integrity": "sha512-rws0modT35uFdnFhkJKngXyqSk64TnZe0ou9mPSJKTW5+hC+CdMeeA+yMFCTiETi9kFx/ru8KCD9sQa5gMs4zg==", "integrity": "sha512-Xp1yZ0jvejk1iO6tIa3bTmTM61oFvrPLFRlKbA0XUulbZmSlIOK9W49TZTUb2D/jxGZaGYrNd/raD8/Cr99/xg==",
"requires": { "requires": {
"@better-scroll/core": "^2.1.1", "@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.20.5", "@qg/cherry-ui": "^2.20.5",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment