diff --git a/src/views/main/DJYTenantParam/editItemForm.vue b/src/views/main/DJYTenantParam/editItemForm.vue index a75db6b..215a6ad 100644 --- a/src/views/main/DJYTenantParam/editItemForm.vue +++ b/src/views/main/DJYTenantParam/editItemForm.vue @@ -177,7 +177,6 @@ export default { this.ItemCodeDisabled = false DJYTenantParamGetParamItem({ paraCode: e }).then(res => { this.ItemData = res.data - console.log(res.data) }) } }, @@ -190,8 +189,10 @@ export default { }, // 初始化方法 edit(record) { - this.data = record console.log(record) + this.FnChangeTypeCode(record.paraCode) + this.data = record + this.visible = true const typeOption = this.$options this.typeData = typeOption.filters['dictData']('edi_type') @@ -204,7 +205,6 @@ export default { sort: record.sort, tenantId: record.tenantId }) - console.log(this.form.getFieldsValue()) }, 100) }, handleSubmit() { @@ -213,17 +213,15 @@ export default { } = this this.confirmLoading = true validateFields((errors, values) => { - console.log(errors, values) if (!errors) { for (const key in values) { - console.log(key, 1) if (typeof values[key] === 'object' && !(values[key] === null)) { values[key] = JSON.stringify(values[key]) } } - console.log(this.form, values.id) + values.id = this.data.id - console.log(values) + DJYTenantParamEditParamValue(values) .then(res => { if (res.success) { diff --git a/src/views/main/DJYTenantParam/indexItem.vue b/src/views/main/DJYTenantParam/indexItem.vue index 9b464b2..7437e46 100644 --- a/src/views/main/DJYTenantParam/indexItem.vue +++ b/src/views/main/DJYTenantParam/indexItem.vue @@ -101,8 +101,10 @@ :align="item.align" v-if="item.title != '租户'" > -