|
@@ -46,9 +46,10 @@ export const getSWKKSyncLink = async (caseId: number) => {
|
|
|
) as QuoteScene[];
|
|
|
|
|
|
let msg: string | null = null;
|
|
|
- if (!scenes.length) {
|
|
|
- msg = "当前案件下无场景,请先添加场景。";
|
|
|
- } else if (!kkScenes.length) {
|
|
|
+ // if (!scenes.length) {
|
|
|
+ // msg = "当前案件下无场景,请先添加场景。";
|
|
|
+ // } else
|
|
|
+ if (!kkScenes.length) {
|
|
|
msg = `带看仅支持${supportTypes
|
|
|
.map((type) => SceneTypeDesc[type])
|
|
|
.join("、")}类型场景,请添加此类型场景。`;
|
|
@@ -84,12 +85,13 @@ export const getSWKKSyncLink = async (caseId: number) => {
|
|
|
};
|
|
|
|
|
|
export const checkScenesOpen = async (caseId: number, url: URL | string) => {
|
|
|
- const scenes = await getCaseSceneList(caseId);
|
|
|
- if (!scenes.length) {
|
|
|
- alert("当前案件下无场景,请先添加场景。");
|
|
|
- } else {
|
|
|
- window.open(url);
|
|
|
- }
|
|
|
+ // const scenes = await getCaseSceneList(caseId);
|
|
|
+ // if (!scenes.length) {
|
|
|
+ // alert("当前案件下无场景,请先添加场景。");
|
|
|
+ // } else {
|
|
|
+ // window.open(url);
|
|
|
+ // }
|
|
|
+ window.open(url);
|
|
|
};
|
|
|
|
|
|
export const getQuery = (
|