huangxw 10 月之前
父節點
當前提交
f180de5e8e

+ 3 - 2
src/views/cdt/models/transferItems.vue

@@ -41,7 +41,7 @@
                     </div>
                     <div class="flex1 ov-hd d-flex flex-cln">
                         <div class="flex1 ov-hd">
-                            <vxe-table ref="tableLeftRef" :loading="loading" border :data="list" height="100%" :column-config="{ resizable: true }" :row-config="{keyField: 'id',isCurrent: true, isHover: true}" :checkbox-config="{ highlight: true, range: true, trigger: 'row', reserve: true }">
+                            <vxe-table ref="tableLeftRef" :loading="loading" border :data="list" height="100%" :column-config="{ resizable: true }" :row-config="{keyField: 'id',isCurrent: true, isHover: true}" :checkbox-config="{ checkRowKeys: checkRowKeys, highlight: true, range: true, trigger: 'row', reserve: true }">
                                 <vxe-column type="checkbox" width="60"></vxe-column>
                                 <!-- 序号 -->
                                 <vxe-column type="seq" width="60" title="序号" align="center" />
@@ -198,10 +198,11 @@ const clearAll = () => {
     tableRightRef.value?.clearCheckboxRow();
     targetList.value = [];
 };
+const checkRowKeys = ref<any>([]);
 // 设置已选
 const setSelectItems = (val: any) => {
     targetList.value = val;
-    tableLeftRef.value?.setCheckboxRow(val, true);
+    checkRowKeys.value = val.map((item: any) => item.id);
 };
 watch(
     () => props.show,

+ 1 - 1
src/views/price/models/EditStationEndDate.vue

@@ -54,8 +54,8 @@ const submitForm = async () => {
         });
         if (res?.code === 200) {
             proxy?.$modal.msgSuccess('修改成功');
-            close();
             emit('success', true);
+            close();
         }
     } catch (error) {
         console.error(error);

+ 2 - 2
src/views/price/station/index.vue

@@ -67,9 +67,9 @@
         </div>
     </div>
     <addStation v-model:show="showStation" @sueccess="handleQuery"></addStation>
-    <EditStationEndDate v-if="showEndDate" v-model:show="showEndDate" :infos="infos" @sueccess="handleQuery"></EditStationEndDate>
+    <EditStationEndDate v-if="showEndDate" v-model:show="showEndDate" :infos="infos" @success="handleQuery"></EditStationEndDate>
 </template>
-<script setup name="price-station" lang="ts">
+<script setup name="price-station-index" lang="ts">
 import { deleteOriginCpy, originCpyList, queryOriginCpyCount } from '@/api/price/station';
 import { colNoData } from '@/utils/noData';
 import { searchTabs } from '@/views/models';