This commit is contained in:
BianLzhaoMin 2026-01-28 11:03:10 +08:00
parent cfbf23bd68
commit 602f75ceb4
3 changed files with 19 additions and 17 deletions

View File

@ -5,7 +5,7 @@ VITE_APP_TITLE = 短信发送小工具
VITE_APP_ENV = 'production' VITE_APP_ENV = 'production'
# 短信发送小工具/生产环境 # 短信发送小工具/生产环境
VITE_APP_BASE_API = '/ynMessage-prod-api/ynMessage' VITE_APP_BASE_API = '/ynMessage-prod-api/ynMessage/'
#静态资源路径(服务器目录) #静态资源路径(服务器目录)
VITE_APP_PUBLIC_PATH = '/ynMessage' VITE_APP_PUBLIC_PATH = '/ynMessage'

View File

@ -229,6 +229,7 @@ const formRef = ref(null)
const crontabRef = ref(null) const crontabRef = ref(null)
const personTableRef = ref(null) const personTableRef = ref(null)
const cronExpression = ref('') const cronExpression = ref('')
const taskStatus = ref('')
// Cron // Cron
const cronDialogConfig = reactive({ const cronDialogConfig = reactive({
@ -368,6 +369,7 @@ const onSubmit = async () => {
if (mode.value === 'edit' && route.query.id) { if (mode.value === 'edit' && route.query.id) {
params.id = Number(route.query.id) params.id = Number(route.query.id)
params.jobId = Number(route.query.jobId) params.jobId = Number(route.query.jobId)
params.taskStatus = taskStatus.value
} }
const result = await API(params) const result = await API(params)
@ -400,6 +402,7 @@ const getDetail = async () => {
recipientList: data.workerList || [], recipientList: data.workerList || [],
remark: data.remark || '', remark: data.remark || '',
} }
taskStatus.value = data.taskStatus || ''
cronExpression.value = data.cronExpression || '' cronExpression.value = data.cronExpression || ''
} }
} catch (error) { } catch (error) {

View File

@ -105,28 +105,12 @@ const actionColumns = [
label: '发送详情', label: '发送详情',
type: 'primary', type: 'primary',
link: true, link: true,
handler: (row) => { handler: (row) => {
sendDetailsDialogConfig.outerTitle = `发送详情 - ${row.taskName || ''}` sendDetailsDialogConfig.outerTitle = `发送详情 - ${row.taskName || ''}`
sendDetailsId.value = row.id sendDetailsId.value = row.id
sendDetailsDialogConfig.outerVisible = true sendDetailsDialogConfig.outerVisible = true
}, },
}, },
{
label: '删除',
type: 'danger',
link: true,
handler: (row) => {
proxy.$modal.confirm('是否确认删除该循环发送任务?').then(async () => {
const result = await delLoopSendAPI({ id: row.id, jobId: row.jobId })
if (result.code === 200) {
proxy.$modal.msgSuccess('删除成功')
comTableRef.value?.refresh()
}
})
},
},
{ {
label: '编辑', label: '编辑',
type: 'primary', type: 'primary',
@ -142,6 +126,21 @@ const actionColumns = [
}) })
}, },
}, },
{
label: '删除',
type: 'danger',
link: true,
handler: (row) => {
proxy.$modal.confirm('是否确认删除该循环发送任务?').then(async () => {
const result = await delLoopSendAPI({ id: row.id, jobId: row.jobId })
if (result.code === 200) {
proxy.$modal.msgSuccess('删除成功')
comTableRef.value?.refresh()
}
})
},
},
] ]
// //