27268 27258 27232

This commit is contained in:
wanglei
2022-02-11 08:30:39 +08:00
parent c9d6f266dc
commit fd199ce69f
2 changed files with 46 additions and 24 deletions

View File

@@ -87,6 +87,14 @@
</div>
</div>
<div class="item" v-if="item.type == 'number'">
<span class="label"><span class="tips"></span>{{ item.label }}</span>
<div class="value">
<u-input type="number" placeholder="请输入" v-model="form[item.formDbName]" input-align="right"
placeholder-style="color:#999;font-size:16px;" height="48" :maxlength="item.maxlength" :clearable="false" />
</div>
</div>
<div class="item" v-if="item.type == 'select'">
<span class="label"><span class="tips"></span>{{ item.label }}</span>
<div class="value" @click="selectClick(item.dict, item.formDbName)">
@@ -155,9 +163,9 @@ export default {
list: [ // 残疾人
{
label: '家庭年收入(万)',
type: 'input',
type: 'number',
formDbName: 'income',
maxLength: 20
maxlength: 9
},
{
label: '婚姻情况',
@@ -189,9 +197,9 @@ export default {
list: [ // 精神病人
{
label: '家庭年收入',
type: 'input',
type: 'number',
formDbName: 'income',
maxLength: 20
maxlength: 9
},
{
label: '发病日期',
@@ -202,13 +210,13 @@ export default {
label: '监护人姓名',
type: 'input',
formDbName: 'helpName',
maxLength: 20
maxlength: 20
},
{
label: '监护人联系方式',
type: 'input',
type: 'number',
formDbName: 'helpPhone',
maxLength: 11
maxlength: 11
},
{
label: '目前危险等级',
@@ -230,7 +238,7 @@ export default {
label: '具体罪名',
type: 'input',
formDbName: 'crime',
maxLength: 20
maxlength: 20
},
{
label: '矫正类别',
@@ -291,13 +299,13 @@ export default {
label: '管控人姓名',
type: 'input',
formDbName: 'controlName',
maxLength: 20
maxlength: 20
},
{
label: '管控人联系方式',
type: 'input',
type: 'number',
formDbName: 'controlPhone',
maxLength: 11
maxlength: 11
},
{
label: '有无犯罪史',
@@ -325,7 +333,7 @@ export default {
label: '服刑场所',
type: 'input',
formDbName: 'place',
maxLength: 20
maxlength: 20
},
{
label: '危险性评估',
@@ -400,19 +408,21 @@ export default {
methods: {
getDetail() {
console.log(111);
if (!this.id) return
var urlList = ['app/appspecialdisabled/queryDetailById', 'app/appspecialmental/queryDetailById', 'app/appspecialadjustment/queryDetailById',
'app/appspecialdrug/queryDetailById', 'app/appspecialprison/queryDetailById']
var urlList = ['/app/appspecialdisabled/queryDetailById', '/app/appspecialmental/queryDetailById', '/app/appspecialadjustment/queryDetailById',
'/app/appspecialdrug/queryDetailById', '/app/appspecialprison/queryDetailById']
this.$http.post(urlList[this.index], null, {
params: {
id: this.id
}
}).then((res) => {
console.log(res);
if (res.code == 0) {
this.$forceUpdate()
this.form = res.data
this.form.userType = this.index
this.$forceUpdate()
}
})
},