Hwt 2 년 전
부모
커밋
ce2c6a05d8

+ 23 - 10
operationSupport/src/views/assetManagement/housingManagement/details.vue

@@ -9,7 +9,8 @@
       >返回</el-button>
       <div class="text">
         <span>所属社区: {{ detailsData.communityId | matchingVal($store.getters['getCommunityArray']) }}</span>
-        <span>楼栋:{{ detailsData.communityName }}</span>
+        <span>楼栋: {{detailsData.buildingName}}</span>
+        <!-- {{ detailsData.communityName }} -->
       </div>
     </div>
     <div class="content">
@@ -50,8 +51,9 @@
           ></household-table>
           <household-table
             :tableName="householdTable.right"
-            :tabData="houseData"
-          ></household-table>
+            :tabData="houseData "
+          >
+          </household-table>
         </div>
         <div class="formContent-item_title">人脸信息</div>
         <div class="detailImg">
@@ -116,6 +118,7 @@ export default {
       id: null,
       detailsData: {},
       memberData: [],
+      houseDataType: '',
       houseData: {
         // name: '',
         // phone: '',
@@ -259,10 +262,14 @@ export default {
           {
             lable: '类型',
             prop: 'householdType',
-            const: true,
+            constxx: true,
             format (val) {
-              debugger
-              return '业主';
+              debugger;
+              if (val == 4) {
+                return '业主';
+              } else {
+                return '--';
+              }
             }
           },
           {
@@ -316,6 +323,8 @@ export default {
                 return '亲属';
               case 3:
                 return '租客';
+              case 4:
+                return '承租人';
             }
           }
         },
@@ -358,6 +367,9 @@ export default {
   },
   methods: {
     toggleTab (index) {
+      if (index == 1) {
+        document.querySelectorAll('.text')[20].innerHTML = this.houseDataType == 1 ? '业主' : '--';
+      }
       this.tabsIndex = index;
     },
     close () {
@@ -388,9 +400,10 @@ export default {
         .get('/czc-community/assets/house/find/house?houseId=' + this.id)
         .then((res) => {
           if (!!res) {
+            this.houseDataType = res.householdType;
             this.detailsData = res;
             if (!!res.residentId) {
-              this.getHouse(res.residentId);
+              this.getHouse(res.residentId, res);
             }
           } else {
             this.$message.error('系统繁忙,请稍后重试');
@@ -403,6 +416,7 @@ export default {
         .get('/czc-community/assets/house/list?id=' + this.id)
         .then(({ data, status, msg }) => {
           if (0 === status) {
+
             this.memberData = data;
           } else {
             this.$message.error(msg);
@@ -410,14 +424,13 @@ export default {
         })
         .catch(() => { });
     },
-    getHouse (id) {
+    getHouse (id, re) {
       this.$http
         .get('/czc-community/scResident/find/' + id)
         .then(({ data, status, msg }) => {
           if (0 === status) {
             if (data !== null) {
-              debugger
-              this.houseData = data;
+              this.houseData = re.householdType == 1 ? Object.assign({ householdType: 4 }, data) : {}
             }
           } else {
             this.$message.error(msg);

+ 3 - 1
operationSupport/src/views/assetManagement/shopManagement/details.vue

@@ -9,7 +9,7 @@
       >返回</el-button>
       <div class="text">
         <span>所属社区: {{ detailsData.communityId | matchingVal($store.getters['getCommunityArray']) }}</span>
-        <span>楼栋:{{ detailsData.communityName }}</span>
+        <span>楼栋:{{ detailsData.buildingName }}</span>
       </div>
     </div>
     <div class="content">
@@ -466,6 +466,7 @@ export default {
         .get('/czc-community/assets/house/find/house?houseId=' + this.id)
         .then((res) => {
           if (!!res) {
+
             this.detailsData = res;
             if (!!res.residentId) {
               this.getHouse(res.residentId);
@@ -493,6 +494,7 @@ export default {
         .get('/czc-community/scResident/find/' + id)
         .then(({ data, status, msg }) => {
           if (0 === status) {
+
             this.houseData = data;
           } else {
             this.$message.error(msg);

+ 9 - 0
operationSupport/src/views/assetManagement/stepPage/houseDataPop.vue

@@ -43,6 +43,7 @@ export default {
   data () {
     return {
       houseData: {},
+      houseDataType: '',
       householdTable: {
         left: [
           {
@@ -76,6 +77,7 @@ export default {
             prop: 'householdType',
             const: true,
             format (val) {
+              debugger
               return type;
             }
           },
@@ -112,6 +114,7 @@ export default {
     if (!!this.params.data) {
       type = typeArr[Number(this.params.data.householdType) - 1];
       this.getHouse(this.params.data.residentId);
+
     }
   },
   methods: {
@@ -121,7 +124,13 @@ export default {
         .then(({ data, status, msg }) => {
           if (0 === status) {
             if (data !== null) {
+              this.houseDataType = data.houseList[0].householdType;
               this.houseData = data;
+              if (this.houseDataType == 1) {
+                document.querySelectorAll('.text')[30].innerHTML = '业主'
+              } else {
+                document.querySelectorAll('.text')[30].innerHTML = '--'
+              }
             }
           } else {
             this.$message.error(msg);

+ 13 - 1
operationSupport/src/views/assetManagement/stepPage/householdTable.vue

@@ -14,6 +14,13 @@
         class="text"
         v-else-if="!!item.format && !!item.const"
       >{{  item.format(params.data[item['prop']]) || '--' }}</span>
+      <span
+        class="text"
+        v-else-if="!!item.format && !!item.constxx"
+      >
+        <!-- {{parent}} -->
+        <!-- {{  item.format(parent[item['prop']]) || '--' }} -->
+      </span>
       <div
         class="text"
         v-else-if="item.prop === 'nation'"
@@ -103,7 +110,12 @@ export default {
       return this.$store.getters['getCommunityArray'];
     }
   },
-  created () { }
+  created () {
+    if (!!this.$parent.houseData.householdType) {
+      console.log('111', this.$parent.houseData.householdType);
+    }
+
+  }
 };
 </script>
 <style lang='scss' scoped >

+ 15 - 7
operationSupport/src/views/businessManagement/InvestmentResources/stepPage/add.vue

@@ -348,7 +348,6 @@ export default {
       if (value.length != 0) {
         this.$http.get('/czc-community/assets/house/find/' + value[value.length - 1]).then(({ status, data, msg }) => {
           if (status == 0) {
-            debugger
             this.formData.residentId = data.residentId;
             this.rentSaleType = data.salesType == 1 ? '可租可售' : data.salesType == 2 ? '只租' : data.salesType == 3 ? '只售' : '-';
             this.houseType = data.buildingType == 1 ? '住宅' : data.buildingType == 2 ? '商用' : '-';
@@ -376,12 +375,20 @@ export default {
     },
     // 获取招租房屋
     getOrgTreeList () {
-      // { buildingType: 1 }
-      this.$http.get('/czc-community/assets/tree/community/find', { rentOut: 1 }).then(({ status, data, msg }) => {
-        if (status == 0) {
-          this.informTypes = data;
-        }
-      })
+      if (this.params.title == "edit") {
+        this.$http.get('/czc-community/assets/tree/community/find').then(({ status, data, msg }) => {
+          if (status == 0) {
+            this.informTypes = data;
+          }
+        })
+      } else {
+        this.$http.get('/czc-community/assets/tree/community/find', { rentOut: 1 }).then(({ status, data, msg }) => {
+          if (status == 0) {
+            this.informTypes = data;
+          }
+        })
+      }
+
     },
     houseRentFind () {
       this.$http.post(`/czc-community/house/rent/out/find/${this.params.data.rentOutId}`).then(({ status, data, msg }) => {
@@ -398,6 +405,7 @@ export default {
           this.formData.leaseType = this.formData.leaseType + '';
 
           this.formData.houseId = [];
+
           if (data.unitName != null && data.unitName != '') {
             this.formData.houseId.push(data.communityId + '');
             this.formData.houseId.push(data.buildingId + '');

+ 13 - 13
operationSupport/src/views/businessManagement/InvestmentResources/stepPage/distribution.vue

@@ -49,18 +49,16 @@ export default {
       this.$refs.form.validate((valid) => {
         if (valid) {
           var loading = this.$loading();
-          this.$http
-            .post('/czc-community/house/rent/out/distribute', this.formData)
-            .then(({ status, msg }) => {
-              if (status == 0) {
-                this.$message.success(msg);
-                this.params.callback();
-                this.$emit('close');
-              } else {
-                this.$message.error(msg);
-              }
-              loading.close();
-            })
+          this.$http.post('/czc-community/house/rent/out/distribute', this.formData).then(({ status, msg }) => {
+            if (status == 0) {
+              this.$message.success(msg);
+              this.params.callback();
+              this.$emit('close');
+            } else {
+              this.$message.error(msg);
+            }
+            loading.close();
+          })
             .catch(() => {
               loading.close();
             });
@@ -79,9 +77,11 @@ export default {
   },
   created () {
     this.getUserList();
+    debugger
     this.params.house.map((item) => {
       this.formData.rentOutIds.push(item.rentOutId);
-      this.formData.userPhone = item.residentPhone;
+      // debugger
+      // this.formData.userPhone = item.userPhone;
 
     });
   }

+ 206 - 164
operationSupport/src/views/facilityInspections/InspectionStandards.vue

@@ -1,182 +1,224 @@
 <template>
-    <div class="content">
-        <community-tree @organId="currentOrganId"></community-tree>
-        <div class="content-right">
-            <div class="search">
-                <el-input placeholder="巡检项内容" class="search-input" clearable v-model="mixins_query.cotent"></el-input>
-                <el-cascader
-                    v-model="typeId"
-                    :props="defaultProps"
-                    placeholder="设备设施类型"
-                    :options="productOptions"
-                    @change="deviceArrToggle"
-                ></el-cascader>
-                <el-button type="primary" placeholder="状态" class="search-btn" @click="mixins_search" icon="el-icon-search"
-                    >查询
-                </el-button>
+  <div class="content">
+    <community-tree @organId="currentOrganId"></community-tree>
+    <div class="content-right">
+      <div class="search">
+        <el-input
+          placeholder="巡检项内容"
+          class="search-input"
+          clearable
+          v-model="mixins_query.cotent"
+        ></el-input>
+        <el-cascader
+          v-model="typeId"
+          :props="defaultProps"
+          clearable
+          placeholder="设备设施类型"
+          :options="productOptions"
+          @change="deviceArrToggle"
+        ></el-cascader>
+        <el-button
+          type="primary"
+          placeholder="状态"
+          class="search-btn"
+          @click="mixins_search"
+          icon="el-icon-search"
+        >查询
+        </el-button>
 
-                <div class="search-icon">
-                    <el-dropdown type="primary" @command="addCommand">
-                        <span class="iconfont">&#xe641;</span>
-                        <el-dropdown-menu slot="dropdown" hide-on-click="false" class="device-search-dropdown">
-                            <el-dropdown-item command="add">单个添加</el-dropdown-item>
-                            <el-dropdown-item command="batchAdd">
-                                <div class="upload_div">
-                                    <xk-upload class="upload_class" @callback="mixins_search" :params="{ importType: 'INSEPTION_OPTION' }">
-                                        <span class="upload_text" slot="content">批量添加</span>
-                                    </xk-upload>
-                                </div>
-                            </el-dropdown-item>
-                            <el-dropdown-item command="template">下载模板</el-dropdown-item>
-                        </el-dropdown-menu>
-                    </el-dropdown>
-                </div>
-            </div>
-            <zz-table
-                :cols="cols"
-                :settings="{ showIndex: true, stripe: true }"
-                :loading="mixins_onQuery"
-                :data="mixins_list"
-                :pageset="mixins_pageset"
-                @page-change="pageChange"
+        <div class="search-icon">
+          <el-dropdown
+            type="primary"
+            @command="addCommand"
+          >
+            <span class="iconfont">&#xe641;</span>
+            <el-dropdown-menu
+              slot="dropdown"
+              hide-on-click="false"
+              class="device-search-dropdown"
             >
-                <template slot-scope="scope" slot="opt">
-                    <div class="opt">
-                        <el-tooltip effect="light" placement="bottom" content="修改">
-                            <i class="zoniot_font zoniot-icon-bianji" @click="addOrEdit('edit', scope.row)"></i>
-                        </el-tooltip>
-                        <el-tooltip effect="light" placement="bottom" content="删除">
-                            <i class="zoniot_font zoniot-icon-shanchu redText" @click="deleteOne(scope.row.id)"></i>
-                        </el-tooltip>
-                    </div>
-                </template>
-            </zz-table>
+              <el-dropdown-item command="add">单个添加</el-dropdown-item>
+              <el-dropdown-item command="batchAdd">
+                <div class="upload_div">
+                  <xk-upload
+                    class="upload_class"
+                    @callback="mixins_search"
+                    :params="{ importType: 'INSEPTION_OPTION' }"
+                  >
+                    <span
+                      class="upload_text"
+                      slot="content"
+                    >批量添加</span>
+                  </xk-upload>
+                </div>
+              </el-dropdown-item>
+              <el-dropdown-item command="template">下载模板</el-dropdown-item>
+            </el-dropdown-menu>
+          </el-dropdown>
         </div>
+      </div>
+      <zz-table
+        :cols="cols"
+        :settings="{ showIndex: true, stripe: true }"
+        :loading="mixins_onQuery"
+        :data="mixins_list"
+        :pageset="mixins_pageset"
+        @page-change="pageChange"
+      >
+        <template
+          slot-scope="scope"
+          slot="opt"
+        >
+          <div class="opt">
+            <el-tooltip
+              effect="light"
+              placement="bottom"
+              content="修改"
+            >
+              <i
+                class="zoniot_font zoniot-icon-bianji"
+                @click="addOrEdit('edit', scope.row)"
+              ></i>
+            </el-tooltip>
+            <el-tooltip
+              effect="light"
+              placement="bottom"
+              content="删除"
+            >
+              <i
+                class="zoniot_font zoniot-icon-shanchu redText"
+                @click="deleteOne(scope.row.id)"
+              ></i>
+            </el-tooltip>
+          </div>
+        </template>
+      </zz-table>
     </div>
+  </div>
 </template>
 <script>
 import communityTree from './communityTree.vue';
 import list from '@utils/list.js';
 export default {
-    mixins: [list],
-    components: {
-        communityTree
-    },
-    data() {
-        return {
-            currentId: '',
-            productOptions: [],
-            cols: [
-                {
-                    label: '设备设施类型',
-                    prop: 'typeName'
-                },
-                {
-                    label: '巡检项内容',
-                    prop: 'cotent'
-                },
-                {
-                    label: '类型',
-                    prop: 'type',
-                    format(val) {
-                        let value = '-';
-                        let selctArr = ['单选', '多选', '输入框'];
-                        if (!!val) {
-                            return selctArr[Number(val) - 1];
-                        } else {
-                            return value;
-                        }
-                    }
-                },
-                {
-                    label: '选项',
-                    prop: 'value'
-                },
-                {
-                    label: '操作',
-                    prop: 'id',
-                    slot: 'opt',
-                    width: 130
-                }
-            ],
-            defaultProps: {
-                value: 'id', // 唯一标识
-                label: 'label', // 标签显示
-                children: 'children'
-            },
-            mixins_post: 'post'
-        };
-    },
-    created() {
-        this.getProductOptions();
-        this.mixins_dataUrl = '/czc-community/inspectionOption/page';
-        this.mixins_query = {
-            communityId: ''
-        };
-        this.mixins_search();
-    },
-    methods: {
-        currentOrganId(data) {
-            this.mixins_query.communityId = data.id || '';
-            this.mixins_search();
-        },
-        addCommand(command) {
-            if (command === 'add') {
-                this.addOrEdit('add');
-            }
-            if (command === 'template') {
-                this.__exportExcel('/czc-community/excel/download/template', { importType: 'INSEPTION_OPTION' });
-                return;
-            }
+  mixins: [list],
+  components: {
+    communityTree
+  },
+  data () {
+    return {
+      currentId: '',
+      productOptions: [],
+      cols: [
+        {
+          label: '设备设施类型',
+          prop: 'typeName'
         },
-        addOrEdit(todo, row) {
-            new Promise((resolve) => {
-                let rows,
-                    title = '编辑巡检项';
-                if ('add' == todo) {
-                    title = '添加巡检项';
-                } else {
-                    rows = JSON.parse(JSON.stringify(row));
-                }
-                this.$store.dispatch('openModal', {
-                    url: '/facilityInspections/popups/addStandard.vue',
-                    title: title,
-                    width: '500px',
-                    height: '400px',
-                    props: {
-                        data: rows,
-                        communityId: this.mixins_query.communityId,
-                        deviceArr: this.productOptions,
-                        todo: todo,
-                        callback: resolve
-                    }
-                });
-            }).then(() => {
-                this.mixins_search();
-            });
+        {
+          label: '巡检项内容',
+          prop: 'cotent'
         },
-        deleteOne(id) {
-            this.$msgBox(`刪除巡检标准`, '删除后将无法恢复,请问是否继续?')
-                .then(() => {
-                    this.$http.get('/czc-community/inspectionOption/delete?id=' + id).then(({ msg, status, data }) => {
-                        if (status == 0) {
-                            this.$message.success(msg);
-                            this.mixins_search();
-                        } else {
-                            this.$message.error(msg);
-                        }
-                    });
-                })
-                .catch(() => {});
+        {
+          label: '类型',
+          prop: 'type',
+          format (val) {
+            let value = '-';
+            let selctArr = ['单选', '多选', '输入框'];
+            if (!!val) {
+              return selctArr[Number(val) - 1];
+            } else {
+              return value;
+            }
+          }
         },
-        deviceArrToggle(va) {
-            this.mixins_query.typeId = _.last(va);
+        {
+          label: '选项',
+          prop: 'value'
         },
-        getProductOptions() {
-            this.$http.postForm('/czc-community/devicetype/getTypeTree', { name: '' }).then((data) => {
-                this.productOptions = data;
-            });
+        {
+          label: '操作',
+          prop: 'id',
+          slot: 'opt',
+          width: 130
+        }
+      ],
+      defaultProps: {
+        value: 'id', // 唯一标识
+        label: 'label', // 标签显示
+        children: 'children'
+      },
+      mixins_post: 'post'
+    };
+  },
+  created () {
+    this.getProductOptions();
+    this.mixins_dataUrl = '/czc-community/inspectionOption/page';
+    this.mixins_query = {
+      communityId: ''
+    };
+    this.mixins_search();
+  },
+  methods: {
+    currentOrganId (data) {
+      this.mixins_query.communityId = data.id || '';
+      this.mixins_search();
+    },
+    addCommand (command) {
+      if (command === 'add') {
+        this.addOrEdit('add');
+      }
+      if (command === 'template') {
+        this.__exportExcel('/czc-community/excel/download/template', { importType: 'INSEPTION_OPTION' });
+        return;
+      }
+    },
+    addOrEdit (todo, row) {
+      new Promise((resolve) => {
+        let rows,
+          title = '编辑巡检项';
+        if ('add' == todo) {
+          title = '添加巡检项';
+        } else {
+          rows = JSON.parse(JSON.stringify(row));
         }
+        this.$store.dispatch('openModal', {
+          url: '/facilityInspections/popups/addStandard.vue',
+          title: title,
+          width: '500px',
+          height: '400px',
+          props: {
+            data: rows,
+            communityId: this.mixins_query.communityId,
+            deviceArr: this.productOptions,
+            todo: todo,
+            callback: resolve
+          }
+        });
+      }).then(() => {
+        this.mixins_search();
+      });
+    },
+    deleteOne (id) {
+      this.$msgBox(`刪除巡检标准`, '删除后将无法恢复,请问是否继续?')
+        .then(() => {
+          this.$http.get('/czc-community/inspectionOption/delete?id=' + id).then(({ msg, status, data }) => {
+            if (status == 0) {
+              this.$message.success(msg);
+              this.mixins_search();
+            } else {
+              this.$message.error(msg);
+            }
+          });
+        })
+        .catch(() => { });
+    },
+    deviceArrToggle (va) {
+      this.mixins_query.typeId = _.last(va);
+    },
+    getProductOptions () {
+      this.$http.postForm('/czc-community/devicetype/getTypeTree', { name: '' }).then((data) => {
+        this.productOptions = data;
+      });
     }
+  }
 };
 </script>

+ 2 - 2
operationSupport/src/views/ownerManagement/landlordManagement/stepPage/add.vue

@@ -711,7 +711,6 @@ export default {
                 return;
               }
             } else {
-
               if (this.houseInformation[a].region.length == 0) {
                 this.$message.error('请选择房屋信息');
                 return;
@@ -914,7 +913,8 @@ export default {
               for (let k = 0; k < data.buildingList[i].houseList.length; k++) {
                 houseId.push(data.buildingList[i].houseList[k].houseId);
                 unitName.push(data.buildingList[i].houseList[k].unitName)
-                if (unitName.length != 0 && unitName[0] != null) {
+
+                if (unitName.length != 0 && unitName[0] != null && unitName[0] != '') {
 
                   resDateRegion[k] = [communityId, buildingId, unitName[k], houseId[k]];
                 } else {

+ 9 - 1
operationSupport/src/views/ownerManagement/ownerReview/index.vue

@@ -142,7 +142,14 @@ export default {
         },
         {
           label: '入住时间',
-          prop: 'checkInDate'
+          prop: 'checkInDate',
+          format (val) {
+            if (val != null) {
+              return (val).substr(0, 10)
+            } else {
+              return val
+            }
+          },
         },
         {
           label: '操作',
@@ -186,6 +193,7 @@ export default {
     },
     Review (row) {
       this.activeData = row;
+      this.activeData.checkInDate = (this.activeData.checkInDate).substr(0, 10);
       this.ownerStatus = true;
     }
   },

+ 3 - 3
operationSupport/src/views/ownerManagement/ownerReview/toExamine.vue

@@ -350,12 +350,10 @@ export default {
   },
   created () {
     this.$store.dispatch('collapse', true);
-
     if (!!this.params.id) {
       this.getDetails(this.params.id);
     } else {
       if (this.$parent.thisLeftData.type == 'room') {
-
         this.formData.houseList = [
           {
             checkInDate: '',
@@ -391,7 +389,6 @@ export default {
   },
   methods: {
     getDetails (id) {
-
       let url = '/czc-community/scResident/audit/find/' + id;
       this.$http.get(url).then(({ data, status, msg }) => {
         if (0 === status) {
@@ -401,6 +398,9 @@ export default {
             effectiveDateEnd = '';
           }
           this.formData = data;
+          this.formData.houseList.forEach((item, index) => {
+            this.formData.houseList[index].checkInDate = (item.checkInDate).substr(0, 10)
+          })
         } else {
           this.$message.error(msg);
         }

+ 6 - 3
operationSupport/src/views/workOrders/popups/details.vue

@@ -70,11 +70,13 @@
                     <span
                       v-if="thisItem['handleResult'] == 2"
                       class="redText"
-                    >无法处理</span>
+                    >无法处理:{{titleHandleResult}}</span>
                     <span
                       v-else-if="thisItem['handleResult'] == 1"
                       class="greenText"
-                    >成功处理</span>
+                    >成功处理
+                      <span v-if="!!titleHandleResult">:{{titleHandleResult}}</span>
+                    </span>
                     <span v-else>--</span>
                   </template>
                   <template v-if="item.slot === 'handleFile' && !!thisItem['handleFile']">
@@ -205,6 +207,7 @@ export default {
   props: ['params'],
   data () {
     return {
+      titleHandleResult: '',
       formLook: [
         {
           label: '所属社区:',
@@ -286,7 +289,7 @@ export default {
         .get('/czc-community/workOrder/find/' + id)
         .then(({ data, msg, status }) => {
           if (status == 0) {
-
+            this.titleHandleResult = data.handleContent;
             this.thisItem = data;
 
             this.thisActive = !!data.progressList.length ? Number(data.progressList.length) - 1 : 0;

+ 22 - 22
userCenter/src/utils/http.js

@@ -12,7 +12,7 @@ var http = axios.create({
 
 // axios request 拦截器
 http.interceptors.request.use(
-    (config) => {
+    config => {
         // 所有请求都添加/czc-user-auth前缀,方便接口代理
         // config.url = `/czc-user-auth${config.url}`;
         if (config.url.indexOf('/czc-user-auth') !== -1) {
@@ -36,21 +36,21 @@ http.interceptors.request.use(
         config.cancelToken = source.token;
         return config;
     },
-    (err) => {
+    err => {
         return Promise.reject(err);
     }
 );
 // axios响应拦截
 http.interceptors.response.use(
-    (res) => {
+    res => {
         return Promise.resolve(res.data);
     },
-    (err) => {
+    err => {
         if (err.response.status == 401) {
             axios({
                 url: '/czc-user-auth/user/getUserStatus?accessToken=' + localStorage.getItem('CZC_token'),
                 method: 'get'
-            }).then((response) => {
+            }).then(response => {
                 if (window.relogin) return false;
                 window.relogin = true;
                 let data = response.data.data;
@@ -63,7 +63,7 @@ http.interceptors.response.use(
                             showClose: false
                         })
                         .then(() => {
-                            window.open(config.loginUrl, '_self');
+                            window.open(loginUrl, '_self');
                             window.relogin = false;
                             localStorage.removeItem('CZC_token');
                         })
@@ -77,7 +77,7 @@ http.interceptors.response.use(
                             showClose: false
                         })
                         .then(() => {
-                            window.open(config.loginUrl, '_self');
+                            window.open(loginUrl, '_self');
                             window.relogin = false;
                             localStorage.removeItem('CZC_token');
                         })
@@ -91,7 +91,7 @@ http.interceptors.response.use(
                             showClose: false
                         })
                         .then(() => {
-                            window.open(config.loginUrl, '_self');
+                            window.open(loginUrl, '_self');
                             window.relogin = false;
                             localStorage.removeItem('CZC_token');
                         })
@@ -110,10 +110,10 @@ export default {
     post(url, data) {
         return new Promise((resolve, reject) => {
             http.post(url, data)
-                .then((res) => {
+                .then(res => {
                     this.callback(resolve, res);
                 })
-                .catch((err) => {
+                .catch(err => {
                     this.reject(reject, err);
                 });
         });
@@ -121,10 +121,10 @@ export default {
     postForm(url, data) {
         return new Promise((resolve, reject) => {
             http.post(url, qs.stringify(data))
-                .then((res) => {
+                .then(res => {
                     this.callback(resolve, res);
                 })
-                .catch((err) => {
+                .catch(err => {
                     this.reject(reject, err);
                 });
         });
@@ -139,10 +139,10 @@ export default {
             http.get(url, {
                 params: data
             })
-                .then((res) => {
+                .then(res => {
                     this.callback(resolve, res);
                 })
-                .catch((err) => {
+                .catch(err => {
                     this.reject(reject, err);
                 });
         });
@@ -152,10 +152,10 @@ export default {
             http.delete(url, {
                 params: data
             })
-                .then((res) => {
+                .then(res => {
                     this.callback(resolve, res);
                 })
-                .catch((err) => {
+                .catch(err => {
                     this.reject(reject, err);
                 });
         });
@@ -165,10 +165,10 @@ export default {
             http.delete(url, {
                 data: data
             })
-                .then((res) => {
+                .then(res => {
                     this.callback(resolve, res);
                 })
-                .catch((err) => {
+                .catch(err => {
                     this.reject(reject, err);
                 });
         });
@@ -176,10 +176,10 @@ export default {
     putForm(url, data) {
         return new Promise((resolve, reject) => {
             http.put(url, qs.stringify(data))
-                .then((res) => {
+                .then(res => {
                     this.callback(resolve, res);
                 })
-                .catch((err) => {
+                .catch(err => {
                     this.reject(reject, err);
                 });
         });
@@ -187,10 +187,10 @@ export default {
     put(url, data) {
         return new Promise((resolve, reject) => {
             http.put(url, data)
-                .then((res) => {
+                .then(res => {
                     this.callback(resolve, res);
                 })
-                .catch((err) => {
+                .catch(err => {
                     this.reject(reject, err);
                 });
         });