Browse Source

表格数据修改传参调整

lph 1 year ago
parent
commit
0f74fe9950
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ruoyi-ui/src/views/tablelist/commonTable/listInfo.vue

+ 2 - 1
ruoyi-ui/src/views/tablelist/commonTable/listInfo.vue

@@ -575,8 +575,9 @@ export default {
               conditionMap: {},
               conditionMap: {},
               commMap: {},
               commMap: {},
             };
             };
+
             updateData.conditionMap[this.templateInfo.template?.primaryKey] =
             updateData.conditionMap[this.templateInfo.template?.primaryKey] =
-              values[this.templateInfo.template?.primaryKey];
+              this.defaultValue[this.templateInfo.template?.primaryKey];
             Object.keys(values).map((k) => {
             Object.keys(values).map((k) => {
               updateData.commMap[k] = values[k];
               updateData.commMap[k] = values[k];
             });
             });