woderenwusousuo
This commit is contained in:
parent
dbf7c793c2
commit
081c721494
|
|
@ -4,7 +4,9 @@ ENV = 'development'
|
||||||
# base api
|
# base api
|
||||||
#VUE_APP_BASE_API = 'http://10.0.11.127:8000/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://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,
|
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,13 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
<el-card>
|
<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
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
:data="subinspecttasklist"
|
:data="subinspecttasklist"
|
||||||
|
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
stripe
|
stripe
|
||||||
|
|
@ -31,9 +35,10 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="巡查公司数">
|
<el-table-column align="center" label="巡查公司数">
|
||||||
<template slot-scope="scope">{{ scope.row.depts_count }}</template>
|
<template slot-scope="scope">{{ scope.row.depts_count }}</template>
|
||||||
</el-table-column>
|
</el-table-column >
|
||||||
<el-table-column align="center" label="组长">
|
<el-table-column align="center"
|
||||||
<template slot-scope="scope">
|
label="组长">
|
||||||
|
<template slot-scope="scope" >
|
||||||
<span v-for="item in scope.row.members" v-bind:key="item.member">
|
<span v-for="item in scope.row.members" v-bind:key="item.member">
|
||||||
|
|
||||||
<el-tag v-if="item.type=='组长'" effect="plain">{{
|
<el-tag v-if="item.type=='组长'" effect="plain">{{
|
||||||
|
|
@ -48,10 +53,11 @@
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
label="操作"
|
label="操作"
|
||||||
width="200px"
|
width="200px"
|
||||||
fixed="right"
|
fixed="right"
|
||||||
>
|
>
|
||||||
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-link @click="handleClick(scope)" type="primary">执行</el-link>
|
<el-link @click="handleClick(scope)" type="primary">执行</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -81,6 +87,8 @@ export default {
|
||||||
subinspecttasklist:[],
|
subinspecttasklist:[],
|
||||||
listLoading: true,
|
listLoading: true,
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
|
memberName:"",
|
||||||
|
memberlist:[],
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -103,18 +111,49 @@ export default {
|
||||||
getsubinspecttaskselflist().then((response) => {
|
getsubinspecttaskselflist().then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.subinspecttasklist = response.data;
|
this.subinspecttasklist = response.data;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
this.listLoading = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handleClick(scope){
|
handleClick(scope){
|
||||||
this.$router.push({name: "myTaskdos", params: { id: scope.row.id,leaders:scope.row.members }, })
|
this.$router.push({name: "myTaskdos", params: { id: scope.row.id,leaders:scope.row.members }, })
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handleFilter() {
|
handleFilter() {
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getList();
|
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