StepsMyBox.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <template>
  2. <!-- 全流程管理组件 -->
  3. <div class="StepsMyBox">
  4. <div style="padding: 10px">
  5. <el-button type="primary" icon="el-icon-arrow-left" @click="backEvent()">返回上级</el-button>
  6. </div>
  7. <!-- 全流程管理主题 -->
  8. <div class="StepsMyBox_main">
  9. <!-- 左侧项目明细 -->
  10. <div class="StepsMyBox_main_left">
  11. <div class="StepsMyBox_main_left_main">
  12. <div class="StepsMyBox_main_left_main_title">2018年张江镇基本农田审计项目</div>
  13. <div class="StepsMyBox_main_left_main_info">基本信息</div>
  14. <div class="StepsMyBox_main_left_main_info">
  15. <div>年份:</div>
  16. <div>2018-05-12</div>
  17. </div>
  18. <div class="StepsMyBox_main_left_main_info">
  19. <div>项目类型:</div>
  20. <div>土地资源</div>
  21. </div>
  22. <div class="StepsMyBox_main_left_main_info">
  23. <div>涉及街镇:</div>
  24. <div>张江镇、川沙镇</div>
  25. </div>
  26. <div class="StepsMyBox_main_left_main_info">
  27. <div>参与人员:</div>
  28. <div>5个</div>
  29. </div>
  30. <div class="StepsMyBox_main_left_main_info">
  31. <div>追踪问题:</div>
  32. <div>5个</div>
  33. </div>
  34. </div>
  35. </div>
  36. <!-- 右侧流程明细 -->
  37. <div class="StepsMyBox_main_right">
  38. <div>
  39. <el-steps :active="stepsIndex" style="margin: 40px 40px 40px 80px">
  40. <el-step v-for="(item, index) in stepsList" :key="index">
  41. <template slot="title">
  42. <div
  43. class="stepsTitle"
  44. :style="{ background: stepsIndex == index + 1 ? '#00aaff' : '' }"
  45. @click="changeStepsIndex(index + 1)"
  46. >
  47. {{ item.title }}
  48. </div>
  49. </template>
  50. </el-step>
  51. </el-steps>
  52. </div>
  53. <div class="stepsInfoBox">
  54. <div>{{ stepsList[stepsIndex - 1].info.text }}</div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </template>
  60. <script>
  61. /**
  62. * 头部菜单(全流程管理)组件
  63. * @author: LiuMengxiang
  64. * @Date: 2022年11月21-25日
  65. */
  66. export default {
  67. name: "StepsMyBox",
  68. data() {
  69. return {
  70. // 当前或默认选中的步骤条下标加一
  71. stepsIndex: 1,
  72. // 步骤条列表
  73. stepsList: [
  74. { title: "立项", info: { text: "2018-05-12 2018年张江基本农田审计项目通过立项" } },
  75. {
  76. title: "通知",
  77. info: { text: "2018年张江基本农田审计项目审计通知书.pdf", filePath: "" }
  78. },
  79. { title: "实施", info: { infos: [{ title: "用户A 完成张江镇xxx片区的审计", id: "001" }] } },
  80. {
  81. title: "报告",
  82. info: {
  83. tableData: [
  84. {
  85. id: "001",
  86. desc: "xxxxx问题",
  87. status: "已完成",
  88. endTime: "2023-01-12"
  89. },
  90. {
  91. id: "001",
  92. desc: "xxxxx问题",
  93. status: "未开始",
  94. endTime: "2023-01-12"
  95. },
  96. {
  97. id: "001",
  98. desc: "xxxxx问题",
  99. status: "已完成",
  100. endTime: "2023-01-12"
  101. }
  102. ]
  103. }
  104. },
  105. { title: "整改", info: { text: "2018-05-12 2018年张江基本农田审计项目通过立项" } }
  106. ]
  107. };
  108. },
  109. props: {},
  110. mounted() {},
  111. watch: {},
  112. methods: {
  113. // 返回上级
  114. backEvent() {
  115. this.$emit("hideStepsMyBoxState");
  116. },
  117. // 切换步骤条
  118. changeStepsIndex(index) {
  119. this.stepsIndex = index;
  120. }
  121. }
  122. };
  123. </script>
  124. <style lang="less" scoped>
  125. .StepsMyBox {
  126. padding: 0;
  127. position: absolute;
  128. display: flex;
  129. background: #001220 !important;
  130. z-index: 999;
  131. width: 100%;
  132. height: 100%;
  133. -moz-user-select: none;
  134. -webkit-user-select: none;
  135. -ms-user-select: none;
  136. -khtml-user-select: none;
  137. user-select: none;
  138. overflow: hidden;
  139. flex-direction: column;
  140. &_main {
  141. padding: 10px;
  142. width: calc(100% - 20px);
  143. height: calc(100% - 20px);
  144. display: flex;
  145. justify-content: space-between;
  146. &_left {
  147. width: calc(25% - 5px);
  148. height: 100%;
  149. background: #00274d !important;
  150. &_main {
  151. margin: 20px 30px;
  152. display: flex;
  153. flex-direction: column;
  154. &_title {
  155. font-size: 20px;
  156. font-family: pingfangSC;
  157. font-weight: 400;
  158. color: #4dc3ff;
  159. line-height: 58px;
  160. }
  161. &_info {
  162. display: flex;
  163. padding: 10px 0;
  164. font-size: 18px;
  165. font-family: pingfangSC;
  166. font-weight: bold;
  167. color: #ffffff;
  168. line-height: 60px;
  169. div {
  170. font-size: 16px;
  171. font-family: pingfangSC;
  172. font-weight: 400;
  173. color: #ffffff;
  174. line-height: 50px;
  175. width: 50%;
  176. }
  177. }
  178. }
  179. }
  180. &_right {
  181. width: calc(75% - 5px);
  182. height: 100%;
  183. background: #00274d !important;
  184. .stepsTitle {
  185. margin-top: 10px;
  186. transform: translate(-30%, 0%);
  187. width: 2rem;
  188. cursor: pointer;
  189. padding: 0px 20px;
  190. border: 1px solid #00aaff;
  191. border-radius: 3px;
  192. color: #ffffff;
  193. font-weight: bold;
  194. }
  195. .stepsInfoBox {
  196. width: calc(100% - 80px);
  197. height: calc(100% - 200px);
  198. margin: 40px;
  199. margin-top: 0px;
  200. font-size: 18px;
  201. font-weight: bold;
  202. font-family: pingfangSC;
  203. line-height: 30px;
  204. color: #ffffff;
  205. }
  206. }
  207. }
  208. }
  209. </style>