{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\control\\htDialogBtn.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\control\\htDialogBtn.vue","mtime":1667327529137},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\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\r\nimport utils from \"@/utils.js\";\r\nimport { Message, Loading } from 'element-ui';\r\nimport { Base64 } from \"js-base64\";\r\nimport i18n from '@/lang/index.js';\r\nimport req from \"@/request.js\";\r\n\r\nexport default {\r\n  name: \"ht-dialog-btn\",\r\n  props: [\"validate\", \"value\", \"name\", \"permission\",\"icon\" ,\"btnName\" ,\"attr\",\"htCustomScript\",\"isShowInput\"],\r\n  data() {\r\n    return {\r\n      unwatchAry: [],\r\n      inputValue:\"\",\r\n      content:\"\"\r\n    };\r\n  },\r\n  components: {\r\n\r\n  },\r\n  computed: {\r\n    inputVal: {\r\n      get() {\r\n        return this.value;\r\n      },\r\n      set(val) {\r\n        this.$emit(\"input\", val);\r\n      }\r\n    },\r\n    inputWriteable: function() {\r\n      return utils.getWriteable(this.permission);\r\n    },\r\n    inputValidate: function() {\r\n      var validateObj= this.$store.state.index.validate;\r\n      return utils.addRequiredOrNot(this.permission, this.validate ,validateObj ,this);\r\n    },\r\n    inputName: function() {\r\n      let labeldesc = \"\";\r\n      if(this.$slots && this.$slots.labeldesc && this.$slots.labeldesc[0].children && this.$slots.labeldesc[0].children[0].text){\r\n        labeldesc = this.$slots.labeldesc[0].children[0].text;\r\n        return this.name ? this.name : utils.getName()+ \"-\" +labeldesc;\r\n      }else{\r\n        return this.name ? this.name : utils.getName();\r\n      }\r\n    }\r\n  },\r\n  mounted() {\r\n    if(this.value){\r\n      this.inputValue = this.value;\r\n    }\r\n  },\r\n  destroyed() {\r\n\r\n  },\r\n  created() {\r\n    this.$validator = this.$root.$validator;\r\n  },\r\n  methods: {\r\n    clear(){\r\n\t\tthis.inputValue = \"\";\r\n\t},\r\n\tcustomEvilJS(){\r\n\t\tlet _me = this;\r\n\t\tlet htCustomScript = Base64.decode(this.htCustomScript);\r\n\t\tconst formVm = utils.getOnlineFormInstance(_me);\r\n\t\tfunction evil() {\r\n\t\t\tlet Fn = Function('req','data','i18n','Message','Loading','formVm', htCustomScript); //一个变量指向Function，防止有些前端编译工具报错\r\n\t\t\tlet result = Fn(req,formVm.data,i18n,Message,Loading,formVm);\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tlet resultValue = evil();\r\n\t\tif(resultValue){\r\n\t\t\tthis.inputValue = resultValue;\r\n\t\t\tthis.$emit(\"input\", resultValue);\r\n\t\t}\r\n\t}\r\n\t\r\n  }\r\n};\r\n",null]}