woderenwusousuo
This commit is contained in:
parent
dbf7c793c2
commit
081c721494
|
|
@ -4,7 +4,9 @@ ENV = 'development'
|
|||
# base api
|
||||
#VUE_APP_BASE_API = 'http://10.0.11.127:8000/api'
|
||||
#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
|
||||
VUE_APP_BASE_API = 'http://47.95.0.242:9101'
|
||||
VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api'
|
||||
|
||||
#VUE_APP_BASE_API = 'http://47.95.0.242:9101'
|
||||
|
||||
|
||||
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
|
||||
|
|
|
|||
|
|
@ -2,9 +2,13 @@
|
|||
<div class="app-container">
|
||||
|
||||
<el-card>
|
||||
<el-input v-model="memberName" style="width: 380px" placeholder="请输入内容"></el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="search">搜索</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="reset">重置</el-button>
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
:data="subinspecttasklist"
|
||||
|
||||
border
|
||||
fit
|
||||
stripe
|
||||
|
|
@ -31,9 +35,10 @@
|
|||
</el-table-column>
|
||||
<el-table-column align="center" label="巡查公司数">
|
||||
<template slot-scope="scope">{{ scope.row.depts_count }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="组长">
|
||||
<template slot-scope="scope">
|
||||
</el-table-column >
|
||||
<el-table-column align="center"
|
||||
label="组长">
|
||||
<template slot-scope="scope" >
|
||||
<span v-for="item in scope.row.members" v-bind:key="item.member">
|
||||
|
||||
<el-tag v-if="item.type=='组长'" effect="plain">{{
|
||||
|
|
@ -48,10 +53,11 @@
|
|||
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="操作"
|
||||
label="操作"
|
||||
width="200px"
|
||||
fixed="right"
|
||||
>
|
||||
|
||||
<template slot-scope="scope">
|
||||
<el-link @click="handleClick(scope)" type="primary">执行</el-link>
|
||||
</template>
|
||||
|
|
@ -81,6 +87,8 @@ export default {
|
|||
subinspecttasklist:[],
|
||||
listLoading: true,
|
||||
dialogVisible: false,
|
||||
memberName:"",
|
||||
memberlist:[],
|
||||
|
||||
};
|
||||
},
|
||||
|
|
@ -103,18 +111,49 @@ export default {
|
|||
getsubinspecttaskselflist().then((response) => {
|
||||
if (response.data) {
|
||||
this.subinspecttasklist = response.data;
|
||||
|
||||
|
||||
}
|
||||
this.listLoading = false;
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
handleClick(scope){
|
||||
this.$router.push({name: "myTaskdos", params: { id: scope.row.id,leaders:scope.row.members }, })
|
||||
|
||||
},
|
||||
|
||||
handleFilter() {
|
||||
this.listQuery.page = 1;
|
||||
this.getList();
|
||||
},
|
||||
|
||||
search() {
|
||||
for(var i=0;i<this.subinspecttasklist.length;i++ )
|
||||
{
|
||||
for(var j=0;j<this.subinspecttasklist[i].members.length;j++ )
|
||||
{
|
||||
|
||||
if(this.subinspecttasklist[i].members[j].member__name==this.memberName && this.subinspecttasklist[i].members[j].type=="组长")
|
||||
{
|
||||
console.log(this.memberName)
|
||||
|
||||
this.memberlist.push(this.subinspecttasklist[i],)
|
||||
console.log( this.memberlist)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
this.subinspecttasklist=this.memberlist;
|
||||
this.memberlist=[];
|
||||
},
|
||||
reset(){
|
||||
|
||||
this.getList();
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue