Commit 0e964435 authored by 黄奎's avatar 黄奎

页面修改

parent 1db7e6e3
......@@ -26,7 +26,7 @@
</el-tooltip>
</el-input>
<div v-if="msg.Logo==''">建议尺寸98*36</div>
<img v-else :src="getIconLink(msg.Logo)" style="height:36px;" alt=""/>
<img v-else :src="getIconLink(msg.Logo)" style="height:36px;" alt="" />
</el-form-item>
<el-form-item label="员工页面版权信息" size="small">
<el-input v-model="msg.Copyright"></el-input>
......@@ -56,6 +56,7 @@
data() {
return {
msg: {
ConfigId: 0,
IsUpdatePwd: 1, //0不能修改 1可以修改
Logo: '', //员工页面LOGO
Copyright: "", //员工页面版权信息
......@@ -76,13 +77,19 @@
},
methods: {
//获取信息
GetEmpConfigList(){
GetEmpConfigList() {
this.apipost("/api/Employee/GetEmpConfigList", {
ConfigId:0
ConfigId: 0
}, res => {
console.log(res,'resdsss');
if (res.data.resultCode == 1) {
var jsonData = res.data.data;
if (jsonData) {
this.msg.ConfigId = jsonData.ConfigId;
this.msg.IsUpdatePwd = jsonData.IsUpdatePwd;
this.msg.Logo = jsonData.Logo;
this.msg.Copyright = jsonData.Copyright;
this.msg.CopyrightLink = jsonData.CopyrightLink;
}
} else {
this.Info(res.data.message);
}
......@@ -90,14 +97,14 @@
},
//保存信息
saveMsg() {
// this.apipost("/api/MContent/GetInfrastruturePageList", this.msg, res => {
// if (res.data.resultCode == 1) {
// this.dataList = res.data.data.pageData;
// this.total = res.data.data.count;
// } else {
// this.Info(res.data.message);
// }
// })
this.apipost("/api/Employee/SetEmpConfig", this.msg, res => {
if (res.data.resultCode == 1) {
this.GetEmpConfigList();
this.Success(res.data.message);
} else {
this.Info(res.data.message);
}
})
},
//选择图片
SelectId(msg) {
......
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