mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
-- 样式修改
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
</div>
|
||||
<div class="in select" style="flex: 1;display: flex">
|
||||
<div
|
||||
:class="`box ${projectInfo.picUrl === src ? 'active' : ''}`"
|
||||
:class="`box ${projectInfo.picUrl === src.value ? 'active' : ''}`"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
@@ -223,7 +223,6 @@
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="classifySelect5"
|
||||
placeholder="请选择模版"
|
||||
:size="size"
|
||||
style="width: 100%"
|
||||
@@ -243,7 +242,7 @@
|
||||
<div class="footer">
|
||||
<div class="btn">
|
||||
<a-button @click="backPage" class="btn2">取消</a-button>
|
||||
<a-button v-on:click="createProject" type="primary" class="btn1">确定</a-button>
|
||||
<a-button v-on:click="createProject" type="primary" class="btn1" style="margin-left: 20px">确定</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -290,7 +289,6 @@ export default {
|
||||
},
|
||||
classifyList5: [],
|
||||
courseSyncFlag: false,
|
||||
picUrlName: "请选择封面图",
|
||||
});
|
||||
|
||||
// 封面图选择
|
||||
@@ -315,39 +313,16 @@ export default {
|
||||
});
|
||||
|
||||
function getProjectInfo() {
|
||||
if (!routers.query.projectId) {
|
||||
state.projectInfo = {
|
||||
parentName: routers.query.parentName,
|
||||
parentId: routers.query.parentId,
|
||||
};
|
||||
return;
|
||||
}
|
||||
api
|
||||
.getProjectDetail({projectId: routers.query.projectId})
|
||||
.then((res) => {
|
||||
state.projectInfo = res.data.data.projectInfo;
|
||||
|
||||
console.log(res);
|
||||
let picurl = res.data.data.projectInfo.picUrl;
|
||||
let dates = store.state.projectPic.map((e) => ({
|
||||
value: e.dictValue,
|
||||
label: e.dictName,
|
||||
}));
|
||||
console.log(dates, picurl);
|
||||
for (let i = 0; i < dates.length; i++) {
|
||||
if (dates[i].value == picurl) {
|
||||
state.picUrlName = dates[i].label;
|
||||
}
|
||||
}
|
||||
|
||||
state.projectInfo.rangeTime = [
|
||||
state.projectInfo.beginTime,
|
||||
state.projectInfo.endTime,
|
||||
];
|
||||
state.projectInfo.parentName = routers.query.parentName;
|
||||
state.courseSyncFlag = state.projectInfo.courseSyncFlag
|
||||
? true
|
||||
: false;
|
||||
let projectId;
|
||||
routers.query.parentId && (projectId = routers.query.parentId)
|
||||
routers.query.projectId && (projectId = routers.query.projectId)
|
||||
state.projectInfo.parentName = routers.query.parentName;
|
||||
state.projectInfo.parentId = routers.query.parentId;
|
||||
projectId && api.getProjectDetail({projectId})
|
||||
.then(res => {
|
||||
state.projectInfo = {...state.projectInfo, ...res.data.data.projectInfo};
|
||||
state.projectInfo.rangeTime = [state.projectInfo.beginTime, state.projectInfo.endTime,];
|
||||
state.courseSyncFlag = !!state.projectInfo.courseSyncFlag;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -395,7 +370,6 @@ export default {
|
||||
|
||||
const errorMsgs = {
|
||||
name: "请输入项目名称",
|
||||
category: "请选择项目分类",
|
||||
picUrl: "请上传项目封面图",
|
||||
beginTime: "请选择项目开始时间",
|
||||
endTime: "请选择项目结束时间",
|
||||
|
||||
Reference in New Issue
Block a user