|
@@ -149,10 +149,14 @@ export default {
|
|
|
if (type == 1) {
|
|
|
this.mealNameList = res.data.data
|
|
|
if(this.mealNameList.length > 0){ this.$refs['mealNameList'].style.display='block' }
|
|
|
+ if(this.itemNameList.length > 0) { this.$refs['itemNameList'].style.display='none' }
|
|
|
+ if(this.uniqueNameList.length > 0){this.$refs['uniqueNameList'].style.display='none'}
|
|
|
} else if (type == 2) {
|
|
|
|
|
|
this.itemNameList = res.data.data
|
|
|
if(this.itemNameList.length > 0) { this.$refs['itemNameList'].style.display='block' }
|
|
|
+ if(this.uniqueNameList.length > 0){this.$refs['uniqueNameList'].style.display='none'}
|
|
|
+ if(this.mealNameList.length > 0){ this.$refs['mealNameList'].style.display='none' }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -166,6 +170,8 @@ export default {
|
|
|
if(res.data.code === '0') {
|
|
|
this.uniqueNameList = res.data.data
|
|
|
if(this.uniqueNameList.length > 0){this.$refs['uniqueNameList'].style.display='block'}
|
|
|
+ if(this.itemNameList.length > 0) { this.$refs['itemNameList'].style.display='none' }
|
|
|
+ if(this.mealNameList.length > 0){ this.$refs['mealNameList'].style.display='none' }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -269,7 +275,7 @@ export default {
|
|
|
<style lang="less">
|
|
|
.AddChemicalAndCommonMappingWrapper {
|
|
|
min-width: 980px;
|
|
|
-
|
|
|
+ color: #606266;
|
|
|
.topBack {
|
|
|
top: 0;
|
|
|
}
|
|
@@ -285,7 +291,7 @@ export default {
|
|
|
|
|
|
// }
|
|
|
.titleBox {
|
|
|
- border-bottom: 1px solid #000;
|
|
|
+ border-bottom: 1px solid #dcdfe6;
|
|
|
padding: 0 0 10px 0px;
|
|
|
}
|
|
|
.title {
|
|
@@ -301,6 +307,7 @@ export default {
|
|
|
width: 40%;
|
|
|
float: left;
|
|
|
height: 200px;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
.midBox {
|
|
|
width: 10%;
|
|
@@ -308,12 +315,13 @@ export default {
|
|
|
}
|
|
|
.itemLabel {
|
|
|
width: 100%;
|
|
|
- height: 40px;
|
|
|
- line-height: 40px;
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
position: relative;
|
|
|
}
|
|
|
.itemLabelName, .searchInput, .searchName{
|
|
|
float: left;
|
|
|
+ color: #606266;
|
|
|
}
|
|
|
.itemLabelName {
|
|
|
width: 150px;
|
|
@@ -327,34 +335,38 @@ export default {
|
|
|
}
|
|
|
.searchInput, .searchName {
|
|
|
display: inline-block;
|
|
|
- height: 22px;
|
|
|
- line-height: 22px;
|
|
|
- border: 1px solid gray;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ border: 1px solid #dcdfe6;
|
|
|
margin: 9px 0 0 0;
|
|
|
}
|
|
|
|
|
|
.searchName {
|
|
|
+ width: 39px;
|
|
|
+ text-align: center;
|
|
|
border-left: none;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
.itemList {
|
|
|
position: absolute;
|
|
|
display: none;
|
|
|
background: #fff;
|
|
|
width: 162px;
|
|
|
- max-height: 80px;
|
|
|
- border: 1px solid gray;
|
|
|
+ max-height: 150px;
|
|
|
+ border: 1px solid #dcdfe6;
|
|
|
left: 150px;
|
|
|
- top: 35px;
|
|
|
+ top: 42px;
|
|
|
z-index: 2;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
.mealNameItem {
|
|
|
- height: 20px;
|
|
|
- line-height: 20px;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
font-size: 14px;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
.mealNameItem:hover {
|
|
|
- border: 1px solid #22ccc8;
|
|
|
+ background: #f5f7fa;
|
|
|
}
|
|
|
.selectItemName {
|
|
|
display: inline-block;
|
|
@@ -377,29 +389,17 @@ export default {
|
|
|
width: 80px;
|
|
|
height: 30px;
|
|
|
line-height: 30px;
|
|
|
- border: 1px solid #000;
|
|
|
+ border: 1px solid #dcdfe6;
|
|
|
text-align: center;
|
|
|
right: 100px;
|
|
|
}
|
|
|
- .confirmRealation {
|
|
|
- .cancelButton{
|
|
|
- span {
|
|
|
- border: 1px solid #000;
|
|
|
- color: #000 !important;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- .el-message-box__btns .el-button--default {
|
|
|
- color: #000;
|
|
|
- }
|
|
|
}
|
|
|
.confirmRealation {
|
|
|
.cancelButton{
|
|
|
- border-color: #000;
|
|
|
- color: #000 !important;
|
|
|
+ border: 1px solid #dcdfe6;
|
|
|
+ span {
|
|
|
+ color: #606266;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|