ZaiZai 1 年間 前
コミット
e780f365e4

+ 6 - 5
src/views/debit-pay/admin/components/middlepay/addModal.vue

@@ -3,7 +3,7 @@
         <div class="relative h-full flex">
             <div v-if="dataType === 'add'" :id="`hc_tree_card_${uuid}`" class="hc_tree_card_border relative">
                 <hc-body scrollbar padding="0px">
-                    <hc-lazy-tree :h-props="treeProps" tree-key="id" :auto-expand-keys="treeAutoExpandKeys" @load="treeLoadNode" @nodeTap="treeNodeTap" />
+                    <hc-lazy-tree :h-props="treeProps" tree-key="id" :auto-expand-keys="treeAutoExpandKeys" @load="treeLoadNode" @node-tap="treeNodeTap" />
                 </hc-body>
             </div>
             <div :id="`hc_table_card_${uuid}`" class="relative flex-1">
@@ -76,7 +76,7 @@
                     <hc-card-item class="mt-3">
                         <template #header>
                             <span class="mr-3">计量清单列表</span>
-                            <span class="font-400 text-orange">温馨提示:超计,累计计量量> 变更后数量,分解清单超计整行红色</span>
+                            <span class="text-orange font-400">温馨提示:超计,累计计量量> 变更后数量,分解清单超计整行红色</span>
                         </template>
                         <template #extra>
                             <el-button type="primary" text @click="addBillBaseModalClick">
@@ -84,7 +84,7 @@
                                 <span>添加清单</span>
                             </el-button>
                         </template>
-                        <hc-table is-new :index-style="{ width: 60 }" :column="addTableColumn" :datas="addTableData" :row-style="addTableRowStyle">
+                        <hc-table is-new :index-style="{ width: 60 }" :is-stripe="false" :column="addTableColumn" :datas="addTableData" :row-style="addTableRowStyle">
                             <template #currentPrice="{ row }">
                                 <hc-table-input v-model="row.currentPrice" disabled />
                             </template>
@@ -111,7 +111,7 @@
                     <!-- 附件列表 -->
                     <hc-card-item class="mt-3" title="附件列表">
                         <template #extra>
-                            <span class="font-400 text-orange">可上传 图片(png、jpg、jpeg)、Excel(xls、xlsx)、PDF、Word(doc、docx)文件</span>
+                            <span class="text-orange font-400">可上传 图片(png、jpg、jpeg)、Excel(xls、xlsx)、PDF、Word(doc、docx)文件</span>
                         </template>
                         <el-form :model="baseForm" label-position="left" label-width="auto">
                             <el-form-item label="上传附件">
@@ -215,9 +215,10 @@ watch(() => props.ids, (id) => {
 
 //监听
 watch(isShow, (val) => {
+    baseForm.value = { fileList: [] }
     if (val && dataType.value === 'add' ) {
-        setBasePeriodForm(period_id.value)
         setSplitRef()
+        setBasePeriodForm(period_id.value)
     } else if (val && dataType.value === 'edit') {
         getDataDetail()
     }