mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
feat:合并
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<div class="drawerMain">
|
<div class="drawerMain">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div v-if="edit" class="headerTitle">编辑评估</div>
|
<div v-if="edit" class="headerTitle">编辑评估</div>
|
||||||
<div v-else class="headerTitle">添加评估{{assessmentName}}{{assessmentId}}</div>
|
<div v-else class="headerTitle">添加评估</div>
|
||||||
<img
|
<img
|
||||||
style="width: 29px; height: 29px; cursor: pointer"
|
style="width: 29px; height: 29px; cursor: pointer"
|
||||||
src="../../assets/images/basicinfo/close.png"
|
src="../../assets/images/basicinfo/close.png"
|
||||||
@@ -192,7 +192,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
RouterEditTask({
|
RouterEditTask({
|
||||||
chapterId: props.isactive,
|
chapterId: props.isactive,
|
||||||
courseTaskId: state.assessmentId,
|
courseId: state.assessmentId,
|
||||||
name: state.assessmentName,
|
name: state.assessmentName,
|
||||||
routerId: props.routerId,
|
routerId: props.routerId,
|
||||||
routerTaskId: props.routerTaskId || 0,
|
routerTaskId: props.routerTaskId || 0,
|
||||||
|
|||||||
@@ -166,6 +166,9 @@
|
|||||||
<button class="btn2" @click="updateTask">确定</button>
|
<button class="btn2" @click="updateTask">确定</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
||||||
|
<a-spin :spinning="addLoading" tip="" />
|
||||||
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -256,6 +259,7 @@ export default {
|
|||||||
tableDataTotal: 0,
|
tableDataTotal: 0,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
choicecourse: true,
|
choicecourse: true,
|
||||||
|
ddLoading:false,
|
||||||
});
|
});
|
||||||
const ChoiceCourse = () => {
|
const ChoiceCourse = () => {
|
||||||
state.choicecourse = false;
|
state.choicecourse = false;
|
||||||
@@ -295,7 +299,7 @@ export default {
|
|||||||
title: "名称",
|
title: "名称",
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
key: "name",
|
key: "name",
|
||||||
width: "40%",
|
width: "30%",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -304,20 +308,22 @@ export default {
|
|||||||
key: "contenttype",
|
key: "contenttype",
|
||||||
width: "15%",
|
width: "15%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: "授课教师",
|
// title: "授课教师",
|
||||||
dataIndex: "teacher",
|
// dataIndex: "teacher",
|
||||||
key: "teacher",
|
// key: "teacher",
|
||||||
width: "15%",
|
// width: "15%",
|
||||||
align: "center",
|
// align: "center",
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: "创建人",
|
title: "创建人",
|
||||||
dataIndex: "sysCreateBy",
|
dataIndex: "sysCreateBy",
|
||||||
key: "sysCreateBy",
|
key: "sysCreateBy",
|
||||||
width: "15%x",
|
width: "15%x",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: "创建时间",
|
// title: "创建时间",
|
||||||
@@ -330,8 +336,9 @@ export default {
|
|||||||
title: "发布时间",
|
title: "发布时间",
|
||||||
dataIndex: "publishTime",
|
dataIndex: "publishTime",
|
||||||
key: "publishTime",
|
key: "publishTime",
|
||||||
width: "15%",
|
width: "25%",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
return columns;
|
return columns;
|
||||||
@@ -462,9 +469,10 @@ export default {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const updateTask = () => {
|
const updateTask = () => {
|
||||||
|
state.addLoading =true;
|
||||||
if (props.isLevel == 1) {
|
if (props.isLevel == 1) {
|
||||||
if(!props.isactive){
|
if(!props.isactive){
|
||||||
|
state.addLoading =false;
|
||||||
message.destroy();
|
message.destroy();
|
||||||
return message.warning("请先选中关卡");
|
return message.warning("请先选中关卡");
|
||||||
}
|
}
|
||||||
@@ -495,6 +503,7 @@ export default {
|
|||||||
}
|
}
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.warning("在线课(" + tipStr + ")重复添加");
|
message.warning("在线课(" + tipStr + ")重复添加");
|
||||||
|
state.addLoading =false;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
state.addOnlineList.map((value) => {
|
state.addOnlineList.map((value) => {
|
||||||
@@ -507,16 +516,19 @@ export default {
|
|||||||
routerTaskId: props.routerTaskId || 0,
|
routerTaskId: props.routerTaskId || 0,
|
||||||
type: 1,
|
type: 1,
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then((res) => {
|
||||||
message.destroy();
|
if(res.data.code == 200){
|
||||||
message.success(
|
message.destroy();
|
||||||
|
message.success(
|
||||||
`${props.edit ? "编辑" : "新增"}关卡任务成功`
|
`${props.edit ? "编辑" : "新增"}关卡任务成功`
|
||||||
);
|
);
|
||||||
|
}
|
||||||
ctx.emit("changeData", false);
|
ctx.emit("changeData", false);
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
state.addLoading = false;
|
state.addLoading = false;
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
state.addLoading =false;
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.error(
|
message.error(
|
||||||
`${props.edit ? "编辑" : "新增"}关卡任务失败`
|
`${props.edit ? "编辑" : "新增"}关卡任务失败`
|
||||||
|
|||||||
@@ -117,8 +117,8 @@
|
|||||||
:loading="tableDataTotal === -1 ? true : false"
|
:loading="tableDataTotal === -1 ? true : false"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
/>
|
/>
|
||||||
<div class="tableBox">
|
<div class="tableBox" style="margin-top:85px;">
|
||||||
<div class="pa" style="display:flex;justify-content:center;padding:20px;">
|
<div class="pa" style="display:flex;justify-content:center;">
|
||||||
<a-pagination
|
<a-pagination
|
||||||
v-if="tableDataTotal > 10"
|
v-if="tableDataTotal > 10"
|
||||||
:showSizeChanger="false"
|
:showSizeChanger="false"
|
||||||
@@ -162,14 +162,16 @@ const columns1 = [
|
|||||||
width: "30%",
|
width: "30%",
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
key: "name",
|
key: "name",
|
||||||
|
ellipsis: true,
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "内容分类",
|
title: "内容分类",
|
||||||
width: "15%",
|
width: "15%",
|
||||||
dataIndex: "content",
|
dataIndex: "category",
|
||||||
key: "content",
|
key: "category",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "授课教师",
|
title: "授课教师",
|
||||||
@@ -177,6 +179,7 @@ const columns1 = [
|
|||||||
dataIndex: "teacher",
|
dataIndex: "teacher",
|
||||||
key: "teacher",
|
key: "teacher",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "创建人",
|
title: "创建人",
|
||||||
@@ -184,6 +187,7 @@ const columns1 = [
|
|||||||
dataIndex: "creator",
|
dataIndex: "creator",
|
||||||
key: "creator",
|
key: "creator",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "发布时间",
|
title: "发布时间",
|
||||||
@@ -191,6 +195,7 @@ const columns1 = [
|
|||||||
dataIndex: "time",
|
dataIndex: "time",
|
||||||
key: "time",
|
key: "time",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -227,6 +232,129 @@ export default {
|
|||||||
// time: "2022-10-31 23:12:00",
|
// time: "2022-10-31 23:12:00",
|
||||||
// }
|
// }
|
||||||
],
|
],
|
||||||
|
options2222: [
|
||||||
|
{
|
||||||
|
title: "领导力",
|
||||||
|
value: "100",
|
||||||
|
selectable: false,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
title: "领导业务",
|
||||||
|
value: "1001",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "领导团队",
|
||||||
|
value: "1002",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "领导自我",
|
||||||
|
value: "1003",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "专业力",
|
||||||
|
value: "200",
|
||||||
|
selectable: false,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
title: "研发",
|
||||||
|
value: "2001",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "产品和解决方案",
|
||||||
|
value: "2002",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "生产技术与制造",
|
||||||
|
value: "2003",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "供应链",
|
||||||
|
value: "2004",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "营销",
|
||||||
|
value: "2005",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "品质",
|
||||||
|
value: "2006",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "战略与企划",
|
||||||
|
value: "2007",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "流程管理",
|
||||||
|
value: "2008",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "业绩管理",
|
||||||
|
value: "2009",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "项目管理",
|
||||||
|
value: "20010",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "信息技术",
|
||||||
|
value: "20011",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "环境与安全",
|
||||||
|
value: "20012",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "人力资源",
|
||||||
|
value: "20013",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "企业文化",
|
||||||
|
value: "20014",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "品牌",
|
||||||
|
value: "20015",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "财务",
|
||||||
|
value: "20016",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "法务",
|
||||||
|
value: "20017",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "行政",
|
||||||
|
value: "20018",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "医工",
|
||||||
|
value: "20019",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "通用力",
|
||||||
|
value: "300",
|
||||||
|
selectable: false,
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
title: "职业操守与道德",
|
||||||
|
value: "3001",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "职业素养与技能",
|
||||||
|
value: "3002",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "规章制度",
|
||||||
|
value: "3003",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
tableDataTotal: null,
|
tableDataTotal: null,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@@ -311,6 +439,7 @@ export default {
|
|||||||
const getClassData = (tabledata) => {
|
const getClassData = (tabledata) => {
|
||||||
let data = tabledata;
|
let data = tabledata;
|
||||||
let array = [];
|
let array = [];
|
||||||
|
let options = state.options2222;
|
||||||
data.map((value) => {
|
data.map((value) => {
|
||||||
let obj = {
|
let obj = {
|
||||||
key: value.offcourseId,
|
key: value.offcourseId,
|
||||||
@@ -320,13 +449,63 @@ export default {
|
|||||||
creator: value.createName || "-",
|
creator: value.createName || "-",
|
||||||
time: value.publishTime,
|
time: value.publishTime,
|
||||||
categoryId: value.categoryId,
|
categoryId: value.categoryId,
|
||||||
|
category:"",
|
||||||
//需要判断content
|
//需要判断content
|
||||||
};
|
};
|
||||||
|
console.log("obj",obj);
|
||||||
|
var breaked = false;
|
||||||
|
for (let i = 0; i < options.length; i++) {
|
||||||
|
for (let j = 0; j < options[i].children.length; j++) {
|
||||||
|
if (
|
||||||
|
String(options[i].children[j].value) ===
|
||||||
|
String(obj.categoryId)
|
||||||
|
) {
|
||||||
|
console.log("obj.categoryId",obj.categoryId);
|
||||||
|
obj.category = options[i].children[j].title;
|
||||||
|
console.log("obj. obj.category ", obj.category );
|
||||||
|
breaked = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(breaked){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!obj.category ){
|
||||||
|
obj.category ="-";
|
||||||
|
}
|
||||||
|
console.log("obj. obj.category22 ", obj.category );
|
||||||
array.push(obj);
|
array.push(obj);
|
||||||
});
|
});
|
||||||
state.classTableData = array;
|
state.classTableData = array;
|
||||||
};
|
};
|
||||||
/**
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
|
||||||
|
const getCategory=(id)=>{
|
||||||
|
console.log("进来了");
|
||||||
|
let category="";
|
||||||
|
let options = state.options2222;
|
||||||
|
for (let i = 0; i < options.value.length; i++) {
|
||||||
|
for (let j = 0; j < options.value[i].children.length; j++) {
|
||||||
|
if (
|
||||||
|
String(options.value[i].children[j].value) ===
|
||||||
|
String(id)
|
||||||
|
) {
|
||||||
|
console.log();
|
||||||
|
category = options.value[i].children[j].title;
|
||||||
|
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const options1 = ref([
|
const options1 = ref([
|
||||||
{
|
{
|
||||||
value: 0,
|
value: 0,
|
||||||
@@ -378,6 +557,7 @@ export default {
|
|||||||
rowSelection,
|
rowSelection,
|
||||||
search,
|
search,
|
||||||
submitCourse,
|
submitCourse,
|
||||||
|
|
||||||
// change,
|
// change,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnn">
|
<div class="btnn">
|
||||||
<button class="btn1">取消</button>
|
<button class="btn1" @click="closeDrawer">取消</button>
|
||||||
<button class="btn2" @click="CreatSTText()">确定</button>
|
<button class="btn2" @click="CreatSTText()">确定</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -197,15 +197,15 @@ export default {
|
|||||||
className: "h",
|
className: "h",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: "最近更新时间",
|
// title: "最近更新时间",
|
||||||
dataIndex: "sysUpdateTime",
|
// dataIndex: "sysUpdateTime",
|
||||||
key: "sysUpdateTime",
|
// // key: "sysUpdateTime",
|
||||||
ellipsis: true,
|
// ellipsis: true,
|
||||||
width: "20%",
|
// width: "20%",
|
||||||
align: "center",
|
// align: "center",
|
||||||
className: "h",
|
// className: "h",
|
||||||
},
|
// },
|
||||||
];
|
];
|
||||||
return columns;
|
return columns;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,6 +67,27 @@ function validateProName() {
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.in{
|
||||||
|
.pro{
|
||||||
|
.ant-input-affix-wrapper {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 99%;
|
||||||
|
min-width: 0;
|
||||||
|
padding: 4px 8px;
|
||||||
|
color: rgba(0, 0, 0, 0.85);
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.5715;
|
||||||
|
background-color: #fff;
|
||||||
|
background-image: none;
|
||||||
|
border: 1px solid #d9d9d9;
|
||||||
|
border-radius: 8px;
|
||||||
|
transition: all 0.3s;
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.in{
|
.in{
|
||||||
.ant-input-affix-wrapper {
|
.ant-input-affix-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="item_inp">
|
<div class="item_inp">
|
||||||
<div class="i1_input">
|
<div class="i1_input">
|
||||||
<NameInput placeholder="请输入课程名称" v-model:value="qdms_inputV1" v-model:validate="validate"
|
<NameInput ref="inputRef" placeholder="请输入课程名称" v-model:value="qdms_inputV1" v-model:validate="validate"
|
||||||
:maxlength="20" show-count :type="2" :id="offcourseId"></NameInput>
|
:maxlength="20" show-count :type="2" :id="offcourseId"></NameInput>
|
||||||
<!-- <a-input-->
|
<!-- <a-input-->
|
||||||
<!-- v-model:value="qdms_inputV1"-->
|
<!-- v-model:value="qdms_inputV1"-->
|
||||||
@@ -304,7 +304,7 @@
|
|||||||
<span style="margin-right: 14px">授课教师</span>
|
<span style="margin-right: 14px">授课教师</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_inp">
|
<div class="item_inp">
|
||||||
<div class="i1_input">
|
<div class="select" style="width:88%;">
|
||||||
<ProjectManager
|
<ProjectManager
|
||||||
v-model:value="member.value"
|
v-model:value="member.value"
|
||||||
v-model:name="member.name"
|
v-model:name="member.name"
|
||||||
|
|||||||
@@ -505,7 +505,7 @@ export default {
|
|||||||
console.log(data);
|
console.log(data);
|
||||||
};
|
};
|
||||||
const reset = () => {
|
const reset = () => {
|
||||||
(state.valueproj = ""),
|
(state.valueproj = null),
|
||||||
(state.valuecreater = null),
|
(state.valuecreater = null),
|
||||||
(state.valuename = null),
|
(state.valuename = null),
|
||||||
getList();
|
getList();
|
||||||
|
|||||||
@@ -623,7 +623,7 @@ export default {
|
|||||||
state.tableData1 = array;
|
state.tableData1 = array;
|
||||||
};
|
};
|
||||||
const reset = () => {
|
const reset = () => {
|
||||||
state.valueproj = "";
|
state.valueproj = null;
|
||||||
state.valuecreater = null;
|
state.valuecreater = null;
|
||||||
state.valuename = null;
|
state.valuename = null;
|
||||||
getFaceList();
|
getFaceList();
|
||||||
|
|||||||
@@ -809,8 +809,8 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
value: "已停用",
|
value: "已结束",
|
||||||
label: "已停用",
|
label: "已结束",
|
||||||
classify: -1,
|
classify: -1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -211,6 +211,14 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="name name2">
|
||||||
|
<div class="namebox">
|
||||||
|
<div class="inname" style="margin-top: 13px">审核意见</div>
|
||||||
|
</div>
|
||||||
|
<div class="description">
|
||||||
|
{{auditDescription}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="template">
|
<div class="template">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
@@ -267,6 +275,8 @@ import NameInput from "@/components/project/NameInput";
|
|||||||
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";
|
||||||
|
import * as api2 from "../../api/indexAudit";
|
||||||
|
import {validateName} from "@/api/index1";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "projectAdd",
|
name: "projectAdd",
|
||||||
@@ -297,6 +307,7 @@ export default {
|
|||||||
},
|
},
|
||||||
classifyList5: [],
|
classifyList5: [],
|
||||||
courseSyncFlag: false,
|
courseSyncFlag: false,
|
||||||
|
auditDescription:"",
|
||||||
});
|
});
|
||||||
|
|
||||||
// 封面图选择
|
// 封面图选择
|
||||||
@@ -340,6 +351,24 @@ export default {
|
|||||||
state.projectInfo.endTime,
|
state.projectInfo.endTime,
|
||||||
];
|
];
|
||||||
state.courseSyncFlag = !!state.projectInfo.courseSyncFlag;
|
state.courseSyncFlag = !!state.projectInfo.courseSyncFlag;
|
||||||
|
if (Number(state.projectInfo.status) === -5) {
|
||||||
|
let obj = {
|
||||||
|
project_id: state.projectInfo.projectId,
|
||||||
|
type: 1,
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 1,
|
||||||
|
};
|
||||||
|
api2.auditList(obj).then((d) => {
|
||||||
|
if (d.data.code === 200) {
|
||||||
|
let res =d.data.data;
|
||||||
|
if (res.rows && res.rows.length > 0) {
|
||||||
|
let i = res.rows.length;
|
||||||
|
state.auditDescription = res.rows[i - 1].description ? res.rows[i - 1].description : "-";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -416,16 +445,24 @@ export default {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const createProject = () => {
|
const createProject = async() => {
|
||||||
console.log("保存", state.projectInfo);
|
console.log("保存", state.projectInfo);
|
||||||
if (!validate(state.projectInfo, errorMsgs)) {
|
if (!validate(state.projectInfo, errorMsgs)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
if (!state.projectInfo.validate) {
|
if (!state.projectInfo.validate) {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.warning('项目名称重复,请修改名称!');
|
message.warning('项目名称重复,请修改名称!');
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
|
const offName = await validateName({name:state.projectInfo.name, type:1, id:state.projectInfo.projectId}).then(res => {
|
||||||
|
return res.data.data == 1;
|
||||||
|
});
|
||||||
|
if(offName){
|
||||||
|
message.destroy();
|
||||||
|
return message.warning("项目名称重复,请重新填写");
|
||||||
|
}
|
||||||
state.projectInfo.type = 3;
|
state.projectInfo.type = 3;
|
||||||
state.projectInfo.courseSyncFlag = state.courseSyncFlag ? 1 : 0;
|
state.projectInfo.courseSyncFlag = state.courseSyncFlag ? 1 : 0;
|
||||||
api.createProject(state.projectInfo).then((res) => {
|
api.createProject(state.projectInfo).then((res) => {
|
||||||
@@ -663,7 +700,10 @@ export default {
|
|||||||
.name2 {
|
.name2 {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
.description{
|
||||||
|
margin-top: 14px;
|
||||||
|
margin-left: 11px;
|
||||||
|
}
|
||||||
.ant-input-textarea {
|
.ant-input-textarea {
|
||||||
.ant-input {
|
.ant-input {
|
||||||
height: 88px;
|
height: 88px;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
></a-select>
|
></a-select>
|
||||||
</div>
|
</div>
|
||||||
<div class="select addTimeBox">
|
<div class="select addTimeBox">
|
||||||
<div class="addTime">项目起止时间:</div>
|
<div class="addTime">创建时间:</div>
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="searchParam.valueDate"
|
v-model:value="searchParam.valueDate"
|
||||||
:show-time="{
|
:show-time="{
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="inname">项目名称:</div>
|
<div class="inname">项目名称:</div>
|
||||||
<div class="in">
|
<div class="in pro">
|
||||||
<NameInput
|
<NameInput
|
||||||
placeholder="请输入项目名称"
|
placeholder="请输入项目名称"
|
||||||
v-model:value="projectInfo.name"
|
v-model:value="projectInfo.name"
|
||||||
@@ -831,6 +831,7 @@ import dayjs from "dayjs";
|
|||||||
import * as moment from "moment";
|
import * as moment from "moment";
|
||||||
import {changeOwnership} from "@/api/method";
|
import {changeOwnership} from "@/api/method";
|
||||||
import NameInput from "@/components/project/NameInput";
|
import NameInput from "@/components/project/NameInput";
|
||||||
|
import {validateName} from "@/api/index1";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "projectManage",
|
name: "projectManage",
|
||||||
@@ -958,7 +959,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 创建多层项目
|
// 创建多层项目
|
||||||
const createStoreyProject = () => {
|
const createStoreyProject = async() => {
|
||||||
// 接口需要传递的参数信息
|
// 接口需要传递的参数信息
|
||||||
const errorMsgs = {
|
const errorMsgs = {
|
||||||
name: "请输入项目名称",
|
name: "请输入项目名称",
|
||||||
@@ -969,11 +970,19 @@ export default {
|
|||||||
if (!validate(state.projectInfo, errorMsgs)) {
|
if (!validate(state.projectInfo, errorMsgs)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
if (!state.projectInfo.validate) {
|
if (!state.projectInfo.validate) {
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.warning("项目名称重复,请修改名称!");
|
message.warning("项目名称重复,请修改名称!");
|
||||||
return;
|
return;
|
||||||
}
|
} */
|
||||||
|
const offName = await validateName({name: state.qdms_inputV1, type:1, id:state.projectInfo.projectId}).then(res => {
|
||||||
|
return res.data.data == 1;
|
||||||
|
});
|
||||||
|
if(offName){
|
||||||
|
message.destroy();
|
||||||
|
return message.warning("项目名称重复,请重新填写");
|
||||||
|
}
|
||||||
api.createProject(state.projectInfo).then((res) => {
|
api.createProject(state.projectInfo).then((res) => {
|
||||||
state.doublepro = false;
|
state.doublepro = false;
|
||||||
message.destroy();
|
message.destroy();
|
||||||
@@ -1355,6 +1364,7 @@ export default {
|
|||||||
dayjs().isBefore(value.record.end) ? "进行中" : "已结束",
|
dayjs().isBefore(value.record.end) ? "进行中" : "已结束",
|
||||||
"-1": () => "已结束",
|
"-1": () => "已结束",
|
||||||
"-5": () => "草稿",
|
"-5": () => "草稿",
|
||||||
|
|
||||||
}[value.record.status + ""]() || ""
|
}[value.record.status + ""]() || ""
|
||||||
: "-"}
|
: "-"}
|
||||||
</div>
|
</div>
|
||||||
@@ -2092,6 +2102,9 @@ export default {
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #4ea6ff;
|
color: #4ea6ff;
|
||||||
margin-right: -45px;
|
margin-right: -45px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: right;
|
||||||
|
margin-right: 18px;
|
||||||
|
|
||||||
// line-height: 36px;
|
// line-height: 36px;
|
||||||
.operation1 {
|
.operation1 {
|
||||||
|
|||||||
@@ -6,27 +6,22 @@
|
|||||||
* @FilePath: /fe-manage/vue.config.js
|
* @FilePath: /fe-manage/vue.config.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
const {defineConfig} = require("@vue/cli-service");
|
const { defineConfig } = require("@vue/cli-service");
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
publicPath: "/manage",
|
publicPath: "/manage",
|
||||||
// transpileDependencies: true,
|
// transpileDependencies: true,
|
||||||
// devServer: {
|
devServer: {
|
||||||
// port: 8080,
|
port: 8080,
|
||||||
// proxy: {
|
proxy: {
|
||||||
// "/manageApi": {
|
"/manageApi": {
|
||||||
// target: "http://localhost:30001/",
|
target:"http://111.231.196.214:30001/",
|
||||||
// changeOrigin: true, //表示是否改变原域名
|
changeOrigin: true, //表示是否改变原域名
|
||||||
// // secure: false,
|
// secure: false,
|
||||||
// // ws: false, //表示WebSocket协议
|
// ws: false, //表示WebSocket协议
|
||||||
// pathRewrite: {
|
pathRewrite: {
|
||||||
// "^/manageApi": "",
|
"^/manageApi": "",
|
||||||
// },
|
},
|
||||||
// },
|
},
|
||||||
// "/userbasic": {
|
},
|
||||||
// target: "https://u-pre.boe.com",
|
},
|
||||||
// changeOrigin: true,
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user