| | |
| | | /* |
| | | * @Author: zhangchunxu |
| | | * @Date: 2023-05-24 15:30:48 |
| | | * @LastEditors: zhangchunxu |
| | | * @LastEditTime: 2023-08-02 10:06:48 |
| | | * |
| | | */ |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.Status = result.Statusl; |
| | | this.Status = result.Status; |
| | | this.IsLoading = false; |
| | | this.CustomLink2(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | |
| | | CustomLink2(){ |
| | | if(this.Status != '04.已建意向'){ |
| | | window.open ('/apex/FollowPage?id='+this.recordId, '不需要的理由', |
| | | 'height=400, width=800, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | 'height=400, width=890, top=200, left=230, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | }else { |
| | | // alert('已经有意向了,不能执行此操作。'); |
| | | this.showToast("已经有意向了,不能执行此操作。","error") |