|
@@ -216,6 +216,7 @@ export default {
|
|
|
this.ruleForm.xzmj = _temp.xzmj || hgxfx.xzmj;
|
|
|
this.$refs.ruleForm.validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ this.getCheckedNodes();
|
|
|
if (this.ruleForm.scxs.length == 0) {
|
|
|
Message.warning("至少选择一个项目信息");
|
|
|
}
|
|
@@ -246,36 +247,11 @@ export default {
|
|
|
Message.warning(res);
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
- this.is_form()
|
|
|
- .then((res) => {})
|
|
|
- .catch((res) => {});
|
|
|
},
|
|
|
- is_form() {
|
|
|
+ getCheckedNodes() {
|
|
|
this.ruleForm.scxs = this.$refs.tree.getCheckedNodes(true).map((item) => {
|
|
|
return item.id;
|
|
|
});
|
|
|
- return new Promise((resolve, reject) => {
|
|
|
- if (this.ruleForm.xzmj == 0) {
|
|
|
- reject("请填写范围的数据!");
|
|
|
- }
|
|
|
- if (this.ruleForm.xmmc == "") {
|
|
|
- reject("请填写项目名称");
|
|
|
- }
|
|
|
- if (this.ruleForm.jsdw == "") {
|
|
|
- reject("请填写建设单位");
|
|
|
- }
|
|
|
- if (this.ruleForm.xmlx == "") {
|
|
|
- reject("请填写项目类型");
|
|
|
- }
|
|
|
- // if (this.ruleForm.ydxz_bsm == ("" || null)) {
|
|
|
- // reject("请选择用地性质");
|
|
|
- // }
|
|
|
- if (this.ruleForm.scxs.length == 0) {
|
|
|
- reject("至少选择一个项目信息");
|
|
|
- }
|
|
|
- resolve(true);
|
|
|
- });
|
|
|
},
|
|
|
},
|
|
|
watch: {},
|