|
|
@ -18,7 +18,7 @@ |
|
|
|
<!-- <div class="resi-cell"> --> |
|
|
|
<!-- <div class="resi-cell-label">{{n.label}}</div> --> |
|
|
|
<div class="resi-cell-value"> |
|
|
|
<el-select v-model="form.GRID_ID" :disabled="disabled" placeholder="请选择网格" size="small" |
|
|
|
<el-select v-model.trim="form.GRID_ID" :disabled="disabled" placeholder="请选择网格" size="small" |
|
|
|
clearable class="resi-cell-select" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -35,7 +35,7 @@ |
|
|
|
<el-col :span="18"> |
|
|
|
<el-form-item :prop="form.VILLAGE_ID" label="所属小区"> |
|
|
|
<div class="resi-cell-value"> |
|
|
|
<el-select v-model="form.VILLAGE_ID" :disabled="disabled" placeholder="请选择小区" size="small" |
|
|
|
<el-select v-model.trim="form.VILLAGE_ID" :disabled="disabled" placeholder="请选择小区" size="small" |
|
|
|
clearable class="resi-cell-select" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -45,7 +45,7 @@ |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="form.BUILD_ID" :disabled="disabled" placeholder="请选择楼号" size="small" |
|
|
|
<el-select v-model.trim="form.BUILD_ID" :disabled="disabled" placeholder="请选择楼号" size="small" |
|
|
|
clearable class="resi-cell-select" @change="handleChangeB" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -55,7 +55,7 @@ |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="form.UNIT_ID" :disabled="disabled" placeholder="请选择单元" size="small" |
|
|
|
<el-select v-model.trim="form.UNIT_ID" :disabled="disabled" placeholder="请选择单元" size="small" |
|
|
|
clearable class="resi-cell-select" @change="handleChangeD" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -65,7 +65,7 @@ |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select v-model="form.HOME_ID" :disabled="disabled" placeholder="请选择房号" size="small" |
|
|
|
<el-select v-model.trim="form.HOME_ID" :disabled="disabled" placeholder="请选择房号" size="small" |
|
|
|
clearable class="resi-cell-select" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -81,7 +81,7 @@ |
|
|
|
<!-- <el-col :span="6"> |
|
|
|
<el-form-item :prop="form.BUILD_ID" label="所属楼宇"> |
|
|
|
<div class="resi-cell-value"> |
|
|
|
<el-select v-model="form.BUILD_ID" :disabled="disabled" placeholder="请选择楼号" size="small" |
|
|
|
<el-select v-model.trim="form.BUILD_ID" :disabled="disabled" placeholder="请选择楼号" size="small" |
|
|
|
clearable class="resi-cell-select" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -97,7 +97,7 @@ |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item :prop="form.HOME_ID" label="所属家庭"> |
|
|
|
<div class="resi-cell-value"> |
|
|
|
<el-select v-model="form.HOME_ID" :disabled="disabled" placeholder="请选择" size="small" |
|
|
|
<el-select v-model.trim="form.HOME_ID" :disabled="disabled" placeholder="请选择" size="small" |
|
|
|
clearable class="resi-cell-select" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -122,7 +122,7 @@ |
|
|
|
<template v-if="n.itemType === 'input' || n.itemType === 'textarea'"> |
|
|
|
<el-input |
|
|
|
v-if="n.validType" |
|
|
|
v-model="form[n.columnName]" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
:disabled="disabled" |
|
|
|
class="resi-cell-input" |
|
|
|
size="small" |
|
|
@ -132,7 +132,7 @@ |
|
|
|
</el-input> |
|
|
|
<el-input |
|
|
|
v-else |
|
|
|
v-model="form[n.columnName]" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
:disabled="disabled" |
|
|
|
class="resi-cell-input" |
|
|
|
size="small" |
|
|
@ -143,7 +143,7 @@ |
|
|
|
</template> |
|
|
|
<!-- <template v-if="n.itemType === 'textarea'"> |
|
|
|
<el-input |
|
|
|
v-model="form[n.columnName]" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
class="resi-cell-textarea" |
|
|
|
size="small" |
|
|
|
type="textarea" |
|
|
@ -154,7 +154,7 @@ |
|
|
|
</template> --> |
|
|
|
<el-date-picker |
|
|
|
v-else-if="n.itemType === 'datepicker'" |
|
|
|
v-model="form[n.columnName]" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
:disabled="disabled" |
|
|
|
class="resi-cell-input" |
|
|
|
type="date" |
|
|
@ -166,7 +166,7 @@ |
|
|
|
</el-date-picker> |
|
|
|
<el-date-picker |
|
|
|
v-else-if="n.itemType === 'daterange'" |
|
|
|
v-model="form[n.columnName]" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
:disabled="disabled" |
|
|
|
type="daterange" |
|
|
|
align="right" |
|
|
@ -179,13 +179,13 @@ |
|
|
|
</el-date-picker> |
|
|
|
<el-time-picker |
|
|
|
v-else-if="n.itemType === 'timepicker'" |
|
|
|
v-model="form[n.columnName]" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
:disabled="disabled" |
|
|
|
placeholder="任意时间点"> |
|
|
|
</el-time-picker> |
|
|
|
<el-time-picker |
|
|
|
v-else-if="n.itemType === 'timerange'" |
|
|
|
v-model="form[n.columnName]" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
:disabled="disabled" |
|
|
|
is-range |
|
|
|
range-separator="至" |
|
|
@ -193,7 +193,7 @@ |
|
|
|
end-placeholder="结束时间" |
|
|
|
placeholder="选择时间范围"> |
|
|
|
</el-time-picker> |
|
|
|
<el-select v-else-if="n.itemType === 'select'" v-model="form[n.columnName]" |
|
|
|
<el-select v-else-if="n.itemType === 'select'" v-model.trim="form[n.columnName]" |
|
|
|
:multiple="n.multiSelect" |
|
|
|
:disabled="disabled" |
|
|
|
placeholder="请选择" size="small" clearable class="resi-cell-select"> |
|
|
@ -210,7 +210,7 @@ |
|
|
|
clearable></el-cascader> --> |
|
|
|
<el-cascader |
|
|
|
v-else-if="n.itemType === 'cascader'" |
|
|
|
v-model="form[n.columnName]" |
|
|
|
v-model.trim="form[n.columnName]" |
|
|
|
:options="n.options" |
|
|
|
:props="{ checkStrictly: true }" |
|
|
|
:disabled="disabled" |
|
|
@ -219,14 +219,14 @@ |
|
|
|
class="resi-cell-select"> |
|
|
|
</el-cascader> |
|
|
|
<template v-else-if="n.itemType === 'radio'"> |
|
|
|
<el-radio v-for="ns in n.options" :key="ns.value" v-model="form[n.columnName]" :disabled="disabled" |
|
|
|
<el-radio v-for="ns in n.options" :key="ns.value" v-model.trim="form[n.columnName]" :disabled="disabled" |
|
|
|
:label="ns.value"> |
|
|
|
{{ ns.label }} |
|
|
|
</el-radio> |
|
|
|
<!-- <el-radio v-model="form[n.columnName]" label="1">备选项</el-radio> --> |
|
|
|
<!-- <el-radio v-model.trim="form[n.columnName]" label="1">备选项</el-radio> --> |
|
|
|
</template> |
|
|
|
<template v-else-if="n.itemType === 'checkbox'"> |
|
|
|
<el-checkbox-group v-model="form[n.columnName]"> |
|
|
|
<el-checkbox-group v-model.trim="form[n.columnName]"> |
|
|
|
<el-checkbox v-for="ns in n.options" :key="ns.value" :label="ns.value" :disabled="disabled">{{ns.label}}</el-checkbox> |
|
|
|
<!-- <el-checkbox label="n.la"></el-checkbox> --> |
|
|
|
</el-checkbox-group> |
|
|
@ -472,7 +472,6 @@ export default { |
|
|
|
this.addList = [...this.mutiList] |
|
|
|
// console.log('addList----111', this.addList) |
|
|
|
} |
|
|
|
// } this.addList.push(this.addCount++) |
|
|
|
if (this.fixed) { |
|
|
|
this.getGridList() |
|
|
|
this.getValiheList() |
|
|
@ -483,11 +482,6 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
initForm () { |
|
|
|
// console.log('formInfo', this.formInfo) |
|
|
|
// if (Object.keys(this.formInfo).length > 0) { |
|
|
|
// this.form = { ...this.formInfo } |
|
|
|
// return |
|
|
|
// } |
|
|
|
this.formList.forEach(async item => { |
|
|
|
if (item.optionSourceType === 'remote') { |
|
|
|
await this.getOptionsLists(item.optionSourceValue).then(res => { |
|
|
@ -575,6 +569,7 @@ export default { |
|
|
|
// console.log('handlerMuscForm----000', this.$refs['baseForms' + item.row || item][0].handleForm()) |
|
|
|
arr.push([ ...this.$refs['baseForms' + item.row][0].handleForm() ]) |
|
|
|
}) |
|
|
|
if (arr.length === 0) return arr |
|
|
|
let arr2 = arr.reduce(function (a, b) { return a.concat(b) }) |
|
|
|
let hash = {} |
|
|
|
let i = 0 |
|
|
|