修改任务
This commit is contained in:
@ -325,17 +325,12 @@
|
||||
{{ deleteContent }}
|
||||
</div>
|
||||
</a-modal>
|
||||
|
||||
<!-- 添加 TimePicker 组件 -->
|
||||
<a-modal v-model:visible="timePickerVisible" @ok="onTimeConfirm" @cancel="onTimeCancel" title="选择时间">
|
||||
<TimePicker />
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, onMounted, watch, computed, nextTick } from 'vue';
|
||||
import type { TableColumnData } from '@arco-design/web-vue';
|
||||
import { getTaskSchedules, delTaskSchedules, getTaskSchedulesDetail } from '@/api/all/assignment-management';
|
||||
import { getTaskSchedules, delTaskSchedules, editTaskSchedules } from '@/api/all/assignment-management';
|
||||
import { fetchAccountOperators, getMediaAccountList } from '@/api/all/propertyMarketing';
|
||||
import icon1 from '@/assets/img/platform/icon-dy.png';
|
||||
import icon2 from '@/assets/img/platform/icon-xhs.png';
|
||||
@ -477,9 +472,11 @@ const handleCancel = () => {
|
||||
};
|
||||
|
||||
const handleAddAccount = () => {};
|
||||
const handleModifyTime = (task: any) => {
|
||||
selectedTask.value = task;
|
||||
timePickerVisible.value = true;
|
||||
const handleModifyTime = (task: any, time: any) => {
|
||||
editTaskSchedules(task.id, { execution_time: time }).then(() => {
|
||||
handleSearch();
|
||||
timePickerVisible.value = true;
|
||||
});
|
||||
};
|
||||
|
||||
const onTimeConfirm = () => {
|
||||
@ -492,9 +489,6 @@ const onTimeConfirm = () => {
|
||||
timePickerVisible.value = false;
|
||||
};
|
||||
|
||||
const onTimeCancel = () => {
|
||||
timePickerVisible.value = false;
|
||||
};
|
||||
|
||||
// 计算当前日期范围内的所有日期,统一返回 number 数组
|
||||
const currentDateHeaders = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user