mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
Merge branch 'master' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage
This commit is contained in:
@@ -37,11 +37,8 @@ import http from "./config";
|
|||||||
|
|
||||||
// 接口-请求
|
// 接口-请求
|
||||||
|
|
||||||
// 创建编辑单层项目
|
// 创建编辑单层项目(type=3)/ 多层项目(type=1)/ 多层子项目(type=2)
|
||||||
export const createProject = (obj) => http.post('/admin/project/edit', obj)
|
export const createProject = (obj) => http.post('/admin/project/edit', obj)
|
||||||
|
|
||||||
// 创建多层项目
|
|
||||||
export const createStoreyProject = (obj) => http.post('/admin/project/edit', obj)
|
|
||||||
|
|
||||||
// 获取项目列表
|
// 获取项目列表
|
||||||
export const getProjectList = (obj) => http.post('/admin/project/list', obj)
|
export const getProjectList = (obj) => http.post('/admin/project/list', obj)
|
||||||
@@ -81,12 +81,12 @@
|
|||||||
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
<div class="inname">项目经理</div>
|
<div class="inname">项目经理</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in select">
|
<div class="in">
|
||||||
<a-select :getPopupContainer="
|
<a-select :getPopupContainer="
|
||||||
(triggerNode) => {
|
(triggerNode) => {
|
||||||
return triggerNode.parentNode || document.body;
|
return triggerNode.parentNode || document.body;
|
||||||
}
|
}
|
||||||
" :value="classifySelect1" placeholder="请选择项目经理" style="width: 100%" :options="classifyList1"
|
" :value="classifySelect1" mode="multiple" placeholder="请选择项目经理" style="width: 100%" :options="classifyList1"
|
||||||
@change="classificationChange1" allowClear showSearch>
|
@change="classificationChange1" allowClear showSearch>
|
||||||
</a-select>
|
</a-select>
|
||||||
</div>
|
</div>
|
||||||
@@ -97,8 +97,13 @@
|
|||||||
<div class="inname">资源归属</div>
|
<div class="inname">资源归属</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="in">
|
<div class="in select">
|
||||||
<a-input v-model:value="valueE" placeholder="自动带出 可修改" />
|
<a-select :getPopupContainer="
|
||||||
|
(triggerNode) => {
|
||||||
|
return triggerNode.parentNode || document.body;
|
||||||
|
}
|
||||||
|
" v-model:value="classifySelect2" placeholder="自动带出 可修改" :options="classifyList2"
|
||||||
|
@change="classificationChange2" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name name2">
|
<div class="name name2">
|
||||||
@@ -126,8 +131,13 @@
|
|||||||
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
<div class="inname">项目级别</div>
|
<div class="inname">项目级别</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in select">
|
||||||
<a-input v-model:value="valueE1" placeholder="集团级/组织级/现地级/部门级" />
|
<a-select :getPopupContainer="
|
||||||
|
(triggerNode) => {
|
||||||
|
return triggerNode.parentNode || document.body;
|
||||||
|
}
|
||||||
|
" v-model:value="classifySelect3" :options="classifyList3" @change="classificationChange3"
|
||||||
|
placeholder="集团级/组织级/现地级/部门级" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
@@ -135,8 +145,13 @@
|
|||||||
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
<div class="inname">培训体系</div>
|
<div class="inname">培训体系</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in select">
|
||||||
<a-input v-model:value="valueE2" placeholder="集团级/组织级/现地级/部门级" />
|
<a-select :getPopupContainer="
|
||||||
|
(triggerNode) => {
|
||||||
|
return triggerNode.parentNode || document.body;
|
||||||
|
}
|
||||||
|
" v-model:value="classifySelect4" :options="classifyList4" @change="classificationChange4"
|
||||||
|
placeholder="集团级/组织级/现地级/部门级" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
@@ -177,9 +192,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="template">
|
<div class="template">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="inname" style="width: 50px">模板</div>
|
<div class="inname" style="width: 50px">模版</div>
|
||||||
<div class="in select" style="margin-left: 2px">
|
<div class="in select" style="margin-left: 2px">
|
||||||
<a-select v-model:value="value1" placeholder="请选择模板" :size="size" style="width: 100%" :options="options">
|
<a-select :getPopupContainer="
|
||||||
|
(triggerNode) => {
|
||||||
|
return triggerNode.parentNode || document.body;
|
||||||
|
}
|
||||||
|
" v-model:value="classifySelect5" placeholder="请选择模版" :size="size" style="width: 100%" :options="classifyList5"
|
||||||
|
@change="classificationChange5">
|
||||||
</a-select>
|
</a-select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -340,13 +360,66 @@ export default {
|
|||||||
let manager = "";
|
let manager = "";
|
||||||
let managerId = "";
|
let managerId = "";
|
||||||
const classificationChange1 = (key) => {
|
const classificationChange1 = (key) => {
|
||||||
console.log(`selected ${key}`);
|
console.log(`selected ${key}`, classifyList1);
|
||||||
console.log(classifyList1.value[key - 1].label)
|
let mstr = '';
|
||||||
manager = String(classifyList1.value[key - 1].label)
|
let midstr = '';
|
||||||
managerId = String(key)
|
for (let i = 0; i < key.length; i++) {
|
||||||
|
if (key.length - 1 !== i) {
|
||||||
|
midstr += key[i] + ',';
|
||||||
|
mstr += classifyList1.value[i].label + ',';
|
||||||
|
} else {
|
||||||
|
midstr += key[i];
|
||||||
|
mstr += classifyList1.value[i].label;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log(mstr, midstr)
|
||||||
|
manager = mstr;
|
||||||
|
managerId = midstr;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 资源归属 sourceBelongId 后续给接口
|
// 资源归属 sourceBelongId 后续给接口
|
||||||
|
const classifyList2 = ref([
|
||||||
|
{ value: 1, label: '项目一' },
|
||||||
|
{ value: 2, label: '项目二' },
|
||||||
|
{ value: 3, label: '项目三' },
|
||||||
|
]);
|
||||||
|
|
||||||
|
const classificationChange2 = (key) => {
|
||||||
|
console.log(`selected ${key}`, classifyList2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 项目级别
|
||||||
|
const classifyList3 = ref([
|
||||||
|
{ value: 1, label: '集团级' },
|
||||||
|
{ value: 2, label: '组织级' },
|
||||||
|
{ value: 3, label: '现地级' },
|
||||||
|
{ value: 4, label: '部门级' },
|
||||||
|
]);
|
||||||
|
const classificationChange3 = (key) => {
|
||||||
|
console.log(`selected ${key}`, classifyList3);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 培训体系
|
||||||
|
const classifyList4 = ref([
|
||||||
|
{ value: 1, label: '集团级' },
|
||||||
|
{ value: 2, label: '组织级' },
|
||||||
|
{ value: 3, label: '现地级' },
|
||||||
|
{ value: 4, label: '部门级' },
|
||||||
|
]);
|
||||||
|
const classificationChange4 = (key) => {
|
||||||
|
console.log(`selected ${key}`, classifyList4);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 模版
|
||||||
|
const classifyList5 = ref([
|
||||||
|
{ value: 1, label: '模版一' },
|
||||||
|
{ value: 2, label: '模版二' },
|
||||||
|
{ value: 3, label: '模版三' },
|
||||||
|
{ value: 4, label: '模版四' },
|
||||||
|
]);
|
||||||
|
const classificationChange5 = (key) => {
|
||||||
|
console.log(`selected ${key}`, classifyList5);
|
||||||
|
}
|
||||||
|
|
||||||
// 项目说明
|
// 项目说明
|
||||||
const remark = ref('');
|
const remark = ref('');
|
||||||
@@ -438,10 +511,14 @@ export default {
|
|||||||
api.createProject(obj).then(res => {
|
api.createProject(obj).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.status == 200 && res.data.code == 200) {
|
if (res.status == 200 && res.data.code == 200) {
|
||||||
|
message.destroy();
|
||||||
|
message.success("创建成功")
|
||||||
|
setTimeout(() => {
|
||||||
router.push({
|
router.push({
|
||||||
path: '/taskpage',
|
path: '/taskpage',
|
||||||
query: { id: res.data.data.projectId }
|
query: { id: res.data.data.projectId }
|
||||||
});
|
});
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.error("创建失败,请检查当前网络状态。")
|
message.error("创建失败,请检查当前网络状态。")
|
||||||
@@ -459,6 +536,10 @@ export default {
|
|||||||
classifyList,
|
classifyList,
|
||||||
classificationChange,
|
classificationChange,
|
||||||
classificationChange1,
|
classificationChange1,
|
||||||
|
classificationChange2,
|
||||||
|
classificationChange3,
|
||||||
|
classificationChange4,
|
||||||
|
classificationChange5,
|
||||||
fileList,
|
fileList,
|
||||||
fileList1,
|
fileList1,
|
||||||
loading,
|
loading,
|
||||||
@@ -469,6 +550,10 @@ export default {
|
|||||||
beforeUpload1,
|
beforeUpload1,
|
||||||
onRangeChange,
|
onRangeChange,
|
||||||
classifyList1,
|
classifyList1,
|
||||||
|
classifyList2,
|
||||||
|
classifyList3,
|
||||||
|
classifyList4,
|
||||||
|
classifyList5,
|
||||||
remark,
|
remark,
|
||||||
changeChecked,
|
changeChecked,
|
||||||
changeChecked1,
|
changeChecked1,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -4,124 +4,115 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<span class="title">创建/编辑单层子项目</span>
|
<span class="title">创建/编辑单层子项目</span>
|
||||||
<router-link to="/projectmanage" class="goback">
|
<router-link to="/projectmanage" class="goback">
|
||||||
<span class="return"></span
|
<span class="return"></span><span class="returntext">返回</span>
|
||||||
><span class="returntext">返回</span></router-link
|
</router-link>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">项目归属</div>
|
<div class="inname">项目归属</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<div style="color: #C7CBD2;font-size: 14px;margin-left: 15px">HRBP2.0</div>
|
<div style="color: #C7CBD2;font-size: 14px;margin-left: 15px">{{ projectAscription }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">子项目名称</div>
|
<div class="inname">子项目名称</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<div style="color: #C7CBD2;font-size: 14px;margin-left: 15px">HRBP2.0-band</div>
|
<a-input v-model:value="projectName" placeholder="请输入子项目名称" show-count :maxlength="30" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">分类</div>
|
<div class="inname">分类</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in select">
|
<div class="in select">
|
||||||
<a-select
|
<a-select :getPopupContainer="
|
||||||
:value="classifySelect"
|
(triggerNode) => {
|
||||||
placeholder="四个养成"
|
return triggerNode.parentNode || document.body;
|
||||||
style="width: 100%"
|
}
|
||||||
:options="classifyList"
|
" v-model:value="classifySelect" placeholder="四个养成" style="width: 100%" :options="classifyList"
|
||||||
allowClear
|
@change="classificationChange" allowClear showSearch>
|
||||||
showSearch
|
</a-select>
|
||||||
></a-select>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">封面图</div>
|
<div class="inname">封面图</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="box" style="
|
||||||
class="box"
|
|
||||||
style="
|
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
border: 1px solid rgba(78, 166, 255, 1);
|
border: 1px solid rgba(78, 166, 255, 1);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
"
|
position: relative;
|
||||||
>
|
overflow: hidden;
|
||||||
|
">
|
||||||
|
<a-upload v-model:file-list="fileList" name="file" list-type="picture-card" class="avatar-uploader"
|
||||||
|
:show-upload-list="false" action="/api/file/upload" :before-upload="beforeUpload" @change="handleChange">
|
||||||
|
<img style="
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
margin-right: 4px;
|
||||||
|
" v-if="imageUrl" :src="imageUrl" alt="avatar" />
|
||||||
|
<div v-else>
|
||||||
|
<!-- <loading-outlined v-if="loading"></loading-outlined> -->
|
||||||
|
<!-- <plus-outlined v-else></plus-outlined> -->
|
||||||
<div class="box1"></div>
|
<div class="box1"></div>
|
||||||
<div class="box2"></div>
|
<div class="box2"></div>
|
||||||
|
<!-- <div class="ant-upload-text"></div> -->
|
||||||
|
</div>
|
||||||
|
</a-upload>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
<div class="inname">子项目时间</div>
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">项目时间</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<a-range-picker
|
<a-range-picker separator="至" :placeholder="[' 开始时间', ' 结束时间']"
|
||||||
separator="至"
|
style="width: 100%; height: 40px; border-radius: 5px" show-time @change="onRangeChange" />
|
||||||
style="width: 100%; height: 40px; border-radius: 5px"
|
|
||||||
show-time
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
<div class="inname">子项目经理</div>
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">项目经理</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="in select">
|
<div class="in">
|
||||||
<a-select
|
<a-select :getPopupContainer="
|
||||||
:value="classifySelect"
|
(triggerNode) => {
|
||||||
placeholder="请选择项目经理"
|
return triggerNode.parentNode || document.body;
|
||||||
style="width: 100%"
|
}
|
||||||
:options="classifyList"
|
" :value="classifySelect1" mode="multiple" placeholder="请选择子项目经理" style="width: 100%" :options="classifyList1"
|
||||||
allowClear
|
@change="classificationChange1" allowClear showSearch>
|
||||||
showSearch
|
</a-select>
|
||||||
></a-select>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">资源归属</div>
|
<div class="inname">资源归属</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="in">
|
<div class="in select">
|
||||||
<a-input v-model:value="valueE" placeholder="自动带出 可修改" />
|
<a-select :getPopupContainer="
|
||||||
|
(triggerNode) => {
|
||||||
|
return triggerNode.parentNode || document.body;
|
||||||
|
}
|
||||||
|
" v-model:value="classifySelect2" placeholder="自动带出 可修改" :options="classifyList2"
|
||||||
|
@change="classificationChange2" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name name2">
|
<div class="name name2">
|
||||||
@@ -129,12 +120,7 @@
|
|||||||
<div class="inname" style="margin-top: 13px">项目说明</div>
|
<div class="inname" style="margin-top: 13px">项目说明</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<a-textarea
|
<a-textarea v-model:value="remark" style="height: 80px" placeholder="请输入说明" show-count :maxlength="200" />
|
||||||
v-model:value="valuei"
|
|
||||||
style="height: 80px"
|
|
||||||
placeholder="请输入项目说明"
|
|
||||||
show-count :maxlength="200"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name name2">
|
<div class="name name2">
|
||||||
@@ -142,84 +128,70 @@
|
|||||||
<div class="inname">同步学习记录</div>
|
<div class="inname">同步学习记录</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<a-radio v-model:checked="checked"
|
<a-radio @click="changeChecked" v-model:checked="checked"><span style="
|
||||||
><span
|
|
||||||
style="
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: rgba(109, 117, 132, 1);
|
color: rgba(109, 117, 132, 1);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
"
|
">同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)</span></a-radio>
|
||||||
>同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)</span
|
|
||||||
></a-radio
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">项目级别</div>
|
<div class="inname">项目级别</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in select">
|
||||||
<a-input
|
<a-select :getPopupContainer="
|
||||||
v-model:value="valueE"
|
(triggerNode) => {
|
||||||
placeholder="集团级/组织级/现地级/部门级"
|
return triggerNode.parentNode || document.body;
|
||||||
/>
|
}
|
||||||
|
" v-model:value="classifySelect3" :options="classifyList3" @change="classificationChange3"
|
||||||
|
placeholder="集团级/组织级/现地级/部门级" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">培训体系</div>
|
<div class="inname">培训体系</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in select">
|
||||||
<a-input
|
<a-select :getPopupContainer="
|
||||||
v-model:value="valueE"
|
(triggerNode) => {
|
||||||
placeholder="集团级/组织级/现地级/部门级"
|
return triggerNode.parentNode || document.body;
|
||||||
/>
|
}
|
||||||
|
" v-model:value="classifySelect4" :options="classifyList4" @change="classificationChange4"
|
||||||
|
placeholder="集团级/组织级/现地级/部门级" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">是否BOEU实施</div>
|
<div class="inname">是否BOEU实施</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<a-radio v-model:checked="checked"
|
<a-radio @click="changeChecked1" v-model:checked="checked1"><span style="
|
||||||
><span
|
|
||||||
style="
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: rgba(109, 117, 132, 1);
|
color: rgba(109, 117, 132, 1);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
"
|
">BOEU实施</span></a-radio>
|
||||||
>BOEU实施</span
|
|
||||||
></a-radio
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name name2">
|
<div class="name name2">
|
||||||
<div class="namebox" style="margin-top: 8px">
|
<div class="namebox" style="margin-top: 8px">
|
||||||
<img
|
<img class="nameimg" src="../../assets/images/basicinfo/asterisk.png" />
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">附件</div>
|
<div class="inname">附件</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="filebox">
|
<div class="filebox">
|
||||||
<div style="cursor: pointer">
|
<div>
|
||||||
<img
|
<img v-if="fileList1.length < 6" class="fileimg" src="../../assets/images/projectadd/enclosure.png" />
|
||||||
class="fileimg"
|
<a-upload :disabled="fileList1.length > 5" :before-upload="beforeUpload1" v-model:file-list="fileList1"
|
||||||
src="../../assets/images/projectadd/enclosure.png"
|
@remove="removeFile" name="file" action="/api/file/upload" :headers="headers" @change="handleChange1">
|
||||||
/>
|
<!-- <a-button> -->
|
||||||
<span class="filetext">上传附件</span>
|
<!-- <upload-outlined></upload-outlined> -->
|
||||||
|
<span v-if="fileList1.length > 5" class="filetext">上传数量已经达到最大值</span>
|
||||||
|
<span v-else class="filetext">上传附件</span>
|
||||||
|
<!-- </a-button> -->
|
||||||
|
</a-upload>
|
||||||
</div>
|
</div>
|
||||||
<div class="support">
|
<div class="support">
|
||||||
支持.pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.zip
|
支持.pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.zip
|
||||||
@@ -229,76 +201,381 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="template">
|
<div class="template">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="inname" style="width: 50px">模板</div>
|
<div class="inname" style="width: 50px">模版</div>
|
||||||
<div class="in select" style="margin-left: 2px">
|
<div class="in select" style="margin-left: 2px">
|
||||||
<a-select
|
<a-select :getPopupContainer="
|
||||||
v-model:value="value1"
|
(triggerNode) => {
|
||||||
placeholder="请选择模板"
|
return triggerNode.parentNode || document.body;
|
||||||
:size="size"
|
}
|
||||||
style="width: 100%"
|
" v-model:value="classifySelect5" placeholder="请选择模版" :size="size" style="width: 100%" :options="classifyList5"
|
||||||
:options="options"
|
@change="classificationChange5">
|
||||||
></a-select>
|
</a-select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<a-button
|
<a-button v-on:click="createProject" type="primary" class="btn1">确定</a-button>
|
||||||
type="primary"
|
<a-button class="btn2">取消</a-button>
|
||||||
style="width: 100px; height: 40px; border-radius: 8px"
|
|
||||||
>确认</a-button
|
|
||||||
>
|
|
||||||
<a-button
|
|
||||||
type="primary"
|
|
||||||
ghost
|
|
||||||
style="
|
|
||||||
width: 100px;
|
|
||||||
height: 40px;
|
|
||||||
margin-left: 14px;
|
|
||||||
border-radius: 8px;
|
|
||||||
"
|
|
||||||
>取消</a-button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { reactive, toRefs } from "vue";
|
import { reactive, toRefs, ref } from "vue";
|
||||||
|
import { message } from 'ant-design-vue';
|
||||||
|
import { useRouter, useRoute } from "vue-router";
|
||||||
|
import * as api from "../../api/index";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "sonProject",
|
name: "sonProject",
|
||||||
setup() {
|
setup() {
|
||||||
|
const router = useRouter();
|
||||||
|
const routers = useRoute();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
classifyList: [
|
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
name: "分类一",
|
|
||||||
label: "分类一",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
name: "分类二",
|
|
||||||
label: "分类二",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
name: "分类三",
|
|
||||||
label: "分类三",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 4,
|
|
||||||
name: "分类四",
|
|
||||||
label: "分类四",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
classifySelect: null,
|
classifySelect: null,
|
||||||
classifySelectId: null,
|
classifySelectId: null,
|
||||||
|
checked: false,
|
||||||
|
checked1: false,
|
||||||
|
valueE: null,
|
||||||
|
valueE1: null,
|
||||||
|
valueE2: null,
|
||||||
|
|
||||||
|
projectAscription:'',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const projectName = ref('');
|
||||||
|
|
||||||
|
state.projectAscription = routers.query.name;
|
||||||
|
|
||||||
|
const classifyList = ref([
|
||||||
|
{ value: 1, label: '管理者' },
|
||||||
|
{ value: 2, label: '领军者' },
|
||||||
|
{ value: 3, label: '产业人' },
|
||||||
|
]);
|
||||||
|
|
||||||
|
let projectType = "";
|
||||||
|
|
||||||
|
const classificationChange = (value) => {
|
||||||
|
console.log(`selected ${value}`);
|
||||||
|
projectType = value;
|
||||||
|
};
|
||||||
|
|
||||||
|
function getBase64(img, callback) {
|
||||||
|
const reader = new FileReader();
|
||||||
|
reader.addEventListener('load', () => callback(reader.result));
|
||||||
|
reader.readAsDataURL(img);
|
||||||
|
}
|
||||||
|
|
||||||
|
const fileList = ref([]);
|
||||||
|
const fileList1 = ref([]);
|
||||||
|
const loading = ref(false);
|
||||||
|
const imageUrl = ref('');
|
||||||
|
let picUrl = '';
|
||||||
|
|
||||||
|
const handleChange = (info) => {
|
||||||
|
if (info.file.status === 'uploading') {
|
||||||
|
loading.value = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (info.file.status === 'done') {
|
||||||
|
console.log('上传图片返回的信息 %o', info)
|
||||||
|
picUrl = info.file.response.data;
|
||||||
|
// Get this url from response in real world.
|
||||||
|
getBase64(info.file.originFileObj, (base64Url) => {
|
||||||
|
imageUrl.value = base64Url;
|
||||||
|
loading.value = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (info.file.status === 'error') {
|
||||||
|
loading.value = false;
|
||||||
|
message.error('upload error');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
let uplodaFileCount = false;
|
||||||
|
|
||||||
|
let attach = "";
|
||||||
|
let attachData = "";
|
||||||
|
const handleChange1 = (info) => {
|
||||||
|
if (info.file.status === 'uploading') {
|
||||||
|
loading.value = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (info.file.status === 'done') {
|
||||||
|
console.log('上传附件返回的信息 %o', info, info.fileList.length, uplodaFileCount)
|
||||||
|
|
||||||
|
let attachStr = "";
|
||||||
|
attachData = info.fileList;
|
||||||
|
for (let i = 0; i < attachData.length; i++) {
|
||||||
|
if (attachData.length - 1 == i) {
|
||||||
|
attachStr += attachData[i].response.data;
|
||||||
|
} else {
|
||||||
|
attachStr += attachData[i].response.data + ',';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log(attachStr)
|
||||||
|
attach = attachStr;
|
||||||
|
|
||||||
|
if (info.fileList.length > 5) {
|
||||||
|
uplodaFileCount = true;
|
||||||
|
} else {
|
||||||
|
uplodaFileCount = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (info.file.status === 'error') {
|
||||||
|
loading.value = false;
|
||||||
|
message.error('upload error');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const beforeUpload = (file) => {
|
||||||
|
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
|
||||||
|
if (!isJpgOrPng) {
|
||||||
|
message.error('You can only upload JPG file!');
|
||||||
|
}
|
||||||
|
const isLt2M = file.size / 1024 / 1024 < 1;
|
||||||
|
if (!isLt2M) {
|
||||||
|
message.error('Image must smaller than 1MB!');
|
||||||
|
}
|
||||||
|
return isJpgOrPng && isLt2M;
|
||||||
|
};
|
||||||
|
|
||||||
|
const beforeUpload1 = () => {
|
||||||
|
return new Promise((resovle, reject) => {
|
||||||
|
if (uplodaFileCount) {
|
||||||
|
message.info("上传文件数量已达最大数量")
|
||||||
|
return reject(false);
|
||||||
|
}
|
||||||
|
return resovle(true);
|
||||||
|
})
|
||||||
|
};
|
||||||
|
|
||||||
|
let beginTime = "";
|
||||||
|
let endTime = "";
|
||||||
|
const onRangeChange = (value, dateString) => {
|
||||||
|
console.log('Selected Time: ', value);
|
||||||
|
// 项目时间选择函数
|
||||||
|
console.log('Formatted Selected Time: ', dateString);
|
||||||
|
console.log('Formatted Selected TimeStamp', new Date(dateString[0]).getTime())
|
||||||
|
beginTime = new Date(dateString[0]).getTime() / 1000;
|
||||||
|
endTime = new Date(dateString[1]).getTime() / 1000;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// 项目经理 后续接口调用
|
||||||
|
const classifyList1 = ref([
|
||||||
|
{ value: 1, label: '李俊国' },
|
||||||
|
{ value: 2, label: '将小米' },
|
||||||
|
{ value: 3, label: '刘孟君' },
|
||||||
|
]);
|
||||||
|
|
||||||
|
let manager = "";
|
||||||
|
let managerId = "";
|
||||||
|
const classificationChange1 = (key) => {
|
||||||
|
console.log(`selected ${key}`, classifyList1);
|
||||||
|
let mstr = '';
|
||||||
|
let midstr = '';
|
||||||
|
for (let i = 0; i < key.length; i++) {
|
||||||
|
if (key.length - 1 !== i) {
|
||||||
|
midstr += key[i] + ',';
|
||||||
|
mstr += classifyList1.value[i].label + ',';
|
||||||
|
} else {
|
||||||
|
midstr += key[i];
|
||||||
|
mstr += classifyList1.value[i].label;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log(mstr, midstr)
|
||||||
|
manager = mstr;
|
||||||
|
managerId = midstr;
|
||||||
|
};
|
||||||
|
|
||||||
|
// 资源归属 sourceBelongId 后续给接口
|
||||||
|
const classifyList2 = ref([
|
||||||
|
{ value: 1, label: '项目一' },
|
||||||
|
{ value: 2, label: '项目二' },
|
||||||
|
{ value: 3, label: '项目三' },
|
||||||
|
]);
|
||||||
|
|
||||||
|
const classificationChange2 = (key) => {
|
||||||
|
console.log(`selected ${key}`, classifyList2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 项目级别
|
||||||
|
const classifyList3 = ref([
|
||||||
|
{ value: 1, label: '集团级' },
|
||||||
|
{ value: 2, label: '组织级' },
|
||||||
|
{ value: 3, label: '现地级' },
|
||||||
|
{ value: 4, label: '部门级' },
|
||||||
|
]);
|
||||||
|
const classificationChange3 = (key) => {
|
||||||
|
console.log(`selected ${key}`, classifyList3);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 培训体系
|
||||||
|
const classifyList4 = ref([
|
||||||
|
{ value: 1, label: '集团级' },
|
||||||
|
{ value: 2, label: '组织级' },
|
||||||
|
{ value: 3, label: '现地级' },
|
||||||
|
{ value: 4, label: '部门级' },
|
||||||
|
]);
|
||||||
|
const classificationChange4 = (key) => {
|
||||||
|
console.log(`selected ${key}`, classifyList4);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 模版
|
||||||
|
const classifyList5 = ref([
|
||||||
|
{ value: 1, label: '模版一' },
|
||||||
|
{ value: 2, label: '模版二' },
|
||||||
|
{ value: 3, label: '模版三' },
|
||||||
|
{ value: 4, label: '模版四' },
|
||||||
|
]);
|
||||||
|
const classificationChange5 = (key) => {
|
||||||
|
console.log(`selected ${key}`, classifyList5);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 项目说明
|
||||||
|
const remark = ref('');
|
||||||
|
|
||||||
|
let courseSyncFlag = 0;
|
||||||
|
const changeChecked = () => {
|
||||||
|
console.log(state.checked)
|
||||||
|
state.checked ? state.checked = false : state.checked = true;
|
||||||
|
courseSyncFlag = state.checked ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
let boeFlag = 0;
|
||||||
|
const changeChecked1 = () => {
|
||||||
|
console.log(state.checked1)
|
||||||
|
state.checked1 ? state.checked1 = false : state.checked1 = true;
|
||||||
|
boeFlag = state.checked1 ? 1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
const removeFile = (file) => {
|
||||||
|
const index = fileList1.value.indexOf(file);
|
||||||
|
const newFileList = fileList1.value.slice();
|
||||||
|
newFileList.splice(index, 1);
|
||||||
|
fileList1.value = newFileList;
|
||||||
|
|
||||||
|
let attachStr = "";
|
||||||
|
if (newFileList.length == 0) {
|
||||||
|
attachStr = "";
|
||||||
|
}
|
||||||
|
for (let i = 0; i < fileList1["value"].length; i++) {
|
||||||
|
console.log(fileList1["value"][i].response.data)
|
||||||
|
if (fileList1["value"].length - 1 == i) {
|
||||||
|
attachStr += fileList1["value"][i].response.data;
|
||||||
|
} else {
|
||||||
|
attachStr += fileList1["value"][i].response.data + ',';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
attach = attachStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const errorMsgs = {
|
||||||
|
"name": "请输入项目名称",
|
||||||
|
"category": "请选择项目分类",
|
||||||
|
"picUrl": "请上传项目封面图",
|
||||||
|
"beginTime": "请选择项目开始时间",
|
||||||
|
"endTime": "请选择项目结束时间",
|
||||||
|
"manager": "请选择项目经理",
|
||||||
|
"managerId": "请选择项目经理",
|
||||||
|
"sourceBelongId": "请选择资源归属",
|
||||||
|
"level": "请填写项目级别",
|
||||||
|
"systemId": "请填写项目培训体系",
|
||||||
|
"boeFlag": "请选择是否BOE实施",
|
||||||
|
"attach": "请上传附件"
|
||||||
|
}
|
||||||
|
|
||||||
|
const createProject = () => {
|
||||||
|
let obj = {
|
||||||
|
"name": projectName["value"],
|
||||||
|
"category": projectType,
|
||||||
|
"picUrl": picUrl,
|
||||||
|
"beginTime": beginTime,
|
||||||
|
"endTime": endTime,
|
||||||
|
"manager": manager,
|
||||||
|
"managerId": managerId,
|
||||||
|
"sourceBelongId": 11,
|
||||||
|
"remark": remark["value"],
|
||||||
|
"courseSyncFlag": courseSyncFlag,
|
||||||
|
"level": 3,
|
||||||
|
"systemId": 4,
|
||||||
|
"boeFlag": boeFlag,
|
||||||
|
"attach": attach,
|
||||||
|
"type": 3,
|
||||||
|
"templateId": 10,
|
||||||
|
"parentId": routers.query.projectId,
|
||||||
|
"notice": "",
|
||||||
|
"noticeFlag": 0,
|
||||||
|
"status": 0
|
||||||
|
}
|
||||||
|
console.log('提交的数据格式 %o', obj)
|
||||||
|
for (let i in errorMsgs) {
|
||||||
|
console.log(obj[i])
|
||||||
|
if (obj[i] === "" || obj[i] === undefined) {
|
||||||
|
message.destroy()
|
||||||
|
message.warning(errorMsgs[i])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
api.createProject(obj).then(res => {
|
||||||
|
console.log(res)
|
||||||
|
if (res.status == 200 && res.data.code == 200) {
|
||||||
|
message.destroy();
|
||||||
|
message.success("创建成功")
|
||||||
|
setTimeout(() => {
|
||||||
|
router.push({
|
||||||
|
path: '/taskpage',
|
||||||
|
query: { id: res.data.data.projectId }
|
||||||
|
});
|
||||||
|
}, 1000);
|
||||||
|
} else {
|
||||||
|
message.destroy();
|
||||||
|
message.error("创建失败,请检查当前网络状态。")
|
||||||
|
}
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err)
|
||||||
|
message.destroy();
|
||||||
|
message.error("创建失败,请检查当前网络状态。")
|
||||||
|
})
|
||||||
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
|
projectName,
|
||||||
|
classifyList,
|
||||||
|
classificationChange,
|
||||||
|
classificationChange1,
|
||||||
|
classificationChange2,
|
||||||
|
classificationChange3,
|
||||||
|
classificationChange4,
|
||||||
|
classificationChange5,
|
||||||
|
fileList,
|
||||||
|
fileList1,
|
||||||
|
loading,
|
||||||
|
imageUrl,
|
||||||
|
handleChange,
|
||||||
|
handleChange1,
|
||||||
|
beforeUpload,
|
||||||
|
beforeUpload1,
|
||||||
|
onRangeChange,
|
||||||
|
classifyList1,
|
||||||
|
classifyList2,
|
||||||
|
classifyList3,
|
||||||
|
classifyList4,
|
||||||
|
classifyList5,
|
||||||
|
remark,
|
||||||
|
changeChecked,
|
||||||
|
changeChecked1,
|
||||||
|
uplodaFileCount,
|
||||||
|
createProject,
|
||||||
|
removeFile
|
||||||
};
|
};
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@@ -313,6 +590,7 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
@@ -321,10 +599,12 @@ export default {
|
|||||||
padding-left: 37px;
|
padding-left: 37px;
|
||||||
//font-weight: 500;
|
//font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.goback {
|
.goback {
|
||||||
padding-right: 70px;
|
padding-right: 70px;
|
||||||
//padding-top: 37px;
|
//padding-top: 37px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.return {
|
.return {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 42px;
|
width: 42px;
|
||||||
@@ -333,6 +613,7 @@ export default {
|
|||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
background-image: url("../../assets/images/projectadd/return.png");
|
background-image: url("../../assets/images/projectadd/return.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.returntext {
|
.returntext {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -342,8 +623,15 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 修改 antd upload 样式
|
||||||
|
.ant-upload {
|
||||||
|
border-width: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -352,12 +640,14 @@ export default {
|
|||||||
//justify-content: center;
|
//justify-content: center;
|
||||||
float: left;
|
float: left;
|
||||||
border-right: 1px solid rgba(153, 155, 163, 0.3);
|
border-right: 1px solid rgba(153, 155, 163, 0.3);
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
width: 78%;
|
width: 78%;
|
||||||
// background-color: lightcoral;
|
// background-color: lightcoral;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
//height: 40px;
|
//height: 40px;
|
||||||
// border: 1px solid black;
|
// border: 1px solid black;
|
||||||
.namebox {
|
.namebox {
|
||||||
@@ -366,19 +656,23 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
.nameimg {
|
.nameimg {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.d {
|
.d {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
color: #ff4e4e;
|
color: #ff4e4e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: 14px;
|
margin-left: 14px;
|
||||||
|
|
||||||
.box1 {
|
.box1 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
@@ -388,6 +682,7 @@ export default {
|
|||||||
margin-top: -5px;
|
margin-top: -5px;
|
||||||
border-top: 2px solid rgba(78, 166, 255, 1);
|
border-top: 2px solid rgba(78, 166, 255, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.box2 {
|
.box2 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
@@ -398,31 +693,42 @@ export default {
|
|||||||
border-left: 2px solid rgba(78, 166, 255, 1);
|
border-left: 2px solid rgba(78, 166, 255, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.inname {
|
.inname {
|
||||||
color: #6f6f6f;
|
color: #6f6f6f;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.in {
|
.in {
|
||||||
margin-left: 14px;
|
margin-left: 14px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
// .ant-radio-wrapper {
|
// .ant-radio-wrapper {
|
||||||
// }
|
// }
|
||||||
.ant-input-textarea-show-count {
|
.ant-input-textarea-show-count {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 88px;
|
height: 88px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-input-textarea-show-count::after {
|
.ant-input-textarea-show-count::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-input {
|
.ant-input {
|
||||||
border-radius: 5px;
|
border-radius: 8px;
|
||||||
// height: 120%;
|
// height: 120%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-input-affix-wrapper {
|
||||||
|
padding: 0 11px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.ant-select-selector {
|
.ant-select-selector {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
// height: 120%;
|
// height: 120%;
|
||||||
@@ -430,33 +736,39 @@ export default {
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.filebox {
|
.filebox {
|
||||||
margin-left: 14px;
|
margin-left: 14px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
.fileimg {
|
.fileimg {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filetext {
|
.filetext {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #4ea6ff;
|
color: #4ea6ff;
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.support {
|
.support {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #999ba3;
|
color: #999ba3;
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
//margin-top: 8px;
|
margin-top: 8px;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.name2 {
|
.name2 {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
|
||||||
.ant-input-textarea {
|
.ant-input-textarea {
|
||||||
.ant-input {
|
.ant-input {
|
||||||
height: 88px;
|
height: 88px;
|
||||||
@@ -464,6 +776,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.template {
|
.template {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -471,6 +784,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
//justify-content: center;
|
//justify-content: center;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
width: 78%;
|
width: 78%;
|
||||||
// background-color: lightcoral;
|
// background-color: lightcoral;
|
||||||
@@ -478,27 +792,32 @@ export default {
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
|
||||||
// border: 1px solid black;
|
// border: 1px solid black;
|
||||||
.d {
|
.d {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
color: #ff4e4e;
|
color: #ff4e4e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inname {
|
.inname {
|
||||||
color: #6f6f6f;
|
color: #6f6f6f;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
width: 65px;
|
width: 65px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.in {
|
.in {
|
||||||
margin-left: 14px;
|
margin-left: 14px;
|
||||||
width: 81%;
|
width: 81%;
|
||||||
|
|
||||||
.ant-input {
|
.ant-input {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
// height: 120%;
|
// height: 120%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-select-selector {
|
.ant-select-selector {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
// height: 120%;
|
// height: 120%;
|
||||||
@@ -509,15 +828,42 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 31px;
|
margin-top: 31px;
|
||||||
margin-bottom: 14px;
|
margin-bottom: 14px;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
|
.btn1 {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 100px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: #409eff;
|
||||||
|
color: #ffffff;
|
||||||
|
margin-right: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn2 {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 100px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #409eff;
|
||||||
|
background: #ffffff;
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
color: rgba(153, 155, 163, 1);
|
color: rgba(153, 155, 163, 1);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -526,3 +872,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -539,6 +539,7 @@ import AddVote from "../../components/drawers/AddVote.vue";
|
|||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import * as api from "../../api/indexTaskadd";
|
import * as api from "../../api/indexTaskadd";
|
||||||
import * as apilive from "../../api/indexLiveBroadcast";
|
import * as apilive from "../../api/indexLiveBroadcast";
|
||||||
|
import * as apiExternal from "../../api/indexExternalChain";
|
||||||
import * as apidiscuss from "../../api/indexDiscuss";
|
import * as apidiscuss from "../../api/indexDiscuss";
|
||||||
import * as apiactivity from "../../api/indexActivity";
|
import * as apiactivity from "../../api/indexActivity";
|
||||||
import * as apieval from "../../api/indexEval";
|
import * as apieval from "../../api/indexEval";
|
||||||
@@ -674,6 +675,7 @@ export default {
|
|||||||
haspub: false,
|
haspub: false,
|
||||||
checked1: false,
|
checked1: false,
|
||||||
checkedd: false,
|
checkedd: false,
|
||||||
|
id: "ssss",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 2,
|
key: 2,
|
||||||
@@ -858,6 +860,7 @@ export default {
|
|||||||
isactive: -1,
|
isactive: -1,
|
||||||
isActive: false,
|
isActive: false,
|
||||||
deleteLiveID: null, //删除直播id
|
deleteLiveID: null, //删除直播id
|
||||||
|
deleteExternalID: null, //删除外链id
|
||||||
deleteEvalID: null, //测评
|
deleteEvalID: null, //测评
|
||||||
deleteInvistID: null, //评估
|
deleteInvistID: null, //评估
|
||||||
deleteDiscussID: null, //删除讨论id
|
deleteDiscussID: null, //删除讨论id
|
||||||
@@ -1034,7 +1037,22 @@ export default {
|
|||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
//删除讨论
|
|
||||||
|
//删除外链
|
||||||
|
const deleteExternalChain = () => {
|
||||||
|
let obj = {
|
||||||
|
linkId: state.deleteExternalID,
|
||||||
|
};
|
||||||
|
apiExternal
|
||||||
|
.deleteLink(obj)
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
const deleteDiscuss = () => {
|
const deleteDiscuss = () => {
|
||||||
let obj = {
|
let obj = {
|
||||||
discussId: state.deleteDiscussID,
|
discussId: state.deleteDiscussID,
|
||||||
@@ -1145,6 +1163,44 @@ export default {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//编辑测评信息
|
||||||
|
const editEvalPath = () => {
|
||||||
|
// if (!state.inputV1) return message.info("请输入测评名称");
|
||||||
|
// if (!state.organizationSelectName) return message.warning("请选择归属组织");
|
||||||
|
// state.createLoading = true;
|
||||||
|
let obj = {
|
||||||
|
createTime: "",
|
||||||
|
createUser: 0,
|
||||||
|
evaluationEndTime: "",
|
||||||
|
evaluationFlag: "",
|
||||||
|
evaluationId: "",
|
||||||
|
evaluationName: "",
|
||||||
|
evaluationPictureAddress: "",
|
||||||
|
evaluationStartTime: "",
|
||||||
|
evaluationTag: "",
|
||||||
|
evaluationTypeId: 0,
|
||||||
|
evaluationTypeName: "",
|
||||||
|
updateTime: "",
|
||||||
|
updateUser: 0,
|
||||||
|
};
|
||||||
|
apieval
|
||||||
|
.updateEvaluation(obj)
|
||||||
|
.then((res) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
console.log("修改成功", res);
|
||||||
|
message.success("修改成功");
|
||||||
|
// state.createLoading = false;
|
||||||
|
// state.currentPage = 1;
|
||||||
|
// router.push("/leveladd");
|
||||||
|
// getLearnPath();
|
||||||
|
}, 1000);
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log("修改失败", err);
|
||||||
|
// state.createLoading = false;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
//删除评估测试
|
//删除评估测试
|
||||||
const deleteInvistText = () => {
|
const deleteInvistText = () => {
|
||||||
let obj = {
|
let obj = {
|
||||||
@@ -1293,8 +1349,10 @@ export default {
|
|||||||
deleteDiscuss,
|
deleteDiscuss,
|
||||||
editDiscuss,
|
editDiscuss,
|
||||||
deleteEvalText,
|
deleteEvalText,
|
||||||
|
deleteExternalChain,
|
||||||
deleteActivity,
|
deleteActivity,
|
||||||
editActivity,
|
editActivity,
|
||||||
|
editEvalPath,
|
||||||
deleteInvistText,
|
deleteInvistText,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user