49081a882203e4340a24fab58a7dbf85871c7933.svn-base 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. // 弹窗最小高度
  42. .dialogMinHeight{
  43. min-height: 450px;
  44. }
  45. .filter-container .filter-item{
  46. margin-right: 3px;
  47. }
  48. .fixed-width .el-button--mini{
  49. margin-right: 3px;
  50. }
  51. .el-date-editor.el-input{
  52. margin-right: 3px;
  53. }
  54. .dialog-footer{
  55. right:30px;position:absolute;bottom:30px
  56. }
  57. .el-autocomplete-suggestion li{
  58. padding:0 3px!important;
  59. }
  60. .filter-item .el-input__inner{
  61. width: 100%;
  62. }
  63. // body .el-table th.gutter {
  64. // display: table-cell !important
  65. // }
  66. input::-webkit-outer-spin-button,
  67. input::-webkit-inner-spin-button {
  68. -webkit-appearance: none;
  69. }
  70. input[type="number"]{
  71. -moz-appearance: textfield;
  72. }
  73. .search .filter-item{
  74. margin-right: 5px;
  75. }
  76. // 开始日期结束日期
  77. .inputDatetime .el-range-separator{ padding: 0; margin: 0 10px; }
  78. // 行内删除
  79. .smallDanger{ color: #FF4949; }
  80. .smallDanger:focus, .smallDanger:hover{ color: #FF4949; }
  81. // 查询/重置
  82. .successBorder{background: #009A69; border-color: #009A69; color: #fff;}
  83. .successBorder:focus, .successBorder:hover{background:#4DB894; border-color: #4DB894; color: #fff;}
  84. // 导出
  85. .export{background: #F4F4F5; border-color: #A6A9AD; color: #666666;min-width:100px;height: 40px;}
  86. .export:focus, .export:hover{ color: #666666; border-color: #A6A9AD; background-color: #F7F7F8; min-width:100px;height: 40px}
  87. // 导入
  88. .import{background: #F4F4F5; border-color: #A6A9AD; color: #666666;min-width:100px;height: 40px;}
  89. .import:focus, .import:hover{ color: #666666; border-color: #A6A9AD; background-color: #F7F7F8; min-width:100px;height: 40px}
  90. // 恢复默认
  91. .warning{background: #F7BA2A; border-color:#F7BA2A; color: #fff;min-width:100px;height: 40px;}
  92. .warning:focus, .warning:hover{ color: #fff; border-color: #F7BA2A; background-color: #F7BA2A; min-width:100px;height: 40px}
  93. // 取消/关闭
  94. .cancelClose{background: #FFFFFF; border-color: #CCCCCC; color: #666666;min-width:100px;height: 40px;}
  95. .cancelClose:focus, .cancelClose:hover{ color: #666666; border-color: #CCCCCC; background-color: #FFFFFF; min-width:100px;height: 40px}
  96. // 查看
  97. .miniPrimary{ background: #409EFF; border-color: #409EFF; color: #fff;padding: 7px 10px;font-size:14px;min-width:60px;}
  98. .miniPrimary:focus, .miniPrimary:hover{color: #fff; border-color: #66B1FF; background-color: #66B1FF;padding: 7px 10px;font-size:14px;min-width:60px;}
  99. // 时间快捷键左右
  100. .elIconArrowLeft{margin-right: -5px;padding: 12px 12px;}
  101. .elIconArrowRight{margin-right: 5px;padding: 12px 12px;}
  102. .recipeTemplate{
  103. position: absolute;
  104. width: 120px;
  105. height: 120px;
  106. right: -50px;
  107. top: -0px;
  108. margin: 0;
  109. background: url(assets/images/sanjiao.png) no-repeat;
  110. right: -50px;
  111. top: 0;
  112. margin: 0;
  113. p{
  114. position: absolute;
  115. z-index: 1;
  116. color: #fff;
  117. right: 40px;
  118. top: 15px;
  119. width: 70px;
  120. -webkit-transform: rotate(45deg);
  121. -moz-transform: rotate(45deg);
  122. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  123. font-size: 10px;
  124. }
  125. }
  126. .recipeTemplateF{
  127. position: absolute;
  128. width: 120px;
  129. height: 120px;
  130. z-index: 3;
  131. right: -50px;
  132. top: -0px;
  133. margin: 0;
  134. background: url(assets/images/sanjiao.png) no-repeat;
  135. right: -50px;
  136. top: 0;
  137. margin: 0;
  138. p{
  139. position: absolute;
  140. z-index: 1;
  141. color: #fff;
  142. right: 40px;
  143. top: 15px;
  144. width: 70px;
  145. -webkit-transform: rotate(45deg);
  146. -moz-transform: rotate(45deg);
  147. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  148. font-size: 10px;
  149. }
  150. }
  151. .contentOperation{
  152. position: absolute;
  153. width: 120px;
  154. height: 120px;
  155. right: -50px;
  156. top: -0px;
  157. margin: 0;
  158. background: url(assets/images/sanjiao.png) no-repeat;
  159. p{
  160. position: absolute;
  161. z-index: 1;
  162. color: #fff;
  163. right: 30px;
  164. top: 10px;
  165. width: 70px;
  166. -webkit-transform: rotate(45deg);
  167. -moz-transform: rotate(45deg);
  168. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  169. font-size: 10px;
  170. }
  171. }
  172. </style>
  173. <style lang="scss">
  174. // 时间范围选中后
  175. .el-date-table td.end-date span, .el-date-table td.start-date span{ background-color: #009C69; }
  176. // 时间范围小图标
  177. .el-date-editor .el-range__icon{ color: #009C69; }
  178. // 当前时间默认颜色
  179. .el-date-table td.today span{ color: #009C69; }
  180. // 鼠标悬停颜色
  181. .el-date-table td.available:hover{ color: #009C69; }
  182. // 下拉框小图标
  183. .el-select .el-input .el-select__caret{ color: #009C69; }
  184. // table全选
  185. .el-checkbox__input.is-checked .el-checkbox__inner{ background-color: #01BE80; border-color: #01BE80; }
  186. .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner { background-color: #01BE80; border-color: #01BE80; }
  187. // table
  188. $borderColor:#19B6B1;
  189. .el-table{font-size: 12px;color:#333;}
  190. .el-table--border:after, .el-table--group:after, .el-table:before { background-color: $borderColor!important; }
  191. .el-table--border, .el-table--group { border-color: $borderColor!important; }
  192. .el-table td, .el-table th.is-leaf { border-bottom: 1px solid $borderColor!important; }
  193. .el-table--border th, .el-table--border th.gutter:last-of-type { border-bottom: 1px solid $borderColor!important; }
  194. .el-table--border td, .el-table--border th { border-right: 1px solid $borderColor!important; }
  195. .el-table td, .el-table th.is-leaf { border-bottom: 1px solid $borderColor!important; }
  196. .el-table td,.building-top .el-table th.is-leaf { border-bottom: 1px solid $borderColor!important; }
  197. .fixed-width{border-bottom: $borderColor!important ;}
  198. .el-table__fixed-right{height: 100%!important;border-bottom: 1px solid $borderColor!important;}
  199. .el-table__fixed{height: 100%!important;border-bottom: 1px solid $borderColor!important;}
  200. .el-table__footer{border-top: 1px solid $borderColor!important;}
  201. .operation{margin-top: 10px;height: 44px;}
  202. // 新增/资料库/初始化库存/新增入库单
  203. .el-button{padding: 0px 10px;font-size: 16px;}
  204. .success{ background: #fff; border-color: #fff; color: #333;height: 34px; line-height:34px;}
  205. .success:focus, .success:hover{ color: #009C69; border-color: #009C69; background-color: #e5f6f0; height: 34px;line-height:34px;}
  206. // 删除
  207. .danger{height: 34px;line-height:34px;background: #fff; border-color: #fff; color: #FC2323;}
  208. .danger:focus, .danger:hover{height: 34px;background: rgba(252,48,47,.1); border-color: #FC2323; color: #FC2323;}
  209. // 小编辑/小保存/下拉搜索按钮/拆分预混料
  210. .miniSuccess{ color: #333;font-size:18px;border:none;background: none;}
  211. .miniSuccess:focus, .miniSuccess:hover{color: #009C69;font-size:18px;border:none;background: none;}
  212. // 小删除
  213. .miniDanger{color: #FC2323;font-size:18px;border:none;background: none;}
  214. .miniDanger:focus, .miniDanger:hover{color: #FC2323;font-size:18px;border:none;background: none;}
  215. // 小取消
  216. .minCancel{color: #FC2323;font-size:18px;border:none;background: none;}
  217. .minCancel:focus, .minCancel:hover{ color: #FC2323;font-size:18px;border:none;background: none;}
  218. body .el-table th.gutter{ display: table-cell!important; }
  219. body .el-table tr.gutter{ display: table-cell!important; }
  220. // .gutter { display: block !important; width: 17px !important; }
  221. // .el-table{ min-height: 290px !important; }
  222. </style>