| | |
| | | import SystemModstamp from '@salesforce/schema/Account.SystemModstamp'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import { updateRecord } from 'lightning/uiRecordApi'; |
| | | import lwcCSS from '@salesforce/resourceUrl/lwcCSS'; |
| | | import {loadStyle} from 'lightning/platformResourceLoader'; |
| | | import lexDateCss from '@salesforce/resourceUrl/lexDateCss'; |
| | |
| | | {label:"提前",value:"提前"}, |
| | | {label:"延后",value:"延后"}, |
| | | ] |
| | | updateRecordView(recordId) { |
| | | updateRecord({fields: { Id: recordId }}); |
| | | } |
| | | |
| | | handleRelationFn(event){ |
| | | |
| | |
| | | bubbles: true, // 允许事件冒泡至父组件 |
| | | composed: true, // 允许事件穿越 Shadow DOM 界限 |
| | | }); |
| | | setTimeout(() => { |
| | | window.location = '/' + this.recordId; |
| | | }, 2000); |
| | | this.dispatchEvent(closeEvent); |
| | | }else{ |
| | | this.showToast(response,"error"); |