前端完成

main
王宇航 2024-06-26 11:02:46 +08:00
parent 407f0cce54
commit 2281d24f20
8 changed files with 16 additions and 11 deletions

View File

@ -29,7 +29,7 @@ export function addMessage(data) {
// 修改系统消息
export function updateMessage(data) {
return request({
url: '/app/message',
url: '/app/message/edit',
method: 'put',
data: data
})

View File

@ -20,7 +20,7 @@ export function getSkill(id) {
// 新增标签信息
export function addSkill(data) {
return request({
url: 'app/app/skill',
url: 'app/app/skill/add',
method: 'post',
data: data
})
@ -29,7 +29,7 @@ export function addSkill(data) {
// 修改标签信息
export function updateSkill(data) {
return request({
url: 'app/app/skill',
url: 'app/app/skill/edit',
method: 'put',
data: data
})

View File

@ -29,7 +29,7 @@ export function addUser(data) {
// 修改app用户
export function updateUser(data) {
return request({
url: '/app/user',
url: '/app/user/edit',
method: 'put',
data: data
})

View File

@ -23,8 +23,8 @@
clearable
@keyup.enter.native="handleQuery"
>
<el-option label="置顶" value="0"></el-option>
<el-option label="置顶" value="1"></el-option>
<el-option label="置顶" value="0"></el-option>
<el-option label="置顶" value="1"></el-option>
</el-select>
</el-form-item>
<el-form-item>
@ -73,8 +73,8 @@
v-model="scope.row.isTop"
active-color="#13ce66"
inactive-color="#ff4949"
active-text="置顶"
inactive-text="置顶"
active-text="置顶"
inactive-text="置顶"
@change="handleStatusChange(scope.row)"
></el-switch>
</template>

View File

@ -38,7 +38,7 @@
<el-table-column label="类型" align="center" prop="type">
<template slot-scope="scope">
<span v-if="scope.row.type === 0"></span>
<span v-if="scope.row.type === 1"></span>
<span v-if="scope.row.type === 1">广</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">

View File

@ -223,7 +223,7 @@ export default {
//
headers: { Authorization: "Bearer " + getToken() },
//
url: process.env.VUE_APP_BASE_API + "app/school/importData",
url: process.env.VUE_APP_BASE_API + "/app/school/importData",
uploadUrl: process.env.VUE_APP_BASE_API + "/app/api/oss/upload",
},
};

View File

@ -296,7 +296,9 @@ export default {
updateSkill(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.openUpdate = false;
this.queryParams.parentId = null ;
this.getList();
this.reset();
});
} else {
addSkill(this.form).then(response => {
@ -304,6 +306,7 @@ export default {
this.open = false;
this.queryParams.parentId = null ;
this.getList();
this.reset();
});
}
}

View File

@ -238,6 +238,7 @@ export default {
},
//
cancel() {
this.openUpdate = false;
this.open = false;
this.reset();
},
@ -320,7 +321,8 @@ export default {
this.$modal.confirm('是否确认删除话题信息编号为"' + ids + '"的数据项?').then(function() {
return delTopic(ids);
}).then(() => {
this.getList();
this.reset();
this.getAppTopic();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},