{"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\\imMange\\module\\addAndUpdateQgroup.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\imMange\\module\\addAndUpdateQgroup.vue","mtime":1675071992960},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from \"vuex\";\nimport uc from '@/api/instantMessag.js';\nexport default {\n  name: \"addAndUpdateQgroup\",\n  props: ['currentRow'],\n  data: function data() {\n    return {\n      dialogVisible: false,\n      data: [],\n      imageUrl: \"\",\n      form: {\n        name: \"\",\n        file: null\n      }\n    };\n  },\n  computed: _objectSpread({}, mapState({\n    currentUser: function currentUser(state) {\n      return state.login.currentUser;\n    }\n  })),\n  methods: {\n    init: function init() {\n      var _this$currentRow, _this$currentRow2;\n\n      this.form.name = (_this$currentRow = this.currentRow) === null || _this$currentRow === void 0 ? void 0 : _this$currentRow.name;\n      this.imageUrl = (_this$currentRow2 = this.currentRow) === null || _this$currentRow2 === void 0 ? void 0 : _this$currentRow2.photo;\n    },\n    addQgroup: function addQgroup() {\n      var _this = this;\n\n      var formData = new FormData(),\n          _this$form = this.form,\n          name = _this$form.name,\n          file = _this$form.file;\n      formData.append('file', file);\n      formData.append('name', name);\n      var text = this.currentRow ? '编辑' : '新建',\n          apiFun = this.currentRow ? 'editFgroupList' : 'addQgroup';\n      uc[apiFun](formData).then(function (res) {\n        if (res.state == true) {\n          _this.$message.success(\"\".concat(text, \"\\u7FA4\\u6210\\u529F\"));\n\n          _this.$emit('onSuccess');\n        }\n\n        _this.dialogVisible = false;\n      });\n    },\n    choseFile: function choseFile(file) {\n      this.imageUrl = URL.createObjectURL(file.raw);\n      this.form.file = file.raw;\n    },\n    beforeAvatarUpload: function beforeAvatarUpload(file) {\n      var isJPG = file.type.includes('image');\n      var isLt2M = file.size / 1024 / 1024 < 10;\n\n      if (!isJPG) {\n        this.$message.error('只能上传图片!');\n      }\n\n      if (!isLt2M) {\n        this.$message.error('上传图片大小不能超过 10MB!');\n      }\n\n      return isJPG && isLt2M;\n    }\n  }\n};",null]}