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

页面修改

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