|
@@ -64,9 +64,11 @@ export default defineComponent({
|
|
|
PROJECTING: parseImgUrl("ipdImages", "touying.svg"),
|
|
|
ADJOURNMENT: parseImgUrl("ipdImages", "sanhui.svg"),
|
|
|
};
|
|
|
+ let scenarioArr: any = [];
|
|
|
const proxyData = reactive({
|
|
|
parseImgUrl: parseImgUrl,
|
|
|
- scenarioArr: props.scenarioArr,
|
|
|
+ spaceId: props.spaceId,
|
|
|
+ scenarioArr: scenarioArr,
|
|
|
scenarioImgArr: scenarioImgArr,
|
|
|
activeType: props.activeType,
|
|
|
onSubmit(values: any) {
|
|
@@ -97,7 +99,7 @@ export default defineComponent({
|
|
|
// proxyData.activeType = item.sceneType;
|
|
|
const userInfo: any = getUserInfo();
|
|
|
const params = {
|
|
|
- spaceId: props.spaceId,
|
|
|
+ spaceId: proxyData.spaceId,
|
|
|
projectId: props.projectId,
|
|
|
type: item.sceneType,
|
|
|
pubname: userInfo.pubname,
|
|
@@ -105,30 +107,31 @@ export default defineComponent({
|
|
|
|
|
|
item.loading = true;
|
|
|
item.lodingText = "正在切换至";
|
|
|
- contx.emit("setHeadScene", item);
|
|
|
+ contx.emit("setHeadScene", item, 1);
|
|
|
switchoverSceneHttp(params)
|
|
|
.then((res) => {
|
|
|
let resData: any = res;
|
|
|
if (resData.result === "success") {
|
|
|
item.loading = false;
|
|
|
item.lodingText = "切换至";
|
|
|
- contx.emit("setHeadScene", item);
|
|
|
+ contx.emit("setHeadScene", item, 2);
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
item.loading = false;
|
|
|
item.lodingText = "";
|
|
|
- contx.emit("setHeadScene", item);
|
|
|
- // contx.emit('timerSpaceInfo')
|
|
|
+ contx.emit("setHeadScene", item, 2);
|
|
|
});
|
|
|
},
|
|
|
});
|
|
|
watch(
|
|
|
props,
|
|
|
(newProps: any) => {
|
|
|
+ proxyData.activeType = newProps.activeType;
|
|
|
proxyData.scenarioArr = newProps.scenarioArr;
|
|
|
+ proxyData.spaceId = newProps.spaceId;
|
|
|
proxyData.formatScenarioImg();
|
|
|
- proxyData.activeType = newProps.activeType;
|
|
|
+ console.log("会议室场景变化了--");
|
|
|
},
|
|
|
{
|
|
|
deep: false,
|