Browse Source

众包任务

master
陈裕财 4 years ago
parent
commit
585dba33dc
  1. 10
      src/views/xm/core/crowd/XmTaskCrowdMng.vue
  2. 4
      src/views/xm/core/xmTask/XmTaskMng.vue

10
src/views/xm/core/crowd/XmTaskCrowdMng.vue

@ -90,8 +90,11 @@
style="width: 150px" style="width: 150px"
v-model="filters.key" v-model="filters.key"
placeholder="计划/任务名称" placeholder="计划/任务名称"
>
>
</el-input> </el-input>
<el-input v-model="filters.projectId" style="width: 150px;" placeholder="项目编号" clearable></el-input>
<el-input v-model="filters.cbranchId" style="width: 150px;" placeholder="项目公司编号" clearable></el-input>
<el-button <el-button
@click="searchXmTasks" @click="searchXmTasks"
type="primary" type="primary"
@ -682,6 +685,7 @@ export default {
taskType: "", taskType: "",
tags: [], tags: [],
taskState:'',// taskState:'',//
cbranchId:'',//
}, },
xmTasks: [], // xmTasks: [], //
pageInfo: { pageInfo: {
@ -1271,6 +1275,10 @@ export default {
if (this.filters.tags && this.filters.tags.length>0) { if (this.filters.tags && this.filters.tags.length>0) {
params.tagIdList = this.filters.tags.map(i=>i.tagId); params.tagIdList = this.filters.tags.map(i=>i.tagId);
} }
if (this.filters.cbranchId) {
params.cbranchId = this.filters.cbranchId;
}
params.taskOut="1" params.taskOut="1"
params.crowd="1" params.crowd="1"
params.ntype="0" params.ntype="0"

4
src/views/xm/core/xmTask/XmTaskMng.vue

@ -1256,12 +1256,12 @@ export default {
params.ntype="0" params.ntype="0"
} }
if(this.ptype==='1'){
if(this.ptype==='1' && !this.isTaskCenter){
if(!params.productId){ if(!params.productId){
this.$notify.warning("请先选中产品") this.$notify.warning("请先选中产品")
return; return;
} }
}else if(this.ptype==='0'){
}else if(this.ptype==='0' && !this.isTaskCenter){
if(!params.projectId){ if(!params.projectId){
this.$notify.warning("请先选中项目") this.$notify.warning("请先选中项目")
return; return;

Loading…
Cancel
Save