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