60429078080a31daba50688a90f1bc431136b339.svn-base 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <template>
  2. <div id="app">
  3. <router-view v-if="isRouterAlive" />
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'App',
  9. provide() {
  10. return {
  11. reload: this.reload
  12. }
  13. },
  14. data() {
  15. return {
  16. isRouterAlive: true
  17. }
  18. },
  19. methods: {
  20. reload() {
  21. this.isRouterAlive = false
  22. this.$nextTick(() => {
  23. this.isRouterAlive = true
  24. })
  25. }
  26. }
  27. }
  28. </script>
  29. <style lang="scss">
  30. .table-fixed {
  31. /deep/ .el-table__fixed-right {
  32. height: 100% !important; //设置高优先,以覆盖内联样式
  33. }
  34. /deep/ .el-table__fixed {
  35. height: 100% !important; //设置高优先,以覆盖内联样式
  36. }
  37. }
  38. .el-table__body-wrapper.is-scrolling-none~.el-table__fixed-right{
  39. height: 100% !important;
  40. }
  41. // .el-tree-node:focus > .el-tree-node__content {
  42. // background-color: #82848a !important;
  43. // color: #fff;
  44. // }
  45. // .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  46. // // background-color: #82848a;
  47. // // color: #fff;
  48. // }
  49. // 弹窗最小高度
  50. .dialogMinHeight{
  51. min-height: 450px;
  52. }
  53. .filter-container .filter-item{
  54. margin-right: 3px;
  55. }
  56. .fixed-width .el-button--mini{
  57. margin-right: 3px;
  58. }
  59. .el-date-editor.el-input{
  60. margin-right: 3px;
  61. }
  62. .dialog-footer{
  63. right:30px;position:absolute;bottom:30px
  64. }
  65. .el-autocomplete-suggestion li{
  66. padding:0 3px!important;
  67. }
  68. .filter-item .el-input__inner{
  69. width: 100%;
  70. }
  71. body .el-table th.gutter {
  72. display: table-cell !important
  73. }
  74. input::-webkit-outer-spin-button,
  75. input::-webkit-inner-spin-button {
  76. -webkit-appearance: none;
  77. }
  78. input[type="number"]{
  79. -moz-appearance: textfield;
  80. }
  81. .search .filter-item{
  82. margin-right: 5px;
  83. }
  84. // 开始日期结束日期
  85. .inputDatetime .el-range-separator{ padding: 0; margin: 0 10px; }
  86. // 新增/资料库/初始化库存/新增入库单
  87. .success{ background: #409EFF; border-color: #409EFF; color: #fff;min-width:100px;height: 40px;padding: 12px 20px; }
  88. .success:focus, .success:hover{ color: #fff; border-color: #66B1FF; background-color: #66B1FF; min-width:100px;height: 40px;padding: 12px 20px;}
  89. // 删除
  90. .danger{min-width:100px;height: 40px;background: #FF4949; border-color: #FF4949; color: #fff;}
  91. .danger:focus, .danger:hover{min-width:100px;height: 40px;background: #F78989; border-color: #F78989; color: #fff;}
  92. // 行内删除
  93. .smallDanger{ color: #FF4949; }
  94. .smallDanger:focus, .smallDanger:hover{ color: #FF4949; }
  95. // 查询/重置
  96. .successBorder{background: #409EFF; border-color: #409EFF; color: #fff;}
  97. .successBorder:focus, .successBorder:hover{background:#66B1FF; border-color: #66B1FF; color: #fff;}
  98. // 导出
  99. .export{background: #F4F4F5; border-color: #A6A9AD; color: #666666;min-width:100px;height: 40px;}
  100. .export:focus, .export:hover{ color: #666666; border-color: #A6A9AD; background-color: #F7F7F8; min-width:100px;height: 40px}
  101. // 导入
  102. .import{background: #F4F4F5; border-color: #A6A9AD; color: #666666;min-width:100px;height: 40px;}
  103. .import:focus, .import:hover{ color: #666666; border-color: #A6A9AD; background-color: #F7F7F8; min-width:100px;height: 40px}
  104. // 恢复默认
  105. .warning{background: #F7BA2A; border-color:#F7BA2A; color: #fff;min-width:100px;height: 40px;}
  106. .warning:focus, .warning:hover{ color: #fff; border-color: #F7BA2A; background-color: #F7BA2A; min-width:100px;height: 40px}
  107. // 取消/关闭
  108. .cancelClose{background: #FFFFFF; border-color: #CCCCCC; color: #666666;min-width:100px;height: 40px;}
  109. .cancelClose:focus, .cancelClose:hover{ color: #666666; border-color: #CCCCCC; background-color: #FFFFFF; min-width:100px;height: 40px}
  110. // 小编辑/小保存/下拉搜索按钮/拆分预混料
  111. .miniSuccess{ background: #67c23a; border-color: #67c23a; color: #fff;padding: 7px 10px;font-size:14px;min-width:60px;}
  112. .miniSuccess:focus, .miniSuccess:hover{color: #fff; border-color: #85ce61; background-color: #85ce61;padding: 7px 10px;font-size:14px;min-width:60px;}
  113. // 查看
  114. .miniPrimary{ background: #409EFF; border-color: #409EFF; color: #fff;padding: 7px 10px;font-size:14px;min-width:60px;}
  115. .miniPrimary:focus, .miniPrimary:hover{color: #fff; border-color: #66B1FF; background-color: #66B1FF;padding: 7px 10px;font-size:14px;min-width:60px;}
  116. // 小删除
  117. .miniDanger{background: #FF4949; border-color: #FF4949; color: #fff;padding: 7px 10px;font-size:14px;min-width:60px;}
  118. .miniDanger:focus, .miniDanger:hover{background: #F78989; border-color: #F78989; color: #fff;padding: 7px 10px;font-size:14px;min-width:60px;}
  119. // 小取消
  120. .minCancel{background: #FFFFFF; border-color: #CCCCCC; color: #666666;padding: 7px 10px;font-size:14px;min-width:60px;}
  121. .minCancel:focus, .minCancel:hover{ color: #666666; border-color: #CCCCCC; background-color: #FFFFFF; padding: 7px 10px;font-size:14px;min-width:60px;}
  122. // 时间快捷键左右
  123. .elIconArrowLeft{margin-right: -5px;padding: 12px 12px;}
  124. .elIconArrowRight{margin-right: 5px;padding: 12px 12px;}
  125. // 合计滚在滚动条下方
  126. // .el-table{ overflow: auto; }
  127. // .el-table__body-wrapper, .el-table__header-wrapper, .el-table__footer-wrapper{ overflow:visible; }
  128. // .el-table::after{ position: relative !important; }
  129. // .el-table--scrollable-x .el-table__body-wrapper{overflow-x:hidden}
  130. .recipeTemplate{
  131. position: absolute;
  132. width: 120px;
  133. height: 120px;
  134. right: -50px;
  135. top: -0px;
  136. margin: 0;
  137. background: url(assets/images/sanjiao.png) no-repeat;
  138. // border: 50px solid transparent;
  139. // border-top-color: #019966;
  140. // transform:rotate(225deg);
  141. // -webkit-transform: rotate(225deg);/*Safari 4+,Google Chrome 1+ */
  142. // -moz-transform: rotate(225deg);/*Firefox 3.5+*/
  143. // filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  144. right: -50px;
  145. top: 0;
  146. margin: 0;
  147. p{
  148. position: absolute;
  149. z-index: 1;
  150. color: #fff;
  151. right: 40px;
  152. top: 15px;
  153. width: 70px;
  154. // transform:rotate(180deg);
  155. -webkit-transform: rotate(45deg);/*Safari 4+,Google Chrome 1+ */
  156. -moz-transform: rotate(45deg);/*Firefox 3.5+*/
  157. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  158. font-size: 10px;
  159. }
  160. }
  161. .contentOperation{
  162. position: absolute;
  163. width: 120px;
  164. height: 120px;
  165. // border: 50px solid transparent;
  166. // border-top-color: #019966;
  167. // transform:rotate(225deg);
  168. // -webkit-transform: rotate(225deg);/*Safari 4+,Google Chrome 1+ */
  169. // -moz-transform: rotate(225deg);/*Firefox 3.5+*/
  170. // filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  171. right: -50px;
  172. top: -0px;
  173. margin: 0;
  174. background: url(assets/images/sanjiao.png) no-repeat;
  175. p{
  176. position: absolute;
  177. z-index: 1;
  178. color: #fff;
  179. right: 30px;
  180. top: 10px;
  181. width: 70px;
  182. // transform:rotate(180deg);
  183. -webkit-transform: rotate(45deg);/*Safari 4+,Google Chrome 1+ */
  184. -moz-transform: rotate(45deg);/*Firefox 3.5+*/
  185. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  186. font-size: 10px;
  187. }
  188. }
  189. </style>