duy 1 hónapja
szülő
commit
ecd97b730d
1 módosított fájl, 2 hozzáadás és 30 törlés
  1. 2 30
      src/views/manager/projectinfo/codeSet.vue

+ 2 - 30
src/views/manager/projectinfo/codeSet.vue

@@ -137,19 +137,7 @@
         style="width: 100%"
       >
         <el-table-column label="序号" type="index" width="50"></el-table-column>
-        <el-table-column label="快速排序" width="100">
-          <template slot-scope="scope">
-            <el-input-number
-            style="width: 80px;"
-              v-model="scope.row.sortOrder"
-              :min="1"
-              :max="sortedTableData.length"
-              :controls="false"
-              size="mini"
-              @change="handleQuickSort(scope.$index, scope.row.sortOrder)"
-            />
-          </template>
-        </el-table-column>
+        
         <el-table-column label="规则">
           <template slot-scope="scope">
              <span >{{ getDictValueByRule(scope.row.rule) }}</span>
@@ -262,23 +250,7 @@ mounted(){
        })
       this.sortDialogVisible = true; // 显示排序弹窗
     },
-   handleQuickSort(index, newOrder) {
-    if (newOrder < 1 || newOrder > this.sortedTableData.length) return;
-    
-    // 获取当前行
-    const currentRow = this.sortedTableData[index];
-    
-    // 移除当前行
-    this.sortedTableData.splice(index, 1);
-    
-    // 插入到新位置
-    this.sortedTableData.splice(newOrder - 1, 0, currentRow);
-    
-    // 重新计算所有行的 sortOrder(可选)
-    this.sortedTableData.forEach((row, idx) => {
-      row.sortOrder = idx + 1;
-    });
-  },
+
   handleSortUp(index) {
     if (index > 0) { // 确保不是第一行
       const temp = this.sortedTableData.splice(index, 1)[0]; // 移除当前行