{"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\\components\\form\\dataTemplate\\BaseSetting.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\dataTemplate\\BaseSetting.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":["import \"core-js/modules/es6.function.name\";\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//\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//\nvar FormFlowDialog = function FormFlowDialog() {\n  return import(\"@/components/form/dataTemplate/FormFlowDialog.vue\");\n};\n\nvar TemplateHtmlEdit = function TemplateHtmlEdit() {\n  return import(\"@/components/form/dataTemplate/TemplateHtmlEdit.vue\");\n};\n\nvar TemplateAddToMenu = function TemplateAddToMenu() {\n  return import(\"@/components/form/dataTemplate/TemplateAddToMenu.vue\");\n};\n\nvar EipFormDialog = function EipFormDialog() {\n  return import(\"@/components/dialog/EipFormDialog.vue\");\n};\n\nimport utils from \"@/hotent-ui-util.js\";\nexport default {\n  name: \"base-setting\",\n  props: [\"data\", \"focusAlias\", \"showShareBtn\"],\n  components: {\n    FormFlowDialog: FormFlowDialog,\n    TemplateHtmlEdit: TemplateHtmlEdit,\n    TemplateAddToMenu: TemplateAddToMenu,\n    EipFormDialog: EipFormDialog\n  },\n  data: function data() {\n    return {\n      dataTemplate: {\n        alias: \"\"\n      },\n      templates: [],\n      isEditable: true,\n      cmOptions1: {\n        value: \"\",\n        mode: \"groovy\",\n        readOnly: false,\n        smartIndent: true,\n        tabSize: 1,\n        theme: 'base16-light',\n        lineNumbers: true,\n        line: true\n      },\n      cmOptions2: {\n        value: \"\",\n        mode: \"groovy\",\n        readOnly: false,\n        smartIndent: true,\n        tabSize: 1,\n        theme: 'base16-light',\n        lineNumbers: true,\n        line: true\n      }\n    };\n  },\n  mounted: function mounted() {\n    this.dataTemplate = this.data.bpmDataTemplate;\n    this.dataTemplate.beforeScript = this.dataTemplate.beforeScript || \"\";\n    this.dataTemplate.afterScript = this.dataTemplate.afterScript || \"\";\n    this.templates = this.data.templates;\n    this.initData();\n  },\n  watch: {\n    focusAlias: function focusAlias(newVal, oldVal) {\n      if (newVal) {\n        document.getElementsByName(\"dataAlias\")[0].focus();\n        document.getElementsByName(\"dataAlias\")[0].style.border = \"1px solid red\";\n      } else {\n        document.getElementsByName(\"dataAlias\")[0].style.border = \"\";\n      }\n    },\n    'dataTemplate.allowShare': function dataTemplateAllowShare(newVal, oldVal) {\n      if (newVal) {\n        this.$emit('update:showShareBtn', newVal);\n      }\n    }\n  },\n  methods: {\n    clearMobileForm: function clearMobileForm() {\n      this.dataTemplate.mobileFormAlias = \"\";\n      this.dataTemplate.mobileFormName = \"\";\n    },\n    selectMobileForm: function selectMobileForm() {\n      this.$refs.eipFormDialog.showDialog();\n    },\n    dialogConfirm: function dialogConfirm(data) {\n      if (data && data.length > 0) {\n        data = data[0];\n        this.dataTemplate.mobileFormAlias = data.formKey;\n        this.dataTemplate.mobileFormName = data.name;\n      }\n    },\n    //初始化处理\n    initData: function initData() {\n      if (this.dataTemplate.id) {\n        this.isEditable = false;\n      }\n\n      if (this.dataTemplate.needPage === null) {\n        this.dataTemplate.needPage = 1;\n\n        if (this.dataTemplate.pageSize == null) {\n          this.dataTemplate.pageSize = 20;\n        }\n      }\n\n      if (this.dataTemplate.allowShare == null) {\n        this.dataTemplate.allowShare = 2;\n      }\n\n      if (this.dataTemplate.resetTemp == null) {\n        this.$set(this.dataTemplate, \"resetTemp\", 1);\n      }\n    },\n    //显示流程选择器\n    showFormFlowDialog: function showFormFlowDialog() {\n      this.$refs.formFlowDialog.showDialog({});\n    },\n    //回填绑定流程\n    formFlowDialogOnConfirm: function formFlowDialogOnConfirm(selection) {\n      if (!selection || selection.length == 0) {\n        this.dataTemplate.defId = \"\";\n        this.dataTemplate.subject = \"\";\n      } else {\n        this.dataTemplate.defId = selection[0].defKey;\n        this.dataTemplate.subject = selection[0].name;\n      }\n    },\n    //显示模板编辑器\n    showHtmlEditDialog: function showHtmlEditDialog() {\n      this.$refs.templateHtmlEdit.showDialog({});\n    },\n    //显示添加到菜单dialog\n    showAddToMenuDialog: function showAddToMenuDialog(type) {\n      this.$refs.templateAddToMenu.showDialog(type, \"addReport\");\n    },\n    //清除绑定流程\n    clearFormFlow: function clearFormFlow() {\n      this.dataTemplate.defId = \"\";\n      this.dataTemplate.subject = \"\";\n    },\n    validateForm: function validateForm(callback) {\n      var _this = this;\n\n      utils.validateForm(this, \"editDataTemplateForm\").then(function (r) {\n        callback();\n      }).catch(function (items) {\n        _this.$message.error(\"\\u8BF7\\u5B8C\\u6574\\u586B\\u5199\\u62A5\\u8868\\u57FA\\u672C\\u4FE1\\u606F\\u3002\");\n      });\n    }\n  },\n  created: function created() {\n    this.$validator = this.$root.$validator;\n  }\n};",null]}