mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
fix -- bug
This commit is contained in:
@@ -361,7 +361,7 @@
|
|||||||
pathBgId === item.code
|
pathBgId === item.code
|
||||||
? '2px solid rgba(78, 166, 255, 1)'
|
? '2px solid rgba(78, 166, 255, 1)'
|
||||||
: '1px solid #ccc',
|
: '1px solid #ccc',
|
||||||
'background-image': 'url(' + item.value + ')',
|
'background-image': 'url(' + item.value.split(',')[0] + ')',
|
||||||
display: index >= 5 ? 'none' : 'flex',
|
display: index >= 5 ? 'none' : 'flex',
|
||||||
}"
|
}"
|
||||||
style="background-size: 100% 100%"
|
style="background-size: 100% 100%"
|
||||||
@@ -690,7 +690,7 @@
|
|||||||
pathBgId === item.code
|
pathBgId === item.code
|
||||||
? '2px solid rgba(78, 166, 255, 1)'
|
? '2px solid rgba(78, 166, 255, 1)'
|
||||||
: '1px solid #ccc',
|
: '1px solid #ccc',
|
||||||
'background-image': 'url(' + item.value + ')',
|
'background-image': 'url(' + item.value.split(',')[0] + ')',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<!-- <img class="im" :src="item.source" /> -->
|
<!-- <img class="im" :src="item.source" /> -->
|
||||||
@@ -891,12 +891,14 @@ export default {
|
|||||||
const chooseImg = (item) => {
|
const chooseImg = (item) => {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
state.pathBgId = item.code;
|
state.pathBgId = item.code;
|
||||||
state.pathBg = item.value;
|
state.pathBg = item.value.split(',')[0];
|
||||||
|
state.mobilePicUrl = item.value.split(',')[1];
|
||||||
};
|
};
|
||||||
const chooseImg2 = (item) => {
|
const chooseImg2 = (item) => {
|
||||||
// console.log(item);
|
// console.log(item);
|
||||||
state.pathBgId = item.code;
|
state.pathBgId = item.code;
|
||||||
state.pathBg = item.value;
|
state.pathBg = item.value.split(',')[0];
|
||||||
|
state.mobilePicUrl = item.value.split(',')[1];
|
||||||
};
|
};
|
||||||
//发布弹窗
|
//发布弹窗
|
||||||
const showPub = (router) => {
|
const showPub = (router) => {
|
||||||
@@ -1212,8 +1214,8 @@ export default {
|
|||||||
status: 0,
|
status: 0,
|
||||||
organizationId: state.organizationSelectId,
|
organizationId: state.organizationSelectId,
|
||||||
organizationName: state.organizationSelectName,
|
organizationName: state.organizationSelectName,
|
||||||
picUrl: state.pathBg.split(',')[0],
|
picUrl: state.pathBg,
|
||||||
mobilePicUrl: state.pathBg.split(',')[1],
|
mobilePicUrl: state.mobilePicUrl,
|
||||||
}).then(id => {
|
}).then(id => {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.success("创建成功");
|
message.success("创建成功");
|
||||||
@@ -1333,8 +1335,8 @@ export default {
|
|||||||
let obj = {
|
let obj = {
|
||||||
routerId: state.editPathId,
|
routerId: state.editPathId,
|
||||||
name: state.pathName,
|
name: state.pathName,
|
||||||
picUrl: state.pathBg.split(',')[0],
|
picUrl: state.pathBg,
|
||||||
mobilePicUrl: state.pathBg.split(',')[1],
|
mobilePicUrl: state.mobilePicUrl,
|
||||||
remark: state.pathIntro,
|
remark: state.pathIntro,
|
||||||
organizationName: state.organizationSelectName,
|
organizationName: state.organizationSelectName,
|
||||||
organizationId: state.organizationSelectId,
|
organizationId: state.organizationSelectId,
|
||||||
@@ -1515,6 +1517,7 @@ export default {
|
|||||||
let detail = res.data.data.routerInfo;
|
let detail = res.data.data.routerInfo;
|
||||||
state.pathName = detail.name;
|
state.pathName = detail.name;
|
||||||
state.pathBg = detail.picUrl;
|
state.pathBg = detail.picUrl;
|
||||||
|
state.mobilePicUrl = detail.mobilePicUrl;
|
||||||
state.pathBgId = "";
|
state.pathBgId = "";
|
||||||
state.organizationSelectName = detail.organizationName;
|
state.organizationSelectName = detail.organizationName;
|
||||||
state.organizationSelectId = detail.organizationId;
|
state.organizationSelectId = detail.organizationId;
|
||||||
|
|||||||
Reference in New Issue
Block a user