1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 15:01:23 +08:00

workVue update

This commit is contained in:
GGB
2023-05-06 00:06:32 +08:00
parent 8b77ccf5e8
commit bc12df2ea1
4 changed files with 13 additions and 13 deletions

View File

@@ -42,7 +42,7 @@
</template>
<script lang="ts">
import axios from 'axios'
import request from '@/services'
export default {
props: {
editForm: {
@@ -93,8 +93,8 @@ export default {
},
methods: {
getFormData() {
axios
.get('http://localhost:8621/user')
request
.get('/user')
.then((response) => {
console.log(response.data.data)
this.workers = response.data.data

View File

@@ -76,7 +76,7 @@ export default {
},
getTableData() {
request
.get('http://localhost:8621/work/complete/1652714496280469506')
.get('/work/complete/1652714496280469506')
.then((response) => {
this.tableData = response.data.data
if (this.tableData) {
@@ -90,7 +90,7 @@ export default {
getTaskData(workId) {
console.log(workId)
request
.get('http://localhost:8621/work/' + workId)
.get('/work/' + workId)
.then((response) => {
console.log(response.data.data)
this.taskData = response.data.data
@@ -105,7 +105,7 @@ export default {
setTaskStatus(userWork) {
console.log(userWork)
request
.put('http://localhost:8621/work/setStatus', userWork)
.put('/work/setStatus', userWork)
.then((response) => {
console.log(response.data.data)
this.getTableData()

View File

@@ -112,7 +112,7 @@ export default {
},
getTableData() {
request
.get('http://localhost:8621/work')
.get('/work')
.then((response) => {
this.tableData = response.data.data
if (this.tableData) {
@@ -125,7 +125,7 @@ export default {
},
deleteTableData(row) {
request
.delete('http://localhost:8621/work/' + row.id)
.delete('/work/' + row.id)
.then((response) => {
this.getTableData()
console.log(response.data.data)
@@ -142,7 +142,7 @@ export default {
},
updateWork(form) {
request
.put('http://localhost:8621/work', form)
.put('/work', form)
.then((response) => {
this.editVisible = false
this.getTableData()
@@ -153,7 +153,7 @@ export default {
},
addWork(form) {
request
.post('http://localhost:8621/work', form)
.post('/work', form)
.then((response) => {
this.addVisible = false
this.getTableData()

View File

@@ -75,7 +75,7 @@ export default {
},
getTableData() {
request
.get('http://localhost:8621/work/todo/1652714496280469506')
.get('/work/todo/1652714496280469506')
.then((response) => {
this.tableData = response.data.data
if (this.taskData) {
@@ -89,7 +89,7 @@ export default {
getTaskData(workId) {
console.log(workId)
request
.get('http://localhost:8621/work/' + workId)
.get('/work/' + workId)
.then((response) => {
console.log(response.data.data)
this.taskData = response.data.data
@@ -104,7 +104,7 @@ export default {
setTaskStatus(userWork) {
console.log(userWork)
request
.put('http://localhost:8621/work/setStatus', userWork)
.put('/work/setStatus', userWork)
.then((response) => {
console.log(response.data.data)
this.getTableData()