123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <template>
- <!-- 全流程管理组件 -->
- <div class="StepsMyBox">
- <div style="padding: 10px">
- <el-button type="primary" icon="el-icon-arrow-left" @click="backEvent()">返回上级</el-button>
- </div>
- <!-- 全流程管理主题 -->
- <div class="StepsMyBox_main">
- <!-- 左侧项目明细 -->
- <div class="StepsMyBox_main_left">
- <div class="StepsMyBox_main_left_main">
- <div class="StepsMyBox_main_left_main_title">2018年张江镇基本农田审计项目</div>
- <div class="StepsMyBox_main_left_main_info">基本信息</div>
- <div class="StepsMyBox_main_left_main_info">
- <div>年份:</div>
- <div>2018-05-12</div>
- </div>
- <div class="StepsMyBox_main_left_main_info">
- <div>项目类型:</div>
- <div>土地资源</div>
- </div>
- <div class="StepsMyBox_main_left_main_info">
- <div>涉及街镇:</div>
- <div>张江镇、川沙镇</div>
- </div>
- <div class="StepsMyBox_main_left_main_info">
- <div>参与人员:</div>
- <div>5个</div>
- </div>
- <div class="StepsMyBox_main_left_main_info">
- <div>追踪问题:</div>
- <div>5个</div>
- </div>
- </div>
- </div>
- <!-- 右侧流程明细 -->
- <div class="StepsMyBox_main_right">
- <div>
- <el-steps :active="stepsIndex" style="margin: 40px 40px 40px 80px;">
- <el-step v-for="item in stepsList" :key="item.index">
- <template slot="title">
- <div
- class="stepsTitle"
- :style="{ background: stepsIndex == item.index ? '#00aaff' : '' }"
- @click="changeStepsIndex(item.index)"
- >
- {{ item.title }}
- </div>
- </template>
- </el-step>
- </el-steps>
- </div>
- <div class="stepsInfoBox">???</div>
- </div>
- </div>
- </div>
- </template>
- <script>
- /**
- * 头部菜单(全流程管理)组件
- * @author: LiuMengxiang
- * @Date: 2022年11月21-25日
- */
- export default {
- name: "StepsMyBox",
- data() {
- return {
- // 当前或默认选中的步骤条下标加一
- stepsIndex: 1,
- // 步骤条列表
- stepsList: [
- { index: 1, title: "立项" },
- { index: 2, title: "通知" },
- { index: 3, title: "实施" },
- { index: 4, title: "报告" },
- { index: 5, title: "整改" }
- ]
- };
- },
- props: {},
- mounted() {},
- watch: {},
- methods: {
- // 返回上级
- backEvent() {
- this.$emit("hideStepsMyBoxState");
- },
- // 切换步骤条
- changeStepsIndex(index) {
- this.stepsIndex = index;
- }
- }
- };
- </script>
- <style lang="less" scoped>
- .StepsMyBox {
- padding: 0;
- position: absolute;
- display: flex;
- background: #001220 !important;
- z-index: 999;
- width: 100%;
- height: 100%;
- -moz-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- -khtml-user-select: none;
- user-select: none;
- overflow: hidden;
- flex-direction: column;
- &_main {
- padding: 10px;
- width: calc(100% - 20px);
- height: calc(100% - 20px);
- display: flex;
- justify-content: space-between;
- &_left {
- width: calc(25% - 5px);
- height: 100%;
- background: #00274d !important;
- &_main {
- margin: 20px 30px;
- display: flex;
- flex-direction: column;
- &_title {
- font-size: 20px;
- font-family: pingfangSC;
- font-weight: 400;
- color: #4dc3ff;
- line-height: 58px;
- }
- &_info {
- display: flex;
- padding: 10px 0;
- font-size: 18px;
- font-family: pingfangSC;
- font-weight: bold;
- color: #ffffff;
- line-height: 60px;
- div {
- font-size: 16px;
- font-family: pingfangSC;
- font-weight: 400;
- color: #ffffff;
- line-height: 50px;
- width: 50%;
- }
- }
- }
- }
- &_right {
- width: calc(75% - 5px);
- height: 100%;
- background: #00274d !important;
- .stepsTitle {
- margin-top: 10px;
- transform: translate(-30%, 0%);
- width: 2rem;
- cursor: pointer;
- padding: 0px 20px;
- border: 1px solid #00aaff;
- border-radius: 3px;
- color: #ffffff;
- font-weight: bold;
- }
- .stepsInfoBox{
- width: calc(100% - 80px);
- height: calc(100% - 200px);
- margin: 40px;
- margin-top: 0px;
- background: #00000064 !important;
- }
- }
- }
- }
- </style>
|