feat:修改项目设置里的编辑基本信息

This commit is contained in:
lixg
2023-02-24 15:47:57 +08:00
parent 2bd7282abe
commit 656d90e7a8
3 changed files with 880 additions and 542 deletions

View File

@@ -964,7 +964,48 @@
></ProjectManager>
</div>
</div>
<div class="cstm_items">
<div class="signbox">
<span style="margin-right: 3px">考勤设置:</span>
</div>
<div style="display: flex; align-items: center">
<div style="margin-right: 10px">签到</div>
<div
style="display: flex; align-items: center; margin-right: 20px"
>
<span>开始前:</span>
<a-input-number
:min="0"
:max="300"
:precision="0"
style="
width: 100px;
height: 32px;
border-radius: 8px;
overflow: hidden;
"
v-model:value="beforeValue"
></a-input-number>
<span style="color: #999999; margin-left: 8px">分钟</span>
</div>
<div style="display: flex; align-items: center">
<span>开始后:</span>
<a-input-number
:min="0"
:max="300"
:precision="0"
style="
width: 100px;
height: 32px;
border-radius: 8px;
overflow: hidden;
"
v-model:value="afterStartValue"
></a-input-number>
<span style="color: #999999; margin-left: 8px">分钟</span>
</div>
</div>
</div>
<div class="cstm_items">
<div class="signbox">
<span style="margin-right: 3px">报名设置</span>
@@ -2617,6 +2658,8 @@ export default defineComponent({
xjkkinputV2: "",
xjkkinputV3: "",
xjkkinputV4: null,
beforeValue: null, //考勤 开始前
afterStartValue: null, //考勤 开始后
//开课学员管理
xygl_inputV1: "",
//录入成绩
@@ -3499,7 +3542,7 @@ export default defineComponent({
itm.pageNo = pageNo;
});
state.tableData6 = datas;
console.log("state.tableData6", state.tableData6);
console.log("开课列表state.tableData6", state.tableData6);
};
const options1 = ref([
@@ -3735,6 +3778,8 @@ export default defineComponent({
state.assessmentId = null;
state.assessmentName = "";
state.EditWorkId = null;
state.beforeValue = null; //考勤 开始前
state.afterStartValue = null; //考勤 开始后
removePG();
};
@@ -3875,7 +3920,6 @@ export default defineComponent({
}
*/
state.member = { value: item.teacherId, name: item.teacher };
state.cstm_hs = true;
state.kk_eidt = true;
};
@@ -4786,6 +4830,7 @@ export default defineComponent({
state.codeIndex = 0;
state.codeType = type;
};
return {
...toRefs(state),
sysTypeOptions,

View File

@@ -596,8 +596,8 @@ export default defineComponent({
selectBandName: [],
selectBandId: [],
//资源归属
sourceBelongId: [],
sourceBelongName: [],
sourceBelongId: null,
sourceBelongName: null,
sourceBelongFullName: [],
});
const store = useStore();
@@ -840,6 +840,7 @@ export default defineComponent({
}
orgSelectIds = orgSelectIds.slice(0, orgSelectIds.length - 1);
orgSelectNames = orgSelectNames.slice(0, orgSelectNames.length - 1);
console.log("orgSelectIds&orgSelectNames2", orgSelectIds, orgSelectNames);
let selectJobId = "";
if (state.selectJobId.length) {
@@ -888,7 +889,7 @@ export default defineComponent({
outline: valueHtml.value,
// organizationIds: orgSelect,
organizationIds: orgSelectIds,
organization_names: orgSelectNames,
organizationNames: orgSelectNames,
jobTypeIds: selectJobId,
bandIds: selectBandId,
sourceBelongId: state.sourceBelongId,
@@ -952,7 +953,7 @@ export default defineComponent({
}).then((res) => {
if (res.data.code === 200) return res.data.data;
});
console.log("获取面授课详情", item);
state.statusJuJue = Number(item.auditStatus) === -1 ? 1 : 0;
if (Number(item.auditStatus) === 2 && Number(item.status) === 1) {
@@ -999,6 +1000,24 @@ export default defineComponent({
}
console.log(str);
state.attach = str;
if (item.organizationIds && item.organizationNames) {
let orgSelectIds = item.organizationIds;
let orgSelectNames = item.organizationNames;
orgSelectIds = orgSelectIds.split(",");
orgSelectNames = orgSelectNames.split(",");
console.log(
"orgSelectIds&orgSelectNames",
orgSelectIds,
orgSelectNames
);
let arrObj = [];
arrObj = orgSelectIds.map((item, index) => {
return { label: item, value: orgSelectNames[index] };
});
console.log("arrObj-------------", arrObj);
state.orgSelect = arrObj;
}
};
const handleTagChange = () => {

File diff suppressed because it is too large Load Diff