bug修复

This commit is contained in:
jjLv 2024-09-23 16:41:31 +08:00
parent 33b63e0f5d
commit 429b4da7eb
2 changed files with 7 additions and 10 deletions

View File

@ -2,7 +2,6 @@
<!-- 工程管理 新增编辑 表单组件 --> <!-- 工程管理 新增编辑 表单组件 -->
<div> <div>
<el-form <el-form
v-loading="open"
label-width="100px" label-width="100px"
size="medium" size="medium"
ref="projectParamsRef" ref="projectParamsRef"
@ -135,25 +134,21 @@ export default {
mixins: [commonMixin], mixins: [commonMixin],
components: { }, components: { },
created() { created() {
// this.getRanges()
}, },
async mounted() { mounted() {
this.open = true this.getRanges()
await this.getRanges()
if (this.crewParams) { if (this.crewParams) {
this.crewParams.proId = Number(this.crewParams.proId) this.crewParams.proId = Number(this.crewParams.proId)
this.ableSelect = this.crewParams.relId this.ableSelect = this.crewParams.relId
await Object.assign(this.projectParams, this.crewParams) Object.assign(this.projectParams, this.crewParams)
this.subSort = 2 this.subSort = 2
} else { } else {
this.subSort = 1 this.subSort = 1
} }
this.open = false
}, },
data() { data() {
return { return {
columnsListCrew, columnsListCrew,
open: false,
exportList: [], exportList: [],
subSort: '', // 1 / 2 subSort: '', // 1 / 2
ableSelect: undefined, ableSelect: undefined,

View File

@ -146,11 +146,11 @@ export default {
}, },
components: {}, components: {},
created() { created() {
// this.getRanges();
}, },
async mounted() { async mounted() {
this.open = true this.open = true
await this.getRanges(); await this.getRanges();
console.log(this.editParams);
if (this.editParams) { if (this.editParams) {
await Object.assign(this.projectParams, this.editParams); await Object.assign(this.projectParams, this.editParams);
// //
@ -264,12 +264,14 @@ export default {
let deptRes = await queryProjDeptListApi({ let deptRes = await queryProjDeptListApi({
isAll: 0, isAll: 0,
}); });
console.log(deptRes);
this.departRange = deptRes.data.map((item) => { this.departRange = deptRes.data.map((item) => {
return { return {
label: item.departName, label: item.departName,
value: item.id, value: item.dictCode,
}; };
}); });
console.log(this.departRange);
// //
let projRes = await queryProjApi({ let projRes = await queryProjApi({
isAll: 0, isAll: 0,