|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-input v-model="input" style="width: 240px" placeholder="" /> --> |
|
|
|
<el-select v-model="value1" placeholder="请选择" style="width: 240px"> |
|
|
|
<el-select v-model="value1" placeholder="请选择" style="width: 240px" @change="asfValueChanged"> |
|
|
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" /> |
|
|
|
</el-select> |
|
|
|
|
|
|
|
@ -34,7 +34,7 @@ const props = withDefaults( |
|
|
|
}>(), |
|
|
|
{} |
|
|
|
) |
|
|
|
|
|
|
|
const emits = defineEmits(["valueChanged"]); |
|
|
|
const value1 = ref('') |
|
|
|
|
|
|
|
const options = ref([]) |
|
|
|
@ -42,13 +42,18 @@ onMounted(()=>{ |
|
|
|
console.log(props.data.control) |
|
|
|
if(props.data.control.formid!=null&&props.data.control.formid!=""){ |
|
|
|
getAsfDataTitles().then(({ data }) => { |
|
|
|
console.log(data) |
|
|
|
//console.log(data) |
|
|
|
options.value = data |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
function asfValueChanged(){ |
|
|
|
|
|
|
|
emits("valueChanged",value1.value) |
|
|
|
} |
|
|
|
|
|
|
|
function getAsfDataTitles() { |
|
|
|
let dataTitle = '' |
|
|
|
if(props.tablekey.dataTitle!=null&&props.tablekey.dataTitle.length>0){ |
|
|
|
|