{"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\\SecurityCenter\\PwdStrategy.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\SecurityCenter\\PwdStrategy.vue","mtime":1675071992772},{"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//\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//\nimport uc from '@/api/uc.js';\nimport utils from '@/hotent-ui-util.js';\nexport default {\n  name: 'sys-pwd-strategy',\n  components: {},\n  props: {},\n  computed: {},\n  data: function data() {\n    return {\n      fullscreenLoading: false,\n      form: {},\n      options: [{\n        key: 1,\n        value: '无限制'\n      }, {\n        key: 2,\n        value: '必须包含数字、字母'\n      }, {\n        key: 3,\n        value: '必须包含数字、字母、特殊字符'\n      }, {\n        key: 4,\n        value: '必须包含数字、大小字母、特殊字符'\n      }]\n    };\n  },\n  mounted: function mounted() {\n    var _this = this;\n\n    uc.getDefaultPwdStrategy().then(function (data) {\n      if (data) {\n        var form = data;\n\n        if (form.enable == 1) {\n          form.enable = true;\n        } else {\n          form.enable = false;\n        } //\n\n\n        _this.form = form;\n      }\n    });\n  },\n  methods: {\n    confirm: function confirm() {\n      var _this2 = this;\n\n      if (this.form.initPwd.length > 30) {\n        this.$message({\n          type: 'warning',\n          message: '内容超出输入限制'\n        });\n        return false;\n      }\n\n      console.log(this.form);\n      utils.validateForm(this, \"form\").then(function (r) {\n        _this2.fullscreenLoading = true;\n        var param = {};\n        Object.assign(param, _this2.form);\n        param.id = \"1\";\n\n        if (param.enable) {\n          param.enable = 1;\n        } else {\n          param.enable = 0;\n        }\n\n        uc.saveDefaultPwdStrategy(param).then(function (data) {\n          _this2.fullscreenLoading = false;\n\n          if (data.state) {\n            _this2.$message.success(data.message);\n          } else {\n            _this2.$message.error(data.message || \"保存失败\");\n          }\n        }, function (error) {\n          _this2.fullscreenLoading = false;\n\n          _this2.$message.error(error || \"保存失败\");\n        });\n      }).catch(function (reason) {\n        _this2.fullscreenLoading = false;\n\n        _this2.$message.error(\"表单校验不通过，请检查表单\");\n      });\n    }\n  },\n  created: function created() {}\n};",null]}