QuKatie 3 lat temu
rodzic
commit
f1f79955c7
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/views/basicData/customerCategory/index.vue

+ 3 - 3
src/views/basicData/customerCategory/index.vue

@@ -83,7 +83,7 @@ export default {
     },
     //修改时的修改按钮点击触发
     rowUpdate(row, index, done, loading) {
-      row.corpType = customerParameter;
+      row.corpType = customerParameter.code;
       typeSave(row).then(
         () => {
           this.$message({
@@ -102,7 +102,7 @@ export default {
     },
     //新增修改时保存触发
     rowSave(row, done, loading) {
-      row.corpType = customerParameter;
+      row.corpType = customerParameter.code;
       typeSave(row).then(
         res => {
           this.$message({
@@ -120,7 +120,7 @@ export default {
     },
     //查询全部
     initData() {
-      customerList({corpType: customerParameter}).then(res => {
+      customerList({corpType: customerParameter.code}).then(res => {
         const column = this.findObject(this.option.column, "parentId");
         column.dicData = res.data.data.records;
       });