|
|
@@ -141,7 +141,7 @@
|
|
|
addVer(formName) {
|
|
|
this.$refs[formName].validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
- await this.$form(apis.addVer, this.form)
|
|
|
+ await this.$post(apis.addVer, this.form)
|
|
|
this.dialogFormVisible = false
|
|
|
this.getTableData()
|
|
|
} else {
|
|
|
@@ -153,7 +153,7 @@
|
|
|
clickDelete(uid) {
|
|
|
this.$confirm(`确认删除 uid 为${uid}?`)
|
|
|
.then(async _ => {
|
|
|
- await this.$form(apis.delete, {
|
|
|
+ await this.$post(apis.delete, {
|
|
|
uid
|
|
|
})
|
|
|
this.getTableData()
|
|
|
@@ -203,7 +203,7 @@
|
|
|
},
|
|
|
// 获取培训状态列表
|
|
|
async getTrainStates() {
|
|
|
- const res = await this.$form(apis.getTrainStates)
|
|
|
+ const res = await this.$post(apis.getTrainStates)
|
|
|
if(res) {
|
|
|
// console.log(res.data)
|
|
|
this.states = res.data
|
|
|
@@ -212,7 +212,7 @@
|
|
|
// 获取列表数据
|
|
|
async getTableData(status = 0) {
|
|
|
const p = this.currentPage
|
|
|
- const res = await this.$form(apis.dataList, {
|
|
|
+ const res = await this.$post(apis.dataList, {
|
|
|
p
|
|
|
})
|
|
|
// console.log(res.data.data)
|