1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +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> </template>
<script lang="ts"> <script lang="ts">
import axios from 'axios' import request from '@/services'
export default { export default {
props: { props: {
editForm: { editForm: {
@@ -93,8 +93,8 @@ export default {
}, },
methods: { methods: {
getFormData() { getFormData() {
axios request
.get('http://localhost:8621/user') .get('/user')
.then((response) => { .then((response) => {
console.log(response.data.data) console.log(response.data.data)
this.workers = response.data.data this.workers = response.data.data

View File

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

View File

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

View File

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