update 前言修改

This commit is contained in:
赵霄
2023-08-25 10:23:22 +08:00
parent 4e01fc208a
commit 9419df178a
3 changed files with 2126 additions and 1933 deletions
+63 -62
View File
@@ -3,13 +3,13 @@
<!-- <template v-for="item in data"> <!-- <template v-for="item in data">
<insert-text :title="item.title" :key="item.title" :list="item.list" /> <insert-text :title="item.title" :key="item.title" :list="item.list" />
</template> --> </template> -->
<!-- <div class="app-header">--> <!-- <div class="app-header">-->
<!-- <a-button @click="save" class="app-header-button">保存</a-button>--> <!-- <a-button @click="save" class="app-header-button">保存</a-button>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="ant-drawer-index" v-if="isDisplay">--> <!-- <div class="ant-drawer-index" v-if="isDisplay">-->
<!-- 数据保存中请勿关闭页面 <span class="ant-drawer-text">{{num}}</span>--> <!-- 数据保存中请勿关闭页面 <span class="ant-drawer-text">{{num}}</span>-->
<!-- </div>--> <!-- </div>-->
<template v-for="item in data"> <template v-for="item in data">
<insert-guide-text <insert-guide-text
:title="item.title" :title="item.title"
@@ -51,29 +51,29 @@
</div> </div>
</template> </template>
<script> <script>
import Vue from 'vue' import Vue from 'vue'
import {SEPARATOR_TYPE} from '@/pages/page1/common/utils' import {SEPARATOR_TYPE} from '@/pages/page1/common/utils'
import InsertTableRow from './components/InsertTableRow.vue' import InsertTableRow from './components/InsertTableRow.vue'
import InsertGuideText from './components/InsertGuideText.vue' import InsertGuideText from './components/InsertGuideText.vue'
import FirstLevelListing from './components/FirstLevelListing.vue' import FirstLevelListing from './components/FirstLevelListing.vue'
import AddFootnote from './components/AddFootnote.vue' import AddFootnote from './components/AddFootnote.vue'
import InsertImage from './components/InsertImage.vue' import InsertImage from './components/InsertImage.vue'
import HelloWorld from './components/HelloWorld.vue' import HelloWorld from './components/HelloWorld.vue'
import Init from './saicComponents/Init' import Init from './saicComponents/Init'
import contentOne from "./saicComponents/Content"; import contentOne from './saicComponents/Content'
import SaicFunc from "./saicComponents/SaicFunc"; import SaicFunc from './saicComponents/SaicFunc'
import SaicTable from "./saicComponents/SaicTable"; import SaicTable from './saicComponents/SaicTable'
import SaicImg from "./components/InsertImage"; import SaicImg from './components/InsertImage'
import InsertNotes from "./saicComponents/InsertNotes"; import InsertNotes from './saicComponents/InsertNotes'
import SaicExample from "./saicComponents/SaicExample"; import SaicExample from './saicComponents/SaicExample'
import SaicFile from "./saicComponents/SaicFile"; import SaicFile from './saicComponents/SaicFile'
import RevisInformation from "./saicComponents/RevisInformation"; import RevisInformation from './saicComponents/RevisInformation'
import Appendix from "./saicComponents/Appendix"; import Appendix from './saicComponents/Appendix'
import chapterData from "./saicComponents/chapterData"; import chapterData from './saicComponents/chapterData'
import Chapter from "./saicComponents/Chapter"; import Chapter from './saicComponents/Chapter'
import _axios from "@/plugins/axios2"; import _axios from '@/plugins/axios2'
export default { export default {
components: { components: {
InsertTableRow, InsertTableRow,
InsertGuideText, InsertGuideText,
@@ -120,13 +120,13 @@
'下列代号适用于本文件。', '下列代号适用于本文件。',
'下列符号适用于本文件。', '下列符号适用于本文件。',
'下列缩略语适用于本文件。', '下列缩略语适用于本文件。',
'下列代号和缩略语适用于本文件。', '下列代号和缩略语适用于本文件。'
], ],
separatorText: SEPARATOR_TYPE.COLON separatorText: SEPARATOR_TYPE.COLON
}, }
], ],
isDisplay: false, isDisplay: false,
num: 0, num: 0
} }
}, },
created() { created() {
@@ -139,14 +139,13 @@
this.callCommand(() => { this.callCommand(() => {
try { try {
var oDocument = Api.GetDocument(); var oDocument = Api.GetDocument()
const oHeading1Style6 = oDocument.CreateStyle('Normal')
const oHeading1Style6 = oDocument.CreateStyle("Normal"); const oTextPr7 = oHeading1Style6.GetTextPr()
const oTextPr7 = oHeading1Style6.GetTextPr(); oTextPr7.SetFontFamily('宋体')
oTextPr7.SetFontFamily("宋体"); oTextPr7.SetColor(0, 0, 0)
oTextPr7.SetColor(0, 0, 0);
oTextPr7.SetFontSize(21) oTextPr7.SetFontSize(21)
const oTextPr9 = oHeading1Style6.GetParaPr(); const oTextPr9 = oHeading1Style6.GetParaPr()
oTextPr9.SetSpacingAfter(10) oTextPr9.SetSpacingAfter(10)
// var oHeading1Style = oDocument.CreateStyle("Heading 1"); // var oHeading1Style = oDocument.CreateStyle("Heading 1");
@@ -184,12 +183,12 @@
// oTextPr5.SetColor(0, 0, 0); // oTextPr5.SetColor(0, 0, 0);
var oNormalStyle = oDocument.GetDefaultStyle("numbering"); var oNormalStyle = oDocument.GetDefaultStyle('numbering')
const oTextPr6 = oNormalStyle.GetTextPr(); const oTextPr6 = oNormalStyle.GetTextPr()
oTextPr6.SetFontFamily("黑体"); oTextPr6.SetFontFamily('黑体')
const oParagraph = Api.CreateParagraph(); const oParagraph = Api.CreateParagraph()
oParagraph.SetStyle(oNormalStyle); oParagraph.SetStyle(oNormalStyle)
Api.HeadersAndFooters_DifferentOddandEvenPage(true) Api.HeadersAndFooters_DifferentOddandEvenPage(true)
// Api.HeadersAndFooters_DifferentFirstPage(true) // Api.HeadersAndFooters_DifferentFirstPage(true)
} catch (e) { } catch (e) {
@@ -255,44 +254,44 @@
this.isDisplay = false this.isDisplay = false
} }
}, 1000) }, 1000)
},
} }
} }
}
</script> </script>
<style lang="less"> <style lang="less">
#app { #app {
font-family: Avenir, Helvetica, Arial, sans-serif; font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
text-align: left; text-align: left;
color: #2c3e50; color: #2c3e50;
padding: 10px; padding: 10px;
} }
#app { #app {
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
} }
* { * {
user-select: none; user-select: none;
} }
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
color: rgba(0, 0, 0, .85); color: rgba(0, 0, 0, .85);
font-weight: 500; font-weight: 500;
} }
body { body {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC,
Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif,
Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-variant: tabular-nums; font-variant: tabular-nums;
} }
</style> </style>
<style scoped> <style scoped>
.ant-drawer-index { .ant-drawer-index {
width: 210px; width: 210px;
height: 40px; height: 40px;
text-align: center; text-align: center;
@@ -305,14 +304,15 @@
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
border-radius: 6px; border-radius: 6px;
z-index: 10; z-index: 10;
} }
.ant-drawer-text { .ant-drawer-text {
width: 10px; width: 10px;
display: inline-block; display: inline-block;
color: #ffff00; color: #ffff00;
} }
.app-header{
.app-header {
width: 100%; width: 100%;
height: 46px; height: 46px;
position: fixed; position: fixed;
@@ -324,10 +324,11 @@
background: #f1f1f1; background: #f1f1f1;
z-index: 100; z-index: 100;
border-bottom: 1px #e8e8e8 solid; border-bottom: 1px #e8e8e8 solid;
} }
.app-header-button{
.app-header-button {
background: #66b1ff; background: #66b1ff;
border-color: #66b1ff; border-color: #66b1ff;
color: #FFF; color: #FFF;
} }
</style> </style>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long