浏览代码

智能规划选址新增条件,样式调整

lkk 5 月之前
父节点
当前提交
c53d236348
共有 2 个文件被更改,包括 16 次插入4 次删除
  1. 6 1
      src/views/complianceAnalysis/ghzc.scss
  2. 10 3
      src/views/siteselection/components/fzxz.vue

+ 6 - 1
src/views/complianceAnalysis/ghzc.scss

@@ -14,6 +14,7 @@
         background-image: url("/static/images/ghzc/内容框.png");
         background-size: 100% 100%;
     }
+
     .leftPane {
         left: 20px;
     }
@@ -97,7 +98,11 @@
 
 
         .el-form-item {
-            margin-bottom: 5px !important;
+            margin-bottom: 0px !important;
+        }
+
+        .el-radio {
+            color: #fff;
         }
 
         // .el-form-item__content {

+ 10 - 3
src/views/siteselection/components/fzxz.vue

@@ -11,6 +11,10 @@
       <el-form-item label="选址范围:" prop="xzmj">
         <range type="hgxfx" :keys="['hx', 'sc']" class="range" ref="range" />
       </el-form-item>
+      <el-form-item  label-width="180px" label="是否在城镇开发边界内:" prop="inCzkfbj">
+        <el-radio v-model="ruleForm.inCzkfbj" :label="true">是</el-radio>
+        <el-radio v-model="ruleForm.inCzkfbj" :label="false">否</el-radio>
+      </el-form-item>
       <el-form-item label="项目名称:" prop="xmmc">
         <el-input
           v-model="ruleForm.xmmc"
@@ -166,6 +170,7 @@ export default {
       checkbox_data: 0,
       ruleForm: {
         xzmj: 0,
+        inCzkfbj: true,
         xmmc: "规划选址项目_" + this.getCurrentDateTime(),
         jsdw: "建设单位",
         // xmlx: "",
@@ -179,6 +184,7 @@ export default {
       },
       rules: {
         xzmj: [{ required: true, message: "请填写范围的数据" }],
+        inCzkfbj: [{ required: true, message: "请选择条件",trigger: "blur" }],
         // xzmj: [{ required: true, message: "请绘制选址范围" }],
         xmmc: [
           { required: true, message: "请输入项目名称", trigger: "blur" },
@@ -354,6 +360,7 @@ export default {
           });
           let obj = {
             xzmj: Number(this.ruleForm.xzmj),
+            inCzkfbj:this.ruleForm.inCzkfbj,
             xmmc: this.ruleForm.xmmc,
             // xmlx: this.ruleForm.xmlx,
             jsdw: this.ruleForm.jsdw,
@@ -402,6 +409,7 @@ export default {
     },
     reset() {
       (this.ruleForm = {
+        inCzkfbj:true,
         xmmc: "规划选址项目_" + this.getCurrentDateTime(),
         jsdw: "建设单位",
         // xmlx: "",
@@ -465,7 +473,7 @@ export default {
 
   .XZtree {
     width: 100%;
-    height: calc(100% - 400px);
+    height: calc(100% - 420px);
     // padding: 7px;
     margin-bottom: 10px;
     overflow-y: auto;
@@ -489,8 +497,7 @@ export default {
 }
 
 .xzys {
-  height: 95px;
-  // background: pink;
+  height: 60px;
   display: flex;
   flex-direction: column;
 }