3dbb80e7 by xiaomiao

--no commit message

1 parent 610a6876
......@@ -11,11 +11,7 @@
</div>
<div v-for="(item, index) in tableData" :key="index">
<el-form
:model="tableData[index]"
label-width="120px"
ref="ruleFormRef'"
>
<el-form :model="tableData[index]" label-width="120px" ref="ruleForm'" :rules="rules">
<div class="spyj_form">
<div class="item_left">
<div class="right">{{ item.jdmc }}意见</div>
......@@ -23,7 +19,11 @@
<div class="item_right">
<el-row>
<el-col :span="24">
<el-form-item label-width="0" class="opinion_item">
<el-form-item
label-width="0"
prop="shyj"
class="opinion_item"
>
<el-input
:disabled="!viewEdit || item.show"
type="textarea"
......@@ -58,7 +58,9 @@
</el-form>
</div>
<div class="submit_button" v-if="viewEdit">
<el-button type="primary" :disabled="shows" @click="onSubmit()">保存</el-button>
<el-button type="primary" :disabled="shows" @click="onSubmit()"
>保存</el-button
>
</div>
</div>
<!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> -->
......@@ -87,7 +89,10 @@ export default {
falg1: false,
jdmc: "",
indexdqlc: 0,
shows:false
shows: false,
rules: {
shyj: [{ required: true, message: "意见不能为空", trigger: "blur" }],
},
};
},
......@@ -138,8 +143,8 @@ export default {
if (res.code === 200 && res.result) {
this.$nextTick(() => {
this.tableData = res.result;
if(this.shows){
this.shows=false
if (this.shows) {
this.shows = false;
}
var index = this.tableData.findIndex(
......@@ -169,8 +174,7 @@ export default {
item.show = false;
}
});
})
});
}
});
},
......@@ -185,7 +189,9 @@ export default {
* @author: renchao
*/
onSubmit() {
this.shows=true
this.$refs.ruleForm.validate((valid) => {
if (valid) {
this.shows = true;
this.tableData.forEach((item, index) => {
item["bsmBusiness"] = this.propsParam.bsmBusiness;
item["czjg"] = "1";
......@@ -199,9 +205,10 @@ export default {
this.$message.error(res.message);
}
});
// } else {
// return false;
// }
} else {
return false;
}
});
},
//打开常用意见列表弹窗
/**
......
......@@ -212,7 +212,27 @@
this.$popup("登记簿详情", "registerBook/djbFrame", {
formData: param
})
},
/**
* @description: handleLpbClick
* @param {*} row
* @author: miaofang
*/
handleLpbClick (item) {
console.log("item",item);
console.log("this.sqywInfo",this.sqywInfo);
this.$popup('楼盘表', 'lpb/index', {
width: '85%',
formData: {
bsm: item.bsm,
zrzbsm: item.bsm,
zdbsm: item.zdbsm,
bsmSqyw: this.sqywInfo.bsmSqyw,
djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
}
})
},
}
}
</script>
......
......@@ -105,7 +105,7 @@ class data extends filter {
render: (h, scope) => {
return (
<div>
<el-button type="text" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button>
<el-button type="text" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表1</el-button>
<el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openBook(scope.row) }}>登记薄</el-button>
</div>
)
......