{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\FormTemplateEditDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\form\\FormTemplateEditDialog.vue","mtime":1675071992913},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n props: [\"dialogData\"],\n data: function data() {\n return {\n title: \"\",\n dialogVisible: false,\n isSubmit: false,\n form: {\n html: \"\",\n alias: \"\",\n templateDesc: \"\",\n templateName: \"\",\n templateType: \"\",\n source: \"\"\n },\n templateType: [{\n key: \"macro\",\n value: \"宏模板\"\n }, {\n key: \"queryDataTemplate\",\n value: \"查询模板\"\n }, {\n key: \"dataTemplate\",\n value: \"业务数据模板\"\n }, {\n key: \"formDesign\",\n value: \"表单设计模板\"\n }],\n cmOptions: {\n value: \"\",\n mode: \"vue\",\n readOnly: false,\n tabSize: 2,\n theme: 'base16-light',\n lineNumbers: true,\n line: true\n }\n };\n },\n methods: {\n //保存地址\n saveUrl: function saveUrl() {\n return window.context.form + \"/form/template/v1/save\";\n },\n //保存前\n beforeSaveData: function beforeSaveData() {\n this.isSubmit = true;\n\n if (this.form.source != \"system\") {\n this.form.source = \"custom\";\n }\n },\n //保存后\n afterSaveData: function afterSaveData() {\n this.dialogVisible = false;\n this.init();\n this.$emit(\"loadData\");\n },\n init: function init() {\n this.form = {\n html: \"\",\n alias: \"\",\n templateDesc: \"\",\n templateName: \"\",\n templateType: \"\",\n source: \"\"\n };\n },\n //关闭对话\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.$emit(\"loadData\");\n this.init();\n },\n //打开对话\n openDialog: function openDialog() {\n this.title = this.dialogData.title;\n\n if (this.dialogData.formData) {\n this.form = this.dialogData.formData;\n }\n\n this.dialogVisible = true;\n }\n }\n};",null]}