bug修复
This commit is contained in:
parent
33b63e0f5d
commit
429b4da7eb
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue