|
|
@ -21,6 +21,7 @@ |
|
|
|
<el-table-column :label="getColumnName('address')" prop="address" width="140" :show-overflow-tooltip="true" /> |
|
|
|
<el-table-column :label="getColumnName('constructionarea')" prop="constructionarea" width="135" :show-overflow-tooltip="true" /> |
|
|
|
<el-table-column :label="getColumnName('totalhouseholds')" prop="totalhouseholds" width="130" :show-overflow-tooltip="true" /> |
|
|
|
<el-table-column :label="getColumnName('custodian')" prop="custodian" width="130" :show-overflow-tooltip="true" /> |
|
|
|
<el-table-column :label="getColumnName('lastmodifytime')" align="center" width="154"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span>{{ parseTime(scope.row['lastmodifytime']) }}</span> |
|
|
@ -61,36 +62,48 @@ |
|
|
|
<!-- 添加或修改配置对话框 --> |
|
|
|
<el-dialog :title="title" :visible.sync="open" width="800px"> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="130px"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="getColumnName('buildingid')" prop="buildingid"> |
|
|
|
<el-input v-model="form['buildingid']" :disabled="!isAdd" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="getColumnName('propertytypeid')"> |
|
|
|
<el-input v-model="form['propertytypeid']" placeholder="请输入" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="getColumnName('descr')"> |
|
|
|
<el-input v-model="form['descr']" placeholder="请输入" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="getColumnName('address')"> |
|
|
|
<el-input v-model="form['address']" placeholder="请输入" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="getColumnName('constructionarea')"> |
|
|
|
<el-input v-model="form['constructionarea']" placeholder="请输入" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="getColumnName('totalhouseholds')"> |
|
|
|
<el-input v-model.number="form['totalhouseholds']" placeholder="请输入" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="getColumnName('custodian')"> |
|
|
|
<el-select v-model="form['custodian']" placeholder="请选择"> |
|
|
|
<el-option |
|
|
|
v-for="item in userList" |
|
|
|
:key="item.userid" |
|
|
|
:label="item.userid" |
|
|
|
:value="item.userid"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
|
|
@ -103,6 +116,7 @@ |
|
|
|
<script> |
|
|
|
import { getWorkshopList } from '@/common/workshop' |
|
|
|
import { getBuildingList, getBuilding, delBuilding, addBuilding, updateBuilding } from '@/api/property/building' |
|
|
|
import { getAllUsers } from '@/api/system/sysuser' |
|
|
|
export default { |
|
|
|
name: 'Building', |
|
|
|
data() { |
|
|
@ -137,14 +151,21 @@ export default { |
|
|
|
'buildingid': [ |
|
|
|
{ required: true, message: '此项不能为空', trigger: 'blur' } |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
userList:[] |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.options = getWorkshopList() |
|
|
|
this.getList() |
|
|
|
this.getList(); |
|
|
|
this.getAllUsers(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getAllUsers(){ |
|
|
|
getAllUsers().then(({data})=>{ |
|
|
|
this.userList = data || []; |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** 查询数据列表 */ |
|
|
|
getList() { |
|
|
|
this.loading = true |
|
|
|