Commit b9d362e4 authored by renjintao's avatar renjintao

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product-rjt

parents 2b7a2554 20d71b37
...@@ -103,9 +103,9 @@ export default { ...@@ -103,9 +103,9 @@ export default {
// this.cssId = remoteData.cssId; // this.cssId = remoteData.cssId;
// }else{ // }else{
if (this.$props.url) { if (this.$props.url) {
const res = await Axios.get(this.$props.url); const res = await this.$api.get(this.$props.url);
// this.cssId = this.getId(); // this.cssId = this.getId();
this.resData = res.data; this.resData = res;
console.log(this.resData) console.log(this.resData)
} }
......
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="addd">
<ul>
<li><a @click="gnFunto(0,0)" :class="{active:gnFlag == 0}"><Icon type="ios-clipboard" /> 进度汇报</a></li>
<li><a @click="gnFunto(1,1)" :class="{active:gnFlag == 1}"><Icon type="ios-cube" /> 物料领用</a></li>
<li><a @click="gnFunto(2,2)" :class="{active:gnFlag == 2}"><Icon type="md-build" /> 产品装配</a></li>
<li><a @click="gnFunto(3,3)" :class="{active:gnFlag == 3}"><Icon type="ios-time" /> 工时分配</a></li>
<li><a @click="gnFunto(4,4)" :class="{active:gnFlag == 4}"><Icon type="ios-checkmark-circle" /> 生产准备</a></li>
<li><a @click="gnFunto(5,5)" :class="{active:gnFlag == 5}"><Icon type="ios-eye" /> 工艺查看</a></li>
<li><a @click="gnFunto(6,6)" :class="{active:gnFlag == 6}"><Icon type="ios-paper" /> 工艺案例</a></li>
<li><a @click="gnFunto(7,7)" :class="{active:gnFlag == 7}"><Icon type="ios-medal" /> 质量判定</a></li>
<li><a @click="gnFunto(8,8)" :class="{active:gnFlag == 8}"><Icon type="ios-create" /> 数据填报</a></li>
<li><a @click="gnFunto(9,9)" :class="{active:gnFlag == 9}"><Icon type="logo-codepen" /> 测试数据</a></li>
</ul>
</div>
</template>
<script>
export default {
name:'functional',
data(){
return{
gnFlag:0,
}
},
methods: {
gnFunto(number,type){
this.gnFlag = number
}
},
}
</script>
\ No newline at end of file
<style lang="less">
@import "../execute.less";
</style>
<template>
<div class="order_list">
<h4 class="order_title">
<span class="gd_tt">工单列表</span>
<a ><Icon type="ios-list" size="18" /> 展开全部列表</a>
</h4>
</div>
</template>
<script>
export default {
name:'orderlist',
data(){
return{
gnFlag:0,
}
},
methods: {
gnFunto(number,type){
this.gnFlag = number
}
},
}
</script>
\ No newline at end of file
...@@ -22,12 +22,15 @@ ...@@ -22,12 +22,15 @@
line-height: 176px; line-height: 176px;
font-size: 22px; font-size: 22px;
color: #fff; color: #fff;
}
.button{
margin: 0 9%;
} }
} }
.gd_list{ .gd_list{
position: absolute; position: absolute;
top: 45%; top: 45%;
left: 1px; left: 0px;
background: #2680EB; background: #2680EB;
color: #fff; color: #fff;
width: 32px; width: 32px;
...@@ -38,7 +41,7 @@ ...@@ -38,7 +41,7 @@
.gn_area{ .gn_area{
position: absolute; position: absolute;
top: 45%; top: 45%;
right: 1px; right: 0px;
background: #515A6E; background: #515A6E;
color: #fff; color: #fff;
width: 32px; width: 32px;
...@@ -69,4 +72,60 @@ ...@@ -69,4 +72,60 @@
margin: 10px 0 0 170px; margin: 10px 0 0 170px;
} }
} }
}
.gd_box{
.ivu-drawer-wrap{
.ivu-drawer-left{
width: 370px!important;
.ivu-drawer-content{
.ivu-drawer-body {
padding: 0;
.order_title {
border-bottom: 1px solid #ccc;
height: 50px;
line-height: 50px;
padding: 0 0 0 15px;
.gd_tt{
margin: 0 55px 0 0;
}
}
}
}
}
}
}
.gn_box{
.ivu-drawer-wrap{
.ivu-drawer-right{
width: 180px!important;
.ivu-drawer-content{
background: #515A6E;
.ivu-drawer-body {
padding: 13vh 0;
}
li{
line-height: 66px;
height: 66px;
a{
color: #fff;
width: 100%;
display: block;
text-align: center;
font-size: 16px;
}
a:hover{
background: #2680EB;
}
}
}
}
}
.addd{
a.active{
background: #2680EB;
}
}
} }
\ No newline at end of file
...@@ -12,14 +12,12 @@ ...@@ -12,14 +12,12 @@
<Icon type="md-play" /> <Icon type="md-play" />
开工</a> 开工</a>
</div> </div>
<div class="star" v-else-if="starmodal"> <div class="star flex fc-b" v-else-if="starmodal">
<Button size='large' type="primary"><Icon type="ios-pause" />暂停</Button> <Button class="button" size='large' type="primary"><Icon type="ios-pause" /> 暂停</Button>
<Button size='large' type="primary"><Icon type="ios-pause" />校验</Button> <Button class="button" size='large' type="primary"><Icon type="logo-angular" /> 校验</Button>
<Button size='large' type="primary"><Icon type="ios-pause" />完工</Button> <Button class="button" size='large' type="primary"><Icon type="ios-checkmark-circle-outline" /> 完工</Button>
<Button size='large' type="primary"><Icon type="ios-pause" />转序交换</Button> <Button class="button" size='large' type="primary"><Icon type="md-swap" /> 转序交接</Button>
</div> </div>
<a class="gd_list" @click="value1 = true">工单列表</a>
<a class="gn_area" @click="value2 = true">功能区</a>
<div class="footer_box"> <div class="footer_box">
<div class="ul_box fl"> <div class="ul_box fl">
<ul> <ul>
...@@ -52,26 +50,28 @@ ...@@ -52,26 +50,28 @@
图片区 图片区
</div> </div>
</div> </div>
<Drawer title="Basic Drawer" :closable="false" v-model="value2"> <a class="gd_list" @click="orderlistMode = true">工单列表</a>
<p>Some contents...</p> <a class="gn_area" @click="functionalMode = true">功能区</a>
<p>Some contents...</p> <!-- title="工单列表" -->
<p>Some contents...</p> <Drawer placement="left" class="gd_box" :closable="false" v-model="orderlistMode">
<orderlist ref="orderlist"/>
</Drawer> </Drawer>
<Drawer title="Basic Drawer" placement="left" :closable="false" v-model="value1"> <!-- title="功能区" -->
<p>Some contents...</p> <Drawer class="gn_box" :closable="false" v-model="functionalMode">
<p>Some contents...</p> <functional ref="functional" />
<p>Some contents...</p>
</Drawer> </Drawer>
</div> </div>
</template> </template>
<script> <script>
import functional from "./components/functional";
import orderlist from "./components/orderlist";
export default { export default {
// components: { ProductTree, Search }, components: { functional, orderlist},
data(){ data(){
return{ return{
starmodal: true, starmodal: true,
value1:false, orderlistMode:false,
value2:false, functionalMode:false,
} }
}, },
created() { created() {
......
<template> <template>
<div style="padding:50px;"> <div style="padding:50px;">
<UserSelect v-model="user" :multiple="true" theme="list"/> <UserSelect v-model="user" :multiple="true"/>
<!-- <DepartmentSelect v-model="dep" /> <!-- <DepartmentSelect v-model="dep" /> -->
<Button @click="setUser">Set</Button>{{dep}} --> <Button @click="setUser">Set</Button>
{{user}} {{user}}
</div> </div>
</template> </template>
...@@ -12,12 +12,12 @@ export default { ...@@ -12,12 +12,12 @@ export default {
data(){ data(){
return { return {
dep:39, dep:39,
user:[21,22,23] user:[128]
} }
}, },
methods:{ methods:{
setUser(){ setUser(){
this.user=[25] this.user=[128]
} }
} }
} }
......
...@@ -20,12 +20,12 @@ window.resourceUrl = `http://${address}:10000/resource`; // 制造资源地址 ...@@ -20,12 +20,12 @@ window.resourceUrl = `http://${address}:10000/resource`; // 制造资源地址
window.workflowUrl = `http://${address}:10000/workflow`; // 工作流地址 window.workflowUrl = `http://${address}:10000/workflow`; // 工作流地址
window.certificateUrl = `http://${address}:10000/qms`; //质量 window.certificateUrl = `http://${address}:10000/qms`; //质量
window.crmUrl = `http://${address}:10000/crm`; //crm客户、合同、项目管理 window.crmUrl = `http://${address}:10000/crm`; //crm客户、合同、项目管理
window.apsUrl = `http://${systemApi.aps}:10000/aps`;//aps排产 window.apsUrl = `http://${address}:10000/aps`;//aps排产
window.technologyUrl =`http://${address}:10000/technology/`;//新工艺规程接口 window.technologyUrl =`http://${address}:10000/technology/`;//新工艺规程接口
window.iconImg = `/imgicon/`; window.iconImg = `/imgicon/`;
/* window.systemUrl = `http://${address}:10020/api/services/app`; //System-api 系统管理(基础数据) /* window.systemUrl = `http://${address}:10020/api/services/app`; //System-api 系统管理(基础数据)
window.authUrl = `http://${address}:10010`; //Authentication-api //统一登陆认证 window.authUrl = `http://${address}:10010`; //Authentication-api //统一登陆认证
window.designUrl = `http://${address}:10030/api/services/app`; //Process-api 工艺规程 window.designUrl = `http://${address}:10030/api/services/app`; //Process-api 工艺规程
window.PlanUrl = `http://${address}:10050/api/services/app`; //Process-api window.PlanUrl = `http://${address}:10050/api/services/app`; //Process-api
window.routeUrl = `http://${address}:10050/api/services/app`; //Process-api window.routeUrl = `http://${address}:10050/api/services/app`; //Process-api
......
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