feat: get、put、delete改post

This commit is contained in:
2025-04-09 18:19:04 +08:00
parent 06b34f00ae
commit 7fd6bd4e91
41 changed files with 437 additions and 211 deletions
@@ -114,7 +114,7 @@
</template>
<script>
import crudJob from '@/api/system/timing'
import crudJob from '@/api/quartzjob/timing'
import Log from './log'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
@@ -163,7 +163,7 @@ export default {
methods: {
// 执行
execute(id) {
crudJob.execution(id).then(res => {
crudJob.executionQuartzJob(id).then(res => {
this.crud.notify('执行成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
console.log(err.response.data.message)
@@ -174,7 +174,7 @@ export default {
if (status === '恢复') {
this.updateParams(id)
}
crudJob.updateIsPause(id).then(res => {
crudJob.switchJobPauseStatus(id).then(res => {
this.crud.toQuery()
this.crud.notify(status + '成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
@@ -25,7 +25,7 @@
import store from '@/store'
import { validEmail } from '@/utils/validate'
import { updateEmail } from '@/api/system/user'
import { sendCaptcha } from '@/api/system/code'
import { sendResetEmailCaptcha } from '@/api/system/code'
export default {
props: {
email: {
@@ -71,7 +71,7 @@ export default {
this.codeLoading = true
this.buttonName = '验证码发送中'
const _this = this
sendCaptcha(this.form.email).then(res => {
sendResetEmailCaptcha(this.form.email).then(res => {
this.$message({
showClose: true,
message: '发送成功,验证码有效期5分钟',