mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
feat:合并
This commit is contained in:
@@ -34,7 +34,7 @@ const props = defineProps({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const id = computed(() => {
|
const id = computed(() => {
|
||||||
return props.value
|
return props.value || null
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits({})
|
const emit = defineEmits({})
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="in select" style="flex: 1; display: flex">
|
<div class="in select" style="flex: 1; display: flex">
|
||||||
<div
|
<div
|
||||||
:class="`box ${projectInfo.picUrl === src ? 'active' : ''}`"
|
:class="`box ${projectInfo.picUrl === src.value ? 'active' : ''}`"
|
||||||
style="
|
style="
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
@@ -226,7 +226,6 @@
|
|||||||
return triggerNode.parentNode || document.body;
|
return triggerNode.parentNode || document.body;
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
v-model:value="classifySelect5"
|
|
||||||
placeholder="请选择模版"
|
placeholder="请选择模版"
|
||||||
:size="size"
|
:size="size"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@@ -246,7 +245,11 @@
|
|||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<a-button @click="backPage" class="btn2">取消</a-button>
|
<a-button @click="backPage" class="btn2">取消</a-button>
|
||||||
<a-button v-on:click="createProject" type="primary" class="btn1"
|
<a-button
|
||||||
|
v-on:click="createProject"
|
||||||
|
type="primary"
|
||||||
|
class="btn1"
|
||||||
|
style="margin-left: 20px"
|
||||||
>确定</a-button
|
>确定</a-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
@@ -295,7 +298,6 @@ export default {
|
|||||||
},
|
},
|
||||||
classifyList5: [],
|
classifyList5: [],
|
||||||
courseSyncFlag: false,
|
courseSyncFlag: false,
|
||||||
picUrlName: "请选择封面图",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// 封面图选择
|
// 封面图选择
|
||||||
@@ -320,39 +322,25 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function getProjectInfo() {
|
function getProjectInfo() {
|
||||||
if (!routers.query.projectId) {
|
state.projectInfo.parentName = routers.query.parentName;
|
||||||
state.projectInfo = {
|
state.projectInfo.parentId = routers.query.parentId;
|
||||||
parentName: routers.query.parentName,
|
state.projectInfo.projectId = routers.query.projectId;
|
||||||
parentId: routers.query.parentId,
|
(state.projectInfo.projectId || state.projectInfo.parentId) &&
|
||||||
};
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
api
|
api
|
||||||
.getProjectDetail({ projectId: routers.query.projectId })
|
.getProjectDetail({
|
||||||
|
projectId:
|
||||||
|
state.projectInfo.projectId || state.projectInfo.parentId,
|
||||||
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
state.projectInfo = res.data.data.projectInfo;
|
state.projectInfo = {
|
||||||
|
...res.data.data.projectInfo,
|
||||||
console.log(res);
|
...state.projectInfo,
|
||||||
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.rangeTime = [
|
||||||
state.projectInfo.beginTime,
|
state.projectInfo.beginTime,
|
||||||
state.projectInfo.endTime,
|
state.projectInfo.endTime,
|
||||||
];
|
];
|
||||||
state.projectInfo.parentName = routers.query.parentName;
|
state.courseSyncFlag = !!state.projectInfo.courseSyncFlag;
|
||||||
state.courseSyncFlag = state.projectInfo.courseSyncFlag
|
|
||||||
? true
|
|
||||||
: false;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,8 +388,7 @@ export default {
|
|||||||
|
|
||||||
const errorMsgs = {
|
const errorMsgs = {
|
||||||
name: "请输入项目名称",
|
name: "请输入项目名称",
|
||||||
category: "请选择项目分类",
|
picUrl: "请选择项目封面图",
|
||||||
picUrl: "请上传项目封面图",
|
|
||||||
beginTime: "请选择项目开始时间",
|
beginTime: "请选择项目开始时间",
|
||||||
endTime: "请选择项目结束时间",
|
endTime: "请选择项目结束时间",
|
||||||
manager: "请选择项目经理",
|
manager: "请选择项目经理",
|
||||||
|
|||||||
@@ -195,9 +195,9 @@
|
|||||||
src="../../assets/images/basicinfo/asterisk.png"
|
src="../../assets/images/basicinfo/asterisk.png"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="inname">分类:</div>
|
<div class="inname">培训分类:</div>
|
||||||
<div class="in select">
|
<div class="in select">
|
||||||
<ProjectClass v-model:value="projectInfo.category"></ProjectClass>
|
<TrainClass v-model:value="projectInfo.systemId"></TrainClass>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
@@ -822,7 +822,8 @@ import * as api from "../../api/index";
|
|||||||
import * as api1 from "../../api/index1";
|
import * as api1 from "../../api/index1";
|
||||||
import { storage } from "../../api/storage";
|
import { storage } from "../../api/storage";
|
||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import ProjectClass from "@/components/project/ProjectClass";
|
// import ProjectClass from "@/components/project/ProjectClass";
|
||||||
|
import TrainClass from "@/components/project/TrainClass";
|
||||||
import OrgClass from "@/components/project/OrgClass";
|
import OrgClass from "@/components/project/OrgClass";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import * as moment from "moment";
|
import * as moment from "moment";
|
||||||
@@ -835,8 +836,9 @@ export default {
|
|||||||
ProjPowerList,
|
ProjPowerList,
|
||||||
ProjCheckShip,
|
ProjCheckShip,
|
||||||
ProjectManager,
|
ProjectManager,
|
||||||
ProjectClass,
|
// ProjectClass,
|
||||||
OrgClass,
|
OrgClass,
|
||||||
|
TrainClass,
|
||||||
// ProjManageShip
|
// ProjManageShip
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
@@ -956,7 +958,7 @@ export default {
|
|||||||
// 接口需要传递的参数信息
|
// 接口需要传递的参数信息
|
||||||
const errorMsgs = {
|
const errorMsgs = {
|
||||||
name: "请输入项目名称",
|
name: "请输入项目名称",
|
||||||
category: "请选择项目分类",
|
systemId: "请选择培训分类",
|
||||||
manager: "请选择项目经理",
|
manager: "请选择项目经理",
|
||||||
sourceBelongId: "请选择资源归属",
|
sourceBelongId: "请选择资源归属",
|
||||||
};
|
};
|
||||||
@@ -1541,6 +1543,12 @@ export default {
|
|||||||
state.projectInfo = {
|
state.projectInfo = {
|
||||||
parentName: value.record.name,
|
parentName: value.record.name,
|
||||||
parentId: value.record.projectId,
|
parentId: value.record.projectId,
|
||||||
|
name: value.record.name,
|
||||||
|
sourceBelongId: value.record.sourceBelongId,
|
||||||
|
sourceBelongame: value.record.sourceBelongName,
|
||||||
|
manager: value.record.manager,
|
||||||
|
managerId: value.record.managerId,
|
||||||
|
systemId: value.record.systemId,
|
||||||
type: 2,
|
type: 2,
|
||||||
};
|
};
|
||||||
state.reminderModal = true;
|
state.reminderModal = true;
|
||||||
@@ -1784,8 +1792,10 @@ export default {
|
|||||||
);
|
);
|
||||||
|
|
||||||
function managerChange(e, l, d) {
|
function managerChange(e, l, d) {
|
||||||
!state.projectInfo.sourceBelongId && (state.projectInfo.sourceBelongId = d)
|
!state.projectInfo.sourceBelongId &&
|
||||||
!state.projectInfo.sourceBelongId && (state.projectInfo.sourceBelongName = d)
|
(state.projectInfo.sourceBelongId = d);
|
||||||
|
!state.projectInfo.sourceBelongId &&
|
||||||
|
(state.projectInfo.sourceBelongName = d);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user