|
@@ -37,8 +37,9 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
+ name:'AdvancedSearch',
|
|
|
components: {},
|
|
|
- props:['countryList','DBType'],
|
|
|
+ props:['countryList','DBType','editData'],
|
|
|
data() {
|
|
|
return {
|
|
|
condition:'',
|
|
@@ -52,6 +53,11 @@ export default {
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
this.field = [].concat(...this.field.map(item=>{return item.children}))
|
|
|
+ if(this.editData && this.editData.component == 'AdvancedSearch'){
|
|
|
+ if(this.editData.data){
|
|
|
+ this.$set(this,'condition',this.editData.data)
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
changeRed(val){
|
|
@@ -73,7 +79,11 @@ export default {
|
|
|
// if(a.trim().indexOf('(')!=0){
|
|
|
// a = `${a}`
|
|
|
// }
|
|
|
- this.$emit('search',a.trim())
|
|
|
+ var params = {
|
|
|
+ DBType:this.DBType,
|
|
|
+ component:'AdvancedSearch'
|
|
|
+ }
|
|
|
+ this.$emit('search',a.trim(),params)
|
|
|
},
|
|
|
},
|
|
|
};
|