{"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\\bizComponents\\dataTemplate\\TemplateDraft.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\bizComponents\\dataTemplate\\TemplateDraft.vue","mtime":1675071991350},{"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/web.dom.iterable\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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, mapActions } from \"vuex\";\nimport form from \"@/api/form.js\";\nexport default {\n  name: \"templateDraft\",\n  props: [\"tempAlias\", \"dataViewFlag\", \"openType\"],\n  data: function data() {\n    return {\n      alias_new: \"statement\",\n      title: \"\",\n      fullscreenLoading: true,\n      checkBoxData: [],\n      pageBean: {\n        page: 1,\n        pageSize: 10,\n        showTotal: true,\n        total: 0\n      },\n      data: [],\n      selection: [],\n      ignoredAlias: [\"appCenterFront\"]\n    };\n  },\n  computed: {\n    formDeleteUrl: function formDeleteUrl() {\n      return \"\".concat(window.context.form, \"/form/dataTemplate/v1/remove\");\n    }\n  },\n  methods: {\n    close: function close() {\n      var isSingle = \"/true\"; //数据视图随机添加到其他菜单下面时获取当前菜单的别名  并且当前数据视图不是表单里的数据视图  dataViewFlag\n\n      if (sessionStorage.menu_alias && this.dataViewFlag == \"false\" && !this.ignoredAlias.includes(sessionStorage.menu_alias) && this.$route.query.isNew != \"true\") {\n        this.alias_new = sessionStorage.menu_alias;\n        isSingle = \"\";\n      } else if (this.$route.query.isNew == \"true\") {\n        //在前端菜单中新窗口打开\n        window.close();\n      }\n\n      var path = \"/\" + this.alias_new + \"/template/preview/\" + this.tempAlias + isSingle;\n      this.$router.push(path); // this.$router.go(-1);\n    },\n    remove: function remove() {\n      var _this = this;\n\n      if (!this.selection || this.selection.length <= 0) {\n        this.$message.warning(\"请至少选择一项\");\n        return;\n      }\n\n      var ids = [];\n      this.selection.forEach(function (item) {\n        ids.push(item.id);\n      });\n      this.$confirm(\"确定删除草稿吗？\").then(function () {\n        form.removeTempDraft(ids.join(\",\")).then(function (resp) {\n          if (resp.state) {\n            _this.$message.success(resp.message);\n\n            _this.loadData();\n          } else {\n            _this.$message.error(resp.message);\n          }\n        });\n      }).catch(function () {});\n    },\n    handleChecked: function handleChecked(selection) {\n      this.selection = selection;\n    },\n    edit: function edit(row) {\n      //判断是不是发布到前端菜单\n      if (window.sessionStorage.menu_alias && this.dataViewFlag == \"false\" && this.$route.query.isNew != \"true\") {\n        this.$router.push(\"/\".concat(sessionStorage.menu_alias, \"/template/form/\").concat(row.tempAlias, \"/editDraft/true?draftId=\").concat(row.id));\n      } else if (this.$route.query.isNew == \"true\") {\n        this.$router.push(\"/statement/template/form/\".concat(row.tempAlias, \"/editDraft/true/new?draftId=\").concat(row.id));\n      } else {\n        this.$router.push(\"/statement/template/form/\".concat(row.tempAlias, \"/editDraft/true?draftId=\").concat(row.id));\n      }\n    },\n    //重置\n    reset: function reset() {\n      this.title = \"\";\n      this.loadData();\n    },\n    handleSizeChange: function handleSizeChange(size) {\n      this.pageBean.pageSize = size;\n      this.loadData();\n    },\n    handleCurrentChange: function handleCurrentChange(currentPage) {\n      this.pageBean.page = currentPage;\n      this.loadData();\n    },\n    loadData: function loadData() {\n      var _this2 = this;\n\n      var queryFilter = {\n        pageBean: this.pageBean,\n        querys: []\n      };\n\n      if (this.tempAlias) {\n        var query = {\n          property: \"tempAlias\",\n          value: this.tempAlias,\n          group: \"main\",\n          operation: \"EQUAL\",\n          relation: \"AND\"\n        };\n        queryFilter.querys.push(query);\n      }\n\n      if (this.title) {\n        var _query = {\n          property: \"title\",\n          value: this.title,\n          group: \"main\",\n          operation: \"LIKE\",\n          relation: \"AND\"\n        };\n        queryFilter.querys.push(_query);\n      }\n\n      form.getMyTemplateDraftList(queryFilter).then(function (resp) {\n        _this2.pageBean.page = resp.page;\n        _this2.pageBean.pageSize = resp.pageSize;\n        _this2.pageBean.total = resp.total;\n        _this2.data = resp.rows;\n        _this2.fullscreenLoading = false;\n      });\n    }\n  },\n  created: function created() {\n    // this.tempAlias = this.$route.query.tempAlias;\n    this.loadData();\n  }\n};",null]}