mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +08:00
work complete
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import axios from 'axios'
|
||||
import request from '@/services'
|
||||
|
||||
export default {
|
||||
name: 'CompletePage',
|
||||
@@ -75,7 +75,7 @@ export default {
|
||||
console.log('complete cancel!')
|
||||
},
|
||||
getTableData() {
|
||||
axios
|
||||
request
|
||||
.get('http://localhost:8621/work/complete/1652714496280469506')
|
||||
.then((response) => {
|
||||
this.tableData = response.data.data
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
},
|
||||
getTaskData(workId) {
|
||||
console.log(workId)
|
||||
axios
|
||||
request
|
||||
.get('http://localhost:8621/work/' + workId)
|
||||
.then((response) => {
|
||||
console.log(response.data.data)
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
},
|
||||
setTaskStatus(userWork) {
|
||||
console.log(userWork)
|
||||
axios
|
||||
request
|
||||
.put('http://localhost:8621/work/setStatus', userWork)
|
||||
.then((response) => {
|
||||
console.log(response.data.data)
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import axios from 'axios'
|
||||
import request from '@/services'
|
||||
import EditWork from '@/components/EditWork.vue'
|
||||
|
||||
export default {
|
||||
@@ -111,7 +111,7 @@ export default {
|
||||
console.log('complete cancel!')
|
||||
},
|
||||
getTableData() {
|
||||
axios
|
||||
request
|
||||
.get('http://localhost:8621/work')
|
||||
.then((response) => {
|
||||
this.tableData = response.data.data
|
||||
@@ -124,7 +124,7 @@ export default {
|
||||
})
|
||||
},
|
||||
deleteTableData(row) {
|
||||
axios
|
||||
request
|
||||
.delete('http://localhost:8621/work/' + row.id)
|
||||
.then((response) => {
|
||||
this.getTableData()
|
||||
@@ -141,7 +141,7 @@ export default {
|
||||
this.getTableData()
|
||||
},
|
||||
updateWork(form) {
|
||||
axios
|
||||
request
|
||||
.put('http://localhost:8621/work', form)
|
||||
.then((response) => {
|
||||
this.editVisible = false
|
||||
@@ -152,7 +152,7 @@ export default {
|
||||
})
|
||||
},
|
||||
addWork(form) {
|
||||
axios
|
||||
request
|
||||
.post('http://localhost:8621/work', form)
|
||||
.then((response) => {
|
||||
this.addVisible = false
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import axios from 'axios'
|
||||
import request from '@/services'
|
||||
export default {
|
||||
name: 'TodoPage',
|
||||
data() {
|
||||
@@ -74,7 +74,7 @@ export default {
|
||||
console.log('complete cancel!')
|
||||
},
|
||||
getTableData() {
|
||||
axios
|
||||
request
|
||||
.get('http://localhost:8621/work/todo/1652714496280469506')
|
||||
.then((response) => {
|
||||
this.tableData = response.data.data
|
||||
@@ -88,7 +88,7 @@ export default {
|
||||
},
|
||||
getTaskData(workId) {
|
||||
console.log(workId)
|
||||
axios
|
||||
request
|
||||
.get('http://localhost:8621/work/' + workId)
|
||||
.then((response) => {
|
||||
console.log(response.data.data)
|
||||
@@ -103,7 +103,7 @@ export default {
|
||||
},
|
||||
setTaskStatus(userWork) {
|
||||
console.log(userWork)
|
||||
axios
|
||||
request
|
||||
.put('http://localhost:8621/work/setStatus', userWork)
|
||||
.then((response) => {
|
||||
console.log(response.data.data)
|
||||
|
||||
Reference in New Issue
Block a user