KKbes
2023-08-07 492f744d9d84289e27b2ddac9a9b4a2137fd11d6
force-app/main/default/lwc/lexNewOPDButtonAccount/lexNewOPDButtonAccount.js
@@ -7,7 +7,7 @@
const event1 = new ShowToastEvent({
                  message:
                   "科室状态为无效,不允许新建OPD计划",
                   variant : "warning"
                   variant : "error"
});
import init  from '@salesforce/apex/LexOPDSupplementaryController.initNewOPDButton';
export default class lexNewOPDButtonAccount extends NavigationMixin(LightningElement) {
@@ -31,7 +31,6 @@
   connectedCallback(){
      init({recordId:this.recordId}).then(res=>{
         if (res!=null) {
            console.log(res);
            this.Account=res;
            this.newOPDButtonAccount().then(res=>{
               this.IsLoading=false;