1
chenjingwu
2024-05-24 35910c355f74e736e2068a0ffb7f39ae9615d8e1
force-app/main/default/lwc/lexNewOnLineSurvey/lexNewOnLineSurvey.js
@@ -4,7 +4,7 @@
 * @Author: chen jing wu
 * @Date: 2023-06-29 13:45:26
 * @LastEditors: chen jing wu
 * @LastEditTime: 2023-06-29 16:43:33
 * @LastEditTime: 2023-09-10 13:00:26
 */
/*
 * @Description: 
@@ -14,7 +14,7 @@
 * @LastEditors: chen jing wu
 * @LastEditTime: 2023-06-29 14:29:53
 */
import { api, wire,LightningElement } from 'lwc';
import { api, wire,LightningElement, track } from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import { updateRecord } from 'lightning/uiRecordApi';
@@ -30,6 +30,7 @@
    ownerId;
    selectedRecordTypeId;
    IsLoading = true;
    @track recordTypeOptions;
    @wire(getObjectInfo, { objectApiName: 'On_Line_Survey__c' })
    objectInfo({ error, data }) {
      if (data) {
@@ -38,6 +39,7 @@
          value: rt.recordTypeId
        }));
      } else if (error) {
        console.log(error);
        // 处理操作失败的错误
      }
    }
@@ -60,6 +62,7 @@
        init({
            recordId: this.recordId
        }).then(result=>{
            console.log(result);
            this.date = result.datec;
            this.practitioner1 = result.practitioner1;
            this.ownerId = result.ownerId;