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>
<el-form
v-loading="open"
label-width="100px"
size="medium"
ref="projectParamsRef"
@ -135,25 +134,21 @@ export default {
mixins: [commonMixin],
components: { },
created() {
// this.getRanges()
},
async mounted() {
this.open = true
await this.getRanges()
mounted() {
this.getRanges()
if (this.crewParams) {
this.crewParams.proId = Number(this.crewParams.proId)
this.ableSelect = this.crewParams.relId
await Object.assign(this.projectParams, this.crewParams)
Object.assign(this.projectParams, this.crewParams)
this.subSort = 2
} else {
this.subSort = 1
}
this.open = false
},
data() {
return {
columnsListCrew,
open: false,
exportList: [],
subSort: '', // 1 / 2
ableSelect: undefined,

View File

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