Bläddra i källkod

查询条件添加

xiao547607 5 år sedan
förälder
incheckning
c8e6dd9f23
3 ändrade filer med 12 tillägg och 7 borttagningar
  1. 2 2
      .env.development
  2. 6 1
      src/views/base/deviceInfo-list.vue
  3. 4 4
      src/views/base/devicePerson-list.vue

+ 2 - 2
.env.development

@@ -1,5 +1,5 @@
-VUE_APP_BACKEND_URL=http://wisdomhouse.sudaonline.net
-#VUE_APP_BACKEND_URL=http://127.0.0.1:8086/smart-community-server
+#VUE_APP_BACKEND_URL=http://wisdomhouse.sudaonline.net
+VUE_APP_BACKEND_URL=http://127.0.0.1:8086/smart-community-server
 #手机企业版
 VUE_APP_COMPANY_HEALTH_WECHAT_QY_URL=http://wisdomhousewechat.sudaonline.net/prevention/motemwall.html 
 #手机校园版

+ 6 - 1
src/views/base/deviceInfo-list.vue

@@ -81,8 +81,10 @@
       @selection-change="handleSelectionChange"
     >
       <el-table-column type="selection" width="55"></el-table-column>
-      <el-table-column prop="companyName" label="单位" width="280" show-overflow-tooltip></el-table-column>
       <el-table-column prop="deviceNo" label="设备编号" width="200" fixed="left"></el-table-column>
+      <el-table-column type="index" label="序号" :index="indexMethod" width="50"></el-table-column>
+      <el-table-column prop="companyName" label="单位" width="280" show-overflow-tooltip></el-table-column>
+      
       <el-table-column prop="aliasName" label="设备别名" width="250" show-overflow-tooltip></el-table-column>
       <el-table-column prop="isOnline" label="运行状态" width="80">
         <template slot-scope="{row}">
@@ -349,6 +351,9 @@ export default {
     this.loadTree();
   },
   methods: {
+    indexMethod(index){
+      return (this.pageIndex-1)*this.pageSize + (index+1);
+    },
     getSelectedValue(value) {
       this.queryModel.companyId = value;
     },

+ 4 - 4
src/views/base/devicePerson-list.vue

@@ -90,9 +90,9 @@
             <el-option value="0" label="未上传"></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="是否同步" prop="faceBound">
+        <el-form-item label="是否同步" prop="isBound">
           <el-select
-            v-model="queryModel.faceBound"
+            v-model="queryModel.isBound"
             size="mini"
             filterable
             placeholder="请选择"
@@ -322,7 +322,7 @@ export default {
         name: "",
         phone: "",
         idCard: "",
-        faceBound: "",
+        isBound: "",
         isUploadPhoto: "",
         subordinate: false,
         position1: "",
@@ -494,7 +494,7 @@ export default {
       formData.append("name", self.queryModel.name);
       formData.append("phone", self.queryModel.phone);
       formData.append("idCard", self.queryModel.idCard);
-      formData.append("faceBound", self.queryModel.faceBound);
+      formData.append("isBound", self.queryModel.isBound);
       formData.append("isUploadPhoto", self.queryModel.isUploadPhoto);
 
       formData.append("position1", self.queryModel.position1);