| | |
| | | iframeSrc: window.ProjectConfig.xieTongIframeSrc, |
| | | selectedId: "", |
| | | isFullScreen: false, |
| | | webUrl: "", |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | this.resetEngineRelated(); |
| | | }, |
| | | methods: { |
| | | onSelectChange(val) { |
| | | onSelectChange(val, webUrl) { |
| | | this.webUrl = webUrl; |
| | | this.selectedId = val; |
| | | }, |
| | | fullscreenChange(val) { |
| | |
| | | window.open(window.ProjectConfig.xieTongIframeSrc, "_blank"); |
| | | break; |
| | | case "zhihui": |
| | | window.open("http://beijiaodaxiongan.zhihuibuild.com/#/autologin?next=", "_blank"); |
| | | window.open(this.webUrl, "_blank"); |
| | | break; |
| | | } |
| | | }, |
| | |
| | | currentDate: "", |
| | | timer: null, |
| | | backgroundImage: new URL("@/assets/images/backgrounds/logo.png", import.meta.url).href, |
| | | binds: [], |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | if (res.Ret === 1) { |
| | | const result = res.Data; |
| | | if (result.length > 0) { |
| | | this.binds = result; |
| | | this.options = result.map((item) => ({ |
| | | value: item.Id, |
| | | label: item.BindName, |
| | |
| | | * 处理选择变化 |
| | | */ |
| | | handleSelect(val) { |
| | | this.$emit("onSelectChange", val); |
| | | const item = this.binds.find((item) => item.Id === val); |
| | | this.$emit("onSelectChange", val, item.WebUrl); |
| | | }, |
| | | }, |
| | | }; |