{"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\\WatermarkTypeDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\WatermarkTypeDialog.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//\n//\nimport flow from \"@/api/flow.js\";\nimport eipSysTypeDialog from \"@/components/dialog/EipSysTypeDialog.vue\";\nexport default {\n  name: \"watermark-type-dialog\",\n  props: {\n    id: String\n  },\n  components: {\n    eipSysTypeDialog: eipSysTypeDialog\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/bpmWatermarkType/v1/remove\"\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.getWatermarkTypeList(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.typeDialog.showDialog();\n    },\n    dialogOnConfirm: function dialogOnConfirm(data) {\n      var _this2 = this;\n\n      var param = data.filter(function (item) {\n        return item.isParent != 'true';\n      }).map(function (item) {\n        return {\n          typeId: item.id,\n          watermarkId: _this2.id,\n          typeName: item.name\n        };\n      });\n      flow.isExistWatermarkType(param).then(function (data) {\n        if (data.state) {\n          if (data.message === \"设置成功\") {\n            flow.saveWatermarkType(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.saveWatermarkType(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.saveWatermarkType(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]}