Commit 0d379a0c by liuyang

Merge branch 'dev' of http://git.pseer.com:8800/platform/hp-smart into dev-ly

parents f82fb03e 848ac32e
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
$orderBy$ $orderBy$
</isNotEmpty> </isNotEmpty>
<isEmpty property="orderBy"> <isEmpty property="orderBy">
ID DESC RECEIPT_DATE DESC
</isEmpty> </isEmpty>
</dynamic> </dynamic>
</sql> </sql>
......
...@@ -151,6 +151,7 @@ ...@@ -151,6 +151,7 @@
placeholder="选择日期" placeholder="选择日期"
@change="handledataPicker" @change="handledataPicker"
value-format="yyyyMMdd" value-format="yyyyMMdd"
:picker-options='pickerOptions'
style="width: 11vw" style="width: 11vw"
> >
</el-date-picker> </el-date-picker>
...@@ -202,9 +203,9 @@ ...@@ -202,9 +203,9 @@
<div class="device-echarts-background"> <div class="device-echarts-background">
<manage-echarts :option="lineOption1" :width="17" :height="24"></manage-echarts> <manage-echarts :option="lineOption1" :width="17" :height="24"></manage-echarts>
</div> </div>
<div class="device-echarts-background"> <%-- <div class="device-echarts-background">--%>
<manage-echarts :option="lineOption1" :width="17" :height="24"></manage-echarts> <%-- <manage-echarts :option="lineOption1" :width="17" :height="24"></manage-echarts>--%>
</div> <%-- </div>--%>
</div> </div>
<div class="left-device device" style="margin-left: 2vw;"> <div class="left-device device" style="margin-left: 2vw;">
<div v-for="(item,index) in querySbNoList" <div v-for="(item,index) in querySbNoList"
...@@ -214,9 +215,9 @@ ...@@ -214,9 +215,9 @@
<div class="device-echarts-background"> <div class="device-echarts-background">
<manage-echarts :option="lineOption2" :width="17" :height="24"></manage-echarts> <manage-echarts :option="lineOption2" :width="17" :height="24"></manage-echarts>
</div> </div>
<div class="device-echarts-background"> <%-- <div class="device-echarts-background">--%>
<manage-echarts :option="lineOption2" :width="17" :height="24"></manage-echarts> <%-- <manage-echarts :option="lineOption2" :width="17" :height="24"></manage-echarts>--%>
</div> <%-- </div>--%>
</div> </div>
</div> </div>
</el-main> </el-main>
...@@ -257,7 +258,12 @@ ...@@ -257,7 +258,12 @@
currentTime:dayjs().format("YYYY-MM-DD HH:mm:ss"), currentTime:dayjs().format("YYYY-MM-DD HH:mm:ss"),
lineOption1:'', lineOption1:'',
lineOption2:'', lineOption2:'',
timer: '' timer: '',
pickerOptions:{
disabledDate(time) {
return time.getTime() > Date.now();
}
}
}; };
}, },
mounted() { mounted() {
...@@ -266,9 +272,6 @@ ...@@ -266,9 +272,6 @@
this.currentTime = dayjs().format("YYYY-MM-DD HH:mm:ss") this.currentTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
}, 1000); }, 1000);
this.queryCompanyInfo(); this.queryCompanyInfo();
this.setOption();
this.setOption2();
this.getYesterdayDateFormatted(); this.getYesterdayDateFormatted();
this.initPage(); this.initPage();
this.onSetInterval(); this.onSetInterval();
...@@ -327,11 +330,6 @@ ...@@ -327,11 +330,6 @@
_this.queryBySbStatusList = res.extAttr.result; _this.queryBySbStatusList = res.extAttr.result;
} }
_this.queryBySbStatusList.push({ _this.queryBySbStatusList.push({
deviceName:'切割机',
status:'3',
deviceModel:'MZ-1250',
})
_this.queryBySbStatusList.push({
deviceName:'焊接机', deviceName:'焊接机',
status:'3', status:'3',
deviceModel:'H8760', deviceModel:'H8760',
...@@ -351,10 +349,10 @@ ...@@ -351,10 +349,10 @@
inInfo.set('inqu_status-0-date',this.dataPicker) inInfo.set('inqu_status-0-date',this.dataPicker)
IPLAT.EiCommunicator.send('HPBI003', 'querySbYes', inInfo, { IPLAT.EiCommunicator.send('HPBI003', 'querySbYes', inInfo, {
onSuccess: function (res) { onSuccess: function (res) {
if(undefined != res.extAttr.result[0]){ if( res.extAttr.result.length){
const dataList = res.extAttr.result; const dataList = res.extAttr.result;
_this.querySbYesDate = res.extAttr.date; _this.querySbYesDate = res.extAttr.date;
_this.setOption()
_this.querySbYesList = dataList.map((item, index) => { _this.querySbYesList = dataList.map((item, index) => {
const getChartOptionByIndex = (index) => { const getChartOptionByIndex = (index) => {
return { return {
...@@ -441,6 +439,7 @@ ...@@ -441,6 +439,7 @@
if(undefined != res.extAttr.result[0]){ if(undefined != res.extAttr.result[0]){
const dataList = res.extAttr.result; const dataList = res.extAttr.result;
_this.querySbNODate = res.extAttr.date; _this.querySbNODate = res.extAttr.date;
_this.setOption2()
_this.querySbNoList = dataList.map((item, index) => { _this.querySbNoList = dataList.map((item, index) => {
const getChartOptionByIndex = (index) => { const getChartOptionByIndex = (index) => {
return { return {
...@@ -582,7 +581,7 @@ ...@@ -582,7 +581,7 @@
}, },
xAxis: { xAxis: {
type: 'category', type: 'category',
data: this.querySbYesDate, data: this.querySbNODate,
axisLabel: { axisLabel: {
textStyle: { textStyle: {
color: '#ffffff' // 设置y轴标签字体颜色为白色 color: '#ffffff' // 设置y轴标签字体颜色为白色
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment