mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
feat:增加新建项目字典
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<router-link to="/manage/projectmanage">
|
||||
<router-link to="/projectmanage">
|
||||
<div style="display: flex">
|
||||
<img class="img2" src="../../assets/images/leveladd/back.png" />
|
||||
<div class="return">返回</div>
|
||||
@@ -321,8 +321,8 @@
|
||||
<button class="btn" @click="showFaceIn" v-if="morFaceT">
|
||||
批量面授报名
|
||||
</button>
|
||||
<router-link to="/manage/taskadd">
|
||||
<button to="/manage/taskadd" class="edit">
|
||||
<router-link to="/taskadd">
|
||||
<button to="/taskadd" class="edit">
|
||||
<img
|
||||
class="editimg"
|
||||
src="../../assets/images/projectadd/edit.png"
|
||||
@@ -505,7 +505,7 @@
|
||||
</a-collapse>
|
||||
<!-- 无数据创建任务 v-if="taskSyllabus.length == 0"-->
|
||||
<router-link
|
||||
to="/manage/taskadd"
|
||||
to="/taskadd"
|
||||
class="taskbox"
|
||||
style="
|
||||
background: linear-gradient(180deg, #ddeaff, #f0f8fe);
|
||||
@@ -1062,7 +1062,11 @@
|
||||
<span style="font: oblique bold 16px Sans-serif">{{
|
||||
item.name
|
||||
}}</span>
|
||||
<span style="color: #4ea6ff; float: right;cursor: pointer;" @click="deFile(item.uid)">删除</span>
|
||||
<span
|
||||
style="color: #4ea6ff; float: right; cursor: pointer"
|
||||
@click="deFile(item.uid)"
|
||||
>删除</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -3260,7 +3264,7 @@ export default {
|
||||
let luj = info.attach;
|
||||
console.log("lulj", luj);
|
||||
console.log("赚回来", JSON.parse(luj));
|
||||
state.fileList = JSON.parse(luj)
|
||||
state.fileList = JSON.parse(luj);
|
||||
// state.fileList = luj
|
||||
}
|
||||
});
|
||||
@@ -3379,9 +3383,9 @@ export default {
|
||||
// // list.push(JSON.stringify(item))
|
||||
// state.fileList.push(item)
|
||||
// });
|
||||
|
||||
state.fileList.push(info.file)
|
||||
list = state.fileList
|
||||
|
||||
state.fileList.push(info.file);
|
||||
list = state.fileList;
|
||||
console.log("list", list);
|
||||
// let str = list.join(",");
|
||||
let str = JSON.stringify(list);
|
||||
@@ -3431,7 +3435,7 @@ export default {
|
||||
const toEdit = () => {
|
||||
if (state.parentId == "0") {
|
||||
routered.push({
|
||||
path: "/manage/projectadd",
|
||||
path: "/projectadd",
|
||||
query: {
|
||||
projectId: state.projectId,
|
||||
name: state.name,
|
||||
@@ -3440,7 +3444,7 @@ export default {
|
||||
} else {
|
||||
if (state.isbj !== null) {
|
||||
routered.push({
|
||||
path: "/manage/classadd",
|
||||
path: "/classadd",
|
||||
query: {
|
||||
projectId: state.projectId,
|
||||
// name: state.paraentName,
|
||||
@@ -3450,7 +3454,7 @@ export default {
|
||||
});
|
||||
} else {
|
||||
routered.push({
|
||||
path: "/manage/sonproject",
|
||||
path: "/sonproject",
|
||||
query: {
|
||||
projectId: state.projectId,
|
||||
name: state.name,
|
||||
@@ -3608,45 +3612,47 @@ export default {
|
||||
});
|
||||
};
|
||||
//删除文件
|
||||
const deFile=(id)=>{
|
||||
console.log(id)
|
||||
let index = state.fileList.findIndex(item=>{item.uid==id})
|
||||
state.fileList.splice(index,1)
|
||||
let str = JSON.stringify(state.fileList)
|
||||
const deFile = (id) => {
|
||||
console.log(id);
|
||||
let index = state.fileList.findIndex((item) => {
|
||||
item.uid == id;
|
||||
});
|
||||
state.fileList.splice(index, 1);
|
||||
let str = JSON.stringify(state.fileList);
|
||||
editProj({
|
||||
attach: str,
|
||||
beginTime: state.tstartTime.slice(0, 10),
|
||||
// beginTime:1668643200,
|
||||
boeFlag: state.boeFlag,
|
||||
category: state.category,
|
||||
courseSyncFlag: state.courseSyncFlag,
|
||||
endTime: state.tendTime.slice(0, 10),
|
||||
// endTime: 1668816000,
|
||||
level: state.tlevel,
|
||||
manager: state.manager,
|
||||
managerId: state.managerId,
|
||||
name: state.name,
|
||||
notice: state.notice,
|
||||
noticeFlag: state.noticeFlag,
|
||||
parentId: state.parentId,
|
||||
picUrl: state.picUrl,
|
||||
projectId: state.projectId,
|
||||
remark: state.remark,
|
||||
sourceBelongId: Number(state.tsourceBelong),
|
||||
status: state.status,
|
||||
systemId: state.tsystemId,
|
||||
templateId: state.templateId || 0,
|
||||
type: state.type,
|
||||
attach: str,
|
||||
beginTime: state.tstartTime.slice(0, 10),
|
||||
// beginTime:1668643200,
|
||||
boeFlag: state.boeFlag,
|
||||
category: state.category,
|
||||
courseSyncFlag: state.courseSyncFlag,
|
||||
endTime: state.tendTime.slice(0, 10),
|
||||
// endTime: 1668816000,
|
||||
level: state.tlevel,
|
||||
manager: state.manager,
|
||||
managerId: state.managerId,
|
||||
name: state.name,
|
||||
notice: state.notice,
|
||||
noticeFlag: state.noticeFlag,
|
||||
parentId: state.parentId,
|
||||
picUrl: state.picUrl,
|
||||
projectId: state.projectId,
|
||||
remark: state.remark,
|
||||
sourceBelongId: Number(state.tsourceBelong),
|
||||
status: state.status,
|
||||
systemId: state.tsystemId,
|
||||
templateId: state.templateId || 0,
|
||||
type: state.type,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("上传成功", res);
|
||||
message.destroy();
|
||||
return message.success("删除成功");
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("上传成功", res);
|
||||
message.destroy()
|
||||
return message.success("删除成功")
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("上传失败了", err);
|
||||
});
|
||||
}
|
||||
.catch((err) => {
|
||||
console.log("上传失败了", err);
|
||||
});
|
||||
};
|
||||
onMounted(() => {
|
||||
getStu();
|
||||
getTaskList();
|
||||
|
||||
Reference in New Issue
Block a user