2740edf20c67d687697b4b5dae09fcf30a99f35c.svn-base 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. .filter-container .filter-item{
  50. margin-right: 3px;
  51. }
  52. .fixed-width .el-button--mini{
  53. margin-right: 3px;
  54. }
  55. .el-date-editor.el-input{
  56. margin-right: 3px;
  57. }
  58. .dialog-footer{
  59. right:30px;position:absolute;bottom:30px
  60. }
  61. .el-autocomplete-suggestion li{
  62. padding:0 3px!important;
  63. }
  64. .filter-item .el-input__inner{
  65. width: 100%;
  66. }
  67. body .el-table th.gutter {
  68. display: table-cell !important
  69. }
  70. input::-webkit-outer-spin-button,
  71. input::-webkit-inner-spin-button {
  72. -webkit-appearance: none;
  73. }
  74. input[type="number"]{
  75. -moz-appearance: textfield;
  76. }
  77. .search .filter-item{
  78. margin-right: 5px;
  79. }
  80. // 开始日期结束日期
  81. .inputDatetime .el-range-separator{ padding: 0; margin: 0 10px; }
  82. // 新增/资料库/初始化库存/新增入库单
  83. .success{ background: #409EFF; border-color: #409EFF; color: #fff;min-width:100px;height: 40px;padding: 12px 20px; }
  84. .success:focus, .success:hover{ color: #fff; border-color: #66B1FF; background-color: #66B1FF; min-width:100px;height: 40px;padding: 12px 20px;}
  85. // 删除
  86. .danger{min-width:100px;height: 40px;background: #FF4949; border-color: #FF4949; color: #fff;}
  87. .danger:focus, .danger:hover{min-width:100px;height: 40px;background: #F78989; border-color: #F78989; color: #fff;}
  88. // 行内删除
  89. .smallDanger{ color: #FF4949; }
  90. .smallDanger:focus, .smallDanger:hover{ color: #FF4949; }
  91. // 查询/重置
  92. .successBorder{background: #409EFF; border-color: #409EFF; color: #fff;}
  93. .successBorder:focus, .successBorder:hover{background:#66B1FF; border-color: #66B1FF; color: #fff;}
  94. // 导出
  95. .export{background: #F4F4F5; border-color: #A6A9AD; color: #666666;min-width:100px;height: 40px;}
  96. .export:focus, .export:hover{ color: #666666; border-color: #A6A9AD; background-color: #F7F7F8; min-width:100px;height: 40px}
  97. // 导入
  98. .import{background: #F4F4F5; border-color: #A6A9AD; color: #666666;min-width:100px;height: 40px;}
  99. .import:focus, .import:hover{ color: #666666; border-color: #A6A9AD; background-color: #F7F7F8; min-width:100px;height: 40px}
  100. // 恢复默认
  101. .warning{background: #F7BA2A; border-color:#F7BA2A; color: #fff;min-width:100px;height: 40px;}
  102. .warning:focus, .warning:hover{ color: #fff; border-color: #F7BA2A; background-color: #F7BA2A; min-width:100px;height: 40px}
  103. // 取消/关闭
  104. .cancelClose{background: #FFFFFF; border-color: #CCCCCC; color: #666666;min-width:100px;height: 40px;}
  105. .cancelClose:focus, .cancelClose:hover{ color: #666666; border-color: #CCCCCC; background-color: #FFFFFF; min-width:100px;height: 40px}
  106. // 小编辑/小保存/下拉搜索按钮/拆分预混料
  107. .miniSuccess{ background: #67c23a; border-color: #67c23a; color: #fff;padding: 7px 10px;font-size:14px;min-width:60px;}
  108. .miniSuccess:focus, .miniSuccess:hover{color: #fff; border-color: #85ce61; background-color: #85ce61;padding: 7px 10px;font-size:14px;min-width:60px;}
  109. // 查看
  110. .miniPrimary{ background: #409EFF; border-color: #409EFF; color: #fff;padding: 7px 10px;font-size:14px;min-width:60px;}
  111. .miniPrimary:focus, .miniPrimary:hover{color: #fff; border-color: #66B1FF; background-color: #66B1FF;padding: 7px 10px;font-size:14px;min-width:60px;}
  112. // 小删除
  113. .miniDanger{background: #FF4949; border-color: #FF4949; color: #fff;padding: 7px 10px;font-size:14px;min-width:60px;}
  114. .miniDanger:focus, .miniDanger:hover{background: #F78989; border-color: #F78989; color: #fff;padding: 7px 10px;font-size:14px;min-width:60px;}
  115. // 小取消
  116. .minCancel{background: #FFFFFF; border-color: #CCCCCC; color: #666666;padding: 7px 10px;font-size:14px;min-width:60px;}
  117. .minCancel:focus, .minCancel:hover{ color: #666666; border-color: #CCCCCC; background-color: #FFFFFF; padding: 7px 10px;font-size:14px;min-width:60px;}
  118. // 时间快捷键左右
  119. .elIconArrowLeft{margin-right: -5px;padding: 12px 12px;}
  120. .elIconArrowRight{margin-right: 5px;padding: 12px 12px;}
  121. // 合计滚在滚动条下方
  122. // .el-table{ overflow: auto; }
  123. // .el-table__body-wrapper, .el-table__header-wrapper, .el-table__footer-wrapper{ overflow:visible; }
  124. // .el-table::after{ position: relative !important; }
  125. // .el-table--scrollable-x .el-table__body-wrapper{overflow-x:hidden}
  126. .recipeTemplate{
  127. position: absolute;
  128. width: 120px;
  129. height: 120px;
  130. right: -50px;
  131. top: -0px;
  132. margin: 0;
  133. background: url(assets/images/sanjiao.png) no-repeat;
  134. // border: 50px solid transparent;
  135. // border-top-color: #019966;
  136. // transform:rotate(225deg);
  137. // -webkit-transform: rotate(225deg);/*Safari 4+,Google Chrome 1+ */
  138. // -moz-transform: rotate(225deg);/*Firefox 3.5+*/
  139. // filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  140. right: -50px;
  141. top: 0;
  142. margin: 0;
  143. p{
  144. position: absolute;
  145. z-index: 1;
  146. color: #fff;
  147. right: 40px;
  148. top: 15px;
  149. width: 70px;
  150. // transform:rotate(180deg);
  151. -webkit-transform: rotate(45deg);/*Safari 4+,Google Chrome 1+ */
  152. -moz-transform: rotate(45deg);/*Firefox 3.5+*/
  153. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  154. font-size: 10px;
  155. }
  156. }
  157. .contentOperation{
  158. position: absolute;
  159. width: 120px;
  160. height: 120px;
  161. // border: 50px solid transparent;
  162. // border-top-color: #019966;
  163. // transform:rotate(225deg);
  164. // -webkit-transform: rotate(225deg);/*Safari 4+,Google Chrome 1+ */
  165. // -moz-transform: rotate(225deg);/*Firefox 3.5+*/
  166. // filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  167. right: -50px;
  168. top: -0px;
  169. margin: 0;
  170. background: url(assets/images/sanjiao.png) no-repeat;
  171. p{
  172. position: absolute;
  173. z-index: 1;
  174. color: #fff;
  175. right: 30px;
  176. top: 10px;
  177. width: 70px;
  178. // transform:rotate(180deg);
  179. -webkit-transform: rotate(45deg);/*Safari 4+,Google Chrome 1+ */
  180. -moz-transform: rotate(45deg);/*Firefox 3.5+*/
  181. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);/*ie*/
  182. font-size: 10px;
  183. }
  184. }
  185. </style>