|
|
@@ -32,7 +32,7 @@
|
|
|
<span class="text fw-b" style="font-size:24px;">深圳市极测科技有限公司</span>
|
|
|
</div>
|
|
|
<div class="react-left ml-3">
|
|
|
- <span class="text">生产实况分析</span>
|
|
|
+ <span class="text">实验室看板</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="d-flex aside-width">
|
|
|
@@ -52,14 +52,6 @@
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
|
|
|
- <el-select v-model="linecode" class="dropdown" @change ="handleBlur" style="width: 150px">
|
|
|
- <el-option
|
|
|
- v-for="item in linedata"
|
|
|
- :key="item.LI_CODE"
|
|
|
- :label="item.LI_CODE"
|
|
|
- :value="item.LI_CODE"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
<span class="text"> </span>
|
|
|
<span class="text"
|
|
|
>{{ dateYear }} {{ dateWeek }} {{ dateDay }}</span
|
|
|
@@ -72,44 +64,48 @@
|
|
|
<!-- 第三行数据 -->
|
|
|
<div class="content-box">
|
|
|
<div>
|
|
|
- <dv-border-box-12 v-show="linecode!='所有'">
|
|
|
- <centerLeft_two />
|
|
|
- </dv-border-box-12>
|
|
|
- <dv-border-box-12 v-show="linecode=='所有'">
|
|
|
- <centerLeft1ALL />
|
|
|
- </dv-border-box-12>
|
|
|
+ <!-- 平均分成三行 -->
|
|
|
+ <div class="threerow">
|
|
|
+ <div class="item item1">
|
|
|
+ <div >
|
|
|
+ <dv-border-box-12>
|
|
|
+ <left11 />
|
|
|
+ </dv-border-box-12>
|
|
|
+ </div>
|
|
|
+ <div >
|
|
|
+ <dv-border-box-12>
|
|
|
+ <left12 />
|
|
|
+ </dv-border-box-12>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <dv-border-box-12>
|
|
|
+ <left2 />
|
|
|
+ </dv-border-box-12>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <dv-border-box-12>
|
|
|
+ <left3 />
|
|
|
+ </dv-border-box-12>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <dv-border-box-12>
|
|
|
- <centerLeft1 />
|
|
|
- </dv-border-box-12>
|
|
|
- </div>
|
|
|
- <!-- 中间 -->
|
|
|
- <div>
|
|
|
- <dv-border-box-12>
|
|
|
- <center />
|
|
|
- </dv-border-box-12>
|
|
|
- </div>
|
|
|
- <!-- 中间 -->
|
|
|
- <!-- <div>
|
|
|
- <centerRight2 />
|
|
|
- </div>-->
|
|
|
- <div>
|
|
|
- <dv-border-box-12>
|
|
|
- <centerRight1/>
|
|
|
- </dv-border-box-12>
|
|
|
+ <!-- 平均分成两行 -->
|
|
|
+ <div class="tworow">
|
|
|
+ <div class="item">
|
|
|
+ <dv-border-box-12>
|
|
|
+ <right1 />
|
|
|
+ </dv-border-box-12>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <dv-border-box-12>
|
|
|
+ <right2 />
|
|
|
+ </dv-border-box-12>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <!-- 第四行数据 -->
|
|
|
- <div class="bottom-box">
|
|
|
- <dv-border-box-12>
|
|
|
- <bottomLeft2 />
|
|
|
- </dv-border-box-12>
|
|
|
- <dv-border-box-12>
|
|
|
- <bottomRight />
|
|
|
- </dv-border-box-12>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -119,14 +115,12 @@
|
|
|
<script>
|
|
|
import drawMixin from "../../utils/drawMixin";
|
|
|
import { formatTime } from '../../utils/index.js'
|
|
|
-import centerLeft1 from './centerLeft1'
|
|
|
-import centerLeft_two from './centerLeft_two'
|
|
|
-import centerRight1 from './centerRight1'
|
|
|
-import center from './center'
|
|
|
-import bottomLeft2 from './bottomLeft2'
|
|
|
-import bottomRight from './bottomRight'
|
|
|
-import centerLeft1ALL from "@/views/assembly/centerLeft1ALL.vue";
|
|
|
-
|
|
|
+import left11 from './left1-1'
|
|
|
+import left12 from './left1-2'
|
|
|
+import left2 from './left2'
|
|
|
+import left3 from './left3'
|
|
|
+import right1 from './right1'
|
|
|
+import right2 from './right2'
|
|
|
export default {
|
|
|
mixins: [ drawMixin ],
|
|
|
data() {
|
|
|
@@ -141,16 +135,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- centerLeft1ALL,
|
|
|
- centerLeft1,
|
|
|
- centerLeft_two,
|
|
|
- centerRight1,
|
|
|
- center,
|
|
|
- bottomLeft2,
|
|
|
- bottomRight,
|
|
|
+ left11,
|
|
|
+ left12,
|
|
|
+ left2,
|
|
|
+ left3,
|
|
|
+ right1,
|
|
|
+ right2
|
|
|
},
|
|
|
created() {
|
|
|
- this.getLines();
|
|
|
},
|
|
|
mounted() {
|
|
|
this.timeFn()
|
|
|
@@ -173,41 +165,12 @@ export default {
|
|
|
this.loading = false
|
|
|
}, 5000)
|
|
|
},
|
|
|
- handleBlur (val){
|
|
|
- sessionStorage.setItem('li_code',val);
|
|
|
- this.$cookie.set("AS_LI_CODE", val, {
|
|
|
- expires: 30,
|
|
|
- });
|
|
|
- location.reload();
|
|
|
- },
|
|
|
- getLines (){
|
|
|
- this.$http.get("kanban/getLinesByWorkCenter.action?wccode=组装").then(
|
|
|
- (res)=>{
|
|
|
- if(res.data.linedata) {
|
|
|
- const data = res.data.linedata.concat({'LI_CODE':'所有','LI_NAME':'所有'});
|
|
|
- if(this.$cookie.get("AS_LI_CODE") && data.some(item => item.LI_CODE === this.$cookie.get("AS_LI_CODE")) ){
|
|
|
- sessionStorage.setItem('li_code', this.$cookie.get("AS_LI_CODE"));
|
|
|
- }else {
|
|
|
- sessionStorage.setItem('li_code', data[0].LI_CODE);
|
|
|
- this.$cookie.set("AS_LI_CODE", data[0].LI_CODE, {
|
|
|
- expires: 30,
|
|
|
- });
|
|
|
- }
|
|
|
- this.linedata = data;
|
|
|
- }else{
|
|
|
- sessionStorage.setItem('li_code','');
|
|
|
- }
|
|
|
- this.linecode = sessionStorage.getItem("li_code");
|
|
|
- },(result)=>{
|
|
|
- console.error(result)
|
|
|
- });
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-@import '../../assets/scss/indexassembly.scss';
|
|
|
+@import '../../assets/scss/indexlab.scss';
|
|
|
.dropdown{
|
|
|
font-size: 18px;
|
|
|
color: #568aea;
|