xiaodai2022 2 tahun lalu
induk
melakukan
af55a88e54

File diff ditekan karena terlalu besar
+ 0 - 0
dist/static/js/0.js


+ 10 - 5
src/views/youzan/othgoodsOnline/components/online-exam-form.vue

@@ -469,8 +469,13 @@ export default {
         }
         this.$set(this.nakelist, sii, this.nakelist[sii]);
       });
-      this.setCurrent(this.nakelist[0]);
-      this.handleCurrentChange(this.nakelist[0]);
+
+      // this.setCurrent(this.nakelist[0]);
+      let index = this.nakelist.findIndex((e) => e.min_num + "" === "1");
+      if (index !== -1) {
+        this.handleCurrentChange(this.nakelist[index]);
+      }
+
       this.loading = false;
     },
     item_auto_change() {
@@ -527,9 +532,9 @@ export default {
       this.ruleForm.yz_cat_id = e;
       this.$refs.ruleForm.validateField("yz_cat_id");
     },
-    setCurrent(row) {
-      this.$refs.singleTable.setCurrentRow(row);
-    },
+    // setCurrent(row) {
+    //   this.$refs.singleTable.setCurrentRow(row);
+    // },
     async get_new(index) {
       console.log(index);
       const { min_num } = this.nakelist[index];

+ 1 - 1
src/views/youzan/othgoodsOnline/detail.vue

@@ -171,7 +171,7 @@
                     <el-table-column label="系统阶梯" width="80px">
                       <template slot-scope="scope">
                         <i
-                          v-if="sitem.good_ladder_id === scope.row.id"
+                          v-if="scope.row.min_num + '' === '1'"
                           class="el-icon-check"
                           style="color: #1890ff; font-size: 16px; font-weight: bolder"
                         /> </template

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini