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:
@@ -24,7 +24,7 @@
|
|||||||
<div class="file_img"></div>
|
<div class="file_img"></div>
|
||||||
<div class="file_detail">
|
<div class="file_detail">
|
||||||
<div class="file_name">
|
<div class="file_name">
|
||||||
<span style="color: #6f6f6f;width:200px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">
|
<span style="color: #6f6f6f;width:200px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">
|
||||||
{{ item.name.indexOf('-')!==-1?item.name.slice(0,item.name.indexOf('-')) + item.name.slice(item.name.indexOf('.')) :item.name }}
|
{{ item.name.indexOf('-')!==-1?item.name.slice(0,item.name.indexOf('-')) + item.name.slice(item.name.indexOf('.')) :item.name }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
v-model:value="managerArray"
|
v-model:value="managerArray"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:filterOption="false"
|
:filterOption="false"
|
||||||
style="width: 440px;"
|
|
||||||
:options="isOpen?options:selectOptions"
|
:options="isOpen?options:selectOptions"
|
||||||
allowClear
|
allowClear
|
||||||
showSearch
|
showSearch
|
||||||
@@ -20,6 +19,7 @@
|
|||||||
@change="change"
|
@change="change"
|
||||||
@blur="blur"
|
@blur="blur"
|
||||||
:show-arrow="false"
|
:show-arrow="false"
|
||||||
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<template v-if="loading" #notFoundContent>
|
<template v-if="loading" #notFoundContent>
|
||||||
<a-spin size="small"/>
|
<a-spin size="small"/>
|
||||||
|
|||||||
@@ -192,10 +192,11 @@
|
|||||||
<a-radio-group v-model:value="valueE1">
|
<a-radio-group v-model:value="valueE1">
|
||||||
<div class="bc_box">
|
<div class="bc_box">
|
||||||
<div class="bc_boxl">
|
<div class="bc_boxl">
|
||||||
<div class="ol_checkbox">
|
<div class="ol_checkbox" @click="expectOnline">
|
||||||
<a-radio
|
<a-radio
|
||||||
v-model:checked="checked"
|
v-model:checked="checked"
|
||||||
:value="1"
|
:value="1"
|
||||||
|
disabled="true"
|
||||||
@click="bs_hShow"
|
@click="bs_hShow"
|
||||||
>
|
>
|
||||||
线上
|
线上
|
||||||
@@ -1815,7 +1816,7 @@
|
|||||||
style="width: 440px; height: 40px; border-radius: 8px"
|
style="width: 440px; height: 40px; border-radius: 8px"
|
||||||
placeholder="请输入详细地点"
|
placeholder="请输入详细地点"
|
||||||
/>
|
/>
|
||||||
<div class="inp_num">
|
<div class="inp_num" style="right:164px;">
|
||||||
<span style="color: #c7cbd2">{{ xjkkinputV2.length }}/50</span>
|
<span style="color: #c7cbd2">{{ xjkkinputV2.length }}/50</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -4286,6 +4287,11 @@ export default defineComponent({
|
|||||||
state.valueE1 = "";
|
state.valueE1 = "";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// 弹框提示敬请期待
|
||||||
|
const expectOnline = () => {
|
||||||
|
message.destroy()
|
||||||
|
message.success("功能正在开发中,敬请期待。")
|
||||||
|
}
|
||||||
//新建面授课
|
//新建面授课
|
||||||
const createft = () => {
|
const createft = () => {
|
||||||
if (!state.xzinputV1) {
|
if (!state.xzinputV1) {
|
||||||
@@ -5402,6 +5408,7 @@ export default defineComponent({
|
|||||||
of_exit,
|
of_exit,
|
||||||
hideShow,
|
hideShow,
|
||||||
bs_hShow,
|
bs_hShow,
|
||||||
|
expectOnline,
|
||||||
createft,
|
createft,
|
||||||
ft_exit,
|
ft_exit,
|
||||||
ft_exit_1,
|
ft_exit_1,
|
||||||
@@ -5847,7 +5854,8 @@ export default defineComponent({
|
|||||||
|
|
||||||
.createschooltime {
|
.createschooltime {
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
width: 679px;
|
width: 879px;
|
||||||
|
height: 740px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -5867,7 +5875,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
.cst_main {
|
.cst_main {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-height: 600px;
|
max-height: 700px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,18 @@
|
|||||||
<span style="margin-right: 14px">封面图</span>
|
<span style="margin-right: 14px">封面图</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_inp">
|
<div class="item_inp">
|
||||||
<a-select
|
<div style="width:440px;height:70px;display: flex;justify-content: flex-start;align-items: center;">
|
||||||
|
<img
|
||||||
|
v-for="(item, index) in optionsUrl"
|
||||||
|
:key="index"
|
||||||
|
class="choiceoptionurl"
|
||||||
|
:style="item.value==feng_mian_1?'border:3px solid rgb(78, 166, 255);':''"
|
||||||
|
:src="item.value"
|
||||||
|
:alt="item.label"
|
||||||
|
@click="choicePic(item.value)"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<!-- <a-select
|
||||||
:getPopupContainer="
|
:getPopupContainer="
|
||||||
(triggerNode) => {
|
(triggerNode) => {
|
||||||
return triggerNode.parentNode || document.body;
|
return triggerNode.parentNode || document.body;
|
||||||
@@ -127,11 +138,12 @@
|
|||||||
:options="optionsUrl"
|
:options="optionsUrl"
|
||||||
allowClear
|
allowClear
|
||||||
showSearch
|
showSearch
|
||||||
/>
|
/> -->
|
||||||
<img
|
<img
|
||||||
class="i_upload_img"
|
class="i_upload_img"
|
||||||
v-if="feng_mian_1"
|
v-if="feng_mian_1"
|
||||||
:src="feng_mian_1"
|
:src="feng_mian_1"
|
||||||
|
style="width:220px;height:120px;border-radius: 8px;"
|
||||||
alt="avatar"
|
alt="avatar"
|
||||||
/>
|
/>
|
||||||
<div class="i_bottom">
|
<div class="i_bottom">
|
||||||
@@ -168,26 +180,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mbl_items">
|
|
||||||
<div class="item_nam">
|
|
||||||
<span style="margin-right: 14px">课程价值</span>
|
|
||||||
</div>
|
|
||||||
<div class="item_inp">
|
|
||||||
<div class="i1_input">
|
|
||||||
<a-input
|
|
||||||
v-model:value="qdms_inputV3"
|
|
||||||
maxlength="200"
|
|
||||||
style="width: 440px; height: 40px; border-radius: 8px"
|
|
||||||
placeholder="请输入课程价值"
|
|
||||||
/>
|
|
||||||
<div class="inp_num">
|
|
||||||
<span style="color: #c7cbd2">
|
|
||||||
{{ qdms_inputV3.length }}/200
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="mbl_items">
|
<div class="mbl_items">
|
||||||
<div class="item_nam">
|
<div class="item_nam">
|
||||||
<div class="asterisk_icon">
|
<div class="asterisk_icon">
|
||||||
@@ -217,6 +209,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mbl_items">
|
||||||
|
<div class="item_nam" style="margin-bottom:110px;">
|
||||||
|
<span style="margin-right: 14px">课程价值</span>
|
||||||
|
</div>
|
||||||
|
<div class="item_inp">
|
||||||
|
<div class="i1_input">
|
||||||
|
<a-textarea
|
||||||
|
v-model:value="qdms_inputV3"
|
||||||
|
maxlength="200"
|
||||||
|
style="width: 440px; height: 140px; border-radius: 8px"
|
||||||
|
placeholder="请输入课程价值"
|
||||||
|
/>
|
||||||
|
<div class="inp_num" style="top:110px;">
|
||||||
|
<span style="color: #c7cbd2;">
|
||||||
|
{{ qdms_inputV3.length }}/200
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="mbl_items">
|
<div class="mbl_items">
|
||||||
<div class="item_nam">
|
<div class="item_nam">
|
||||||
<span style="margin-right: 14px">场景</span>
|
<span style="margin-right: 14px">场景</span>
|
||||||
@@ -248,7 +260,7 @@
|
|||||||
<a-input
|
<a-input
|
||||||
v-model:value="tags_val_single"
|
v-model:value="tags_val_single"
|
||||||
style="width: 440px; height: 40px; border-radius: 8px"
|
style="width: 440px; height: 40px; border-radius: 8px"
|
||||||
placeholder="请输入按回车键创建成功"
|
placeholder="请输入内容标签按回车键添加内容标签,可添加多个内容标签。"
|
||||||
@pressEnter="handleTagChange"
|
@pressEnter="handleTagChange"
|
||||||
/>
|
/>
|
||||||
<div class="tag-content">
|
<div class="tag-content">
|
||||||
@@ -266,7 +278,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mb_right">
|
<div class="mb_right">
|
||||||
<div class="mbl_items">
|
<div class="mbl_items">
|
||||||
<div class="item_nam">
|
<div class="item_nam" style="margin-top:5px;">
|
||||||
<div class="asterisk_icon">
|
<div class="asterisk_icon">
|
||||||
<img
|
<img
|
||||||
src="@/assets/images/coursewareManage/asterisk.png"
|
src="@/assets/images/coursewareManage/asterisk.png"
|
||||||
@@ -510,6 +522,11 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
// 富文本 eeeeeeeeeeeeee
|
// 富文本 eeeeeeeeeeeeee
|
||||||
|
|
||||||
|
// 点击图片选择图片
|
||||||
|
const choicePic = (value) => {
|
||||||
|
state.feng_mian_1 = value;
|
||||||
|
}
|
||||||
|
|
||||||
//获取分类、场景、封面图、-----------字典配置-------------------------------
|
//获取分类、场景、封面图、-----------字典配置-------------------------------
|
||||||
const optionsUrl = ref([]);
|
const optionsUrl = ref([]);
|
||||||
const options2 = ref([]);
|
const options2 = ref([]);
|
||||||
@@ -749,6 +766,7 @@ export default defineComponent({
|
|||||||
toolbarConfig,
|
toolbarConfig,
|
||||||
editorConfig,
|
editorConfig,
|
||||||
handleCreated,
|
handleCreated,
|
||||||
|
choicePic
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -1151,5 +1169,12 @@ export default defineComponent({
|
|||||||
.statusJuJue {
|
.statusJuJue {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.choiceoptionurl {
|
||||||
|
width:60px;
|
||||||
|
height:60px;
|
||||||
|
margin-right: 10px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -48,18 +48,6 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name">
|
|
||||||
<div class="namebox">
|
|
||||||
<img
|
|
||||||
class="nameimg"
|
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
|
||||||
/>
|
|
||||||
<div class="inname">分类</div>
|
|
||||||
</div>
|
|
||||||
<div class="in select">
|
|
||||||
<ProjectClass v-model:value="projectInfo.category"></ProjectClass>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="name flex-top">
|
<div class="name flex-top">
|
||||||
<div class="namebox" style="margin-top: 10px">
|
<div class="namebox" style="margin-top: 10px">
|
||||||
<img
|
<img
|
||||||
@@ -68,36 +56,31 @@
|
|||||||
/>
|
/>
|
||||||
<div class="inname">封面图</div>
|
<div class="inname">封面图</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in select" style="flex: 1">
|
<div class="in select" style="flex: 1; display: flex">
|
||||||
<a-select
|
<div
|
||||||
:getPopupContainer="
|
:class="`box ${projectInfo.picUrl === src ? 'active' : ''}`"
|
||||||
(triggerNode) => {
|
style="
|
||||||
return triggerNode.parentNode || document.body;
|
width: 100px;
|
||||||
}
|
height: 100px;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
"
|
"
|
||||||
v-model:value="picUrlName"
|
v-for="(src, index) in projectPic"
|
||||||
dropdownClassName="dropdown-style"
|
:key="index"
|
||||||
style="width: 440px"
|
@click="() => (projectInfo.picUrl = src.value)"
|
||||||
placeholder="请选择"
|
>
|
||||||
:options="projectPic"
|
|
||||||
@change="handleChangeSelect"
|
|
||||||
allowClear
|
|
||||||
></a-select>
|
|
||||||
<img
|
<img
|
||||||
style="
|
style="
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
margin-top: 20px;
|
margin-bottom: 4px;
|
||||||
border-radius: 8px;
|
margin-right: 4px;
|
||||||
"
|
"
|
||||||
v-if="projectInfo.picUrl"
|
:src="src.value"
|
||||||
:src="projectInfo.picUrl"
|
|
||||||
alt="avatar"
|
alt="avatar"
|
||||||
/>
|
/>
|
||||||
<div class="i_bottom">
|
|
||||||
<span style="color: #999ba3">
|
|
||||||
高宽比为16:9 (如:800*450) png或jpg图片
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -156,54 +139,6 @@
|
|||||||
></OrgClass>
|
></OrgClass>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="name name2">
|
|
||||||
<div class="namebox">
|
|
||||||
<div class="inname" style="margin-top: 13px">项目说明</div>
|
|
||||||
</div>
|
|
||||||
<div class="in">
|
|
||||||
<a-textarea
|
|
||||||
v-model:value="projectInfo.remark"
|
|
||||||
style="height: 80px"
|
|
||||||
placeholder="请输入说明"
|
|
||||||
show-count
|
|
||||||
:maxlength="200"
|
|
||||||
:disabled="viewDetail ? true : false"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="name name2">
|
|
||||||
<div class="namebox">
|
|
||||||
<div class="inname">同步学习记录</div>
|
|
||||||
</div>
|
|
||||||
<div class="in">
|
|
||||||
<a-checkbox
|
|
||||||
v-model:checked="courseSyncFlag"
|
|
||||||
:disabled="viewDetail ? true : false"
|
|
||||||
><span
|
|
||||||
style="
|
|
||||||
width: 100%;
|
|
||||||
color: rgba(109, 117, 132, 1);
|
|
||||||
font-size: 14px;
|
|
||||||
"
|
|
||||||
>同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)</span
|
|
||||||
></a-checkbox
|
|
||||||
>
|
|
||||||
<!-- <a-switch
|
|
||||||
v-model:checked="projectInfo.courseSyncFlag"
|
|
||||||
:checkedValue="1"
|
|
||||||
:unCheckedValue="0"
|
|
||||||
:disabled="viewDetail ? true : false"
|
|
||||||
><span
|
|
||||||
style="
|
|
||||||
width: 100%;
|
|
||||||
color: rgba(109, 117, 132, 1);
|
|
||||||
font-size: 14px;
|
|
||||||
"
|
|
||||||
>同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)</span
|
|
||||||
></a-switch
|
|
||||||
> -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<img
|
<img
|
||||||
@@ -230,10 +165,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="name">
|
<div class="name">
|
||||||
<div class="namebox">
|
<div class="namebox">
|
||||||
<!-- <img-->
|
|
||||||
<!-- class="nameimg"-->
|
|
||||||
<!-- src="../../assets/images/basicinfo/asterisk.png"-->
|
|
||||||
<!-- />-->
|
|
||||||
<img
|
<img
|
||||||
class="nameimg"
|
class="nameimg"
|
||||||
src="../../assets/images/basicinfo/asterisk.png"
|
src="../../assets/images/basicinfo/asterisk.png"
|
||||||
@@ -241,12 +172,6 @@
|
|||||||
<div class="inname">是否BOEU实施</div>
|
<div class="inname">是否BOEU实施</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<!-- <a-switch
|
|
||||||
v-model:checked="projectInfo.boeFlag"
|
|
||||||
:checkedValue="1"
|
|
||||||
:unCheckedValue="0"
|
|
||||||
:disabled="viewDetail ? true : false"
|
|
||||||
></a-switch> -->
|
|
||||||
<a-radio-group
|
<a-radio-group
|
||||||
v-model:value="projectInfo.boeFlag"
|
v-model:value="projectInfo.boeFlag"
|
||||||
:disabled="viewDetail ? true : false"
|
:disabled="viewDetail ? true : false"
|
||||||
@@ -256,6 +181,40 @@
|
|||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="name name2">
|
||||||
|
<div class="namebox">
|
||||||
|
<div class="inname">同步学习记录</div>
|
||||||
|
</div>
|
||||||
|
<div class="in">
|
||||||
|
<a-checkbox
|
||||||
|
v-model:checked="courseSyncFlag"
|
||||||
|
:disabled="viewDetail ? true : false"
|
||||||
|
><span
|
||||||
|
style="
|
||||||
|
width: 100%;
|
||||||
|
color: rgba(109, 117, 132, 1);
|
||||||
|
font-size: 14px;
|
||||||
|
"
|
||||||
|
>同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)</span
|
||||||
|
></a-checkbox
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="name name2">
|
||||||
|
<div class="namebox">
|
||||||
|
<div class="inname" style="margin-top: 13px">项目说明</div>
|
||||||
|
</div>
|
||||||
|
<div class="in">
|
||||||
|
<a-textarea
|
||||||
|
v-model:value="projectInfo.remark"
|
||||||
|
style="height: 80px"
|
||||||
|
placeholder="请输入说明"
|
||||||
|
show-count
|
||||||
|
:maxlength="200"
|
||||||
|
:disabled="viewDetail ? true : false"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="template">
|
<div class="template">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
@@ -286,34 +245,34 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<a-button v-on:click="createProject" type="primary" class="btn1"
|
|
||||||
>确定
|
|
||||||
</a-button>
|
|
||||||
<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
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {onMounted, reactive, toRefs, watch} from "vue";
|
import { onMounted, reactive, toRefs, watch } from "vue";
|
||||||
import {message} from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import {useRoute, useRouter} from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import * as api from "../../api/index";
|
import * as api from "../../api/index";
|
||||||
import {useStore} from "vuex";
|
import { useStore } from "vuex";
|
||||||
import ProjectClass from "@/components/project/ProjectClass";
|
// import ProjectClass from "@/components/project/ProjectClass";
|
||||||
import TrainClass from "@/components/project/TrainClass";
|
import TrainClass from "@/components/project/TrainClass";
|
||||||
import OrgClass from "@/components/project/OrgClass";
|
import OrgClass from "@/components/project/OrgClass";
|
||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import ProjectLevel from "@/components/project/ProjectLevel";
|
import ProjectLevel from "@/components/project/ProjectLevel";
|
||||||
import {changeOwnership, scrollLoad} from "@/api/method";
|
import { changeOwnership, scrollLoad } from "@/api/method";
|
||||||
import {storage} from "../../api/storage";
|
import { storage } from "../../api/storage";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "projectAdd",
|
name: "projectAdd",
|
||||||
components: {
|
components: {
|
||||||
ProjectManager,
|
ProjectManager,
|
||||||
ProjectLevel,
|
ProjectLevel,
|
||||||
ProjectClass,
|
// ProjectClass,
|
||||||
TrainClass,
|
TrainClass,
|
||||||
OrgClass,
|
OrgClass,
|
||||||
},
|
},
|
||||||
@@ -369,7 +328,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
api
|
api
|
||||||
.getProjectDetail({projectId: routers.query.projectId})
|
.getProjectDetail({ projectId: routers.query.projectId })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
state.projectInfo = res.data.data.projectInfo;
|
state.projectInfo = res.data.data.projectInfo;
|
||||||
|
|
||||||
@@ -481,22 +440,24 @@ export default {
|
|||||||
api.createProject(state.projectInfo).then((res) => {
|
api.createProject(state.projectInfo).then((res) => {
|
||||||
state.projectInfo.projectId ||
|
state.projectInfo.projectId ||
|
||||||
changeOwnership("project", res.data.data.projectId, [
|
changeOwnership("project", res.data.data.projectId, [
|
||||||
{id: res.data.data.createId, name: res.data.data.createName},
|
{ id: res.data.data.createId, name: res.data.data.createName },
|
||||||
]);
|
]);
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.success(state.projectInfo.projectId ? "编辑成功" : "创建成功");
|
message.success(state.projectInfo.projectId ? "编辑成功" : "创建成功");
|
||||||
// router.back();
|
// router.back();
|
||||||
router.push({
|
router.push({
|
||||||
path: "/taskpage",
|
path: "/taskpage",
|
||||||
query: {projectId: res.data.data.projectId},
|
query: { projectId: res.data.data.projectId },
|
||||||
});
|
});
|
||||||
storage.set("projectId", res.data.data.projectId);
|
storage.set("projectId", res.data.data.projectId);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
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 {
|
||||||
@@ -569,7 +530,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
border: 1px solid rgba(78, 166, 255, 1);
|
border: 2px solid rgba(78, 166, 255, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
|||||||
@@ -1304,7 +1304,7 @@ export default {
|
|||||||
title: "项目名称",
|
title: "项目名称",
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
key: "name",
|
key: "name",
|
||||||
width: 280,
|
width: 480,
|
||||||
// align: "center",
|
// align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
// scopedSlots: { customRender: "action" }, //引入的插槽
|
// scopedSlots: { customRender: "action" }, //引入的插槽
|
||||||
@@ -1316,8 +1316,9 @@ export default {
|
|||||||
{
|
{
|
||||||
title: "项目经理",
|
title: "项目经理",
|
||||||
dataIndex: "manager",
|
dataIndex: "manager",
|
||||||
|
ellipsis: true,
|
||||||
key: "manager",
|
key: "manager",
|
||||||
width: 100,
|
width: 300,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1394,7 +1395,7 @@ export default {
|
|||||||
dataIndex: "operation",
|
dataIndex: "operation",
|
||||||
key: "operation",
|
key: "operation",
|
||||||
width: 300,
|
width: 300,
|
||||||
align: "center",
|
align: "right",
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
customRender: (value) => {
|
customRender: (value) => {
|
||||||
// console.log("value", value.record.type, value.record.status);
|
// console.log("value", value.record.type, value.record.status);
|
||||||
|
|||||||
Reference in New Issue
Block a user