quisk.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import addPhotoFile from "./addPhotoFile.vue";
  2. import addPhotoFileAll from "./addPhotoFileAll.vue";
  3. import AddCaseFile from "./addCaseFile.vue";
  4. import AddScenes from "./addScenes.vue";
  5. import ShareCase from "./share.vue";
  6. import EditEshapeTable, {
  7. EshapeTableContent,
  8. } from "./draw/editEshapeTable.vue";
  9. import SceneList from "./sceneList.vue";
  10. import SelectFuseImage, { FuseImage } from "./draw/selectFuseImage.vue";
  11. import SelectMapImage, { MapImage } from "./draw/selectMapImage.vue";
  12. import { quiskMountFactory } from "@/helper/mount";
  13. import { nextTick } from "vue";
  14. export const addCaseFile = quiskMountFactory(AddCaseFile, {
  15. title: "上传附件",
  16. width: 500,
  17. });
  18. export const addCaseImgFile = quiskMountFactory(addPhotoFile, {
  19. title: "上传照片",
  20. width: 500,
  21. });
  22. export const addCaseImgFileAll = quiskMountFactory(addPhotoFileAll, {
  23. title: "上传照片",
  24. width: 500,
  25. });
  26. export const addCaseScenes = quiskMountFactory(AddScenes, {
  27. title: "添加场景",
  28. width: 800,
  29. });
  30. const editEshapeTableRaw = quiskMountFactory(EditEshapeTable, {
  31. title: "表格内容编辑",
  32. })<EshapeTableContent>;
  33. export const editEshapeTable = (
  34. props: Parameters<typeof editEshapeTableRaw>["0"]
  35. ) =>
  36. props.track
  37. ? editEshapeTableRaw(props, ({ submit }) => nextTick().then(submit))
  38. : editEshapeTableRaw(props);
  39. export const showCaseScenes = quiskMountFactory(SceneList, {
  40. title: "案件场景管理",
  41. width: 900,
  42. notSubmit: true,
  43. hideFloor: true,
  44. });
  45. export const selectFuseImage = quiskMountFactory(SelectFuseImage, {
  46. title: "选择户型图",
  47. width: 1300,
  48. })<FuseImage>;
  49. export const selectMapImage = quiskMountFactory(SelectMapImage, {
  50. title: "选择地址",
  51. width: 588,
  52. })<MapImage>;
  53. export const shareCase = quiskMountFactory(ShareCase, {
  54. title: "分享",
  55. enterText: "复制链接及密码",
  56. })<string>;