|
|
|
@ -11,7 +11,7 @@ import SvgIcon from '@/components/Icon/SvgIcon.vue'
|
|
|
|
|
|
|
|
|
|
type Status = 'edit' | 'new'
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['onOk','handleOk'])
|
|
|
|
|
const emit = defineEmits(['onOk','handleOk','select'])
|
|
|
|
|
const show = ref(false)
|
|
|
|
|
const editValue=ref({})
|
|
|
|
|
const configStore = useConfig()
|
|
|
|
@ -126,7 +126,17 @@ function handleSumbit(e: MouseEvent) {
|
|
|
|
|
addCondition(param)
|
|
|
|
|
else updateCondition({ id: currentEditId!, ...param })
|
|
|
|
|
console.log(editValue.value)
|
|
|
|
|
emit('handleOk', editValue.value)
|
|
|
|
|
let obj=editValue.value
|
|
|
|
|
if(currentStatus.value != 'new'){
|
|
|
|
|
obj.searchname=param.searchname
|
|
|
|
|
// obj.ocrUsersearchchildList=param.ocrUsersearchchildList
|
|
|
|
|
}
|
|
|
|
|
emit('handleOk', obj)
|
|
|
|
|
|
|
|
|
|
if(currentStatus.value != 'new'){
|
|
|
|
|
emit('select', currentEditId)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
closeModal()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -153,6 +163,8 @@ function unformatValue(searchfield: string, searchvalue: any) {
|
|
|
|
|
const start = formatToDate3(dataStrs[0])
|
|
|
|
|
const end = formatToDate3(dataStrs[1])
|
|
|
|
|
return [start, end]
|
|
|
|
|
}else if(searchfield !="izsimilarity"){
|
|
|
|
|
searchvalue= searchvalue.split(",");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 80,90
|
|
|
|
@ -414,6 +426,7 @@ if(formValue.name){
|
|
|
|
|
clearable
|
|
|
|
|
/>
|
|
|
|
|
</n-space>
|
|
|
|
|
|
|
|
|
|
<n-select
|
|
|
|
|
v-else
|
|
|
|
|
:max-tag-count="1"
|
|
|
|
@ -423,7 +436,7 @@ if(formValue.name){
|
|
|
|
|
style="margin-left: 8px"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:options="getOptions(item.type!)"
|
|
|
|
|
/>
|
|
|
|
|
/>
|
|
|
|
|
<n-button
|
|
|
|
|
:style="noBorderInput"
|
|
|
|
|
icon-placement="right"
|
|
|
|
|