新修改的bug

This commit is contained in:
宋伟佳
2021-12-05 17:35:38 +08:00
parent 422a0397a5
commit 6f89d5cb13
6 changed files with 42 additions and 22 deletions
@@ -67,7 +67,7 @@
<el-table
:data="dataList"
border
ref="selection"
ref="standSelection"
height="65%"
@selection-change="selectStandChange"
style="width: 100%; border:1px solid #ccc"
@@ -1009,12 +1009,13 @@ export default {
this.projectStand.map(item => {
let index;
index = this.dataList.findIndex(items => {
return items.standId === item.standId;
return items.id === item.id;
});
if (index > -1) {
this.dataList.splice(index, 1);
}
});
this.$refs.standSelection.clearSelection()
}).catch(() => {
});
}
@@ -59,7 +59,7 @@
<el-table
:data="dataList"
border
ref="selection"
ref="standSelection"
height="65%"
@selection-change="selectStandChange"
style="width: 100%; border:1px solid #ccc"
@@ -1015,12 +1015,13 @@ export default {
this.projectStand.map(item => {
let index;
index = this.dataList.findIndex(items => {
return items.standId === item.standId;
return items.id === item.id;
});
if (index > -1) {
this.dataList.splice(index, 1);
}
});
this.$refs.standSelection.clearSelection()
}).catch(() => {
});
}
@@ -59,7 +59,7 @@
<el-table
:data="dataList"
border
ref="selection"
ref="standSelection"
height="65%"
@selection-change="selectStandChange"
style="width: 100%; border:1px solid #ccc"
@@ -1016,12 +1016,13 @@ export default {
this.projectStand.map(item => {
let index;
index = this.dataList.findIndex(items => {
return items.standId === item.standId;
return items.id === item.id;
});
if (index > -1) {
this.dataList.splice(index, 1);
}
});
this.$refs.standSelection.clearSelection()
}).catch(() => {
});
}
@@ -87,9 +87,9 @@
ref="multipleTable"
:data="localProTableList"
tooltip-effect="dark"
style="width: 100%;height: inherit"
style="width: 100%"
border
:max-height="400"
max-height="600"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '15px',
fontWeight: 'normal', height: '48px'}"
@selection-change="handleSelectionChange">
@@ -97,18 +97,23 @@
show-overflow-tooltip
prop="projectPlatfor"
align="center"
fixed="left"
min-width="100"
label="产品平台">
</el-table-column>
<el-table-column
prop="projectNumber"
align="center"
width="90"
fixed="left"
min-width="150"
label="项目编号">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="projectName"
align="center"
fixed="left"
min-width="300"
label="项目名称">
<template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.projectName }}</a>
@@ -142,7 +147,7 @@
show-overflow-tooltip
prop="productLine"
label="产品线"
min-width="120"
min-width="160"
align="center"
>
</el-table-column>
@@ -184,7 +189,7 @@
align="center"
label="项目经理">
</el-table-column>
<el-table-column label="" fixed="right" width="50" :resizable="false" label="操作" align="center">
<el-table-column label="" fixed="right" width="50" :resizable="false" label="操作" align="center">
<template slot-scope="scope">
<div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand">
@@ -1638,9 +1643,14 @@ export default {
}
}
}
///deep/ .el-table--scrollable-x .el-table__body-wrapper {
// overflow-x: scroll;
//}
///deep/.el-table__fixed {
// height: 48px !important;
//}
/deep/.el-table .el-table__body-wrapper {
height: 86%;
height: 84%;
}
::v-deep .el-drawer__header {
& > span:first-child {
@@ -37,10 +37,10 @@
</el-row>
<el-row style="margin-top: 10px">
<el-col :span="5">产品线: <span class="valueColor">{{ localProEO.productLine }} </span></el-col>
<el-col :span="5">项目经理: <span class="valueColor">{{ localProEO.uname }} </span></el-col>
<el-col :span="5" :push="1"> 项目计划开始时间: <span
<el-col :span="5" :push="1">项目经理: <span class="valueColor">{{ localProEO.uname }} </span></el-col>
<el-col :span="5" :push="2"> 项目计划开始时间: <span
class="valueColor">{{ $moment(localProEO.projectStartDate).format('YYYY-MM-DD') }}</span></el-col>
<el-col :span="5" :push="2">项目计划完成时间: <span
<el-col :span="4" :push="3">项目计划完成时间: <span
class="valueColor">{{ $moment(localProEO.projectEndDate).format('YYYY-MM-DD') }} </span></el-col>
</el-row>
</div>
@@ -91,6 +91,7 @@
tooltip-effect="dark"
height="100%"
border
max-height="100%"
class="table"
v-loading="myLoading.loadData"
@selection-change="standSelectChange"
@@ -106,7 +107,7 @@
<el-table-column
prop="standSerialNumber"
fixed="left"
width="180"
min-width="180"
label="标准号">
<template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a>
@@ -115,7 +116,7 @@
<el-table-column
prop="standName"
fixed="left"
width="200"
min-width="300"
show-overflow-tooltip
label="标准名称">
<template slot-scope="scope">
@@ -124,12 +125,12 @@
</el-table-column>
<el-table-column
prop="itemsNum"
width="75"
min-width="100"
label="条款号">
</el-table-column>
<el-table-column
prop="itemsName"
width="180"
min-width="300"
show-overflow-tooltip
label="条款名称">
</el-table-column>
@@ -145,7 +146,7 @@
</el-table-column>
<el-table-column
prop="productName"
width="180"
min-width="300"
show-overflow-tooltip
label="项目名称">
</el-table-column>
@@ -186,7 +187,7 @@
{{ (scope.row.planCloseTime ? scope.row.planCloseTime.substring(0, 11) : "") }}
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="50">
<el-table-column label="操作" align="center" width="50">
<template slot-scope="scope">
<div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand">
@@ -1187,6 +1188,12 @@ export default {
color: #606266 !important;
}
#rectification-dataBase {
/deep/ .el-table__fixed {
height: 100% !important; //设置高优先,以覆盖内联样式
}
/deep/ .el-table__fixed-right {
height: 100% !important; //设置高优先,以覆盖内联样式
}
/deep/ .table-wrap {
.el-table__fixed {
height: calc(~'100% - 20px') !important;