| | |
| | | :width="800" |
| | | title="问题反馈" |
| | | :destroyOnClose="true" |
| | | :footer="false" |
| | | @cancel="feedbackCancel" |
| | | @ok="feedbackOk" |
| | | > |
| | | <feedback-form :prod-data="customProd"></feedback-form> |
| | | <feedback-form |
| | | :prod-data="customProd" |
| | | @cancel="feedbackCancel" |
| | | @ok="feedbackOk" |
| | | ></feedback-form> |
| | | </a-modal> |
| | | </div> |
| | | </template> |
| | |
| | | getLogList, |
| | | getLockedList, |
| | | } from "./apis"; |
| | | import { |
| | | submitFeedback, |
| | | } from "@/pages/workplace/apis"; |
| | | import { productSoftwareSubmit } from "../software/apis"; |
| | | import { zipParse } from "@/pages/workplace/myDraw/apis"; |
| | | import { mapGetters } from "vuex"; |
| | |
| | | |
| | | import createWs from "@/assets/js/websocket"; |
| | | import DiffList from "@/pages/components/diffList"; |
| | | import ApiTable from "../../../components/table/api/ApiTable.vue"; |
| | | import FeedbackForm from "../components/feedbackForm.vue"; |
| | | const WSMixin = createWs("product"); |
| | | |
| | |
| | | feedbackCancel() { |
| | | this.feedbackShow = false; |
| | | }, |
| | | feedbackOk() { |
| | | this.feedbackShow = false; |
| | | feedbackOk(data) { |
| | | let { |
| | | content, |
| | | multipartFile, |
| | | productId, |
| | | receiverIds, |
| | | receiverNames, |
| | | senderId, |
| | | subVersion, |
| | | } = data; |
| | | const formData = new FormData(); |
| | | formData.append("multipartFile", multipartFile); |
| | | formData.append( |
| | | "feedbackJson", |
| | | JSON.stringify({ |
| | | content, |
| | | productId, |
| | | receiverIds, |
| | | receiverNames, |
| | | senderId, |
| | | subVersion, |
| | | }) |
| | | ); |
| | | submitFeedback(formData).then((res) => { |
| | | let { code, data } = res.data; |
| | | if (code && data) { |
| | | this.$message.success("反馈成功"); |
| | | this.feedbackShow = false; |
| | | this.flag = 0; |
| | | this.page = 1; |
| | | this.searchData(); |
| | | } else { |
| | | this.$message.error("反馈失败"); |
| | | } |
| | | }); |
| | | }, |
| | | custom(data) { |
| | | const { id, parentCode, parentModel, parentName } = this.customProd; |