选巡查人员优化
This commit is contained in:
parent
52f7b2436e
commit
27591e5fd3
|
|
@ -394,7 +394,7 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
this.task.id = this.$route.params.id;
|
this.task.id = this.$route.params.id;
|
||||||
this.getinspecttask();//主任务信息
|
this.getinspecttask();//主任务信息
|
||||||
this.getTypeAll();//组长
|
//this.getTypeAll();//组长
|
||||||
this.getUserList();//组员
|
this.getUserList();//组员
|
||||||
this.getOrgList();//组织
|
this.getOrgList();//组织
|
||||||
this.getsubinspecttasklist();//子任务名
|
this.getsubinspecttasklist();//子任务名
|
||||||
|
|
@ -416,13 +416,15 @@ export default {
|
||||||
},
|
},
|
||||||
//组长列表
|
//组长列表
|
||||||
getTypeAll() {
|
getTypeAll() {
|
||||||
getUserList({pageoff:true}).then((res) => {
|
getUserList({pageoff:true, roles__name:'质量巡查成员'}).then((res) => {
|
||||||
this.leaderOptions = genTree(res.data);
|
this.leaderOptions = genTree(res.data);
|
||||||
|
this.memberOptions = genTree(res.data);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//组员列表
|
//组员列表
|
||||||
getUserList() {
|
getUserList() {
|
||||||
getUserList({pageoff:true}).then((res) => {
|
getUserList({pageoff:true, roles__name:'质量巡查成员'}).then((res) => {
|
||||||
|
this.leaderOptions = genTree(res.data);
|
||||||
this.memberOptions = genTree(res.data);
|
this.memberOptions = genTree(res.data);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,8 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="listQuery.name"
|
v-model="listQuery.search"
|
||||||
placeholder="姓名"
|
placeholder="姓名/邮箱"
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
@keyup.enter.native="handleFilter"
|
@keyup.enter.native="handleFilter"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,4 @@ from .models import User
|
||||||
class UserFilter(filters.FilterSet):
|
class UserFilter(filters.FilterSet):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = User
|
model = User
|
||||||
fields = {
|
fields = ['name', 'is_active', 'roles', 'roles__name']
|
||||||
'name': ['exact', 'contains'],
|
|
||||||
'is_active': ['exact']
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue