123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350 |
- <template>
- <div class="home">
- <div class="second">
- <div class="topPanel">
- <div class="tPanel">
- <el-table size="mini" :data="tableData">
- <el-table-column prop="date" label="数据">
- </el-table-column>
- <el-table-column prop="name" label="状态">
- </el-table-column>
- </el-table>
- </div>
- <div class="tPanel"></div>
- <div class="tPanel"></div>
- <div class="tPanel"></div>
- </div>
- <div class="step">
- <div class="yuan">
- <div class="img yuanBg odd">
- <div class="tag">原始数据</div>
- </div>
- </div>
- <div class="one">
- <div class="img oneBg even" @click="handelDenoising">
- <div class="tag">去噪</div>
- </div>
- </div>
- <div class="two">
- <div class="img twoBg odd" @click="handelCompletion">
- <div class="tag">扩充</div>
- </div>
- </div>
- <div class="three">
- <div class="img threeBg even" @click="handelExpansion">
- <div class="tag">补全</div>
- </div>
- </div>
- <div class="four">
- <div class="img fourBg odd" @click="handelFeatureExtraction">
- <div class="tag">特征提取</div>
- </div>
- </div>
- <div class="five">
- <div class="img fiveBg even" @click="handelAssessment">
- <div class="tag">退化评估</div>
- </div>
- </div>
- <div class="six">
- <div class="img sixBg odd" @click="handelFaultPrediction">
- <div class="tag">故障预测</div>
- </div>
- </div>
- <div class="final">
- </div>
- </div>
- <div class="bottomPanel">
- <div class="bPanel">
- <el-table size="mini" :data="tableData">
- <el-table-column prop="date" label="数据">
- </el-table-column>
- <el-table-column prop="name" label="状态">
- </el-table-column>
- </el-table>
- </div>
- <div class="bPanel"></div>
- <div class="bPanel"></div>
- <div class="bPanel"></div>
- </div>
- </div>
- <div class="first">
- <h4 style="margin:13px 0px 0px 20px;color: #fff;">算法统计</h4>
- <div class="chart">
- <RingChart />
- <BarChart width="700px" />
- </div>
- </div>
- <el-dialog title="选择数据" :visible.sync="dialogVisible" width="30%">
- <span>这是一段信息</span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import CountTo from 'vue-count-to'
- import RingChart from '@/views/homePage/ringChart'
- import BarChart from '@/views/dashboard/BarChart'
- export default {
- name: 'Index',
- components: {
- CountTo,
- RingChart,
- BarChart,
- },
- data() {
- return {
- // 版本号
- version: '3.8.6',
- imageSrc: '/流程图.png',
- dialogVisible: false,
- tableData: [{
- date: 'xxxxxxx',
- name: '已完成'
- }, {
- date: 'xxxxx',
- name: '进行中'
- }, {
- date: 'xxxxx',
- name: '已完成'
- }, {
- date: 'xxxx',
- name: '已完成'
- }]
- }
- },
- methods: {
- goTarget(href) {
- window.open(href, '_blank')
- },
- handleSetLineChartData(type) {
- this.$emit('handleSetLineChartData', type)
- },
- handelDenoising() {
- this.dialogVisible = true
- },
- handelCompletion() {
- this.dialogVisible = true
- },
- handelExpansion() {
- this.dialogVisible = true
- },
- handelFeatureExtraction() {
- this.dialogVisible = true
- },
- handelAssessment() {
- this.dialogVisible = true
- },
- handelFaultPrediction() {
- this.dialogVisible = true
- }
- },
- }
- </script>
- <style scoped lang="scss">
- .home {
- width: 100%;
- /* 设置宽度为100%,以充满父 div 的宽度 */
- min-height: calc(100vh - 84px);
- /* 设置高度为100%,以充满父 div 的高度 */
- // background-color: #f4f4f4;
- overflow: hidden;
- }
- .first {
- width: 97%;
- height: 210px;
- margin: 20px;
- // background-color: white;
- border-radius: 15px;
- overflow: hidden;
- // box-shadow: 0 0 10px rgba(63, 155, 255, 0.5);
- // background: url("../assets/images/msgBg3.png") no-repeat center / contain;
- }
- .chart {
- display: flex;
- justify-content: space-around;
- margin-left: 30px;
- }
- .second {
- width: 97%;
- height: 440px;
- margin: 50px 20px;
- // overflow: hidden;
- display: flex;
- flex-direction: column;
- .step {
- width: 100%;
- height: 120px;
- display: flex;
- justify-content: space-around;
- .yuan,
- .one,
- .two,
- .three,
- .four,
- .five,
- .six,
- .final {
- width: 12%;
- height: 100%;
- text-align: center;
- }
- .item {
- margin-top: 10px;
- margin-right: 40px;
- }
- .img {
- width: 40%;
- height: 95%;
- margin: 0 auto;
- position: relative;
- }
- .img::after {
- content: "";
- position: absolute;
- top: 50%;
- transform: translateX(24%);
- width: 180%;
- height: 1px;
- // background-color: #546882;
- background-color: #00aaff;
- box-shadow: 0 5px 15px rgba(0, 170, 255, 0.5);
- }
- .odd::before {
- content: "";
- position: absolute;
- transform: translateY(-80%);
- width: 1px;
- height: 50%;
- // background-color: #546882;
- background-color: #00aaff;
- box-shadow: 0 5px 15px rgba(0, 170, 255, 0.5);
- }
- .even::before {
- content: "";
- position: absolute;
- bottom: 0;
- transform: translateY(60%);
- width: 1px;
- height: 50%;
- // background-color: #546882;00aaff
- background-color: #00aaff;
- box-shadow: 0 5px 15px rgba(0, 170, 255, 0.5);
- }
- .yuanBg {
- background: url("../assets/images/yuan.png") no-repeat center / contain;
- }
- .oneBg {
- background: url("../assets/images/one.png") no-repeat center / contain;
- }
- .twoBg {
- background: url("../assets/images/two.png") no-repeat center / contain;
- }
- .threeBg {
- background: url("../assets/images/three.png") no-repeat center / contain;
- }
- .fourBg {
- background: url("../assets/images/four.png") no-repeat center / contain;
- }
- .fiveBg {
- background: url("../assets/images/five.png") no-repeat center / contain;
- }
- .sixBg {
- background: url("../assets/images/six.png") no-repeat center / contain;
- }
- .tag {
- color: #fff;
- background: linear-gradient(to right, rgba(8, 200, 236, 0), rgba(8, 200, 236, 0.8), rgba(8, 200, 236, 0.8), rgba(8, 200, 236, 0));
- position: absolute;
- top: -15px;
- left: 100%;
- }
- }
- .topPanel {
- width: 90%;
- height: 37%;
- display: flex;
- justify-content: space-between;
- margin-bottom: 1.5%;
- }
- .bottomPanel {
- width: 90%;
- height: 37%;
- display: flex;
- justify-content: space-between;
- margin-left: 11%;
- margin-top: 1%;
- }
- .tPanel,
- .bPanel {
- // position: relative;
- width: 18%;
- height: 95%;
- overflow: auto;
- // background: url("../assets/images/msgBg3.png") no-repeat center / contain;
- // background: rgba(0, 0, 0, 0.15);
- border: 2px solid transparent;
- background-clip: padding-box;
- box-shadow: 0 0 10px rgba(63, 155, 255, 0.5);
- border-radius: 5%;
- }
- }
- .square {
- width: 90px;
- height: 50px;
- line-height: 50px;
- text-align: center;
- border-radius: 12px;
- font-size: 14px;
- border: 2px solid grey;
- }
- .diamond {
- height: 100px;
- width: 100px;
- transform: rotateZ(45deg) skew(-20deg, -20deg);
- position: relative;
- border: 2px solid grey;
- .diamond-p {
- position: absolute;
- width: 140px;
- top: 14%;
- left: -17%;
- transform: skew(20deg, 20deg) rotateZ(-45deg);
- }
- }
- ::-webkit-scrollbar {
- display: none;
- }
- </style>
|