Merge remote-tracking branch 'origin/master'
| | |
| | | <div class="main_head"> |
| | | <div class="main_head_title"> |
| | | <span>å
¥å人åç»è®¡æ»è§</span> |
| | | <el-radio-group v-model="isGroupBy" size="mini" @change="getData(), getRataLists(), getReportLists()"> |
| | | <el-radio-group v-model="isGroupBy" @change="getData(), getRataLists(), getReportLists()"> |
| | | <el-radio-button :label="0">æäººæ¬¡ç»è®¡</el-radio-button> |
| | | <el-radio-button :label="1">æäººåç»è®¡</el-radio-button> |
| | | </el-radio-group> |
| | |
| | | <div class="dept_wrap"> |
| | | <div class="title"> |
| | | <span>人ååç±»ç»è®¡</span> |
| | | <el-radio-group style="margin-left: 20px;" v-model="dateType" size="mini" @change="changeDateType"> |
| | | <el-radio-button label="month">æ</el-radio-button> |
| | | <el-radio-button label="year">å¹´</el-radio-button> |
| | | <el-radio-group style="margin-left: 43px;" v-model="dateType" @change="changeDateType"> |
| | | <el-radio-button label="month">æåº¦</el-radio-button> |
| | | <el-radio-button label="year">年度</el-radio-button> |
| | | </el-radio-group> |
| | | <el-date-picker |
| | | v-model="value" |
| | | :type="dateType" |
| | | size="mini" |
| | | :clearable="false" |
| | | @change="getRataLists()" |
| | | :value-format="dateType === 'month' ? 'yyyy-MM' : 'yyyy'" |
| | | style="margin-left: 20px; width: 130px;" |
| | | style="margin-left: 10px; width: 130px;" |
| | | placeholder="è¯·éæ©"> |
| | | </el-date-picker> |
| | | </div> |
| | |
| | | <div class="main_table"> |
| | | <div class="main_table_list"> |
| | | <div class="title" style="display: flex; align-items: center; justify-content: space-between;"> |
| | | <div> |
| | | <div style="display: flex; align-items: center;"> |
| | | <span>å
¥å人åç»è®¡è¡¨</span> |
| | | <el-radio-group style="margin-left: 20px;" v-model="radio" size="mini" @change="changeBB"> |
| | | <el-radio-button label="month">æ</el-radio-button> |
| | | <el-radio-button label="year">å¹´</el-radio-button> |
| | | <el-radio-group style="margin-left: 43px;" v-model="radio" @change="changeBB"> |
| | | <el-radio-button label="month">æåº¦</el-radio-button> |
| | | <el-radio-button label="year">年度</el-radio-button> |
| | | </el-radio-group> |
| | | <el-date-picker |
| | | v-model="date1" |
| | | :type="radio" |
| | | :clearable="false" |
| | | size="mini" |
| | | @change="getReportLists()" |
| | | :value-format="radio === 'month' ? 'yyyy-MM' : 'yyyy'" |
| | | style="margin-left: 20px; width: 130px;" |
| | | style="margin-left: 10px; width: 130px;" |
| | | placeholder="è¯·éæ©"> |
| | | </el-date-picker> |
| | | </div> |
| | | <el-button type="primary" size="mini" style="margin-left: 20px;" @click="daochu">导åº</el-button> |
| | | <el-button type="primary" icon="el-icon-upload2" style="margin-left: 20px;" @click="daochu">导åº</el-button> |
| | | </div> |
| | | <div class="list_head"> |
| | | <div class="list_head_item" v-for="(item, index) in column" :key="index">{{item}}</div> |
| | |
| | | |
| | | let option = { |
| | | grid: { |
| | | left: '5%', |
| | | right: '10%', |
| | | bottom: '0%', |
| | | top: '20%', |
| | | left: '0%', |
| | | right: '5%', |
| | | bottom: '10%', |
| | | top: '10%', |
| | | containLabel: true |
| | | }, |
| | | tooltip: { |
| | |
| | | series: [ |
| | | { |
| | | data: datas, |
| | | type: 'line' |
| | | type: 'line', |
| | | areaStyle: { |
| | | normal: { |
| | | color: { |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [{ |
| | | offset: 0, |
| | | color: '#207FF7' // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, |
| | | color: 'rgba(255,255,255,.2)' // 100% å¤çé¢è² |
| | | }], |
| | | globalCoord: false // 缺ç为 false |
| | | } |
| | | } |
| | | }, |
| | | lineStyle: { // çº¿æ¡æ ·å¼ |
| | | color: { |
| | | type: 'linear', |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [{ |
| | | offset: 0, color: '#207FF7' // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, color: '#207FF7' // 100% å¤çé¢è² |
| | | }] |
| | | }, |
| | | width: 2 // 线æ¡ç²ç» |
| | | }, |
| | | symbol: 'circle', |
| | | symbolSize: 10, |
| | | itemStyle: { |
| | | borderWidth: 1, |
| | | borderColor: '#fff', |
| | | color: '#207FF7' |
| | | }, |
| | | smooth: false |
| | | } |
| | | ] |
| | | } |
| | |
| | | { |
| | | name: 'è®¿é®æ¥æº', |
| | | type: 'pie', |
| | | radius: '55%', |
| | | radius: ['34%', '50%'], |
| | | labelLine: { |
| | | normal: { |
| | | length: 30, |
| | | length2: 100, |
| | | } |
| | | }, |
| | | label: { |
| | | formatter: "{a|{b}} {d}%", |
| | | rich: { |
| | | a: { |
| | | color: '#333333', |
| | | fontSize: 14, |
| | | fontWeight: 500 |
| | | } |
| | | }, |
| | | padding: [0,-50,20,-100] |
| | | }, |
| | | data: data |
| | | } |
| | | ] |
| | |
| | | overflow-x: hidden; |
| | | padding: 15px; |
| | | box-sizing: border-box; |
| | | background-color: #ffffff; |
| | | background-color: #F4F7FC; |
| | | .main_head { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | margin-bottom: 20px; |
| | | margin-bottom: 10px; |
| | | background-color: #ffffff; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | .main_head_title { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | | color: #222222; |
| | | margin-right: 30px; |
| | | } |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | .blue { |
| | | border-left: 5px solid blue; |
| | | border-left: 8px solid #12BB8B; |
| | | } |
| | | .red { |
| | | border-left: 5px solid red; |
| | | border-left: 8px solid #F6CF46; |
| | | } |
| | | .yellow { |
| | | border-left: 5px solid yellow; |
| | | border-left: 8px solid #5DC9FB; |
| | | } |
| | | .orange { |
| | | border-left: 5px solid orange; |
| | | border-left: 8px solid #FF9E56; |
| | | } |
| | | .darkBlue { |
| | | border-left: 5px solid #0000a8; |
| | | border-left: 8px solid #6B6EFF; |
| | | } |
| | | .main_head_item { |
| | | width: 19%; |
| | | height: 70px; |
| | | height: 112px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | box-sizing: border-box; |
| | | border-radius: 5px; |
| | | background-color: #ffffff; |
| | | background-color: #F4F7FC; |
| | | span { |
| | | &:nth-child(1) { |
| | | font-size: 22px; |
| | | color: black; |
| | | font-weight: bold; |
| | | font-weight: 600; |
| | | font-size: 30px; |
| | | color: #222222; |
| | | } |
| | | &:nth-child(2) { |
| | | font-size: 16px; |
| | | color: black; |
| | | font-weight: 400; |
| | | font-size: 14px; |
| | | color: #222222; |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | .main_table { |
| | | display: flex; |
| | | align-items: center; |
| | | align-items: start; |
| | | justify-content: space-between; |
| | | height: 300px; |
| | | margin-top: 10px; |
| | | .main_table_list { |
| | | margin-left: 20px; |
| | | background-color: #ffffff; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | flex: 1; |
| | | .title { |
| | | display: flex; |
| | | align-items: center; |
| | | span { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | | color: #222222; |
| | | } |
| | | } |
| | | .list_head { |
| | | width: 100%; |
| | | height: 35px; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #ececec; |
| | | background-color: #F7F7F7; |
| | | border-left: 1px solid #DFE2E8; |
| | | border-top: 1px solid #DFE2E8; |
| | | margin-top: 15px; |
| | | .list_head_item { |
| | | flex: 1; |
| | |
| | | justify-content: center; |
| | | font-size: 13px; |
| | | color: #222222; |
| | | font-weight: 500; |
| | | border-right: 1px solid #DFE2E8; |
| | | } |
| | | } |
| | | .table_box { |
| | | width: 100%; |
| | | height: 234px; |
| | | border-bottom: 1px solid #DFE2E8; |
| | | .list_content { |
| | | width: 100%; |
| | | height: 40px; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | border-left: 1px solid #DFE2E8; |
| | | border-top: 1px solid #DFE2E8; |
| | | .list_head_item { |
| | | flex: 1; |
| | | height: 100%; |
| | | display: flex; |
| | | border-right: 1px solid #DFE2E8; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 13px; |
| | |
| | | } |
| | | } |
| | | .main_table_list1 { |
| | | margin-left: 20px; |
| | | width: 300px; |
| | | margin-left: 10px; |
| | | width: 520px; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | flex-shrink: 0; |
| | | background-color: #ffffff; |
| | | .title { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | | color: #222222; |
| | | } |
| | | .list_head { |
| | | width: 100%; |
| | | height: 35px; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #ececec; |
| | | background-color: #F7F7F7; |
| | | border-left: 1px solid #DFE2E8; |
| | | border-top: 1px solid #DFE2E8; |
| | | margin-top: 15px; |
| | | .list_head_item { |
| | | flex: 1; |
| | | flex: 1.8; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 13px; |
| | | color: #222222; |
| | | font-weight: 500; |
| | | border-right: 1px solid #DFE2E8; |
| | | &:last-child { |
| | | flex: 1; |
| | | } |
| | | } |
| | | } |
| | | .table_box { |
| | | width: 100%; |
| | | height: 234px; |
| | | border-bottom: 1px solid #DFE2E8; |
| | | .list_content { |
| | | width: 100%; |
| | | height: 40px; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | border-left: 1px solid #DFE2E8; |
| | | border-top: 1px solid #DFE2E8; |
| | | .list_head_item { |
| | | flex: 1; |
| | | flex: 1.8; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | border-right: 1px solid #DFE2E8; |
| | | justify-content: center; |
| | | text-align: center; |
| | | font-size: 13px; |
| | | color: #222222; |
| | | &:last-child { |
| | | flex: 1; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | .main_content { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | height: 400px; |
| | | |
| | | .title { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | | color: #222222; |
| | | /*margin-bottom: 20px;*/ |
| | | margin-top: 20px; |
| | | } |
| | | |
| | | .type_wrap { |
| | | flex: 11; |
| | | flex-shrink: 0; |
| | | height: calc(100% - 20px); |
| | | flex: 1; |
| | | height: 100%; |
| | | background-color: #ffffff; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | /*border-right: 12px solid #f7f7f7;*/ |
| | | |
| | | |
| | | .echart1 { |
| | | width: 100%; |
| | | height: calc(100% - 60px); |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | .dept_wrap { |
| | | flex: 8; |
| | | width: 520px; |
| | | flex-shrink: 0; |
| | | height: calc(100% - 20px); |
| | | padding-left: 20px; |
| | | |
| | | height: 100%; |
| | | background-color: #ffffff; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | margin-left: 10px; |
| | | .echart2 { |
| | | width: 100%; |
| | | height: calc(100% - 60px); |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |
| | |
| | | <div class="main_head"> |
| | | <div class="main_head_title"> |
| | | <span>å
¥å车è¾ç»è®¡æ»è§</span> |
| | | <el-radio-group v-model="isGroupBy" size="mini" @change="getData(), getRataLists(), getReportLists()"> |
| | | <el-radio-group v-model="isGroupBy" @change="getData(), getRataLists(), getReportLists()"> |
| | | <el-radio-button :label="0">æè½¦æ¬¡ç»è®¡</el-radio-button> |
| | | <el-radio-button :label="1">æè½¦è¾ç»è®¡</el-radio-button> |
| | | </el-radio-group> |
| | |
| | | <div class="dept_wrap"> |
| | | <div class="title"> |
| | | <span>车è¾åç±»ç»è®¡</span> |
| | | <el-radio-group style="margin-left: 20px;" v-model="dateType" size="mini" @change="changeDateType"> |
| | | <el-radio-button label="month">æ</el-radio-button> |
| | | <el-radio-button label="year">å¹´</el-radio-button> |
| | | <el-radio-group style="margin-left: 20px;" v-model="dateType" @change="changeDateType"> |
| | | <el-radio-button label="month">æåº¦</el-radio-button> |
| | | <el-radio-button label="year">年度</el-radio-button> |
| | | </el-radio-group> |
| | | <el-date-picker |
| | | v-model="value" |
| | | :type="dateType" |
| | | size="mini" |
| | | :clearable="false" |
| | | @change="getRataLists()" |
| | | :value-format="dateType === 'month' ? 'yyyy-MM' : 'yyyy'" |
| | |
| | | <div class="main_table"> |
| | | <div class="main_table_list"> |
| | | <div class="title" style="display: flex; align-items: center; justify-content: space-between;"> |
| | | <div> |
| | | <div style="display: flex; align-items: center;"> |
| | | <span>å
¥å车è¾ç»è®¡è¡¨</span> |
| | | <el-radio-group style="margin-left: 20px;" v-model="radio" size="mini" @change="changeBB"> |
| | | <el-radio-button label="month">æ</el-radio-button> |
| | | <el-radio-button label="year">å¹´</el-radio-button> |
| | | <el-radio-group style="margin-left: 20px;" v-model="radio" @change="changeBB"> |
| | | <el-radio-button label="month">æåº¦</el-radio-button> |
| | | <el-radio-button label="year">年度</el-radio-button> |
| | | </el-radio-group> |
| | | <el-date-picker |
| | | v-model="date1" |
| | | :type="radio" |
| | | size="mini" |
| | | :clearable="false" |
| | | @change="getReportLists()" |
| | | :value-format="radio === 'month' ? 'yyyy-MM' : 'yyyy'" |
| | |
| | | placeholder="è¯·éæ©"> |
| | | </el-date-picker> |
| | | </div> |
| | | <el-button type="primary" size="mini" style="margin-left: 20px;" @click="daochu">导åº</el-button> |
| | | <el-button type="primary" style="margin-left: 20px;" icon="el-icon-upload2" @click="daochu">导åº</el-button> |
| | | </div> |
| | | <div class="list_head"> |
| | | <div class="list_head_item" v-for="(item, index) in column" :key="index">{{item}}</div> |
| | |
| | | left: 'left' |
| | | }, |
| | | grid: { |
| | | left: '5%', |
| | | right: '10%', |
| | | bottom: '0%', |
| | | left: '0%', |
| | | right: '5%', |
| | | bottom: '10%', |
| | | top: '20%', |
| | | containLabel: true |
| | | }, |
| | |
| | | series: [ |
| | | { |
| | | data: datas, |
| | | type: 'line' |
| | | type: 'line', |
| | | areaStyle: { |
| | | normal: { |
| | | color: { |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [{ |
| | | offset: 0, |
| | | color: '#207FF7' // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, |
| | | color: 'rgba(255,255,255,.2)' // 100% å¤çé¢è² |
| | | }], |
| | | globalCoord: false // 缺ç为 false |
| | | } |
| | | } |
| | | }, |
| | | lineStyle: { // çº¿æ¡æ ·å¼ |
| | | color: { |
| | | type: 'linear', |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [{ |
| | | offset: 0, color: '#207FF7' // 0% å¤çé¢è² |
| | | }, { |
| | | offset: 1, color: '#207FF7' // 100% å¤çé¢è² |
| | | }] |
| | | }, |
| | | width: 2 // 线æ¡ç²ç» |
| | | }, |
| | | symbol: 'circle', |
| | | symbolSize: 10, |
| | | itemStyle: { |
| | | borderWidth: 1, |
| | | borderColor: '#fff', |
| | | color: '#207FF7' |
| | | }, |
| | | smooth: false |
| | | } |
| | | ] |
| | | } |
| | |
| | | { |
| | | name: 'è®¿é®æ¥æº', |
| | | type: 'pie', |
| | | radius: '55%', |
| | | radius: ['34%', '50%'], |
| | | labelLine: { |
| | | normal: { |
| | | length: 30, |
| | | length2: 100, |
| | | } |
| | | }, |
| | | label: { |
| | | formatter: "{a|{b}} {d}%", |
| | | rich: { |
| | | a: { |
| | | color: '#333333', |
| | | fontSize: 14, |
| | | fontWeight: 500 |
| | | } |
| | | }, |
| | | padding: [0,-50,20,-100] |
| | | }, |
| | | data: data |
| | | } |
| | | ] |
| | |
| | | overflow-x: hidden; |
| | | padding: 15px; |
| | | box-sizing: border-box; |
| | | background-color: #ffffff; |
| | | background-color: #F4F7FC; |
| | | .main_head { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | margin-bottom: 20px; |
| | | margin-bottom: 10px; |
| | | background-color: #ffffff; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | .main_head_title { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 20px; |
| | | span { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | | color: #222222; |
| | | margin-right: 30px; |
| | | } |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | .blue { |
| | | border-left: 5px solid blue; |
| | | border-left: 8px solid #12BB8B; |
| | | } |
| | | .red { |
| | | border-left: 5px solid red; |
| | | border-left: 8px solid #F6CF46; |
| | | } |
| | | .yellow { |
| | | border-left: 5px solid yellow; |
| | | border-left: 8px solid #5DC9FB; |
| | | } |
| | | .orange { |
| | | border-left: 5px solid orange; |
| | | border-left: 8px solid #FF9E56; |
| | | } |
| | | .darkBlue { |
| | | border-left: 5px solid #0000a8; |
| | | border-left: 8px solid #6B6EFF; |
| | | } |
| | | .main_head_item { |
| | | width: 19%; |
| | | height: 70px; |
| | | height: 112px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | box-sizing: border-box; |
| | | border-radius: 5px; |
| | | background-color: #ffffff; |
| | | background-color: #F4F7FC; |
| | | span { |
| | | &:nth-child(1) { |
| | | font-size: 22px; |
| | | color: black; |
| | | font-weight: bold; |
| | | font-weight: 600; |
| | | font-size: 30px; |
| | | color: #222222; |
| | | } |
| | | &:nth-child(2) { |
| | | font-size: 16px; |
| | | color: black; |
| | | font-weight: 400; |
| | | font-size: 14px; |
| | | color: #222222; |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | .main_table { |
| | | display: flex; |
| | | align-items: center; |
| | | align-items: start; |
| | | justify-content: space-between; |
| | | height: 300px; |
| | | margin-top: 10px; |
| | | .main_table_list { |
| | | margin-left: 20px; |
| | | background-color: #ffffff; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | flex: 1; |
| | | .title { |
| | | display: flex; |
| | | align-items: center; |
| | | span { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | | color: #222222; |
| | | } |
| | | } |
| | | .list_head { |
| | | width: 100%; |
| | | height: 35px; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #ececec; |
| | | background-color: #F7F7F7; |
| | | border-left: 1px solid #DFE2E8; |
| | | border-top: 1px solid #DFE2E8; |
| | | margin-top: 15px; |
| | | .list_head_item { |
| | | flex: 1; |
| | |
| | | justify-content: center; |
| | | font-size: 13px; |
| | | color: #222222; |
| | | font-weight: 500; |
| | | border-right: 1px solid #DFE2E8; |
| | | } |
| | | } |
| | | .table_box { |
| | | width: 100%; |
| | | height: 234px; |
| | | border-bottom: 1px solid #DFE2E8; |
| | | .list_content { |
| | | width: 100%; |
| | | height: 40px; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | border-left: 1px solid #DFE2E8; |
| | | border-top: 1px solid #DFE2E8; |
| | | .list_head_item { |
| | | flex: 1; |
| | | height: 100%; |
| | | display: flex; |
| | | border-right: 1px solid #DFE2E8; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 13px; |
| | |
| | | } |
| | | } |
| | | .main_table_list1 { |
| | | margin-left: 20px; |
| | | width: 300px; |
| | | margin-left: 10px; |
| | | width: 520px; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | flex-shrink: 0; |
| | | background-color: #ffffff; |
| | | .title { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | | color: #222222; |
| | | } |
| | | .list_head { |
| | | width: 100%; |
| | | height: 35px; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | background-color: #ececec; |
| | | background-color: #F7F7F7; |
| | | border-left: 1px solid #DFE2E8; |
| | | border-top: 1px solid #DFE2E8; |
| | | margin-top: 15px; |
| | | .list_head_item { |
| | | flex: 1; |
| | | flex: 1.8; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 13px; |
| | | color: #222222; |
| | | font-weight: 500; |
| | | border-right: 1px solid #DFE2E8; |
| | | &:last-child { |
| | | flex: 1; |
| | | } |
| | | } |
| | | } |
| | | .table_box { |
| | | width: 100%; |
| | | height: 234px; |
| | | border-bottom: 1px solid #DFE2E8; |
| | | .list_content { |
| | | width: 100%; |
| | | height: 40px; |
| | | height: 50px; |
| | | display: flex; |
| | | align-items: center; |
| | | border-left: 1px solid #DFE2E8; |
| | | border-top: 1px solid #DFE2E8; |
| | | .list_head_item { |
| | | flex: 1; |
| | | flex: 1.8; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | border-right: 1px solid #DFE2E8; |
| | | justify-content: center; |
| | | text-align: center; |
| | | font-size: 13px; |
| | | color: #222222; |
| | | &:last-child { |
| | | flex: 1; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | .main_content { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | height: 400px; |
| | | |
| | | .title { |
| | | font-weight: 600; |
| | | font-size: 16px; |
| | | font-weight: 500; |
| | | font-size: 18px; |
| | | color: #222222; |
| | | /*margin-bottom: 20px;*/ |
| | | margin-top: 20px; |
| | | } |
| | | |
| | | .type_wrap { |
| | | flex: 11; |
| | | flex-shrink: 0; |
| | | height: calc(100% - 20px); |
| | | flex: 1; |
| | | height: 100%; |
| | | background-color: #ffffff; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | /*border-right: 12px solid #f7f7f7;*/ |
| | | |
| | | |
| | | #echart1 { |
| | | width: 100%; |
| | | height: calc(100% - 60px); |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | .dept_wrap { |
| | | flex: 8; |
| | | width: 520px; |
| | | flex-shrink: 0; |
| | | height: calc(100% - 20px); |
| | | padding-left: 20px; |
| | | |
| | | height: 100%; |
| | | background-color: #ffffff; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | margin-left: 10px; |
| | | .echart_2 { |
| | | width: 100%; |
| | | height: calc(100% - 60px); |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |
| | |
| | | filed: 'companyName', |
| | | type: 'input', |
| | | label: 'å
¬å¸åç§°' |
| | | }, |
| | | { |
| | | filed: 'date', |
| | | type: 'daterange', |
| | | label: 'èµ·å§æ¥æ' |
| | | } |
| | | ], |
| | | online: true |
| | |
| | | }, |
| | | getList (page) { |
| | | const { pagination, filters } = this |
| | | console.log(filters) |
| | | if (filters.date && filters.date.length === 2) { |
| | | filters.queryStarttime = filters.date[0] |
| | | filters.queryEndtime = filters.date[1] |
| | | } else { |
| | | filters.queryStarttime = '' |
| | | filters.queryEndtime = '' |
| | | } |
| | | pagination.page = page || pagination.page |
| | | fetchList({ |
| | | model: { ...filters }, |
| | |
| | | <el-form-item label="ç»ç»" prop="companyName"> |
| | | <el-input v-model="searchForm.companyName" placeholder="请è¾å
¥ç»ç»åç§°" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="车è¾ç±»å" prop="carType"> |
| | | <el-select v-model="searchForm.carType" placeholder="è¯·éæ©"> |
| | | <el-option label="å
é¨è½¦è¾" value="0"></el-option> |
| | | <el-option label="ç¸å
³æ¹è½¦è¾" value="1"></el-option> |
| | | <el-option label="访客车è¾" value="2"></el-option> |
| | | <el-option label="å
è¿ç©æµè½¦" value="3"></el-option> |
| | | <el-option label="å¤å车è¾" value="4"></el-option> |
| | | <el-option label="å¸å
¬å¸å¸è´§è½¦" value="5"></el-option> |
| | | <el-option label="æªç»è®°è½¦è¾" value="6"></el-option> |
| | | </el-select> |
| | | <el-form-item label="车è¾åç±»" prop="categoryName"> |
| | | <el-input v-model="searchForm.categoryName" placeholder="请è¾å
¥è½¦è¾åç±»" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="èµ·æ¢æ¶é´" prop="startTime"> |
| | | <!-- <el-date-picker @change="seleTime" v-model="time" type="datetimerange" format="yyyy-MM-dd HH:mm:ss" |
| | |
| | | <span>{{ row.companyName || row.visitCompanyName || '' }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="carType" label="车è¾ç±»å" min-width="100px"> |
| | | <template slot-scope="{ row }"> |
| | | <span v-if="row.carType == 0">å
é¨è½¦è¾</span> |
| | | <span v-else-if="row.carType == 1">ç¸å
³æ¹è½¦è¾</span> |
| | | <span v-else-if="row.carType == 2">访客车è¾</span> |
| | | <span v-else-if="row.carType == 3">å
è¿ç©æµè½¦</span> |
| | | <span v-else-if="row.carType == 4">å¤å车è¾</span> |
| | | <span v-else-if="row.carType == 5">å¸å
¬å¸å¸è´§è½¦</span> |
| | | <span v-else-if="row.carType == 6">æªç»è®°è½¦è¾</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="categoryName" label="车è¾åç±»" min-width="100px"></el-table-column> |
| | | <el-table-column prop="name" label="å§å" min-width="100px"></el-table-column> |
| | | <el-table-column prop="phone" label="ææºå·" min-width="100px"></el-table-column> |
| | | <!-- <el-table-column label="è¿åºé¨ç¦" min-width="100px"> |
| | |
| | | keyWords: '', |
| | | startTime: '', |
| | | endTime: '', |
| | | categoryName: '', |
| | | radio: 0 |
| | | }, |
| | | time: [] |
| | |
| | | getAppHeaderNav(4).then(res => { |
| | | window.open(res, '_blank') |
| | | }) |
| | | return |
| | | } |
| | | if (item.name == 'é£å æ¶è´¹å
¥å£') { |
| | | if (item.name == 'é£å æ¶è´¹') { |
| | | getAppHeaderNav(6).then(res => { |
| | | window.open(res, '_blank') |
| | | }) |
| | | return |
| | | } |
| | | this.$router.push(item.path) |
| | | }, |
| | |
| | | <div>${params[0].name}</div> |
| | | <div style="display: flex;align-items: center;"> |
| | | <div style="width: 10px;height: 10px;border-radius: 50%;background-color: #6feef0;"></div> |
| | | <span style="margin-left: 6px;">${params[0].value}</span> |
| | | <span style="margin-left: 6px;">${params[0].value || 0}</span> |
| | | <div>è¾</div> |
| | | </div> |
| | | </div> |
| | |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow: auto; |
| | | padding: 20px; |
| | | padding: 20px 20px 40px 20px; |
| | | padding-top: 92px; |
| | | |
| | | .home_header { |
| | |
| | | this.$nextTick(() => { |
| | | this.$refs.operaCarsWindow.open(str, row) |
| | | if (row && row.id) { |
| | | let form = { ...row, cateId: [] } |
| | | if (row.catePId) { form.cateId.push(row.catePId) } |
| | | if (row.cateId) { form.cateId.push(row.cateId) } |
| | | // let form = { ...row, cateId: [] } |
| | | let form = { ...row } |
| | | // if (row.catePId) { form.cateId.push(row.catePId) } |
| | | // if (row.cateId) { form.cateId.push(row.cateId) } |
| | | this.$refs.operaCarsWindow.form = form |
| | | this.$refs.operaCarsWindow.loadMember() |
| | | } |
| | |
| | | const initWatergage = (id, item) => { |
| | | const myChart = echarts.init(document.getElementById(id)) |
| | | var data_value = item.obj.value.replaceAll('Mpa', '') |
| | | const startI = item.level.indexOf('-') |
| | | const endI = item.level.indexOf('Mpa') |
| | | let maxNum = item.level.slice(startI + 1, endI) |
| | | let minNum = item.level.slice(0, startI) |
| | | // let maxNum = |
| | | // const startI = item.level.indexOf('-') |
| | | // const endI = item.level.indexOf('Mpa') |
| | | // let maxNum = item.level.slice(startI + 1, endI) |
| | | // let minNum = item.level.slice(0, startI) |
| | | let maxNum = item.max |
| | | let minNum = item.min |
| | | // let maxNum = |
| | | const option = { |
| | | barMaxWidth: 3, |
| | | polar: { |
| | |
| | | } |
| | | const initLiquidlevel = (id, item) => { |
| | | const myChart = echarts.init(document.getElementById(id)) |
| | | const startI = item.level.indexOf('-') |
| | | const endI = item.level.indexOf('M') |
| | | let maxNum = item.level.slice(startI + 1, endI) |
| | | let minNum = item.level.slice(0, startI) |
| | | // const startI = item.level.indexOf('-') |
| | | // const endI = item.level.indexOf('M') |
| | | // let maxNum = item.level.slice(startI + 1, endI) |
| | | // let minNum = item.level.slice(0, startI) |
| | | let maxNum = item.max |
| | | let minNum = item.min |
| | | let conNum = maxNum - minNum |
| | | let acNum = item.obj.value.replaceAll('M', '') |
| | | var data = (((acNum - minNum) / conNum) * 100).toFixed(0) |
| | |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | |
| | | |
| | | } |
| | | |
| | | .name { |
| | |
| | | object-fit: cover; |
| | | z-index: -1; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | public static final String SCREEN_SEVENT_ARRIVAL_STARTDATE = "SCREEN_SEVENT_ARRIVAL_STARTDATE"; |
| | | public static final String EARLY_START_WX_NOTICE = "EARLY_START_WX_NOTICE"; |
| | | public static final String OVER_NOTICE_WX = "OVER_NOTICE_WX"; |
| | | public static final String PRESSURE_LEVEL_UNIT = "PRESSURE_LEVEL_UNIT"; |
| | | public static final String LIQUID_LEVEL_UNIT ="LIQUID_LEVEL_UNIT" ; |
| | | |
| | | public static boolean DEALING_HK_SYNCPRIVILEGE= false; |
| | | public static boolean DEALING_HK_SYNCDEVICE = false; |
| | |
| | | String[] regionDataRanking= new String[]{"/api/ecm/v1/energy/regionDataRanking","æ¶é²çæ¿-4è·ååºåç¨éæå-è½èçæ¿"};//æ¶é²çæ¿-è·ååºåç¨éæå - è½èçæ¿ |
| | | String[] energyTotal= new String[]{"/api/ecm/v1/energy/energyTotal","æ¶é²çæ¿-4æ ¹æ®æ¶é´åæ¶é´ç»´åº¦è·åååºè½èæ°æ®"};//æ¶é²çæ¿-æ ¹æ®æ¶é´åæ¶é´ç»´åº¦è·åååºè½èæ°æ® |
| | | String[] findDeviceStatistics= new String[]{"/api/v1/device/findDeviceStatistics","å页æ¥è¯¢è®¾å¤ç以åä¸å±ä¼ æå¨æ°æ®çç¶æç»è®¡"};// å页æ¥è¯¢è®¾å¤ç以åä¸å±ä¼ æå¨æ°æ®çç¶æç»è®¡ |
| | | String[] resourcesByParams= new String[]{"/api/irds/v2/resource/resourcesByParams","ãæµ·åº·æ¶é²çæ¿ãæ ¹æ®æ¡ä»¶æ¥è¯¢ç®å½ä¸ææéçèµæºå表"};// ãæµ·åº·æ¶é²çæ¿ãæ ¹æ®æ¡ä»¶æ¥è¯¢ç®å½ä¸ææéçèµæºå表 |
| | | String[] iccmSignoff= new String[]{"/api/iccm/v1/signoff","iccm访客ç¾ç¦»"};// iccm访客ç¾ç¦» |
| | | } |
| | | /** |
| | |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.findDeviceStatistics,body); |
| | | } |
| | | /** |
| | | * ãæµ·åº·æ¶é²çæ¿ãæ ¹æ®æ¡ä»¶æ¥è¯¢ç®å½ä¸ææéçèµæºå表 |
| | | * @param body |
| | | * @return |
| | | */ |
| | | public static String resourcesByParams(String body) { |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.resourcesByParams,body); |
| | | } |
| | | /** |
| | | *æ¶é²çæ¿-4æ¥è¦ä¿¡æ¯ç»è®¡ |
| | | * @param body |
| | | * @return |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.request; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.doumee.core.haikang.model.param.BaseListPageRequest; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * { |
| | | * "name":"æ¶²", |
| | | * "regionIndexCodes": [ |
| | | * "root000000" |
| | | * ], |
| | | * "isSubRegion": true, |
| | | * "resourceType": "fireSensor", |
| | | * "pageNo": 1, |
| | | * "pageSize": 20, |
| | | * "orderBy": "name", |
| | | * "orderType": "desc" |
| | | * } |
| | | */ |
| | | |
| | | @Data |
| | | public class ResourcesByParamsRequest extends BaseListPageRequest { |
| | | private String name ;//String false åç§°ï¼æ¨¡ç³æç´¢ï¼æå¤§é¿åº¦32ï¼è¥å
å«ä¸æï¼æå¤§é¿åº¦æä¸è¶
è¿æç
§æå®ç¼ç çåèé¿åº¦ï¼å³getBytes("utf-8").length |
| | | private String[] regionIndexCodes;// Array false åºåç¼å·,å¯ä»¥ä¸ºç©º;String[]ï¼æ¯ææ ¹æ®åºåæ¹éæ¥è¯¢ï¼åºåç¼å·ä¸ªæ°<=1000个ï¼å个é¿åº¦<=64Byteï¼ï¼å¯ä»[æ¥è¯¢åºåå表v2]@[软件产å-综åå®é²ç®¡çå¹³å°-APIå表-èµæºç®å½-åºåä¿¡æ¯æ¥å£#æ¥è¯¢åºåå表v2]æ¥å£è·åè¿ååæ°indexCode |
| | | private Boolean isSubRegion;// Boolean false trueæ¶ï¼æç´¢regionIndexCodesåå
¶åååºåçèµæºï¼falseæ¶ï¼åªæç´¢ regionIndexCodesçèµæº |
| | | private String resourceType ;//String true èµæºç±»åï¼è¯¦è§[éå½A.3 èµæºç±»å/èµæºæéç ]@[软件产å-综åå®é²ç®¡çå¹³å°-éå½-éå½A æ°æ®åå
¸#éå½A.3 èµæºç±»å/èµæºæéç ]æ¤å¤çèµæºç±»åæè®¾å¤èµæºï¼å¦é¨ç¦æ§å¶å¨ãé¨ç¦ç¹ï¼æ³¨ï¼èµæºiasDevice\reader\flooræ éè¿è¡æéæ ¡éª |
| | | private String[] authCodes;// Array false æéç éåï¼è¯¦è§[éå½A.3 èµæºç±»å/èµæºæéç ]@[软件产å-综åå®é²ç®¡çå¹³å°-éå½-éå½A æ°æ®åå
¸#éå½A.3 èµæºç±»å/èµæºæéç ] |
| | | private String[] capabilitySet;// Array false 设å¤è½åé(å«è®¾å¤ä¸çæºè½è½å)ï¼è¯¦è§[éå½A.44 设å¤è½åé]@[软件产å-综åå®é²ç®¡çå¹³å°-éå½-éå½A æ°æ®åå
¸#éå½A.44 设å¤è½åé] |
| | | private String orderBy;// String false æåºå段,注æï¼æåºå段å¿
é¡»æ¯æ¥è¯¢æ¡ä»¶ï¼å¦åè¿ååæ°é误 |
| | | private String orderType ;//String false éåºååº,éåºï¼desc ååºï¼asc |
| | | private JSONArray expressions ;//Array false æ¥è¯¢è¡¨è¾¾å¼ |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.respose; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class ResourcesByParamsResponse { |
| | | private String indexCode ;//String false é¨ç¦ç¹å¯ä¸æ è¯ |
| | | private String name;//String false é¨ç¦ç¹åç§° |
| | | private String resourceType;// String false èµæºç±»åï¼è¯¦è§[éå½A.3 èµæºç±»å/èµæºæéç ]@[软件产å-综åå®é²ç®¡çå¹³å°-éå½-éå½A æ°æ®åå
¸#éå½A.3 èµæºç±»å/èµæºæéç ] |
| | | private String doorNo ;//Number false é¨ç¦ç¹ç¼å· |
| | | private String description;// String false æè¿° |
| | | private String parentIndexCodes;// String false ç¶çº§èµæºç¼å· |
| | | private String regionIndexCode;// String false æå±åºåå¯ä¸æ è¯ |
| | | private String regionPath;// String false æå±åºåè·¯å¾ï¼ç±å¯ä¸æ ç¤ºç»æï¼æå¤§10çº§ï¼æ ¼å¼ï¼ @æ ¹èç¹@ååºå1@ååºå2@ |
| | | private String channelType ;//String false ééç±»å |
| | | private String channelNo;// String false ééå· |
| | | private String installLocation;// String false å®è£
ä½ç½® |
| | | private String capabilitySet;// String false 设å¤è½åéï¼è¯¦è§[éå½A.44 设å¤è½åé]@[软件产å-综åå®é²ç®¡çå¹³å°-éå½-éå½A æ°æ®åå
¸#éå½A.44 设å¤è½åé] |
| | | private String controlOneId;// String false ä¸çº§æ§å¶å¨id |
| | | private String controlTwoId;// String false äºçº§æ§å¶å¨id |
| | | private String readerInId;// String false 读å¡å¨1 |
| | | private String readerOutId;// String false 读å¡å¨2 |
| | | private String comId;// String false ç»ä»¶æ å¿ |
| | | private String createTime ;//String false å建æ¶é´ |
| | | private String updateTime;// String false æ´æ°æ¶é´ |
| | | private String fireproChannelMaxvalue;//":"3.5â |
| | | private String fireproChannelMinValue;//": â0.50". |
| | | } |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *æ ¹æ®æ¡ä»¶æ¥è¯¢ç®å½ä¸ææéçèµæºå表 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<BaseListPageResponse<ResourcesByParamsResponse>> resourcesByParams(ResourcesByParamsRequest param){ |
| | | log.info("ãæµ·åº·æ¶é²çæ¿ãæ ¹æ®æ¡ä»¶æ¥è¯¢ç®å½ä¸ææéçèµæºå表================å¼å§===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.resourcesByParams(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<BaseListPageResponse<ResourcesByParamsResponse> >>(){}; |
| | | BaseResponse<BaseListPageResponse<ResourcesByParamsResponse> > result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"ãæµ·åº·æ¶é²çæ¿ãæ ¹æ®æ¡ä»¶æ¥è¯¢ç®å½ä¸ææéçèµæºå表"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("ãæµ·åº·æ¶é²çæ¿ãæ ¹æ®æ¡ä»¶æ¥è¯¢ç®å½ä¸ææéçèµæºå表================失败====ï¼\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *æ¶é²çæ¿-4æ¥è¦ä¿¡æ¯ç»è®¡ |
| | | * @return |
| | | */ |
| | |
| | | @ApiModelProperty(value = "å°ç±»ç¼å·") |
| | | private String cateCode; |
| | | |
| | | // @ApiModelProperty(value = "éå¼") |
| | | // private String level; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | carrecord.setInOrOut(Constants.ZERO); |
| | | } |
| | | //车è¾è¿å
¥è®°å½å¯¹åºä¸å¡ç±»å |
| | | if(event.getCarType() ==null || event.getCarType().equals(Constants.RetentionCarType.other)){ |
| | | if(isCarInOrOutEvent(request) &&( event.getCarType() ==null || event.getCarType().equals(Constants.RetentionCarType.other))){ |
| | | //妿æªè¯å«å°è½¦åï¼ä¸æ¯åºå®è½¦ ä¹ä¸æ¯è´§è¿è½¦è¾ï¼åæ£æ¥æ¯å¦æ¯è®¿å®¢è½¦ |
| | | visitsList = visitsMapper.selectList(new QueryWrapper<Visits>().lambda() |
| | | .eq(Visits::getCarNos,event.getPlateNos()) |
| | |
| | | } |
| | | } |
| | | } |
| | | if(carrecord.getInOrOut()!=null && event.getCarType() !=null && !event.getCarType().equals(Constants.RetentionCarType.fkCar)){ |
| | | if(isCarInOrOutEvent(request) && event.getCarType() !=null && !event.getCarType().equals(Constants.RetentionCarType.fkCar)){ |
| | | //å½å
¥é访客类å车è¾è¿åºè®°å½ |
| | | dealNotFkCarMemberBiz(event,request,carrecord,retentionList,inoutDayCount,inoutRecordList); |
| | | } |
| | |
| | | return event; |
| | | } |
| | | |
| | | private boolean isCarInOrOutEvent(EventParkInfoRequest request) { |
| | | if(Constants.formatIntegerNum(request.getEventType()) == HKConstants.EventTypes.PARK_PASS_IN.getKey() || |
| | | Constants.formatIntegerNum(request.getEventType()) == HKConstants.EventTypes.PARK_PASS_OUT.getKey()){ |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | private void dealNotFkCarMemberBiz( CarEvent event ,EventParkInfoRequest request, InoutRecord carrecord,List<Retention> retentionList,InoutDayCount inoutDayCount,List<InoutRecord> inoutRecordList) { |
| | | //å½å
¥é访客类å车è¾è¿åºè®°å½ |
| | | carrecord.setCarBizType(event.getCarType()==null?Constants.RetentionCarType.other:event.getCarType()); |
| | |
| | | } |
| | | /** |
| | | * ãæ¶é²ç®¡æ§ãçæ¿-宿¶çæµæ°æ® |
| | | * æ¶²ååºå®å¼ï¼254001 |
| | | * æ°´ååºå®å¼ï¼253958 |
| | | * @return |
| | | * |
| | | */ |
| | |
| | | BaseResponse<BaseListPageResponse<MonitorDataSearchResponse>> response = HKService.minitorDataSearch(param); |
| | | String pressure = systemDictDataBiz.queryByCode(Constants.WMS_PARAM,Constants.WMS_PRESSURE_LEVEL).getCode(); |
| | | String liquid = systemDictDataBiz.queryByCode(Constants.WMS_PARAM,Constants.WMS_LIQUID_LEVEL).getCode(); |
| | | String pressureUnit = systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.PRESSURE_LEVEL_UNIT).getCode(); |
| | | String liquidUnit = systemDictDataBiz.queryByCode(Constants.WMS_PARAM,Constants.LIQUID_LEVEL_UNIT).getCode(); |
| | | if(response != null && StringUtils.equals(response.getCode(), HKConstants.RESPONSE_SUCCEE) |
| | | && response.getData()!=null ) { |
| | | List<MonitorDataSearchResponse> r = response.getData().getList(); |
| | |
| | | for(MonitorDataSearchResponse model : r){ |
| | | MonitorDataVO m = new MonitorDataVO(); |
| | | m.setName(model.getName()); |
| | | m.setLevel(Constants.equalsInteger(model.getType(),60)?liquid:pressure); |
| | | // m.setLevel(Constants.equalsInteger(model.getType(),60)?liquid:pressure); |
| | | m.setLevel(getLevelDataByDeviceName(model.getName(),Constants.equalsInteger(model.getType(),60)?liquidUnit:pressureUnit)); |
| | | m.setDataList(new ArrayList<>()); |
| | | if(model.getValues()!=null){ |
| | | List<MonitorDataInfoVO> dataList = new ArrayList<>(); |
| | |
| | | vm.setCateName(v.getMonitorSpecificName()); |
| | | vm.setCateCode(v.getMonitorTypeKey()); |
| | | vm.setTypeCode(v.getMonitorTypeCode()); |
| | | vm.setTypeName(v.getMonitorTypeName()); |
| | | dataList.add(vm); |
| | | } |
| | | }else{ |
| | |
| | | return list; |
| | | } |
| | | |
| | | private String getLevelDataByDeviceName(String name,String unit) { |
| | | |
| | | /** |
| | | * { |
| | | * "name":"æ¶²", |
| | | * "regionIndexCodes": [ |
| | | * "root000000" |
| | | * ], |
| | | * "isSubRegion": true, |
| | | * "resourceType": "fireSensor", |
| | | * "pageNo": 1, |
| | | * "pageSize": 20, |
| | | * "orderBy": "name", |
| | | * "orderType": "desc" |
| | | * } |
| | | */ |
| | | String r = ""; |
| | | |
| | | ResourcesByParamsRequest param = new ResourcesByParamsRequest(); |
| | | param.setName(name); |
| | | param.setIsSubRegion(Boolean.TRUE); |
| | | param.setRegionIndexCodes(new String[]{"root000000"}); |
| | | param.setResourceType("fireSensor"); |
| | | param.setOrderType("desc"); |
| | | param.setOrderBy("name"); |
| | | param.setPageNo(1); |
| | | param.setPageSize(20); |
| | | BaseResponse<BaseListPageResponse<ResourcesByParamsResponse>> response = HKService.resourcesByParams(param); |
| | | if(response != null && StringUtils.equals(response.getCode(), HKConstants.RESPONSE_SUCCEE) |
| | | && response.getData()!=null ) { |
| | | String min = response.getData().getList().get(0).getFireproChannelMinValue(); |
| | | String max = response.getData().getList().get(0).getFireproChannelMaxvalue(); |
| | | r =StringUtils.defaultString(min,"-")+"~"+StringUtils.defaultString(max,"-") +unit; |
| | | } |
| | | return r; |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * ãæ¶é²ç®¡æ§ãçæ¿-åè¦å¤çåæéå |