Commit ebfa965a by lichengming

修改了委托方下拉菜单

parent 307aa39e
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
size="small" size="small"
placement="bottom-start" placement="bottom-start"
style="width:100%;" style="width:100%;"
class="dropdownBox"
> >
<Input <Input
v-model="dataValue" v-model="dataValue"
...@@ -31,6 +32,7 @@ ...@@ -31,6 +32,7 @@
@on-change="_query" @on-change="_query"
@on-blur="_inputBlur" @on-blur="_inputBlur"
@on-focus="_inputFocus" @on-focus="_inputFocus"
:maxlength="maxlength?maxlength:10000"
icon="ios-search" icon="ios-search"
style="width:100%" style="width:100%"
/> />
...@@ -66,7 +68,8 @@ export default { ...@@ -66,7 +68,8 @@ export default {
showError: null, showError: null,
blur: null, blur: null,
focus: null, focus: null,
handleObj: null handleObj: null,
maxlength: null
}, },
data() { data() {
return { return {
...@@ -120,6 +123,7 @@ export default { ...@@ -120,6 +123,7 @@ export default {
}, },
// 聚焦 // 聚焦
_inputFocus() { _inputFocus() {
console.log('下拉选项', this.downData, this.showKey)
// this.isFocus = true; // this.isFocus = true;
if (this.focus !== undefined) { if (this.focus !== undefined) {
this.$emit('on-result-change', 'focus', '', this.dataHandObj) this.$emit('on-result-change', 'focus', '', this.dataHandObj)
...@@ -129,10 +133,17 @@ export default { ...@@ -129,10 +133,17 @@ export default {
} }
</script> </script>
<style> <style>
.ivu-modal-mask {
z-index: 1000 !important;
}
.ivu-modal-wrap {
z-index: 1000 !important;
}
.iview-input-error .ivu-input { .iview-input-error .ivu-input {
border: 1px solid #eb6877 !important; border: 1px solid #eb6877 !important;
} }
.el-dropdown-menu__item { .el-dropdown-menu__item {
z-index: 3000 !important;
max-width: 400px !important; max-width: 400px !important;
} }
</style> </style>
<template> <template>
<div> <div>
<Modal v-model="showModal" :mask-closable="false" width="1250"> <Modal v-model="showModal" :mask-closable="false" :zIndex = -1 width="1250">
<p slot="header">{{modalTitle}}</p> <p slot="header">{{modalTitle}}</p>
<div> <div>
<Form id="edit-form" ref="formObj" :model="formObj" :rules="ruleValidate" :label-width="90" inline> <Form id="edit-form" ref="formObj" :model="formObj" :rules="ruleValidate" :label-width="90" inline>
...@@ -700,15 +700,13 @@ export default { ...@@ -700,15 +700,13 @@ export default {
}, },
_getList: async function() { _getList: async function() {
const result = await meterEntrust.pageList() const result = await meterEntrust.pageList()
// const list = [] const list = []
if (result) { if (result) {
for (let i = 0; i < result.length; i++) { for (let i = 0; i < result.length; i++) {
// list.push(result[i].cname) list.push(result[i].cname)
this.customerData.push(result[i].cname)
console.log(this.customerData)
} }
// console.log('委托单位名单', list) console.log('委托单位名单', list)
// this.customerData = list this.customerData = list
} }
}, },
_getQueryList: async function(data) { _getQueryList: async function(data) {
......
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