|
- <template>
- <div class="milestone_panel">
- <!-- 用户中心弹窗模块 -->
- <div :class="yiyunAnimated + ' flex_right_pain'">
- <!-- 历史版本管理 -->
- <div class="flex_right_pain_body_box">
- <div class="flex_right_pain_head">
- <div class="EC_col_12">
- <h4 class="RdiaheaderTitle">历史版本管理</h4>
- </div>
- <div class="EC_col_12">
- <div class="close-wrap"
- :class="{'close-hover': isCloseHover}"
- @click.stop="closeSetPain"
- @mouseenter="isCloseHover = true"
- @mouseleave="isCloseHover = false"
- >
- <img v-show="!isCloseHover" class="close-icon vert-hori-center" src="/static/img/operate-pop-window/关闭.svg" alt />
- <img v-show="isCloseHover" class="close-icon vert-hori-center" src="/static/img/operate-pop-window/关闭激活.svg" alt />
- </div>
- </div>
- </div>
- <div class="pxline"></div>
- <div class="flex_right_pain_body">
- <div class="yiyun_app_itemClasss">
- </div>
- </div>
- <div class="bottombtnitem">
- <div class="bottombtnitemlonBtn">
- <el-button
- type="primary"
- round
- class="longBtn defualtBtnInfo quitBtn"
- @click="checkAllMilestone"
- >查看所有历史版本</el-button
- >
- </div>
- </div>
- </div>
- <!-- 查看所有历史版本 -->
- <div class="flex_right_pain_body_box" v-if="milestoneCheck">
- <div class="flex_right_pain_head">
- <div class="EC_col_4">
- <i
- class="el-collapse-item__arrow el-icon-arrow-left left-list_btn"
- @click.stop="enterMilestoneManage"
- ></i>
- </div>
- <div class="EC_col_16">
- <h4 class="centertext">所有历史版本</h4>
- </div>
- <div class="EC_col_4">
- <i
- class="Cicon icon font_family icon-icon_quxiaohuoguanbi fr"
- title="关闭"
- @click="closeSetPain"
- ></i>
- </div>
- </div>
- <div class="pxline"></div>
- <div class="flex_right_pain_body">
- <div class="yiyun_app_itemClasss">
- </div>
- </div>
- </div>
- </div>
-
- </div>
- </template>
-
- <script>
- export default {
- components: {
- },
- async mounted() {
- // const userInfo = await getUserInfo(this.$store.state.accountId);
- // this.user = userInfo;
- },
- data() {
- return {
- yiyunAnimated: "", //设置面板默认动画为空 AnimatedRightIn动画右边进入
- isCloseHover: false,
- //添加的
- clickedVersion:'',
- isFileNameShow:false,
- remarks:'备注内容,默认显示两行。备注内容,默认显示两行。',
- isEdit:false,
- colorList:['#7850FF','#4AE2A6','#FFBE00',
- '#3C7DFF','#D6243A','#FF6634',
- '#14A3FF','#7DE217'
- ],//颜色盘
- selectedColor:'#7850FF',
- toolboxShow:false,
- color:'#fff', //标记icon的颜色
- milestoneManage:true,
- milestoneCheck:false,
- };
- },
- methods: {
- //点击某一版本
- clickVersion(){
- this.isFileNameShow = true;
- },
- //触发input焦点事件
- editRemarks(){
- this.isEdit = true;
- },
- //完成备注
- setRemarks(){
- this.isFileNameShow = false;
- this.isEdit = false;
- },
- //取消备注
- cancelEdit(){
-
- },
- // 查看所有历史版本
- checkAllMilestone(){
- this.milestoneManage = false;
- this.milestoneCheck = true;
- },
- //返回历史版本管理
- enterMilestoneManage(){
- this.milestoneManage = true;
- this.milestoneCheck = false;
- },
-
-
- /**
- * 用户设置面板
- */
- openSetPain: function () {
- this.yiyunAnimated = "AnimatedRightIn";
- },
- /**
- * 关闭
- */
- closeSetPain: function () {
- this.yiyunAnimated = "";
- },
- // 打开设置颜色
- setColor(){
- this.toolboxShow = true;
- this.isFileNameShow = true;
- },
- // 选择颜色
- selectColor(color){
- this.selectedColor = color;
- },
- // 关闭设置颜色
- closeSetColor(){
- this.toolboxShow = false;
- },
- //创建里程碑
- createMilestone(){
- this.toolboxShow = false;
- this.color = this.selectedColor;
- }
-
- },
- };
- </script>
-
- <style lang="scss" scoped>
- .icon-gerenshezhi {
- line-height: inherit;
- }
- .yiyun_yinyongname {
- line-height: 1.2;
- }
- .milestone_panel .flex_right_pain{
- right: 30px;
- }
- .milestone_panel .flex_right_pain_body {
- font-size: 16px;
- height: calc(100vh - 24px - 16px - 48px - 58px - 6px - 50px) !important;
- }
- .check-for-updates {
- display: flex;
- align-items: center;
- }
- /* 关闭弹窗 */
- .close-hover {
- background-color: #d6243a;
- }
- .close-wrap {
- position: absolute;
- top: 8px;
- right: 8px;
-
- width: 32px;
- height: 32px;
-
- line-height: 32px;
- text-align: center;
-
- border-radius: 4px;
-
- cursor: pointer;
-
- }
-
- </style>
|