【新增】增加基本设置
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<div class="content-height">
|
||||
<el-row class="inputForm">
|
||||
<el-row class="inputForm" v-for="i in formData">
|
||||
<el-col :span="6">
|
||||
<div class="tag-item showLimit">
|
||||
<label class="tag-title">水印前缀:</label>
|
||||
<el-input v-model="name" placeholder="请输入水印前缀"
|
||||
maxlength="100" show-word-limit></el-input>
|
||||
<label class="tag-title">{{i.configKey}}:</label>
|
||||
<el-input v-model="i.configValue" placeholder="请输入水印前缀"
|
||||
maxlength="100" show-word-limit></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="2" align="right" class="tag-btns">
|
||||
<el-button type="primary" @click="save">保存</el-button>
|
||||
<el-button type="primary" @click="save(i)">保存</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
@@ -20,9 +20,32 @@ export default {
|
||||
name: "index",
|
||||
data(){
|
||||
return {
|
||||
name:'',
|
||||
processForm:{}
|
||||
formData:[
|
||||
{
|
||||
configKey:'水印前缀',
|
||||
configValue:''
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.loadMark()
|
||||
},
|
||||
methods:{
|
||||
//获取水印前缀
|
||||
loadMark(){
|
||||
this.$api.setting.getAllSetting().then(res=>{
|
||||
if(res.data){
|
||||
this.formData=res.data
|
||||
console.log(res.data.data,"res.data.data")
|
||||
}
|
||||
})
|
||||
},
|
||||
save(i){
|
||||
this.$api.setting.saveMarket(i).then(res=>{
|
||||
this.$message.success(res.data)
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user