{"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\\flow\\WatermarkSetProcessDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\WatermarkSetProcessDialog.vue","mtime":1675071991913},{"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//\nimport flow from \"@/api/flow.js\";\nimport eipFlowDialog from \"@/components/dialog/EipFlowDialog.vue\";\nexport default {\n  name: \"watermark-set-process-dialog\",\n  props: {\n    id: String\n  },\n  components: {\n    eipFlowDialog: eipFlowDialog\n  },\n  data: function data() {\n    return {\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 20,\n        total: 0\n      },\n      dialogVisible: false,\n      title: \"设置流程\",\n      deleteUrl: window.context.bpmModel + \"/bpmModel/bpmWatermarkProcess/v1/remove\",\n      defNameJson: []\n    };\n  },\n  methods: {\n    loadData: function loadData(param, cb) {\n      var _this = this;\n\n      if (!param.querys) {\n        param.querys = [];\n      }\n\n      if (this.id) {\n        param.querys.push({\n          property: \"watermark_id_\",\n          value: this.id,\n          group: \"filter\",\n          operation: \"EQUAL\",\n          relation: \"AND\"\n        });\n      }\n\n      flow.getWatermarkProcessList(param).then(function (data) {\n        _this.data = data.rows;\n        _this.pageResult = {\n          page: data.page,\n          pageSize: data.pageSize,\n          total: data.total\n        };\n      }).finally(function () {\n        cb && cb();\n      });\n    },\n    showDialog: function showDialog() {\n      this.dialogVisible = true;\n    },\n    handleClose: function handleClose() {\n      this.dialogVisible = false;\n    },\n    edit: function edit() {\n      this.$refs.eipFlowDialog.showDialog();\n    },\n    dialogOnConfirm: function dialogOnConfirm(data) {\n      var _this2 = this;\n\n      var param = data.map(function (item) {\n        return {\n          procDefId: item.defId,\n          procDefKey: item.defKey,\n          procDefName: item.name,\n          watermarkId: _this2.id\n        };\n      });\n      flow.isExistWatermarkProcess(param).then(function (data) {\n        if (data.state) {\n          if (data.message === \"设置成功\") {\n            flow.saveWatermarkProcess(param, 1).then(function (data) {\n              if (data.state) {\n                _this2.$message.success(\"添加成功\");\n\n                _this2.$refs.htTable.load();\n              }\n            });\n          } else {\n            _this2.$confirm(data.message + '，是否保存至此？').then(function () {\n              flow.saveWatermarkProcess(param, 1).then(function (data) {\n                if (data.state) {\n                  _this2.$message.success(\"添加成功\");\n\n                  _this2.$refs.htTable.load();\n                }\n              });\n            }).catch(function () {\n              flow.saveWatermarkProcess(param, 0).then(function (data) {\n                if (data.state) {\n                  _this2.$message.success(\"添加成功\");\n\n                  _this2.$refs.htTable.load();\n                }\n              });\n            });\n          }\n        }\n      });\n    }\n  }\n};",null]}