组件优化
This commit is contained in:
parent
35c2208bf9
commit
bea2bb2048
|
|
@ -274,11 +274,11 @@ export function applyRemove(ids) {
|
|||
}
|
||||
|
||||
// 获取机具类型树
|
||||
export function equipmentTypeTree(query) {
|
||||
export function equipmentTypeTree(data) {
|
||||
return request({
|
||||
url: '/material/ma_type/equipmentType',
|
||||
method: 'get',
|
||||
params: query
|
||||
url: '/material/material_lease_apply_info/equipmentType',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1013,9 +1013,9 @@ export default {
|
|||
// overflow-y: auto;
|
||||
// }
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
::v-deep .highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
::v-deep .el-input-group__append {
|
||||
|
|
@ -1046,11 +1046,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.el-input-group__append {
|
||||
padding: 0;
|
||||
.el-button {
|
||||
|
|
|
|||
|
|
@ -1276,7 +1276,7 @@ export default {
|
|||
if (this.currentMatchIndex === -1 || !this.matchedOptions.length) return
|
||||
|
||||
const option = this.matchedOptions[this.currentMatchIndex]
|
||||
const selectDom = this.$el.querySelector('.el-select-dropdown__wrap')
|
||||
const selectDom = this.$el.querySelector('.type-select-dropdown')
|
||||
const optionDom = selectDom?.querySelector(`[data-key="${option.typeId}"]`)
|
||||
|
||||
if (optionDom) {
|
||||
|
|
@ -1358,7 +1358,7 @@ export default {
|
|||
// overflow-y: auto;
|
||||
// }
|
||||
|
||||
.highlight-text {
|
||||
::v-deep .highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
|
@ -1391,11 +1391,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.el-input-group__append {
|
||||
padding: 0;
|
||||
.el-button {
|
||||
|
|
|
|||
|
|
@ -1351,7 +1351,7 @@ export default {
|
|||
if (this.currentMatchIndex === -1 || !this.matchedOptions.length) return
|
||||
|
||||
const option = this.matchedOptions[this.currentMatchIndex]
|
||||
const selectDom = this.$el.querySelector('.el-select-dropdown__wrap')
|
||||
const selectDom = this.$el.querySelector('.type-select-dropdown')
|
||||
const optionDom = selectDom?.querySelector(`[data-key="${option.typeId}"]`)
|
||||
|
||||
if (optionDom) {
|
||||
|
|
@ -1422,9 +1422,9 @@ export default {
|
|||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
::v-deep .highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
::v-deep .el-input-group__append {
|
||||
|
|
@ -1455,11 +1455,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.el-input-group__append {
|
||||
padding: 0;
|
||||
.el-button {
|
||||
|
|
|
|||
|
|
@ -1257,10 +1257,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.el-input-group__append {
|
||||
padding: 0;
|
||||
|
|
|
|||
|
|
@ -1433,10 +1433,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.el-input-group__append {
|
||||
padding: 0;
|
||||
|
|
|
|||
|
|
@ -996,7 +996,7 @@ export default {
|
|||
if (this.currentMatchIndex === -1 || !this.matchedOptions.length) return
|
||||
|
||||
const option = this.matchedOptions[this.currentMatchIndex]
|
||||
const selectDom = this.$el.querySelector('.el-select-dropdown__wrap')
|
||||
const selectDom = this.$el.querySelector('.type-select-dropdown')
|
||||
const optionDom = selectDom?.querySelector(`[data-key="${option.typeId}"]`)
|
||||
|
||||
if (optionDom) {
|
||||
|
|
@ -1054,7 +1054,7 @@ export default {
|
|||
// overflow-y: auto;
|
||||
// }
|
||||
|
||||
.highlight-text {
|
||||
::v-deep .highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
|
@ -1087,11 +1087,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.el-input-group__append {
|
||||
padding: 0;
|
||||
.el-button {
|
||||
|
|
|
|||
|
|
@ -943,7 +943,7 @@ export default {
|
|||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
::v-deep .highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
|
@ -976,11 +976,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.el-input-group__append {
|
||||
padding: 0;
|
||||
.el-button {
|
||||
|
|
|
|||
|
|
@ -412,7 +412,7 @@ export default {
|
|||
},
|
||||
/** 机具类型 */
|
||||
equipmentType() {
|
||||
equipmentTypeTree().then(response => {
|
||||
equipmentTypeTree({ agreementId: this.agreementId }).then(response => {
|
||||
this.equipmentTypeList = response.data
|
||||
// 处理并扁平化所有类型数据
|
||||
this.flattenTypeOptions = this.processTypeData(response.data)
|
||||
|
|
@ -782,7 +782,7 @@ export default {
|
|||
// overflow-y: auto;
|
||||
// }
|
||||
|
||||
.highlight-text {
|
||||
::v-deep .highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
|
@ -815,11 +815,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.el-input-group__append {
|
||||
padding: 0;
|
||||
.el-button {
|
||||
|
|
|
|||
|
|
@ -858,7 +858,7 @@ export default {
|
|||
// overflow-y: auto;
|
||||
// }
|
||||
|
||||
.highlight-text {
|
||||
::v-deep .highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
|
@ -891,11 +891,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.highlight-text {
|
||||
background-color: #ffd04b;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.el-input-group__append {
|
||||
padding: 0;
|
||||
.el-button {
|
||||
|
|
|
|||
Loading…
Reference in New Issue