mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
专业力必修提交
This commit is contained in:
@@ -5,9 +5,6 @@
|
||||
<PostSelectNew v-model:value="statusPost"> </PostSelectNew>
|
||||
</div>
|
||||
<div class="select multi" style="min-width: 181px; height: 40px">
|
||||
<!-- <RankSelect
|
||||
v-model:value="statusRank"
|
||||
></RankSelect> -->
|
||||
<OfficeSelect v-model:value="statusOffice" :searchData="statusPost" />
|
||||
</div>
|
||||
<div class="select">
|
||||
@@ -62,13 +59,13 @@
|
||||
>管理</a-button
|
||||
>
|
||||
<DropDown v-if="record?.permissions?.includes('17')" value="授权">
|
||||
<TableModelStudent :id="record.id" :type="17"
|
||||
<TableModelStudent :id="record.id" title="转移归属权" :type="17"
|
||||
>归属权</TableModelStudent
|
||||
>
|
||||
<TableModelStudent :id="record.id" :type="15"
|
||||
<TableModelStudent :id="record.id" title="添加查看权" :type="15"
|
||||
>查看权</TableModelStudent
|
||||
>
|
||||
<TableModelStudent :id="record.id" :type="16"
|
||||
<TableModelStudent :id="record.id" title="添加管理权" :type="16"
|
||||
>管理权</TableModelStudent
|
||||
>
|
||||
</DropDown>
|
||||
@@ -153,11 +150,7 @@
|
||||
<span>标准岗位</span>
|
||||
</div>
|
||||
<div class="bg_body_input">
|
||||
<PostSelectNew
|
||||
v-model:value="statusPosts"
|
||||
width="384px"
|
||||
:disabled="editId"
|
||||
>
|
||||
<PostSelectNew v-model:value="statusPosts" width="384px" disabled>
|
||||
</PostSelectNew>
|
||||
</div>
|
||||
</div>
|
||||
@@ -173,7 +166,7 @@
|
||||
</div>
|
||||
<div class="bg_body_input">
|
||||
<OfficeSelect
|
||||
:disabled="editId"
|
||||
disabled
|
||||
width="384px"
|
||||
:searchData="statusPosts"
|
||||
@bandCodes="getBandCodes"
|
||||
@@ -250,10 +243,9 @@
|
||||
<div class="bg_body_input">
|
||||
<a-radio-group v-model:value="template">
|
||||
<div style="display: flex">
|
||||
<a-radio :value="1" style="margin-bottom: 15px"
|
||||
>路径图</a-radio
|
||||
<a-radio value="1" style="margin-bottom: 15px">路径图</a-radio
|
||||
><br />
|
||||
<a-radio :value="2">任务列表</a-radio>
|
||||
<a-radio value="2">任务列表</a-radio>
|
||||
</div>
|
||||
</a-radio-group>
|
||||
</div>
|
||||
@@ -348,6 +340,7 @@ export default {
|
||||
statusRankCreate: [],
|
||||
courseNum: "",
|
||||
matStudens: "",
|
||||
elePublishedNum: 0, // 选修发布数量
|
||||
pathWays: "",
|
||||
statusPost: null,
|
||||
matchRules: "1",
|
||||
@@ -446,10 +439,10 @@ export default {
|
||||
let params = {
|
||||
pageNum: state.pageNum,
|
||||
pageSize: state.pageSize,
|
||||
stdPosition: state.statusOffice,
|
||||
stdPosition: state.statusPost,
|
||||
isPublished: state.statusValue,
|
||||
bandIdList: state.statusRank, //职级
|
||||
qualsLevelCode: state.statusPost,
|
||||
qualsLevelCode: state.statusOffice,
|
||||
};
|
||||
console.log(store);
|
||||
// 判断当前用户是否是专业力必修角色管理员,如果不是查询列表时需传入员工工号
|
||||
@@ -491,18 +484,22 @@ export default {
|
||||
state.statusPosts = record.stdPosition;
|
||||
state.statusOffices = record.qualsLevelCode;
|
||||
state.courseNum = record.electivesCompletedNum;
|
||||
state.elePublishedNum = record.elePublishedNum;
|
||||
state.pathWays = record.description;
|
||||
state.band = record.bandCodes;
|
||||
state.matchRules = record.matchRules;
|
||||
state.matchRules = record.matchRules || "1";
|
||||
state.template = state.template || "1";
|
||||
state.bg_check = true;
|
||||
};
|
||||
// 确定
|
||||
const confirm = () => {
|
||||
if (state.statusPosts == "" || state.statusPosts == null) {
|
||||
return message.error("请选择岗位");
|
||||
if (state.courseNum !== 0 && !state.courseNum) {
|
||||
return message.error("请输入完成选修数量");
|
||||
}
|
||||
if (state.statusOffices == "" || state.statusRanks == null) {
|
||||
return message.error("请选择任职资格等级");
|
||||
if (state.courseNum > state.elePublishedNum) {
|
||||
message.warning("完成选修数量不能大于已发布的选修数量");
|
||||
state.courseNum = state.elePublishedNum;
|
||||
return;
|
||||
}
|
||||
const params = {
|
||||
stdPosition: state.statusPosts,
|
||||
|
||||
Reference in New Issue
Block a user