Commit d9c76614 authored by 仇晓婷's avatar 仇晓婷

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

parents c3d1801e 8193c594
......@@ -3,18 +3,26 @@
<div class="table-tools" v-if="tool">
<div class="table-search" v-if="easy">
<slot name="easySearch">
<Input
search
enter-button
:placeholder="placeholder"
@on-search="easySearch"
v-model="keys"
/>
<Form inline>
<FormItem>
<Input
search
enter-button
:placeholder="placeholder"
@on-search="easySearch"
v-width="300"
v-model="keys"
/>
</FormItem>
<FormItem>
<Button v-if="high" @click="modalSearch=true" type="text">
<Icon type="md-search" />高级
</Button>
</FormItem>
</Form>
</slot>
<Button v-if="high" @click="modalSearch=true" type="text">
<Icon type="md-search" />高级
</Button>
</div>
<div class="searchBack">
<slot name="searchBack"></slot>
</div>
......@@ -269,14 +277,23 @@ export default {
} else {
this.easySearch();
}
console.warn("this.$refs.main.clientX",this.$refs.main.offsetTop,this.$refs.main.offsetHeight)
if (this.height === 0) {
this.$nextTick(() => {
this.tableHeight = this.$refs.main.offsetHeight;
this.tableHeight = this.$refs.main.offsetHeight;
if (this.tableHeight < 300) {
this.tableHeight = window.screen.availHeight -this.$refs.main.offsetTop-200;
}
console.warn("this.$refs.main.VVV",this.tableHeight)
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
console.warn("fasfas",this.$refs.main)
// this.tableHeight = this.$refs.main.offsetHeight;
console.warn(123)
this.tableHeight = this.$refs.main.offsetHeight;
if (this.tableHeight < 300) {
this.tableHeight = window.screen.availHeight -this.$refs.main.offsetTop-150;
}
console.warn("this.$refs.main.tableHeight",this.tableHeight)
})();
};
});
......@@ -291,7 +308,7 @@ export default {
},
methods: {
//数据加载
load() {
load() {
if (this.action) {
//条件初始化处理。
if (this.initsearch) {
......@@ -427,7 +444,7 @@ export default {
let v = conditions[u].value;
let op = conditions[u].op;
if (!this.$u.isNull(v)) {
if (op == "Range"&&Array.isArray(v)) {
if (op == "Range" && Array.isArray(v)) {
let times = [];
v.map(u => {
if (!this.$u.isNull(u)) {
......@@ -435,7 +452,7 @@ export default {
}
});
v = times.join(",");
} else if (op.indexOf("In") > -1&&Array.isArray(v)) {
} else if (op.indexOf("In") > -1 && Array.isArray(v)) {
v = v.join(",");
}
if (!this.$u.isNull(v)) {
......@@ -543,13 +560,13 @@ export default {
height() {
this.tableHeight = this.height;
},
"columns.length"(){
"columns.length"() {
this.columns.forEach(u => {
if (!u.hide) {
u.hide = false;
}
});
this.columnsCur = this.$u.clone(this.columns);
if (!u.hide) {
u.hide = false;
}
});
this.columnsCur = this.$u.clone(this.columns);
}
}
};
......
......@@ -359,6 +359,7 @@ export default {
.product-layout {
.i-layout-content {
padding: 5px 10px;
height: calc(100vh - 100px);
}
.i-tabs {
width: 100% !important;
......
......@@ -22420,13 +22420,8 @@
},
"vue-slider-component": {
"version": "3.1.5",
<<<<<<< HEAD
"resolved": "https://registry.npmjs.org/vue-slider-component/-/vue-slider-component-3.1.5.tgz",
"integrity": "sha512-RIDL2cjIfSMKxv7IeNQ5gn936SAaLi+UKc97xd8yN92zz0n5dK343GGSay/3ypzhR1C5YIN3n7/LclUQrIDoFg==",
=======
"resolved": "https://registry.npm.taobao.org/vue-slider-component/download/vue-slider-component-3.1.5.tgz?cache=0&sync_timestamp=1590980161427&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-slider-component%2Fdownload%2Fvue-slider-component-3.1.5.tgz",
"integrity": "sha1-2a1vGhBcigp7cvW4+VZW0HuOTDY=",
>>>>>>> 07734a85a7ff7845f4f995bf7879d342b5bda7d3
"requires": {
"core-js": "^3.6.5",
"vue-property-decorator": "^8.0.0"
......@@ -22434,13 +22429,8 @@
"dependencies": {
"core-js": {
"version": "3.6.5",
<<<<<<< HEAD
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.5.tgz",
"integrity": "sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA=="
=======
"resolved": "https://registry.npm.taobao.org/core-js/download/core-js-3.6.5.tgz",
"integrity": "sha1-c5XcJzrzf7LlDpvT2f6EEoUjHRo="
>>>>>>> 07734a85a7ff7845f4f995bf7879d342b5bda7d3
}
}
},
......
......@@ -32,14 +32,14 @@ export default {
default:()=>{
return {
res:true,
datas:{},
datas:'{}',
}
}
},
computed:{
list(){
var data={};
if(this.data.datas){
if(this.data.datas!=''){
var item=JSON.parse(this.data.datas);
for(var key in item)
{
......
......@@ -129,7 +129,7 @@ export default {
},
result: {
res: true,
datas: {}
datas: '{}'
},
resultModal: false,
entity: {
......
<template>
<div class="myBug">
<div class="h100">
<DataGrid
:columns="columns"
ref="grid"
......@@ -15,6 +15,7 @@
enter-button
placeholder="请输入关键字订单编号/项目名称"
v-model="easySearch.keys.value"
v-width="300"
@on-search="search"
/>
</FormItem>
......
......@@ -33,8 +33,8 @@
<p class="show_btn">
<a @click="showRow(item.id,item.btnShow)">
<Tooltip content="所属程序列表">
<Icon v-if="item.btnShow" type="ios-arrow-down" />
<Icon v-else type="ios-arrow-up" />
<Icon v-if="item.btnShow" type="ios-arrow-up" />
<Icon v-else type="ios-arrow-down" />
</Tooltip>
</a>
</p>
......
......@@ -47,6 +47,7 @@
padding: 0 10px 0;
}
.h60{
border-top: 1px solid #e2e1e1e0;
.card_body02{
padding: 0 10px 0;
margin: 4px 0;
......
<template>
<div class="detail" style="width:80%;margin:0 auto">
<div class="detail table-detail">
<Row>
<Metal-Details
ref="metalDetail"
......
......@@ -2,7 +2,7 @@
@import '../../processDesign/Process/menu.less';
</style>
<template>
<div class="outP" style="width:80%;margin:0 auto">
<div class="outP table-detail">
<Processview ref="processview" :isoutpdf="false"></Processview>
</div>
</template>
......@@ -14,7 +14,7 @@ export default {
name: 'detail',
components: {
Processview
},
},
props: {
idVal: {
type: String,
......
<template>
<div style="padding:30px 0">
<Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" style="width:80%"/>
<Process ref="userProcess" :idVal="detailId" />
<div class="footers" v-if="footerStatu === '2'" style="text-align:left;">
<Form
:model="formMyCheck"
......
......@@ -8,6 +8,7 @@
padding: 20px 100px;
display: block;
width: 98%;
background: #fff;
margin: 0 auto;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.16);
.ivu-row .filed-col > .label{
......
<template>
<div>
<div class="h100">
<DataGrid :columns="columns" ref="grid" :action="action"><template slot="easySearch"><Form ref="formInline" :model="easySearch" inline><FormItem prop="keys"><Input placeholder="请输入关键字编码/名称" v-model="easySearch.keys.value" /> </FormItem>
<FormItem><Button type="primary" @click="search">查询</Button></FormItem>
</Form></template>
......
<template>
<div class="monitoring">
<div class="monitoring h100">
<DataGrid :columns="columns" ref="grid" :action="action">
<template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline style="margin-top:5px;">
......
<template>
<div class="metal-details">>
<div class="metal-details">
<div class="outPdf">
<div class="body-box">
<div class="bj-box">
......
......@@ -4,8 +4,8 @@
}
</style>
<template>
<div class="content manyTabs">
<Tabs value="Powder" @on-click='changeTab'>
<div class="content manyTabs h100">
<Tabs value="Powder" @on-click='changeTab' class="h100">
<TabPane label="待复验" name="Powder">
<waitReview ref="waitReview" style="margin-top: 45px;" />
</TabPane>
......
<template>
<div>
<div class="h100">
<DataGrid :columns="columns" ref="grid" :action="action" @on-expand="show">
<template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline>
......
<template>
<div class="resources-p">
<div class="resources-p h100">
<DataGrid
:columns="columns"
ref="grid"
......
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