{"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\\system\\Enclosure\\attachmentConfig.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\system\\Enclosure\\attachmentConfig.vue","mtime":1675071993116},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 eipFlowDialog = function eipFlowDialog() {\n  return import('@/components/dialog/EipFlowDialog.vue');\n};\n\nimport ConfigDialog from '@/components/dialog/ConfigDialog';\nexport default {\n  components: {\n    eipFlowDialog: eipFlowDialog,\n    ConfigDialog: ConfigDialog\n  },\n  data: function data() {\n    return {\n      dialogVisible: false,\n      submitUrl: '',\n      insertUrl: '${portal}/file/fileConfig/v1/insertFileConfig',\n      updateUrl: '${portal}/file/fileConfig/v1/updateFileConfig',\n      data: [],\n      querySearch: [{\n        label: '名称',\n        prop: 'c.name_'\n      }],\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      attachmentConfig: {\n        allowDelete: 1,\n        storageName: '',\n        allowMultiple: 1\n      },\n      isSubmit: false\n    };\n  },\n  mounted: function mounted() {\n    this.$validator = this.$root.$validator;\n  },\n  methods: {\n    handleSelectMsgkind: function handleSelectMsgkind(row) {\n      this.attachmentConfig.storageName = row.name;\n      this.attachmentConfig.storageId = row.id;\n      this.$forceUpdate();\n    },\n    openTemplateKind: function openTemplateKind() {\n      this.$refs.msgkind.open();\n    },\n    showFlowDialog: function showFlowDialog() {\n      this.$refs.eipFlowDialog.showDialog();\n    },\n    showDialog: function showDialog(id) {\n      var _this = this;\n\n      if (id) {\n        this.$http.get('${portal}/file/fileConfig/v1/getOneById?id=' + id).then(function (resp) {\n          _this.attachmentConfig = resp.data;\n          _this.dialogVisible = true;\n          _this.submitUrl = _this.updateUrl;\n        }, function (error) {\n          reject(error);\n        });\n      } else {\n        this.attachmentConfig = {\n          allowMultiple: 1,\n          allowDelete: 1\n        };\n        this.dialogVisible = true;\n        this.submitUrl = this.insertUrl;\n      }\n    },\n    beforeCloseDialog: function beforeCloseDialog() {\n      this.attachmentConfig = {};\n      this.submitUrl = '';\n      this.dialogVisible = false;\n    },\n    handleClose: function handleClose(flow) {\n      this.selectedFlows.splice(this.selectedFlows.indexOf(flow), 1);\n    },\n    loadData: function loadData(param, cb) {\n      var _this2 = this;\n\n      this.$http.post('${portal}/file/fileConfig/v1/queryPage', param).then(function (resp) {\n        var response = resp.data;\n        _this2.data = response.rows;\n        _this2.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      }, function (error) {\n        reject(error);\n      }).finally(function () {\n        return cb();\n      });\n    },\n    beforeSaveData: function beforeSaveData() {\n      this.isSubmit = true;\n    },\n    afterSaveData: function afterSaveData() {\n      var _this3 = this;\n\n      setTimeout(function () {\n        _this3.beforeCloseDialog();\n\n        _this3.$refs.htTable.load();\n      }, 500);\n    }\n  }\n};",null]}