{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\customView\\SubImportMergeDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\customView\\SubImportMergeDialog.vue","mtime":1675071992131},{"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\r\nimport { codemirror } from \"vue-codemirror\";\r\nconst Base64 = require(\"js-base64\").Base64;\r\n\r\nexport default {\r\n  name: \"sub-import-merge-dialog\",\r\n  components: {\r\n    codemirror,\r\n  },\r\n  props: [\"expression\"],\r\n  data() {\r\n    return {\r\n      funcExp: null,\r\n      dialogVisible: false,\r\n      cmOptions: {\r\n        showCursorWhenSelecting: true,\r\n        value: \"\",\r\n        mode: \"javascript\",\r\n        readOnly: false,\r\n        smartIndent: true,\r\n        tabSize: 2,\r\n        theme: \"base16-light\",\r\n        lineNumbers: true,\r\n        line: true,\r\n        autofocus: true,\r\n        inputStyle: \"textarea\",\r\n      },\r\n    };\r\n  },\r\n  watch: {\r\n    dialogVisible: {\r\n      handler: function (newVal) {\r\n        if (newVal) {\r\n          if (this.expression) {\r\n            try {\r\n              this.funcExp = Base64.decode(this.expression);\r\n            } catch (err) {}\r\n          }\r\n        } else {\r\n          this.funcExp = null;\r\n        }\r\n      },\r\n      immediate: true,\r\n    },\r\n  },\r\n  methods: {\r\n    // 打开对话框\r\n    open() {\r\n      this.dialogVisible = true;\r\n    },\r\n    // 点击确定按钮\r\n    sure() {\r\n      const expInBase64 = Base64.encode(this.funcExp);\r\n      this.$emit(\"updateExpression\", expInBase64);\r\n      this.dialogVisible = false;\r\n    },\r\n  },\r\n};\r\n",null]}