Commit 7f9bbff6 authored by chenfenglei's avatar chenfenglei

工具设置

parent 39e2f92a
...@@ -294,6 +294,7 @@ ...@@ -294,6 +294,7 @@
getTeacher(){ getTeacher(){
if (!this.periods) return; if (!this.periods) return;
getPeriodsTeacherApi(this.periods.id).then(res=>{ getPeriodsTeacherApi(this.periods.id).then(res=>{
console.log(res)
this.teacherList = res this.teacherList = res
}) })
}, },
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
<el-option <el-option
v-for="(data,index) in goodsList" v-for="(data,index) in goodsList"
:key="index" :key="index"
:label="data.course_title" :label="data.name"
:value="data.id"> :value="String(data.id)">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
v-for="(data,index) in periodList" v-for="(data,index) in periodList"
:key="index" :key="index"
:label="data.title" :label="data.title"
:value="data.id"> :value="String(data.id)">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -97,7 +97,6 @@ export default { ...@@ -97,7 +97,6 @@ export default {
this.periodList = res.list; this.periodList = res.list;
}); });
}, },
getGoodsList(){ getGoodsList(){
let json = { let json = {
limit: 2000, limit: 2000,
...@@ -114,7 +113,14 @@ export default { ...@@ -114,7 +113,14 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).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({ this.$message({
type: 'success', type: 'success',
message: '设置成功!' message: '设置成功!'
......
...@@ -773,6 +773,5 @@ export const getqrCodeApi = function (json) { ...@@ -773,6 +773,5 @@ export const getqrCodeApi = function (json) {
//设置系统指定配置 //设置系统指定配置
const putConfigUrl = `/api/admin/tools/config`; const putConfigUrl = `/api/admin/tools/config`;
export const putConfigApi = function (json) { export const putConfigApi = function (json) {
console.log(json)
return Vue.prototype.$put(`${putConfigUrl}`,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