|
@@ -201,6 +201,7 @@
|
|
|
<el-col :span="21" class="col-input">
|
|
|
<el-form-item prop="findids">
|
|
|
<el-cascader
|
|
|
+ ref="findids"
|
|
|
v-model="houseForm.findids"
|
|
|
:append-to-body="false"
|
|
|
:disabled="isView"
|
|
@@ -695,13 +696,18 @@ export default {
|
|
|
this.$refs.houseForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
const ids = this.houseForm.findids
|
|
|
+ const arr = this.$refs['findids'].getCheckedNodes()[0].pathLabels
|
|
|
if (ids != null && ids != [] && ids != '') {
|
|
|
this.houseForm.groupId = ids[0]
|
|
|
this.houseForm.discId = ids[1]
|
|
|
this.houseForm.buildId = ids[2]
|
|
|
}
|
|
|
- const extraData = {
|
|
|
+ if (arr != null && arr != [] && arr != '') {
|
|
|
+ this.houseForm.groupName = arr[0]
|
|
|
+ this.houseForm.discName = arr[1]
|
|
|
+ this.houseForm.buildName = arr[2]
|
|
|
}
|
|
|
+ const extraData = {}
|
|
|
const postData = Object.assign({}, this.houseForm, extraData)
|
|
|
if (!postData.groupId) {
|
|
|
this.$message({
|