Commit 7f9bbff6 authored by chenfenglei's avatar chenfenglei

工具设置

parent 39e2f92a
......@@ -294,6 +294,7 @@
getTeacher(){
if (!this.periods) return;
getPeriodsTeacherApi(this.periods.id).then(res=>{
console.log(res)
this.teacherList = res
})
},
......
......@@ -14,8 +14,8 @@
<el-option
v-for="(data,index) in goodsList"
:key="index"
:label="data.course_title"
:value="data.id">
:label="data.name"
:value="String(data.id)">
</el-option>
</el-select>
</el-form-item>
......@@ -38,7 +38,7 @@
v-for="(data,index) in periodList"
:key="index"
:label="data.title"
:value="data.id">
:value="String(data.id)">
</el-option>
</el-select>
</el-form-item>
......@@ -97,7 +97,6 @@ export default {
this.periodList = res.list;
});
},
getGoodsList(){
let json = {
limit: 2000,
......@@ -114,7 +113,14 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
putConfigApi(data).then(res=>{
console.log(data);
let json ={
}
json.value=data.value;
json.key=data.key;
json.desc=data.desc;
putConfigApi(json).then(res=>{
this.$message({
type: 'success',
message: '设置成功!'
......
......@@ -773,6 +773,5 @@ export const getqrCodeApi = function (json) {
//设置系统指定配置
const putConfigUrl = `/api/admin/tools/config`;
export const putConfigApi = function (json) {
console.log(json)
return Vue.prototype.$put(`${putConfigUrl}`,json)
};
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment