{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\form\\customDialog\\CustomDialogShowTree.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\form\\customDialog\\CustomDialogShowTree.vue","mtime":1675071992928},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nconst eipTreeDialog = () => import(\"@/views/form/customDialog/EipTreeDialog.vue\");\r\nexport default {\r\n  name: \"custom-dialog-show-tree\",\r\n  components:{eipTreeDialog},\r\n  props: {\r\n    title: {\r\n      type: String,\r\n      required: true,\r\n      default: \"自定义对话框树形预览\"\r\n    },\r\n    //自定义对话框的别名\r\n    alias: {\r\n      type: String,\r\n      required: true\r\n    },\r\n    //自定义对话框的配置\r\n    customDialog: {\r\n      type: Object,\r\n      required: true\r\n    },\r\n    ispreview: {\r\n      type: Boolean,\r\n      required: false,\r\n      default: true\r\n    },\r\n  },\r\n  data() {\r\n    return {\r\n      dialogVisible:false,//是否显示对话框\r\n      mapParam:{},//动态传入的条件参数\r\n    }\r\n  },\r\n  methods: {\r\n    //显示对话框\r\n    showDialog() {\r\n      this.mapParam={};\r\n      this.dialogVisible=true;\r\n      for(let i=this.customDialog.conditionfield.length - 1; i >= 0;i--){\r\n        //如果条件字段为data类型，则控制器的类型为日期类型\r\n        if(this.customDialog.conditionfield[i].dbType==\"date\"){\r\n          this.customDialog.conditionfield[i].type=\"date\";\r\n        }else{\r\n          this.customDialog.conditionfield[i].type=\"text\";\r\n        }\r\n      }\r\n    },\r\n    //确认对话框\r\n    handleSave(){\r\n      let mapParam = this.mapParam;\r\n      for(let i=0;i<this.customDialog.conditionfield.length;i++){\r\n        //得到输入的条件字段值\r\n        let val = this.customDialog.conditionfield[i].paramVal;\r\n        if (!val) {\r\n          continue;\r\n        }\r\n        //得到条件字段KEY\r\n        let key = this.customDialog.conditionfield[i].field;\r\n        mapParam[key] = val;\r\n      }\r\n      setTimeout(()=>{\r\n        this.$refs.eipTreeDialog.showDialog(); \r\n      });\r\n    },\r\n    //关闭对话框\r\n    handleClose() {\r\n      this.dialogVisible = false;\r\n    },\r\n    treeDialogOnConfirm(data){\r\n       this.$emit('onConfirm',data);\r\n    }\r\n  },\r\n}\r\n",null]}