|
@@ -206,7 +206,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
bizId: Number(localStorage.getItem('bizId')),
|
|
|
- title: this.type === 'require' ? '新建需求定时通知' : '新建任务定时通知',
|
|
|
+ title: '',
|
|
|
requireProps: {
|
|
|
value: 'id',
|
|
|
label: 'rqmtOrntName',
|
|
@@ -222,6 +222,7 @@ export default {
|
|
|
directionList: [], // 需求方面列表
|
|
|
modulesList: [], // 任务模块列表
|
|
|
formData: {
|
|
|
+ type: this.type === 'require' ? 0 : 1,
|
|
|
bizId: Number(localStorage.getItem('bizId')),
|
|
|
requireOrientIdList: [], // 需求方向
|
|
|
techModuleIdList: [], // 技术模块
|
|
@@ -438,10 +439,12 @@ export default {
|
|
|
},
|
|
|
init() {
|
|
|
if (this.type === 'require') {
|
|
|
+ this.data && !this.copy ? this.title = '编辑需求定时通知' : this.title = '新建需求定时通知'
|
|
|
this.typeList = [{ label: '需求状态', value: 1 }, { label: '需求事件', value: 2 }]
|
|
|
this.noticeGroupList = [{ label: '需求成员', value: 0 }, { label: '团队', value: 1 }, { label: '自定义人员', value: 2 }]
|
|
|
this.showRequireStatusEnum()
|
|
|
} else {
|
|
|
+ this.data && !this.copy ? this.title = '编辑任务定时通知' : this.title = '新建任务定时通知'
|
|
|
this.typeList = [{ label: '任务状态', value: 3 }, { label: '任务事件', value: 4 }]
|
|
|
this.noticeGroupList = [{ label: '任务成员', value: 0 }, { label: '团队', value: 1 }, { label: '自定义人员', value: 2 }]
|
|
|
this.showTaskStatusEnum()
|