Commit 92c5fda2 authored by 崔婷婷's avatar 崔婷婷

【编号:16719】成型看板优化

parent f70996c1
<template>
<div class="con">
<div class="left">
<ViewSCCom :ID="FactoryWorkShopTeamID1" style="margin-right: -1px;"></ViewSCCom>
</div>
<div class="right">
<ViewSCCom :ID="FactoryWorkShopTeamID2"></ViewSCCom>
</div>
</div>
</template>
<script>
import qs from "qs";
import Axios from "@/function/axios.js";
import ViewSCCom from "./ViewSCCom.vue";
export default {
components:{ViewSCCom},
data() {
return {
FactoryWorkShopTeamID1: "",
FactoryWorkShopTeamID2: "",
};
},
created() {
// var arr = window.location.href.split("?");
// var ss = arr[1].split("&");
// this.FactoryWorkShopTeamID1 = ss[0].split("=")[1];
// this.FactoryWorkShopTeamID2 = ss[1].split("=")[1];
const queryString = window.location.href.split('?')[1];
const paramsArray = queryString.split('&');
const params = paramsArray.reduce((acc, param) => {
const [key, value] = param.split('=');
acc[key] = value;
return acc;
}, {});
this.FactoryWorkShopTeamID1 = params.FactoryWorkShopTeamID1;
this.FactoryWorkShopTeamID2 = params.FactoryWorkShopTeamID2;
},
methods: {
},
};
</script>
<style lang="scss" scoped>
.con {
width: 100%;
display: flex;
justify-content: space-between;
color: black;
}
.left,
.right {
// width: 49%;
flex: 1;
}
</style>
\ No newline at end of file
This diff is collapsed.
...@@ -22,6 +22,15 @@ ...@@ -22,6 +22,15 @@
></el-input> ></el-input>
</div> </div>
</div> </div>
<div style="width:400px;margin-bottom:20px">
<label for="" style="display:inline-block">车间ID2(生产数据2):</label>
<div style="display:inline-block;width:150px">
<el-input
v-model="FactoryWorkShopTeamID2"
placeholder="请输入车间ID"
></el-input>
</div>
</div>
<div style="width:400px;margin-bottom:20px"> <div style="width:400px;margin-bottom:20px">
<label for="" style="display:inline-block">切换时间:</label> <label for="" style="display:inline-block">切换时间:</label>
<div style="display:inline-block;width:150px"> <div style="display:inline-block;width:150px">
...@@ -35,6 +44,9 @@ ...@@ -35,6 +44,9 @@
<el-button type="primary" @click="goNextDE()">动态效率</el-button> <el-button type="primary" @click="goNextDE()">动态效率</el-button>
<el-button type="primary" @click="goNextSJ()">数据展示</el-button> <el-button type="primary" @click="goNextSJ()">数据展示</el-button>
<el-button type="primary" @click="goNextSOP()">查询SOP</el-button> <el-button type="primary" @click="goNextSOP()">查询SOP</el-button>
<el-button type="primary" @click="goNextSC()">生产数据</el-button>
<el-button type="primary" @click="goNextSC2()">生产数据2</el-button>
<el-button type="primary" @click="goNextSC3()">生产数据3</el-button>
</el-main> </el-main>
</div> </div>
</template> </template>
...@@ -54,6 +66,7 @@ export default { ...@@ -54,6 +66,7 @@ export default {
], ],
value: "", value: "",
FactoryWorkShopTeamID: "", FactoryWorkShopTeamID: "",
FactoryWorkShopTeamID2: "",
time: 0 time: 0
}; };
}, },
...@@ -150,6 +163,62 @@ export default { ...@@ -150,6 +163,62 @@ export default {
time: this.time, time: this.time,
} }
}) })
},
goNextSC(){
this.$router.push({
name: "ViewSC",
query: {
time: this.time,
}
})
},
goNextSC2(){
if (!this.FactoryWorkShopTeamID) {
this.$message({
message: "请输入车间ID",
type: "warning"
});
return;
}
if (!this.FactoryWorkShopTeamID2) {
this.$message({
message: "请输入车间ID2",
type: "warning"
});
return;
}
this.$router.push({
name: "ViewSC2",
query: {
FactoryWorkShopTeamID1: this.FactoryWorkShopTeamID,
FactoryWorkShopTeamID2: this.FactoryWorkShopTeamID2,
time: this.time
}
})
},
goNextSC3(){
if (!this.FactoryWorkShopTeamID) {
this.$message({
message: "请输入车间ID",
type: "warning"
});
return;
}
if (!this.FactoryWorkShopTeamID2) {
this.$message({
message: "请输入车间ID2",
type: "warning"
});
return;
}
this.$router.push({
name: "ViewSC3",
query: {
FactoryWorkShopTeamID1: this.FactoryWorkShopTeamID,
FactoryWorkShopTeamID2: this.FactoryWorkShopTeamID2,
time: this.time
}
})
} }
} }
}; };
......
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