{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/form_searchform.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/form_searchform.vue","mtime":1725957645722},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["\nimport API from \"@/api.js\";\nexport default {\n name: \"form-searchform\",\n props: [\n \"appId\", \n \"viewId\",\n \"chartType\", \n \"isTreeView\",\n \"openParams\",\n \"commonFilterCondition\"\n ], // isTreeView: 是否显示收起按钮\n\n provide () {\n return {\n findField: this.findField,\n buildFormData: this.buildFormData\n }\n },\n\n created: function() {\n this.initSearchForm({\n appId: this.appId,\n viewId: this.viewId\n });\n },\n\n data: function() {\n return {\n formdata: undefined,\n };\n },\n methods: { \n getAllFields(){\n console.log(this.$parent) \n if(this.$store.state.searchFlag==0){\n return this.formdata.fields;\n }\n },\n findField(id) {\n console.log(this.appId+'--测试-'+this.viewId)\n \n let data = this.formdata \n console.log('变量:'+this.$store.state.searchFlag)\n for (let i = 0; i < data.fields.length; i++) {\n let fld = data.fields[i];\n console.log(fld.value)\n // data.fields[i].value='1' \n console.log(this.$store.state.searchDataStore) \n if(this.$store.state.searchDataStore.length){\n if(this.$store.state.searchFlag==2&&i<=data.fields.length){ \n console.log(66) \n this.$store.state.searchDataStore.forEach(item=>{\n if(item.appId==this.appId&&item.viewId==this.viewId){ \n Object.keys(item).forEach((key)=>{\n if(key==fld.name){\n console.log('测试数据'+item[key]) \n this.$set(data.fields[i],'value',item[key])\n if(i==data.fields.length-1){\n setTimeout(()=>{\n this.$store.commit('searchFlag',1)\n },800)\n console.log(this.$parent.$parent)\n this.$parent.$parent.openSearchTemplate()//打开高级查询按钮\n }\n }\n })\n }\n });\n }\n } \n \n console.log(fld)\n if (id == fld.id) return fld;\n } \n \n return this.formdata;\n },\n form(data) {\n let that = this;\n // debugger\n if (data) {\n return {\n methods: {\n findField: that.findField,\n // findField(id) {\n // for (let i = 0; i < data.fields.length; i++) {\n // let fld = data.fields[i];\n // if (id == fld.id) return fld;\n // }\n // return null;\n // },\n refresh: this.refresh,\n getAllFields: this.getAllFields,\n },\n template: \"