dto字段调整
parent
cc79c2b189
commit
2974f0185d
|
@ -27,10 +27,10 @@
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column type="index" label="序号" width="50" align="center" />
|
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||||
<el-table-column prop="NAME" label="名称" width="180" />
|
<el-table-column prop="NAME" label="名称" width="180" />
|
||||||
<el-table-column prop="TYPE_NAME" label="类型名称" show-overflow-tooltip="true" />
|
<el-table-column :show-overflow-tooltip="true" prop="TYPE_NAME" label="类型名称" />
|
||||||
<el-table-column prop="ADDRESS" label="地址" show-overflow-tooltip="true" />
|
<el-table-column :show-overflow-tooltip="true" prop="ADDRESS" label="地址" />
|
||||||
<el-table-column prop="CONTACT_PERSON" label="联系人" show-overflow-tooltip="true" />
|
<el-table-column :show-overflow-tooltip="true" prop="CONTACT_PERSON" label="联系人" />
|
||||||
<el-table-column prop="CONTACT_PHONE" label="联系电话" show-overflow-tooltip="true" />
|
<el-table-column :show-overflow-tooltip="true" prop="CONTACT_PHONE" label="联系电话" />
|
||||||
<el-table-column label="操作" align="center" width="300">
|
<el-table-column label="操作" align="center" width="300">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID)">编辑</el-button>
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.ID)">编辑</el-button>
|
||||||
|
@ -106,6 +106,7 @@ export default {
|
||||||
dialogFormShow: false,
|
dialogFormShow: false,
|
||||||
dialogType: 'add',
|
dialogType: 'add',
|
||||||
form: {
|
form: {
|
||||||
|
ID: '',
|
||||||
NAME: '',
|
NAME: '',
|
||||||
TYPE: null,
|
TYPE: null,
|
||||||
TYPE_NAME: '',
|
TYPE_NAME: '',
|
||||||
|
@ -179,11 +180,11 @@ export default {
|
||||||
this.getDetail(ID)
|
this.getDetail(ID)
|
||||||
},
|
},
|
||||||
getDetail(ID) {
|
getDetail(ID) {
|
||||||
const params = { Id: ID }
|
const params = { ID: ID }
|
||||||
requestFN('/major/drainage/detail', params).then((response) => {
|
requestFN('/major/drainage/detail', params).then((response) => {
|
||||||
const data = response.msg
|
const data = response.msg
|
||||||
this.form = {
|
this.form = {
|
||||||
Id: data.ID,
|
ID: data.ID,
|
||||||
NAME: data.NAME,
|
NAME: data.NAME,
|
||||||
TYPE: data.TYPE,
|
TYPE: data.TYPE,
|
||||||
TYPE_NAME: data.TYPE_NAME,
|
TYPE_NAME: data.TYPE_NAME,
|
||||||
|
|
Loading…
Reference in New Issue