LeftBox.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <template>
  2. <transition
  3. appear
  4. name="animate__animated animate__move"
  5. enter-active-class="animate__slideInLeft"
  6. leave-active-class="animate__slideOutLeft"
  7. >
  8. <div class="widget-ProjectOverview">
  9. <div class="head">
  10. <div class="title">
  11. <div class="icon"></div>
  12. <span class="site-info">停工日期设置</span>
  13. <div class="addDiv" @click="addStopDate"></div>
  14. </div>
  15. </div>
  16. <div class="bodyBox">
  17. <div class="inputStopDate" v-if="stopDateList.length > 0">
  18. <template v-for="(item, index) in stopDateList">
  19. <div :key="'inputStopDate_' + index" class="dateTimeDiv">
  20. <el-date-picker
  21. v-model="item.value"
  22. type="daterange"
  23. range-separator="至"
  24. start-placeholder="开始日期"
  25. end-placeholder="结束日期"
  26. ></el-date-picker>
  27. <div class="removeDiv" @click="removeStopDate(index)">
  28. <i class="removeDate el-icon-remove-outline" style="color:#78B6E7;"></i>
  29. </div>
  30. </div>
  31. </template>
  32. </div>
  33. <div class="tableBox">
  34. <div class="title">【方案1】因停工导致延期的施工工序</div>
  35. <el-table :data="tableData" size="mini" style="width: 100%" height="250">
  36. <el-table-column prop="date" label="施工工序" width="88"> </el-table-column>
  37. <el-table-column prop="name" label="联合单元" width="90"> </el-table-column>
  38. <el-table-column label="施工天数">
  39. <el-table-column prop="num1" label="延期前" width="65"> </el-table-column>
  40. <el-table-column prop="num2" label="延期后" width="65"> </el-table-column>
  41. </el-table-column>
  42. </el-table>
  43. </div>
  44. </div>
  45. <!-- <div class="bottonListDiv">
  46. <el-button type="primary" @click="removeStopDate(-1)">重置</el-button>
  47. <el-button type="primary" @click="saveStopDate">确认</el-button>
  48. </div> -->
  49. </div>
  50. </transition>
  51. </template>
  52. <script>
  53. export default {
  54. data() {
  55. return {
  56. //进度模拟方案
  57. stopDateList: [],
  58. tableData: [
  59. {
  60. date: '第一层土方开挖',
  61. name: '区域A,区域B,区域C,区域D',
  62. num1: 5,
  63. num2: 10
  64. },
  65. {
  66. date: '第一层土方开挖',
  67. name: '区域A,区域B,区域C,区域D',
  68. num1: 5,
  69. num2: 10
  70. },
  71. {
  72. date: '第一层土方开挖',
  73. name: '区域A,区域B,区域C,区域D',
  74. num1: 5,
  75. num2: 10
  76. },
  77. {
  78. date: '第一层土方开挖',
  79. name: '区域A,区域B,区域C,区域D',
  80. num1: 5,
  81. num2: 10
  82. }
  83. ]
  84. }
  85. },
  86. mounted() {
  87. this.getPageData()
  88. },
  89. methods: {
  90. getPageData() {},
  91. /**
  92. *添加时间段
  93. */
  94. addStopDate() {
  95. const item = {
  96. value: ''
  97. }
  98. this.stopDateList.push(item)
  99. },
  100. /**
  101. *删除时间段
  102. */
  103. removeStopDate(index) {
  104. if (index == -1) {
  105. this.stopDateList = []
  106. } else {
  107. this.stopDateList.splice(index, 1)
  108. }
  109. }
  110. }
  111. }
  112. </script>
  113. <style>
  114. .tableBox th.el-table__cell,
  115. .tableBox .el-table,
  116. .tableBox .el-table__expanded-cell,
  117. .tableBox .el-table tr {
  118. background-color: rgba(14, 167, 255, 0) !important;
  119. }
  120. .tableBox .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
  121. background-color: rgba(14, 167, 255, 0) !important;
  122. }
  123. .tableBox .el-table td.el-table__cell,
  124. .tableBox .el-table th.el-table__cell.is-leaf {
  125. border-bottom: 1px solid #216294;
  126. }
  127. .tableBox .el-table {
  128. color: #fff !important;
  129. }
  130. .tableBox .el-table th.el-table__cell > .cell {
  131. font-weight: 500;
  132. font-size: 14px;
  133. color: #2ba7ff;
  134. }
  135. .tableBox .el-table--border .el-table__cell, .tableBox .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
  136. border-right: 1px solid #216294;
  137. }
  138. .tableBox .el-table--border, .tableBox .el-table--group {
  139. border: 1px solid #216294;
  140. }
  141. .tableBox .el-table--border th.el-table__cell, .tableBox .el-table__fixed-right-patch {
  142. border-bottom: 1px solid #216294;
  143. }
  144. .tableBox .el-table--border::after, .tableBox .el-table--group::after, .tableBox .el-table::before{
  145. background-color: rgba(14, 167, 255, 0);
  146. }
  147. </style>
  148. <style>
  149. .dateTimeDiv input.el-range-input {
  150. background-color: rgba(255, 255, 255, 0);
  151. }
  152. .dateTimeDiv .el-date-editor .el-range__icon,
  153. .dateTimeDiv .el-date-editor .el-range-separator {
  154. line-height: 30px;
  155. height: auto;
  156. }
  157. .dateTimeDiv .el-range-separator {
  158. color: #d9d8d8;
  159. }
  160. .tableBox .el-table .el-table__cell{
  161. padding: 0px;
  162. }
  163. </style>
  164. <style lang="scss" scoped>
  165. .bodyBox {
  166. padding: 15px;
  167. }
  168. .tableBox {
  169. margin-top: 20px;
  170. padding-top: 15px;
  171. border-top: dashed 1px rgba(42 ,147,255,0.3);
  172. }
  173. .tableBox .title {
  174. font-weight: 500;
  175. font-size: 16px;
  176. margin-bottom: 10px;
  177. }
  178. .dateTimeDiv > div:first-child {
  179. background-color: rgba(255, 255, 255, 0);
  180. border-radius: 2px;
  181. height: 30px;
  182. border: 1px solid #216294;
  183. }
  184. .dateTimeDiv {
  185. display: flex;
  186. margin-top: 10px;
  187. }
  188. .removeDiv {
  189. width: 24px;
  190. height: 24px;
  191. margin: auto 0px auto 10px;
  192. cursor: pointer;
  193. }
  194. .addDiv {
  195. color: #9bd2fa;
  196. font-size: 14px;
  197. font-weight: normal;
  198. cursor: pointer;
  199. background: url('~@/assets/images/jczc/add.png') no-repeat center;
  200. background-size: 100% 100%;
  201. width: 40px;
  202. height: 22px;
  203. }
  204. .animate__slideInLeft,
  205. .animate__slideOutLeft {
  206. animation-duration: 3s; //动画持续时间
  207. animation-delay: 0s; //动画延迟时间
  208. }
  209. .widget-ProjectOverview {
  210. $size10: 0.052083rem /* 10/192 */;
  211. $size20: 0.104167rem /* 20/192 */;
  212. z-index: 2;
  213. //position
  214. top: 0.505208rem /* 97/192 */;
  215. margin-left: $size20 /* 20/192 */;
  216. position: absolute;
  217. //size
  218. height: calc(100% - 1.57292rem - 105px);
  219. width: 2.083333rem /* 400/192 */;
  220. overflow: hidden;
  221. color: #eee;
  222. background: linear-gradient(0deg, rgba(14, 167, 255, 0.24) 0%, rgba(14, 167, 255, 0.05) 100%);
  223. .head {
  224. height: 0.166667rem /* 32/192 */;
  225. width: 100%;
  226. background: linear-gradient(-90deg, rgba(43, 167, 255, 0.2) 0%, rgba(43, 167, 255, 0.08) 100%);
  227. font-family: Source Han Sans CN-HEAVY;
  228. .title {
  229. width: 100%;
  230. height: 100%;
  231. display: flex;
  232. font-weight: 400;
  233. align-items: center;
  234. .icon {
  235. height: 0.166667rem /* 32/192 */;
  236. width: 0.34375rem /* 66/192 */;
  237. background: url('~@/views/groupPage/images/模块图标/项目概况.png') no-repeat center center;
  238. background-size: 100% 100%;
  239. }
  240. span {
  241. flex: 1;
  242. font-weight: bold;
  243. font-size: 0.083333rem /* 16/192 */;
  244. color: #ffffff;
  245. padding: 0.041667rem /* 8/192 */;
  246. background: linear-gradient(0deg, #9bd2fa 0%, #ffffff 100%);
  247. background-clip: text;
  248. -webkit-text-fill-color: transparent;
  249. }
  250. }
  251. }
  252. }
  253. </style>