|
@@ -2,26 +2,11 @@
|
|
<div class="main">
|
|
<div class="main">
|
|
<template v-if="isLook === 'index'">
|
|
<template v-if="isLook === 'index'">
|
|
<div class="search">
|
|
<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-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-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">
|
|
<div class="search-icon">
|
|
<el-tooltip class="item" effect="light" placement="bottom" content="新增">
|
|
<el-tooltip class="item" effect="light" placement="bottom" content="新增">
|
|
@@ -37,29 +22,22 @@
|
|
:pageset="mixins_pageset"
|
|
:pageset="mixins_pageset"
|
|
@page-change="pageChange"
|
|
@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">
|
|
<template slot-scope="scope" slot="opt">
|
|
<div class="opt">
|
|
<div class="opt">
|
|
<el-tooltip effect="light" placement="bottom" content="排班">
|
|
<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>
|
|
<el-tooltip effect="light" placement="bottom" content="删除">
|
|
<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>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</zz-table>
|
|
</zz-table>
|
|
</template>
|
|
</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>
|
|
<add-patrol v-if="isLook === 'patrol'" @initPage="initPage"></add-patrol>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -110,7 +88,7 @@ export default {
|
|
}
|
|
}
|
|
],
|
|
],
|
|
findUser: [],
|
|
findUser: [],
|
|
- thisObj:{},
|
|
|
|
|
|
+ thisObj: {},
|
|
mixins_post: 'post'
|
|
mixins_post: 'post'
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -141,12 +119,12 @@ export default {
|
|
getorgTree() {
|
|
getorgTree() {
|
|
this.$http
|
|
this.$http
|
|
.get('/sc-community/assets/community/list')
|
|
.get('/sc-community/assets/community/list')
|
|
- .then(data => {
|
|
|
|
|
|
+ .then((data) => {
|
|
this.communityArr = data.data;
|
|
this.communityArr = data.data;
|
|
this.$store.commit('setAreaSelect', data.data);
|
|
this.$store.commit('setAreaSelect', data.data);
|
|
})
|
|
})
|
|
|
|
|
|
- .catch(function() {});
|
|
|
|
|
|
+ .catch(function () {});
|
|
},
|
|
},
|
|
getUserList() {
|
|
getUserList() {
|
|
this.$http.get('/sc-user-center/user/findUserList').then(({ data, status, msg }) => {
|
|
this.$http.get('/sc-user-center/user/findUserList').then(({ data, status, msg }) => {
|
|
@@ -162,7 +140,8 @@ export default {
|
|
},
|
|
},
|
|
initPage() {
|
|
initPage() {
|
|
this.isLook = 'index';
|
|
this.isLook = 'index';
|
|
- this.thisObj = {};
|
|
|
|
|
|
+ this.thisObj = {};
|
|
|
|
+ this.mixins_search();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|