Shannon_mu 3 سال پیش
والد
کامیت
70e0e2def7

+ 8 - 2
operationSupport/src/views/facilityInspections/popups/add.vue

@@ -56,7 +56,7 @@
         <el-cascader
             ref="userName"
             v-model="formData.peopleId"
-            :props="defaultProps"
+            :props="defaultProps1"
             slot="peopleId"
             :options="findUser"
             @change="findUserToggle"
@@ -166,7 +166,13 @@ export default {
             defaultProps: {
                 value: 'id', // 唯一标识
                 label: 'label', // 标签显示
-                children: 'children'
+                children: 'children',
+            },
+            defaultProps1: {
+                value: 'id', // 唯一标识
+                label: 'label', // 标签显示
+                children: 'children',
+                emitPath: false
             },
             typeValueKey: 0,
             typeValueW: [],

+ 14 - 35
operationSupport/src/views/patrolManagement/patrolRoute.vue

@@ -2,26 +2,11 @@
     <div class="main">
         <template v-if="isLook === 'index'">
             <div class="search">
-                <el-input
-                    placeholder="请输入巡更点名称"
-                    class="search-input"
-                    clearable
-                    v-model="mixins_query.name"
-                ></el-input>
+                <el-input placeholder="请输入巡更点名称" class="search-input" clearable v-model="mixins_query.name"></el-input>
                 <el-select v-model="mixins_query.communityId" placeholder="请选择所属社区" clearable>
-                    <el-option
-                        v-for="(item, index) in communityArr"
-                        :key="index"
-                        :label="item.communityName"
-                        :value="item.id"
-                    ></el-option>
+                    <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
                 </el-select>
-                <el-button
-                    type="primary"
-                    class="search-btn"
-                    @click="mixins_search"
-                    icon="el-icon-search"
-                >查询</el-button>
+                <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询</el-button>
 
                 <div class="search-icon">
                     <el-tooltip class="item" effect="light" placement="bottom" content="新增">
@@ -37,29 +22,22 @@
                 :pageset="mixins_pageset"
                 @page-change="pageChange"
             >
-                <template
-                    slot-scope="scope"
-                    slot="periodValue"
-                >{{ scope.row.periodType==1?`每周${scope.row.periodValue}`:`每隔${scope.row.periodValue}天`}}</template>
+                <template slot-scope="scope" slot="periodValue">{{
+                    scope.row.periodType == 1 ? `每周${scope.row.periodValue}` : `每隔${scope.row.periodValue}天`
+                }}</template>
                 <template slot-scope="scope" slot="opt">
                     <div class="opt">
                         <el-tooltip effect="light" placement="bottom" content="排班">
-                            <i
-                                class="zoniot_font zoniot-icon-shenhe"
-                                @click="schedulingEdit(scope.row)"
-                            ></i>
+                            <i class="zoniot_font zoniot-icon-shenhe" @click="schedulingEdit(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>
+                            <i class="zoniot_font zoniot-icon-shanchu redText" @click="deleteOne(scope.row.id)"></i>
                         </el-tooltip>
                     </div>
                 </template>
             </zz-table>
         </template>
-        <scheduling v-if="isLook === 'schedu'" @initPage="initPage" ></scheduling>
+        <scheduling v-if="isLook === 'schedu'" @initPage="initPage"></scheduling>
         <add-patrol v-if="isLook === 'patrol'" @initPage="initPage"></add-patrol>
     </div>
 </template>
@@ -110,7 +88,7 @@ export default {
                 }
             ],
             findUser: [],
-            thisObj:{},
+            thisObj: {},
             mixins_post: 'post'
         };
     },
@@ -141,12 +119,12 @@ export default {
         getorgTree() {
             this.$http
                 .get('/sc-community/assets/community/list')
-                .then(data => {
+                .then((data) => {
                     this.communityArr = data.data;
                     this.$store.commit('setAreaSelect', data.data);
                 })
 
-                .catch(function() {});
+                .catch(function () {});
         },
         getUserList() {
             this.$http.get('/sc-user-center/user/findUserList').then(({ data, status, msg }) => {
@@ -162,7 +140,8 @@ export default {
         },
         initPage() {
             this.isLook = 'index';
-             this.thisObj = {};
+            this.thisObj = {};
+            this.mixins_search();
         }
     }
 };