Browse Source

feat:更改接口、字段

jinx 4 năm trước cách đây
mục cha
commit
bc2a550c10
2 tập tin đã thay đổi với 11 bổ sung11 xóa
  1. 1 1
      src/pages/equipment/index.vue
  2. 10 10
      src/pages/home/index.vue

+ 1 - 1
src/pages/equipment/index.vue

@@ -351,7 +351,7 @@ export default {
       }
       this.$http({
         method: "post",
-        url: "/company/addPoint",
+        url: "/camera/addPoint",
         data: params,
         headers: {
           token: localStorage.getItem("zfb_token"),

+ 10 - 10
src/pages/home/index.vue

@@ -22,21 +22,21 @@
       <el-dialog title="新增子账号" :visible.sync="addZiVisible" append-to-body width="20%" :close-on-click-modal="false" :show-close="false">
         <el-form style="padding-bottom:30px;">
           <el-form-item label="姓名">
-            <el-input v-model="addZi.nickName" placeholder="请输入姓名"></el-input>
+            <el-input v-model="addZi.memoName" placeholder="请输入姓名"></el-input>
           </el-form-item>
           <el-form-item label="手机号">
             <el-input v-model="addZi.phone" placeholder="请输入手机号码"></el-input>
           </el-form-item>
         </el-form>
         <div style="text-align:center" class="dialog-footer">
-          <el-button @click="addZiVisible = false;addZi = {id:'',nickName:'',phone:''}">取 消</el-button>
+          <el-button @click="addZiVisible = false;addZi = {id:'',memoName:'',phone:''}">取 消</el-button>
           <el-button type="primary" @click="addZi_save">保 存</el-button>
         </div>
       </el-dialog>
       <el-dialog title="修改子账号" :visible.sync="changeZiVisible" append-to-body width="20%" :close-on-click-modal="false">
         <el-form style="padding-bottom:30px;">
           <el-form-item label="姓名">
-            <el-input v-model="changeZi.nickName" placeholder="请输入姓名"></el-input>
+            <el-input v-model="changeZi.memoName" placeholder="请输入姓名"></el-input>
           </el-form-item>
           <el-form-item label="手机号">
             <el-input v-model="changeZi.phone" placeholder="请输入手机号码"></el-input>
@@ -129,7 +129,7 @@
 
         <el-table height="240" :data="ShowChildUser" :border="true">
           <!--<el-table-column label="ID" prop="id" width="60%"></el-table-column>-->
-          <el-table-column label="姓名" prop="nickName"></el-table-column>
+          <el-table-column label="姓名" prop="memoName"></el-table-column>
           <el-table-column label="手机号" width="200px" prop="phone"></el-table-column>
           <el-table-column label="操作">
             <template slot-scope="scope">
@@ -413,14 +413,14 @@ export default {
       },
       addZi: {
         id: "",
-        nickName: "",
+        memoName: "",
         phone: "",
         //isAvailable: false,
         //hasCheck: false
       },
       changeZi: {
         id: "",
-        nickName: "",
+        memoName: "",
         phone: "",
       },
       Zi: [
@@ -433,7 +433,7 @@ export default {
       ShowChildUser: [
         {
           id: "",
-          nickName: "",
+          memoName: "",
           phone: "",
         },
       ], //子账号展示
@@ -1063,7 +1063,7 @@ export default {
                 });
               } else if (res.message == false) {
                 this.ShowChildUser.unshift({ ...this.addZi });
-                this.addZi = { nickName: "", phone: "", id: "" };
+                this.addZi = { memoName: "", phone: "", id: "" };
                 this.addZiVisible = false;
               }
             }
@@ -1085,7 +1085,7 @@ export default {
     ChangeZi(row) {
       this.changeZiVisible = true;
       this.changeZi.id = row.id;
-      this.changeZi.nickName = row.nickName;
+      this.changeZi.memoName = row.memoName;
       this.changeZi.phone = row.phone;
     },
     //保存子账号修改
@@ -1093,7 +1093,7 @@ export default {
       let i;
       for (i = 0; i < this.ShowChildUser.length; i++) {
         if (this.ShowChildUser[i].id == this.changeZi.id) {
-          this.ShowChildUser[i].nickName = this.changeZi.nickName;
+          this.ShowChildUser[i].memoName = this.changeZi.memoName;
           this.ShowChildUser[i].phone = this.changeZi.phone;
         }
       }