Browse Source

feat: 新建任务

tall
xuesinan 4 years ago
parent
commit
ab24b333e2
  1. 1
      CHANGELOG.md
  2. 6
      src/components/TimeLine/component/TaskTools.vue
  3. 10
      src/components/Title/components/CreateTask.vue

1
CHANGELOG.md

@ -48,6 +48,7 @@
- | 项目创建分享链接 | eb2c4ba
- | 项目列表, 项目url | 32e005b
- | 项目api url设置 | 6cd5245
- | 新建任务 | 131ce0f
- | 新建任务 | 9ab680e
- | 新建任务 | 59897c2
- | 新建任务 部分提交参数 | 25c78b8

6
src/components/TimeLine/component/TaskTools.vue

@ -8,10 +8,10 @@
<!-- 右上角 ... 弹窗 -->
<view class="popup border shadow-md" v-if="show">
<view class="flex justify-center pb-3 border-b-1">
<!-- <view class="flex justify-center pb-3 border-b-1">
<span>添加插件</span>
</view>
<view class="flex justify-center py-3 border-b-1">
</view> -->
<view class="flex justify-center pb-3 border-b-1">
<span @click="createTask">新建任务</span>
</view>
<view class="flex pt-3 justify-center">

10
src/components/Title/components/CreateTask.vue

@ -420,10 +420,12 @@ export default {
processTaskId: params.processTaskId,
};
// store
//
if (!this.task || !this.task.id || this.task.process === 4) {
this.addNewTasks(newTasks);
}
// --
// if (!this.task || !this.task.id || this.task.process === 4) {
// this.addNewTasks(newTasks);
// }
this.addNewTasks(newTasks);
} catch (error) {
this.$emit('closeMask');
console.error('error: ', error);

Loading…
Cancel
Save