|
@@ -3,6 +3,7 @@
|
|
|
<div class="cover"></div>
|
|
|
<div class="modal-box">
|
|
|
<div class="modal-title">
|
|
|
+ <span class="title-l">{{title}}{{tip}}</span>
|
|
|
<a class="close" @click="closeModal()">×</a>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
@@ -44,6 +45,7 @@
|
|
|
clearable
|
|
|
style="minWidth: 240px"
|
|
|
@input="onchange"
|
|
|
+ @blur="onblur"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item :label="detail+'预览:'">
|
|
@@ -196,12 +198,14 @@ export default {
|
|
|
mapList: [],
|
|
|
getIndex: 6,
|
|
|
ty: this.type,
|
|
|
- searchType: 2
|
|
|
+ searchType: '',
|
|
|
+ title: '添加'
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
//修改
|
|
|
if (JSON.stringify(this.data) != '{}') {
|
|
|
+ this.title = '编辑';
|
|
|
this.isEdit = true;
|
|
|
this.editId = this.data.id;
|
|
|
this.form.hisName = this.data.hisName;
|
|
@@ -221,7 +225,8 @@ export default {
|
|
|
selectedstyle({ row, rowIndex }) {
|
|
|
if (this.getIndex === rowIndex) {
|
|
|
return {
|
|
|
- 'background-color': '#EBEEF5'
|
|
|
+ 'background-color': '#EBEEF5',
|
|
|
+ 'color':'#48C5D7'
|
|
|
};
|
|
|
}
|
|
|
},
|
|
@@ -330,12 +335,22 @@ export default {
|
|
|
// 获取焦点
|
|
|
handleFocus() {},
|
|
|
onblur() {
|
|
|
- this.getTermMatching();
|
|
|
+ let type,name
|
|
|
+ if (this.type == 1) {
|
|
|
+ const { hisName, hisDetailName } = this.form;
|
|
|
+ type = 1; // 1-化验大项、2-化验小项
|
|
|
+ name = hisName
|
|
|
+ if (hisName !== '' && hisDetailName !== '') {
|
|
|
+ type = 2;
|
|
|
+ name = hisDetailName
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.getTermMatching(type,name);
|
|
|
},
|
|
|
- getTermMatching() {
|
|
|
+ getTermMatching(type,name) {
|
|
|
let params = {
|
|
|
- type: this.type,
|
|
|
- inputStr: this.form.hisName
|
|
|
+ type: type ? type : this.type,
|
|
|
+ inputStr: name ? name :this.form.hisName
|
|
|
};
|
|
|
api.getTermMatching(params).then(res => {
|
|
|
this.showDrop = false;
|
|
@@ -593,6 +608,17 @@ export default {
|
|
|
.titleBox {
|
|
|
padding: 0 0 10px 0px;
|
|
|
}
|
|
|
+/deep/.el-table th{
|
|
|
+ background: #F7F7F7;
|
|
|
+}
|
|
|
+/deep/ .el-table td, .el-table th.is-leaf{
|
|
|
+ border-bottom:none
|
|
|
+}
|
|
|
+.title-l {
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 40px;
|
|
|
+ margin-left: 10px;
|
|
|
+}
|
|
|
.title {
|
|
|
width: 50%;
|
|
|
float: left;
|