feat: 蓝星登录

This commit is contained in:
caijun
2026-01-23 11:09:28 +08:00
parent 2195b230ed
commit 686bf339ae
6 changed files with 112 additions and 25 deletions

View File

@@ -298,7 +298,6 @@
} from '@/api/apply/visualDev'
import UserSelect from '@/components/Jnpf/CandidateSelect'
import {getOrganizeSelector} from '@/api/common.js'
import flowBtn from '../../workFlow/components/flowBtn.vue'
export default {
components: {
CustomButton,
@@ -332,7 +331,7 @@
isAdd: false,
showMoreMenu: false,
moreMenuList: [],
lc_fire_operation_detail: [],
createData: {}, // 初始值
deptList: [],
showProcessDialog: false,
processList: [],
@@ -774,7 +773,7 @@
this.approvalSubmitting = false
}
},
// 获取布局和初始值
async getDesForm() {
try {
const res = await getDesForm(this.config.modelId);
@@ -782,8 +781,9 @@
const data = res.data ? JSON.parse(res.data) : {};
this.formConf = JSON.parse(data.formData);
console.log(this.formConf,'formConf--')
console.log(data,'data--111')
this.formConf.labelWidth = 160;
this.lc_fire_operation_detail = data?.lc_fire_operation_detail || [];
this.createData = data
await this.getDeptList();
await this.fillFormData(this.formConf, this.formData);
this.showPage = true;
@@ -894,11 +894,12 @@
await this.getApprovalData();
this.initMoreMenuList()
} else {
console.log(this.formData,'formData111')
const {user,deptInfoList} = this.userInfo
this.isAdd = true;
this.formData = {
...this.formData,
lc_fire_operation_detail: this.lc_fire_operation_detail,
...this.createData,
applyDepId: deptInfoList ? String(deptInfoList[0].deptId) : '' ,
applyDepName: deptInfoList && deptInfoList[0].deptName,
applyUser: user.nickname
@@ -1042,6 +1043,9 @@
}
}
}
if(vModel == 'applyUser') {
this.$set(item, 'disabled', true);
}
if (vModel) {
let val = data.hasOwnProperty(vModel) ? data[vModel] : config.defaultValue;
if (!config.isSubTable) config.defaultValue = val;