|
@@ -38,7 +38,8 @@
|
|
|
|
|
|
<el-table v-loading="loading" :data="taskList" @selection-change="handleSelectionChange" >
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="商机id" align="center" prop="bo" v-if="source == 'Task'"/>
|
|
|
+ <!-- <el-table-column label="商机id" align="center" prop="bo" v-if="source == 'Task'"/> -->
|
|
|
+ <el-table-column label="商机名称" align="center" prop="boName" v-if="source == 'Task'"/>
|
|
|
<el-table-column label="商机阶段" align="center" prop="boStage">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="dict.type.mk_bo_stage" :value="scope.row.boStage"/>
|
|
@@ -214,7 +215,7 @@
|
|
|
v-model="form.content">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
- <BehaviorList :key="timer" :source="'TaskList'" :bo="this.form" />
|
|
|
+ <BehaviorList :key="timer" :source="'TaskList'" :bo="this.form" v-if="this.operatingState != 'Insert'"/>
|
|
|
<div class="md-auditInfo">
|
|
|
<el-divider content-position="left">其它信息</el-divider>
|
|
|
<el-form :inline="true" label-position="right" :model="form">
|
|
@@ -364,12 +365,17 @@ export default {
|
|
|
},
|
|
|
//重新加载子组件参数
|
|
|
timer: '',
|
|
|
+ //当前操作状态
|
|
|
+ operatingState: '',
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
if(this.source == 'BoDetails'){
|
|
|
this.queryParams.bo = this.bo.id;
|
|
|
}
|
|
|
+ if(this.source == 'Task'){
|
|
|
+ this.queryParams = this.bo;
|
|
|
+ }
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
@@ -437,6 +443,7 @@ export default {
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
+ this.operatingState = "Insert";
|
|
|
this.reset();
|
|
|
if(this.source == 'BoDetails'){
|
|
|
this.form.bo = this.bo.id;
|
|
@@ -451,13 +458,14 @@ export default {
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
- this.timer = new Date().getTime();
|
|
|
+ this.operatingState = "Update";
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids
|
|
|
getTask(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
this.title = "修改任务";
|
|
|
+ this.timer = new Date().getTime();
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|