|
@@ -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];
|