研发图纸文件管理系统-前端项目
he wei
2023-02-08 a1402d534abc5fbb5504631ad5fcd7ddfb69ad89
U 产品列表 提交反馈
1个文件已修改
49 ■■■■ 已修改文件
src/pages/resourceManage/product/list.vue 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/resourceManage/product/list.vue
@@ -382,10 +382,14 @@
      :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>
@@ -404,6 +408,9 @@
  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";
@@ -412,7 +419,6 @@
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");
@@ -919,8 +925,41 @@
    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;