Преглед на файлове

修复CURD窗口编辑器的BUG。

YangZhiJie преди 1 година
родител
ревизия
5ab9790196
променени са 2 файла, в които са добавени 12 реда и са изтрити 4 реда
  1. 8 2
      src/window1/CurdWindowModal.vue
  2. 4 2
      src/window1/tabGridView/GridHeader.vue

+ 8 - 2
src/window1/CurdWindowModal.vue

@@ -90,10 +90,10 @@ const props = defineProps({
 });
 
 
-const mCurdWindowNo = ref('20240910_193059');
+const mCurdWindowNo = ref(null);
 const mTabIndex = ref(0);
 
-const openTabEditModal = ref(true);
+const openTabEditModal = ref(false);
 const tabEditViewType = ref('create');
 const tabEditViewRecordId = ref(null);
 const tabEditViewCurrentPage = ref(null);
@@ -131,10 +131,16 @@ onMounted(() => {
     openTabViewModal.value = false;
     return;
   }
+
+  mCurdWindowNo.value = props.curdWindowNo;
+  mTabIndex.value = props.tabIndex;
+
+
   // 窗口类型
   // Edit:编辑界面,可选项如下(create:创建数据,edit:编辑数据,editRestore:恢复数据)
   // View:表单界面,可选项如下(view:视图数据,viewRestore:恢复数据)
   if(props.viewType == 'create' || props.viewType == 'edit' || props.viewType == 'editRestore'){
+    
     openTabEditView({
       type: props.viewType,
       windowNo: props.curdWindowNo,

+ 4 - 2
src/window1/tabGridView/GridHeader.vue

@@ -45,6 +45,7 @@
         v-tooltip="tabGridField.help"
         class="text-center"
         :width="tabGridField.width + 'px'"
+        style="position: relative;"
         @dragover="ondragover($event, tabGridField)"
         @click="onSort(tabGridField)"
       >
@@ -305,16 +306,17 @@ table th {
     background-color: #f8f8f8;
 }
 
-table.curd-table th .rz-handle {
+.rz-handle {
     width: 10px;
     height: 100%;
     position: absolute;
     top: 0;
     right: 0;
     cursor: ew-resize !important;
+    z-index: 3;
 }
 
-table.curd-table th .rz-handle.rz-handle-active {
+.rz-handle.rz-handle-active {
     border-right: 2px solid #000;
     transform: scaleX(100);
     background: rgba(0, 0, 0, 0.05) 2px;