quisk.ts 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 SelectMapleaftImages from "./draw/selectMapImagess.vue";
  12. // import SelectMapleaftImages, { MapImage } from "./draw/selectMapleaftImages.vue";
  13. import SelectMapImage, { MapImage } from "./draw/selectMapImage.vue";
  14. import { quiskMountFactory } from "@/helper/mount";
  15. import { nextTick } from "vue";
  16. import { strToParams } from "@/util";
  17. const params = strToParams(window.location.search);
  18. export const addCaseFile = quiskMountFactory(AddCaseFile, {
  19. title: "上传附件",
  20. width: 500,
  21. });
  22. export const addCaseImgFile = quiskMountFactory(addPhotoFile, {
  23. title: "上传照片",
  24. width: 500,
  25. });
  26. export const addCaseImgFileAll = quiskMountFactory(addPhotoFileAll, {
  27. title: "上传照片",
  28. width: 500,
  29. });
  30. export const addCaseScenes = quiskMountFactory(AddScenes, {
  31. title: "添加场景",
  32. width: 800,
  33. });
  34. const editEshapeTableRaw = quiskMountFactory(EditEshapeTable, {
  35. title: "表格内容编辑",
  36. })<EshapeTableContent>;
  37. export const editEshapeTable = (
  38. props: Parameters<typeof editEshapeTableRaw>["0"]
  39. ) =>
  40. props.track
  41. ? editEshapeTableRaw(props, ({ submit }) => nextTick().then(submit))
  42. : editEshapeTableRaw(props);
  43. export const showCaseScenes = quiskMountFactory(SceneList, {
  44. title: "案件场景管理",
  45. width: 900,
  46. notSubmit: true,
  47. hideFloor: true,
  48. });
  49. export const selectFuseImage = quiskMountFactory(SelectFuseImage, {
  50. title: "选择户型图",
  51. width: 1300,
  52. })<FuseImage>;
  53. console.log('params.testMap', params)
  54. export const selectMapImage = quiskMountFactory(!params.testMap?SelectMapImage:SelectMapleaftImages, {
  55. title: "选择地址",
  56. width: 588,
  57. })<MapImage>;
  58. export const shareCase = quiskMountFactory(ShareCase, {
  59. title: "分享",
  60. enterText: "复制链接及密码",
  61. })<string>;