diff --git a/src/api/index.js b/src/api/index.js index 18af1f5f3453148bf91cbbb61f4450e527525d08..dd390ca47936fc9735e7b9fd470b85f227c9f48a 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,6 +1,7 @@ import { request, METHOD } from '@/utils'; export * from './menu'; export * from './system'; +export * from './task'; export function getUserDetailInfoApi() { return request('/api/v1/detail', METHOD.GET); diff --git a/src/api/task.js b/src/api/task.js new file mode 100644 index 0000000000000000000000000000000000000000..ca44ba176b1a34fe5f81a0c71b35a7ad62e783de --- /dev/null +++ b/src/api/task.js @@ -0,0 +1,9 @@ +import { postReq, putReq } from '@/utils'; + +export function addTaskApi(data) { + return postReq('/api/v1/schedules', data); +} + +export function updateTaskApi(data) { + return putReq('/api/v1/schedules', data); +} diff --git a/src/components/Acron/ACron.vue b/src/components/Acron/ACron.vue index 242833ba28eb096f07b35e16f175b6834818033a..51a552b6f2095c09590f8849ea65ef7612d42ad1 100644 --- a/src/components/Acron/ACron.vue +++ b/src/components/Acron/ACron.vue @@ -1,86 +1,89 @@ \ No newline at end of file + diff --git a/src/components/Acron/AntCron.vue b/src/components/Acron/AntCron.vue index cc0aa0968cbaba2e37e5aab4a3ae296d9715efd3..160a736875bc71a78d394ef6aec32c806791ef7b 100644 --- a/src/components/Acron/AntCron.vue +++ b/src/components/Acron/AntCron.vue @@ -1,1150 +1,1197 @@ - - - \ No newline at end of file + diff --git a/src/components/FormMixin/index.js b/src/components/FormMixin/index.js index ec20166fb3688043843852578f4033257b8bcec6..370edc973636e39a7988954741f2b11e571b4be2 100644 --- a/src/components/FormMixin/index.js +++ b/src/components/FormMixin/index.js @@ -20,15 +20,16 @@ export default { async submit() { await this.$refs.DrawerForm.validate(); if (this.isAdd) { - return this?.add(); + return this.add(); } if (this.isEdit) { - return this?.edit(); + return this.edit(); } }, setData(data, type) { this.form = { ...data }; this.type = type; + console.log(data, type); }, }, }; diff --git a/src/components/action_button/index.vue b/src/components/action_button/index.vue index 14acc20a36249e46a803b4aa13c4846b5da94dd6..9bd580d041555a596ac398cf814d3959c6f4b0e9 100644 --- a/src/components/action_button/index.vue +++ b/src/components/action_button/index.vue @@ -62,7 +62,6 @@ export default { }, created() { this.init(); - console.log(this.buttonsArr); }, computed: { basicBtns() { diff --git a/src/components/table/index.vue b/src/components/table/index.vue index c7aa3408f65b152264132756247a7e9445fc2ff2..b8055f064884e77ed2f32fbccfb7c26d06ea7c5a 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -180,6 +180,7 @@ export default { this.addVisible = true; this.type = 0; this.noFooter = false; + this.title = '新增'; }, addDrawerClose() { this.addVisible = false; diff --git a/src/pages/system/view/menu/MenuManagement.vue b/src/pages/system/view/menu/MenuManagement.vue index ec2bc258ac26d166f0e9ac840007493194447659..af40934afd1a51074e3f455e821a381d0f58408e 100644 --- a/src/pages/system/view/menu/MenuManagement.vue +++ b/src/pages/system/view/menu/MenuManagement.vue @@ -37,7 +37,6 @@ export default { addBtn: { text: '新建', onOk() { - console.log(vm.addCom); return vm.addCom ? vm.$refs['addCom']?.submit() : vm.$refs['addForm']?.submit(); }, onCancel() { @@ -50,7 +49,7 @@ export default { { label: '新增组件', option: { - type: 'danger', + style: 'color: #ff4d4f', }, click(row) { vm.show(); diff --git a/src/pages/system/view/task/form.vue b/src/pages/system/view/task/form.vue index 7640815a4d69c4305abc126ac5b3a80e5fa2a655..086624ac69b2becd06c681729bb9860ccd8152f3 100644 --- a/src/pages/system/view/task/form.vue +++ b/src/pages/system/view/task/form.vue @@ -1,41 +1,43 @@