|
|
@@ -106,10 +106,10 @@
|
|
|
<button class="btn-primary" :loading="submitting" :disabled="submitting" @click="submit">创建任务</button>
|
|
|
|
|
|
<!-- TASK-SYS-248: 前置/后置任务(流程任务) -->
|
|
|
-<view class="form-item" style="margin-top: 20rpx; padding-top: 20rpx; border-top: 1rpx solid #eee;">
|
|
|
- <text class="label" style="color: #F97316;">前置任务(可选,多选)</text>
|
|
|
- <text class="form-hint" style="margin-bottom: 10rpx;">选择本任务执行前必须完成的任务</text>
|
|
|
- <view style="max-height: 200rpx; overflow-y: auto;">
|
|
|
+<view class="form-item form-item--flow">
|
|
|
+ <text class="label label--pre">前置任务(可选,多选)</text>
|
|
|
+ <text class="form-hint form-hint--tight">选择本任务执行前必须完成的任务</text>
|
|
|
+ <view class="task-picker-scroll">
|
|
|
<view v-for="task in prerequisiteTasks" :key="task.id" class="task-checkbox-row" @click="togglePrerequisite(task.id)">
|
|
|
<view class="task-checkbox" :class="{ checked: form.prerequisiteTaskIds.indexOf(task.id) > -1 }">
|
|
|
<text v-if="form.prerequisiteTaskIds.indexOf(task.id) > -1" class="check-icon">✓</text>
|
|
|
@@ -121,9 +121,9 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="form-item">
|
|
|
- <text class="label" style="color: #6366F1;">后置任务(可选,多选)</text>
|
|
|
- <text class="form-hint" style="margin-bottom: 10rpx;">选择本任务完成后自动解锁的任务(任意一个完成即可)</text>
|
|
|
- <view style="max-height: 200rpx; overflow-y: auto;">
|
|
|
+ <text class="label label--post">后置任务(可选,多选)</text>
|
|
|
+ <text class="form-hint form-hint--tight">选择本任务完成后自动解锁的任务(任意一个完成即可)</text>
|
|
|
+ <view class="task-picker-scroll">
|
|
|
<view v-for="task in successorTasks" :key="task.id" class="task-checkbox-row" @click="toggleSuccessor(task.id)">
|
|
|
<view class="task-checkbox" :class="{ checked: form.successorTaskIds.indexOf(task.id) > -1 }">
|
|
|
<text v-if="form.successorTaskIds.indexOf(task.id) > -1" class="check-icon">✓</text>
|
|
|
@@ -136,7 +136,7 @@
|
|
|
|
|
|
<view class="form-item" v-if="form.prerequisiteTaskIds.length > 0 || form.successorTaskIds.length > 0">
|
|
|
<text class="label">流程任务</text>
|
|
|
- <text style="font-size: 24rpx; color: #F97316;">自动标记为流程任务</text>
|
|
|
+ <text class="flow-hint">自动标记为流程任务</text>
|
|
|
<text class="form-hint">有前置或后置任务时,本任务将自动保存为流程任务</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -479,13 +479,19 @@ onStartRequiredChange(e) {
|
|
|
.container { padding: 30rpx; }
|
|
|
.form-container { background: $app-surface; border-radius: 20rpx; padding: 30rpx; }
|
|
|
.form-item { margin-bottom: 30rpx; }
|
|
|
+.form-item--flow { margin-top: 20rpx; padding-top: 20rpx; border-top: 1rpx solid $facade-hairline-2; }
|
|
|
.label { display: block; font-size: 28rpx; color: $facade-text-strong; margin-bottom: 10rpx; }
|
|
|
+.label--pre { color: $brand-primary; }
|
|
|
+.label--post { color: $dim-wisdom; }
|
|
|
+.task-picker-scroll { max-height: 200rpx; overflow-y: auto; }
|
|
|
+.flow-hint { font-size: 24rpx; color: $brand-primary; }
|
|
|
.input, .textarea { border: 1rpx solid $facade-border-soft; border-radius: 10rpx; font-size: 28rpx; width: 100%; box-sizing: border-box; }
|
|
|
/* 输入框高度统一 108rpx;line-height 与高度一致,保证微信 input 文字垂直居中 */
|
|
|
.input { height: 108rpx; line-height: 108rpx; padding: 0 24rpx; }
|
|
|
.textarea { height: 150rpx; line-height: 1.5; padding: 20rpx 24rpx; }
|
|
|
.picker { border: 1rpx solid $facade-border-soft; border-radius: 10rpx; font-size: 28rpx; color: $facade-text-body; box-sizing: border-box; height: 108rpx; display: flex; align-items: center; padding: 0 24rpx; }
|
|
|
.form-hint { display: block; font-size: 22rpx; color: $facade-text-muted; margin-top: 8rpx; }
|
|
|
+.form-hint--tight { margin-bottom: 10rpx; }
|
|
|
.child-checkbox { display: flex; align-items: center; padding: 16rpx 0; border-bottom: 1rpx solid $facade-fill; }
|
|
|
.child-checkbox:last-child { border-bottom: none; }
|
|
|
.child-name { font-size: 28rpx; color: $facade-text-strong; margin-left: 10rpx; }
|