You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

204 lines
5.0 KiB

  1. <template>
  2. <div class="milestone_panel">
  3. <!-- 用户中心弹窗模块 -->
  4. <div :class="yiyunAnimated + ' flex_right_pain'">
  5. <!-- 历史版本管理 -->
  6. <div class="flex_right_pain_body_box">
  7. <div class="flex_right_pain_head">
  8. <div class="EC_col_12">
  9. <h4 class="RdiaheaderTitle">历史版本管理</h4>
  10. </div>
  11. <div class="EC_col_12">
  12. <div class="close-wrap"
  13. :class="{'close-hover': isCloseHover}"
  14. @click.stop="closeSetPain"
  15. @mouseenter="isCloseHover = true"
  16. @mouseleave="isCloseHover = false"
  17. >
  18. <img v-show="!isCloseHover" class="close-icon vert-hori-center" src="/static/img/operate-pop-window/关闭.svg" alt />
  19. <img v-show="isCloseHover" class="close-icon vert-hori-center" src="/static/img/operate-pop-window/关闭激活.svg" alt />
  20. </div>
  21. </div>
  22. </div>
  23. <div class="pxline"></div>
  24. <div class="flex_right_pain_body">
  25. <div class="yiyun_app_itemClasss">
  26. </div>
  27. </div>
  28. <div class="bottombtnitem">
  29. <div class="bottombtnitemlonBtn">
  30. <el-button
  31. type="primary"
  32. round
  33. class="longBtn defualtBtnInfo quitBtn"
  34. @click="checkAllMilestone"
  35. >查看所有历史版本</el-button
  36. >
  37. </div>
  38. </div>
  39. </div>
  40. <!-- 查看所有历史版本 -->
  41. <div class="flex_right_pain_body_box" v-if="milestoneCheck">
  42. <div class="flex_right_pain_head">
  43. <div class="EC_col_4">
  44. <i
  45. class="el-collapse-item__arrow el-icon-arrow-left left-list_btn"
  46. @click.stop="enterMilestoneManage"
  47. ></i>
  48. </div>
  49. <div class="EC_col_16">
  50. <h4 class="centertext">所有历史版本</h4>
  51. </div>
  52. <div class="EC_col_4">
  53. <i
  54. class="Cicon icon font_family icon-icon_quxiaohuoguanbi fr"
  55. title="关闭"
  56. @click="closeSetPain"
  57. ></i>
  58. </div>
  59. </div>
  60. <div class="pxline"></div>
  61. <div class="flex_right_pain_body">
  62. <div class="yiyun_app_itemClasss">
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </template>
  69. <script>
  70. export default {
  71. components: {
  72. },
  73. async mounted() {
  74. // const userInfo = await getUserInfo(this.$store.state.accountId);
  75. // this.user = userInfo;
  76. },
  77. data() {
  78. return {
  79. yiyunAnimated: "", //设置面板默认动画为空 AnimatedRightIn动画右边进入
  80. isCloseHover: false,
  81. //添加的
  82. clickedVersion:'',
  83. isFileNameShow:false,
  84. remarks:'备注内容,默认显示两行。备注内容,默认显示两行。',
  85. isEdit:false,
  86. colorList:['#7850FF','#4AE2A6','#FFBE00',
  87. '#3C7DFF','#D6243A','#FF6634',
  88. '#14A3FF','#7DE217'
  89. ],//颜色盘
  90. selectedColor:'#7850FF',
  91. toolboxShow:false,
  92. color:'#fff', //标记icon的颜色
  93. milestoneManage:true,
  94. milestoneCheck:false,
  95. };
  96. },
  97. methods: {
  98. //点击某一版本
  99. clickVersion(){
  100. this.isFileNameShow = true;
  101. },
  102. //触发input焦点事件
  103. editRemarks(){
  104. this.isEdit = true;
  105. },
  106. //完成备注
  107. setRemarks(){
  108. this.isFileNameShow = false;
  109. this.isEdit = false;
  110. },
  111. //取消备注
  112. cancelEdit(){
  113. },
  114. // 查看所有历史版本
  115. checkAllMilestone(){
  116. this.milestoneManage = false;
  117. this.milestoneCheck = true;
  118. },
  119. //返回历史版本管理
  120. enterMilestoneManage(){
  121. this.milestoneManage = true;
  122. this.milestoneCheck = false;
  123. },
  124. /**
  125. * 用户设置面板
  126. */
  127. openSetPain: function () {
  128. this.yiyunAnimated = "AnimatedRightIn";
  129. },
  130. /**
  131. * 关闭
  132. */
  133. closeSetPain: function () {
  134. this.yiyunAnimated = "";
  135. },
  136. // 打开设置颜色
  137. setColor(){
  138. this.toolboxShow = true;
  139. this.isFileNameShow = true;
  140. },
  141. // 选择颜色
  142. selectColor(color){
  143. this.selectedColor = color;
  144. },
  145. // 关闭设置颜色
  146. closeSetColor(){
  147. this.toolboxShow = false;
  148. },
  149. //创建里程碑
  150. createMilestone(){
  151. this.toolboxShow = false;
  152. this.color = this.selectedColor;
  153. }
  154. },
  155. };
  156. </script>
  157. <style lang="scss" scoped>
  158. .icon-gerenshezhi {
  159. line-height: inherit;
  160. }
  161. .yiyun_yinyongname {
  162. line-height: 1.2;
  163. }
  164. .milestone_panel .flex_right_pain{
  165. right: 30px;
  166. }
  167. .milestone_panel .flex_right_pain_body {
  168. font-size: 16px;
  169. height: calc(100vh - 24px - 16px - 48px - 58px - 6px - 50px) !important;
  170. }
  171. .check-for-updates {
  172. display: flex;
  173. align-items: center;
  174. }
  175. /* 关闭弹窗 */
  176. .close-hover {
  177. background-color: #d6243a;
  178. }
  179. .close-wrap {
  180. position: absolute;
  181. top: 8px;
  182. right: 8px;
  183. width: 32px;
  184. height: 32px;
  185. line-height: 32px;
  186. text-align: center;
  187. border-radius: 4px;
  188. cursor: pointer;
  189. }
  190. </style>