阅行客电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

225 lines
5.0 KiB

  1. <template>
  2. <div class="setting-contanier">
  3. <div class="chapter-tip">
  4. <p>注意</p>
  5. <span>档号章一般盖在归档文件首页上端居中的空白位置如果位置被占用可将盖在首页上端其他空白处居左或居右</span>
  6. </div>
  7. <div class="chapter-setting">
  8. <div class="chapter-format">
  9. <div class="chapter-item">
  10. <p class="item-title">归档章版式</p>
  11. <span class="item-selected">默认版式</span>
  12. </div>
  13. <div class="chapter-item">
  14. <p class="item-title">预览</p>
  15. <div class="format-style">
  16. <span>全宗号</span>
  17. <span>年度</span>
  18. <span>件号</span>
  19. <span>机构(问题)</span>
  20. <span>保管期限</span>
  21. <span>页数</span>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="chapter-position">
  26. <div class="chapter-item">
  27. <p class="item-title">归档章位置</p>
  28. <span class="item-selected">顶部居中</span>
  29. </div>
  30. <div class="position-style">
  31. <!-- top-left / top-middle / top-right / middle-left / center / middle-right / bottom-left / bottom-middle / bottom-right -->
  32. <span class="top-middle" />
  33. </div>
  34. </div>
  35. <div class="chapter-enable">
  36. <div class="chapter-item">
  37. <p class="item-title">是否启用</p>
  38. <el-switch v-model="enable" class="isEnable-chapter" />
  39. </div>
  40. <div class="chapter-edit">
  41. <el-button size="mini" @click="toEdit()">
  42. <i class="iconfont icon-bianji" />
  43. 编辑
  44. </el-button>
  45. </div>
  46. </div>
  47. </div>
  48. <eForm ref="cuform" @refresh="initData" />
  49. </div>
  50. </template>
  51. <script>
  52. import eForm from './module/form'
  53. export default {
  54. name: 'ArchiveSealSetting',
  55. components: { eForm },
  56. data() {
  57. return {
  58. enable: true
  59. }
  60. },
  61. watch: {
  62. },
  63. created() {
  64. },
  65. methods: {
  66. toEdit() {
  67. this.$refs.cuform.cuDialogVisible = true
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. @mixin setting-box-style{
  74. [data-theme="dark"] & {
  75. padding: 0 20px 20px 20px;
  76. margin-top: -10px;
  77. }
  78. [data-theme="light"] & {
  79. margin-top: 20px;
  80. }
  81. }
  82. @mixin setting-item-font{
  83. [data-theme="dark"] & {
  84. color: #fff;
  85. }
  86. [data-theme="light"] & {
  87. color: #0C0E1E;
  88. }
  89. }
  90. @mixin setting-item-selected{
  91. [data-theme="dark"] & {
  92. color: #fff;
  93. background-color: #02255f;
  94. }
  95. [data-theme="light"] & {
  96. color: #545B65;
  97. background-color: #F5F7FA;
  98. }
  99. }
  100. .setting-contanier{
  101. @include setting-box-style;
  102. }
  103. .chapter-tip{
  104. padding: 10px 20px 10px 40px;
  105. margin-bottom: 30px;
  106. font-size: 12px;
  107. color: #545B65;
  108. line-height: 26px;
  109. background-color: #EEF5FE;
  110. border: 1px solid #CBDAFF;
  111. border-left: 2px solid #0348F3;
  112. p{
  113. font-size: 14px;
  114. color: #0C0E1E;
  115. font-family: "iconfont" !important;
  116. font-style: normal;
  117. -webkit-font-smoothing: antialiased;
  118. -moz-osx-font-smoothing: grayscale;
  119. &::before{
  120. content: '\e61e';
  121. color: #215EF4;
  122. margin-left: -24px;
  123. margin-right: 10px;
  124. }
  125. }
  126. }
  127. .chapter-setting{
  128. display: flex;
  129. justify-content: space-between;
  130. }
  131. .chapter-format{
  132. padding-left: 42px;
  133. }
  134. .chapter-item{
  135. display: flex;
  136. justify-content: flex-start;
  137. font-size: 14px;
  138. height: 32px;
  139. line-height: 32px;
  140. margin-bottom: 20px;
  141. p.item-title{
  142. width: 70px;
  143. @include setting-item-font;
  144. text-align: right;
  145. margin-right: 10px;
  146. }
  147. span.item-selected{
  148. display: block;
  149. width: 297px;
  150. padding: 0 13px;
  151. @include setting-item-selected;
  152. }
  153. }
  154. .position-style{
  155. position: relative;
  156. width: 380px;
  157. height: 538px;
  158. background: url('~@/assets/images/system/xt-gdz.png') no-repeat;
  159. background-size: contain;
  160. span{
  161. position: absolute;
  162. width: 118px;
  163. height: 32px;
  164. background: url('~@/assets/images/system/xt-gdx.png') no-repeat;
  165. background-size: contain;
  166. &.top-left{
  167. top: 35px;
  168. left: 25px;
  169. }
  170. &.top-middle{
  171. top: 35px;
  172. left: 50%;
  173. margin-left: -49px;
  174. }
  175. &.top-right{
  176. top: 35px;
  177. right: 15px;
  178. }
  179. &.middle-left{
  180. left: 25px;
  181. top: 50%;
  182. margin-top: -16px;
  183. }
  184. &.center{
  185. left: 50%;
  186. top: 50%;
  187. margin-left: -49px;
  188. margin-top: -16px;
  189. }
  190. &.middle-right{
  191. top: 50%;
  192. right: 15px;
  193. margin-top: -16px;
  194. }
  195. &.bottom-left{
  196. bottom: 35px;
  197. left: 25px;
  198. }
  199. &.bottom-middle{
  200. bottom: 35px;
  201. left: 50%;
  202. margin-left: -49px;
  203. }
  204. &.bottom-right{
  205. bottom: 35px;
  206. right: 15px;
  207. }
  208. }
  209. }
  210. .chapter-enable{
  211. display: flex;
  212. justify-content: flex-start;
  213. .chapter-edit{
  214. margin-left: 36px;
  215. }
  216. }
  217. </style>