From 4661adc43f549036f4e6e44debe92521c5793083 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期二, 06 六月 2023 11:06:36 +0800
Subject: [PATCH] 修改页面以及按钮
---
force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html | 36 +++++++++---------------------------
1 files changed, 9 insertions(+), 27 deletions(-)
diff --git a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html
index f15649e..10c9509 100644
--- a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html
+++ b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html
@@ -4,7 +4,7 @@
* @Author: chen jing wu
* @Date: 2023-04-20 17:16:48
* @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-31 11:44:24
+ * @LastEditTime: 2023-06-06 10:33:07
-->
<template>
@@ -18,12 +18,7 @@
<div style="margin-left: 550px;">
<lightning-layout-item size="12">
<lightning-button label="杩藉姞鍝佺墝" onclick={addBrandJs}></lightning-button>
- <template if:true={isEdit}>
- <lightning-button name="save" label="淇濆瓨1" onclick={saveBrandToEditJs}></lightning-button>
- </template>
- <template if:false={isEdit}>
- <lightning-button name="save" label="淇濆瓨" onclick={saveBrandJs}></lightning-button>
- </template>
+ <lightning-button name="save" label="淇濆瓨" onclick={saveBrandJs}></lightning-button>
<lightning-button label="杩斿洖璇环" onclick={cancel}></lightning-button>
</lightning-layout-item>
</div>
@@ -52,12 +47,7 @@
<template for:each={LostReport.LostBrands} for:item="brand" for:index="i">
<li key={brand.index}>
<lightning-accordion-section class="" data-id={i} name="澶卞崟鍝佺墝" label="澶卞崟鍝佺墝">
- <template if:true={isEdit}>
- <lightning-button name="save" label="淇濆瓨1" onclick={saveBrandToEditJs}></lightning-button>
- </template>
- <template if:false={isEdit}>
- <lightning-button name="save" label="淇濆瓨" onclick={saveBrandJs}></lightning-button>
- </template>
+ <lightning-button name="save" label="淇濆瓨" onclick={saveBrandJs}></lightning-button>
<lightning-button name={i} label="鍒犻櫎" onclick={deleteBrandJs} disabled={isBrandCount2}></lightning-button>
<lightning-layout>
<lightning-layout-item size="4" padding="around-small">
@@ -119,7 +109,7 @@
<template for:each={brand.LostProducts} for:item="product" for:index="j">
<tr class="inputRows" key={product}>
<td>
- <lightning-combobox placeholder={product.LostProductss.LostBrandName__c} class="BrandName" name={j} title={i} options={brandOptions} value={product.LostProductss.LostBrandName__c} onchange={handleLostBrandNameChange} read-only="true"></lightning-combobox>
+ <lightning-combobox placeholder={product.LostProductss.LostBrandName__c} data-id={i} class="BrandName" name={j} title={i} options={brandOptions} value={product.LostProductss.LostBrandName__c} onchange={handleLostBrandNameChange} read-only="true"></lightning-combobox>
</td>
<td>
<!-- <lightning-record-edit-form
@@ -169,12 +159,7 @@
<div class="slds-align_absolute-center">
<lightning-layout-item size="12">
<lightning-button label="杩藉姞鍝佺墝" onclick={addBrandJs}></lightning-button>
- <template if:true={isEdit}>
- <lightning-button name="save" label="淇濆瓨1" onclick={saveBrandToEditJs}></lightning-button>
- </template>
- <template if:false={isEdit}>
- <lightning-button name="save" label="淇濆瓨" onclick={saveBrandJs}></lightning-button>
- </template>
+ <lightning-button name="save" label="淇濆瓨" onclick={saveBrandJs}></lightning-button>
<lightning-button label="杩斿洖璇环" onclick={cancel}></lightning-button>
</lightning-layout-item>
</div>
@@ -204,7 +189,7 @@
<label>澶卞崟绫诲瀷:</label>
</lightning-layout-item>
<lightning-layout-item size="1">
- <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={reportId} density="comfy">
+ <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={LostReport.lostReport.Id} density="comfy">
<lightning-output-field field-name="LostType__c" variant="label-hidden"></lightning-output-field>
</lightning-record-view-form>
</lightning-layout-item>
@@ -213,7 +198,7 @@
<label>澶卞崟鎬婚噾棰濓紙鍏冿級:</label>
</lightning-layout-item>
<lightning-layout-item size="1">
- <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={reportId} density="comfy">
+ <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={LostReport.lostReport.Id} density="comfy">
<lightning-output-field field-name="LostTotalAmount__c" variant="label-hidden"></lightning-output-field>
</lightning-record-view-form>
</lightning-layout-item>
@@ -222,7 +207,7 @@
<label>鍖呭惈瓒呭0:</label>
</lightning-layout-item>
<lightning-layout-item size="1">
- <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={reportId} density="comfy">
+ <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={LostReport.lostReport.Id} density="comfy">
<lightning-output-field field-name="InclusionUltrasound__c" variant="label-hidden"></lightning-output-field>
</lightning-record-view-form>
</lightning-layout-item>
@@ -231,7 +216,7 @@
<label>鐘舵��:</label>
</lightning-layout-item>
<lightning-layout-item size="1">
- <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={reportId} density="comfy">
+ <lightning-record-view-form object-api-name="Lost_cancel_report__c" record-id={LostReport.lostReport.Id} density="comfy">
<lightning-output-field field-name="Report_Status__c" variant="label-hidden"></lightning-output-field>
</lightning-record-view-form>
</lightning-layout-item>
@@ -322,9 +307,6 @@
</lightning-layout-item>
</div>
</lightning-layout>
- <template if:true={isSubmit}>
- <div>...test...</div>
- </template>
</div>
</div>
</lightning-card>
--
Gitblit v1.9.1