670fdd4a by renchao@pashanhoo.com

style:土地承包经营权

1 parent 3ee57c9c
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2024-01-23 16:05:38 4 * @LastEditTime: 2024-01-25 14:13:38
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 受理信息 --> 7 <!-- 受理信息 -->
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
90 </el-form-item> 90 </el-form-item>
91 </el-col> 91 </el-col>
92 <el-col :span="8"> 92 <el-col :span="8">
93 <el-form-item label="地块名称:"> 93 <el-form-item label="地块名称:" prop="tdcbjyq.dkmc">
94 <el-input v-model="ruleForm.tdcbjyq.dkmc" :disabled="!viewEdit"></el-input> 94 <el-input v-model="ruleForm.tdcbjyq.dkmc" :disabled="!viewEdit"></el-input>
95 </el-form-item> 95 </el-form-item>
96 </el-col> 96 </el-col>
...@@ -179,7 +179,10 @@ ...@@ -179,7 +179,10 @@
179 </el-col> 179 </el-col>
180 <el-col :span="8"> 180 <el-col :span="8">
181 <el-form-item label="土地所有权性质:"> 181 <el-form-item label="土地所有权性质:">
182 <el-input maxlength="100" :disabled="!viewEdit" v-model="ruleForm.tdcbjyq.tdsyqxz"></el-input> 182 <el-select clearable v-model="ruleForm.tdcbjyq.tdsyqxz" class="width100" placeholder="请选择" :disabled="!viewEdit">
183 <el-option v-for="item in dictData['A45']" :key="item.dcode" :label="item.dname" :value="item.dcode">
184 </el-option>
185 </el-select>
183 </el-form-item> 186 </el-form-item>
184 </el-col> 187 </el-col>
185 </el-row> 188 </el-row>
...@@ -207,7 +210,10 @@ ...@@ -207,7 +210,10 @@
207 </el-col> 210 </el-col>
208 <el-col :span="8"> 211 <el-col :span="8">
209 <el-form-item label="用地用海分类:"> 212 <el-form-item label="用地用海分类:">
210 <el-input :disabled="!viewEdit" v-model="ruleForm.tdcbjyq.ydyhfl"></el-input> 213 <el-select clearable v-model="ruleForm.tdcbjyq.ydyhfl" class="width100" placeholder="请选择" :disabled="!viewEdit">
214 <el-option v-for="item in dictData['A56']" :key="item.dcode" :label="item.dname" :value="item.dcode">
215 </el-option>
216 </el-select>
211 </el-form-item> 217 </el-form-item>
212 </el-col> 218 </el-col>
213 </el-row> 219 </el-row>
...@@ -215,7 +221,10 @@ ...@@ -215,7 +221,10 @@
215 <el-row :gutter="10"> 221 <el-row :gutter="10">
216 <el-col :span="8"> 222 <el-col :span="8">
217 <el-form-item label="承包经营权取得方式:"> 223 <el-form-item label="承包经营权取得方式:">
218 <el-input :disabled="!viewEdit" v-model="ruleForm.tdcbjyq.cbjyqqdfs"></el-input> 224 <el-select clearable v-model="ruleForm.tdcbjyq.cbjyqqdfs" class="width100" placeholder="请选择" :disabled="!viewEdit">
225 <el-option v-for="item in dictData['A59']" :key="item.dcode" :label="item.dname" :value="item.dcode">
226 </el-option>
227 </el-select>
219 </el-form-item> 228 </el-form-item>
220 </el-col> 229 </el-col>
221 <el-col :span="16"> 230 <el-col :span="16">
...@@ -278,7 +287,7 @@ ...@@ -278,7 +287,7 @@
278 :key="key" 287 :key="key"
279 :gyfs="ruleForm.sldy.gyfs" /> 288 :gyfs="ruleForm.sldy.gyfs" />
280 289
281 <div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0"> 290 <div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0 && ruleForm.qlxx.djlx == '200'">
282 <div class="slxx_title title-block"> 291 <div class="slxx_title title-block">
283 义务人信息 292 义务人信息
284 <div class="triangle"></div> 293 <div class="triangle"></div>
...@@ -401,8 +410,12 @@ ...@@ -401,8 +410,12 @@
401 ruleForm: {}, 410 ruleForm: {},
402 //传递参数 411 //传递参数
403 propsParam: {}, 412 propsParam: {},
404 rules: {}, 413 rules: {
405 }; 414 'tdcbjyq.dkmc': [
415 { required: true, message: '请填写', trigger: 'blur' }
416 ]
417 }
418 }
406 }, 419 },
407 methods: { 420 methods: {
408 /** 421 /**
...@@ -502,23 +515,30 @@ ...@@ -502,23 +515,30 @@
502 * @description: saveData 515 * @description: saveData
503 * @author: renchao 516 * @author: renchao
504 */ 517 */
505 this.$store.dispatch("user/refreshPage", false); 518
506 saveData(this.ruleForm).then((res) => { 519 this.$refs['ruleForm'].validate((valid) => {
520 if (valid) {
521 that.$store.dispatch("user/refreshPage", false);
522 saveData(that.ruleForm).then((res) => {
507 if (res.code === 200) { 523 if (res.code === 200) {
508 this.$message({ 524 that.$message({
509 showClose: true, 525 showClose: true,
510 message: "保存成功!", 526 message: "保存成功!",
511 type: "success", 527 type: "success",
512 }); 528 });
513 this.$store.dispatch("user/refreshPage", true); 529 that.$store.dispatch("user/refreshPage", true);
514 } else { 530 } else {
515 this.$message({ 531 that.$message({
516 showClose: true, 532 showClose: true,
517 message: res.message, 533 message: res.message,
518 type: "error" 534 type: "error"
519 }) 535 })
520 } 536 }
521 }) 537 })
538 } else {
539 return false;
540 }
541 })
522 } 542 }
523 } 543 }
524 } 544 }
...@@ -526,4 +546,7 @@ ...@@ -526,4 +546,7 @@
526 <style scoped lang="scss"> 546 <style scoped lang="scss">
527 @import "~@/styles/public.scss"; 547 @import "~@/styles/public.scss";
528 @import "~@/styles/slxx/slxx.scss"; 548 @import "~@/styles/slxx/slxx.scss";
549 /deep/.el-form-item__error {
550 display: none;
551 }
529 </style> 552 </style>
......