|
@@ -69,8 +69,10 @@
|
|
|
<!-- <div class="Type" ><entrustType/></div> -->
|
|
<!-- <div class="Type" ><entrustType/></div> -->
|
|
|
</div>
|
|
</div>
|
|
|
<div class="detection">
|
|
<div class="detection">
|
|
|
- <div class="monthlyS" ref="MonthlyStatus_refs"><monthlyStatus :NowTime1="NowTime1"/></div>
|
|
|
|
|
- <div class="annualS" ref="AnnualStatus_refs"><annualStatus :NowTime1="NowTime1"/></div>
|
|
|
|
|
|
|
+ <!-- <div class="monthlyS" ref="MonthlyStatus_refs"><monthlyStatus :NowTime1="NowTime1"/></div> -->
|
|
|
|
|
+ <div class="monthlyS" ref="MonthlyStatus_refs"><sampleReceived :NowTime1="NowTime1"/></div>
|
|
|
|
|
+ <!-- <div class="annualS" ref="AnnualStatus_refs"><annualStatus :NowTime1="NowTime1"/></div> -->
|
|
|
|
|
+ <div class="annualS" ref="AnnualStatus_refs"><waitingInspection :NowTime1="NowTime1"/></div>
|
|
|
<div class="monthlyN" ref="MonthlyNumber_refs"><monthlyNumber :NowTime1="NowTime1"/></div>
|
|
<div class="monthlyN" ref="MonthlyNumber_refs"><monthlyNumber :NowTime1="NowTime1"/></div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -96,6 +98,11 @@ import monthlyStatus from './MonthlyStatus'
|
|
|
import annualStatus from './AnnualStatus'
|
|
import annualStatus from './AnnualStatus'
|
|
|
//月度检测情况组件
|
|
//月度检测情况组件
|
|
|
import monthlyNumber from './MonthlyNumber'
|
|
import monthlyNumber from './MonthlyNumber'
|
|
|
|
|
+//待收样样品列表
|
|
|
|
|
+import sampleReceived from './sampleReceived'
|
|
|
|
|
+//检样品列表
|
|
|
|
|
+import waitingInspection from './waitingInspection'
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
|
|
|
|
|
components:{
|
|
components:{
|
|
@@ -105,7 +112,9 @@ export default {
|
|
|
entrustType,
|
|
entrustType,
|
|
|
monthlyStatus,
|
|
monthlyStatus,
|
|
|
annualStatus,
|
|
annualStatus,
|
|
|
- monthlyNumber
|
|
|
|
|
|
|
+ monthlyNumber,
|
|
|
|
|
+ sampleReceived,
|
|
|
|
|
+ waitingInspection
|
|
|
},
|
|
},
|
|
|
data(){
|
|
data(){
|
|
|
return{
|
|
return{
|
|
@@ -122,8 +131,6 @@ export default {
|
|
|
this.getNowTime()
|
|
this.getNowTime()
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- //时间
|
|
|
|
|
- // this.currentTime()
|
|
|
|
|
if(screenfull.isEnabled && !screenfull.isFullscreen){
|
|
if(screenfull.isEnabled && !screenfull.isFullscreen){
|
|
|
this.allView()
|
|
this.allView()
|
|
|
|
|
|
|
@@ -152,28 +159,17 @@ export default {
|
|
|
month: nowDate.getMonth() + 1,
|
|
month: nowDate.getMonth() + 1,
|
|
|
}
|
|
}
|
|
|
this.NowTime1 = date.year + '-' + date.month
|
|
this.NowTime1 = date.year + '-' + date.month
|
|
|
- // console.log('页面第一次进来显示时间',date.year,date.month)
|
|
|
|
|
- //进来获取当前时间 之后获取当前月份天数 传给
|
|
|
|
|
- // console.log('页面显示的时间',this.NowTime1+"-01") //2022-11
|
|
|
|
|
- //把页面第一次进来的 当前年度月份 传给该方法处理 得到day及days
|
|
|
|
|
- // this.getDaysInMonth(date.year,date.month)
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ console.log(this.NowTime1)
|
|
|
},
|
|
},
|
|
|
changeTime1(e){
|
|
changeTime1(e){
|
|
|
- // console.log('改变时间',e) //2022-07
|
|
|
|
|
- // debugger
|
|
|
|
|
|
|
+
|
|
|
let year = e.slice(0,4)
|
|
let year = e.slice(0,4)
|
|
|
let month = e.slice(5,7)
|
|
let month = e.slice(5,7)
|
|
|
this.NowTime1 = year + '-' + month
|
|
this.NowTime1 = year + '-' + month
|
|
|
- // this.$set(this.data_key[index], "key", value);
|
|
|
|
|
- // console.log('用户操作之后 页面显示的时间',this.NowTime,year,month) //2022-11 2022 11
|
|
|
|
|
- //把年度月份传给getDaysInMonth()之前,先清理上一次数据
|
|
|
|
|
- // this.entrustNumber.diswpose() //这个方法干嘛的?? 为啥清不掉entrustNumberInit()方法的数据
|
|
|
|
|
|
|
+
|
|
|
this.days=[]
|
|
this.days=[]
|
|
|
- //在这里打印一下this.days数组
|
|
|
|
|
- // console.log('用户操作了时间控件之后打印this.days数组',this.days)
|
|
|
|
|
- //把用户操作时间控件改变的时间 的年度月份 传给该方法处理 得到day及days
|
|
|
|
|
- // this.getDaysInMonth(year,month)
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
// getDaysInMonth(year,month){
|
|
// getDaysInMonth(year,month){
|
|
|
// let temp = new Date(year,month,0);
|
|
// let temp = new Date(year,month,0);
|
|
@@ -255,20 +251,21 @@ export default {
|
|
|
justify-content:space-between;
|
|
justify-content:space-between;
|
|
|
// border: 1px solid rgb(142, 190, 30);
|
|
// border: 1px solid rgb(142, 190, 30);
|
|
|
.monthlyS{
|
|
.monthlyS{
|
|
|
- width: 23%;
|
|
|
|
|
|
|
+ width: 31%;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
// background-color: rgb(12, 103, 131);
|
|
// background-color: rgb(12, 103, 131);
|
|
|
}
|
|
}
|
|
|
.monthlyN{
|
|
.monthlyN{
|
|
|
flex: 3;
|
|
flex: 3;
|
|
|
- width: 50%;
|
|
|
|
|
|
|
+ width: 34%;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
margin: 0px 10px;
|
|
margin: 0px 10px;
|
|
|
// background-color: rgb(171, 163, 204);
|
|
// background-color: rgb(171, 163, 204);
|
|
|
}
|
|
}
|
|
|
.annualS{
|
|
.annualS{
|
|
|
- width: 23%;
|
|
|
|
|
|
|
+ width: 31%;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
|
+ margin-left: 10px;
|
|
|
// background-color: rgb(12, 103, 131);
|
|
// background-color: rgb(12, 103, 131);
|
|
|
}
|
|
}
|
|
|
|
|
|