zhangchunxu
2023-08-07 1240f80db0d6d7c08d5c7699402f4c03554e718b
force-app/main/default/lwc/lexInquiryFormCustomLink2/lexInquiryFormCustomLink2.js
@@ -1,3 +1,10 @@
/*
 * @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';
@@ -21,7 +28,7 @@
        init({
            recordId: this.recordId
        }).then(result => {
            this.Status = result.Statusl;
            this.Status = result.Status;
            this.IsLoading = false;
            this.CustomLink2();
            this.dispatchEvent(new CloseActionScreenEvent());
@@ -31,7 +38,7 @@
    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")