a067a391 by zhaoqian

Merge remote-tracking branch 'origin/master'

2 parents 84f56c31 867392cd
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
17 <span class="span" @click="delRow">删除</span> 17 <span class="span" @click="delRow">删除</span>
18 </el-col> 18 </el-col>
19 <el-col :span="4" class="fr" v-show="qszt!='0'"> 19 <el-col :span="4" class="fr" v-show="qszt!='0'">
20 <span class="noEdit" @click="addRow">新增</span> 20 <span class="noEdit" >新增</span>
21 <span class="noEdit" @click="changeRow">修改</span> 21 <span class="noEdit" >修改</span>
22 <span class="noEdit" @click="delRow">删除</span> 22 <span class="noEdit" >删除</span>
23 </el-col> 23 </el-col>
24 </el-row> 24 </el-row>
25 </td> 25 </td>
......
...@@ -105,6 +105,7 @@ ...@@ -105,6 +105,7 @@
105 :disabled="formData.qszt!='0'" 105 :disabled="formData.qszt!='0'"
106 v-model="childItem.tdsyqssj" 106 v-model="childItem.tdsyqssj"
107 type="date" 107 type="date"
108
108 value-format="yyyy-MM-dd" 109 value-format="yyyy-MM-dd"
109 placeholder="选择日期" 110 placeholder="选择日期"
110 > 111 >
...@@ -134,7 +135,6 @@ ...@@ -134,7 +135,6 @@
134 type="text" 135 type="text"
135 style="top: -1px;" 136 style="top: -1px;"
136 :disabled="formData.qszt!='0'" 137 :disabled="formData.qszt!='0'"
137
138 v-model="childItem.pzytdm" 138 v-model="childItem.pzytdm"
139 class="formInput" 139 class="formInput"
140 /> 140 />
...@@ -143,7 +143,6 @@ ...@@ -143,7 +143,6 @@
143 <input 143 <input
144 type="text" 144 type="text"
145 :disabled="formData.qszt!='0'" 145 :disabled="formData.qszt!='0'"
146
147 v-model="childItem.sjytdm" 146 v-model="childItem.sjytdm"
148 class="formInput" 147 class="formInput"
149 /> 148 />
...@@ -151,8 +150,8 @@ ...@@ -151,8 +150,8 @@
151 <li> 150 <li>
152 <input 151 <input
153 type="text" 152 type="text"
154 :disabled="formData.qszt!='0'"
155 153
154 :disabled="formData.qszt!='0'"
156 v-model="childItem.syqx" 155 v-model="childItem.syqx"
157 class="formInput" 156 class="formInput"
158 /> 157 />
...@@ -212,6 +211,7 @@ ...@@ -212,6 +211,7 @@
212 :disabled="formData.qszt!='0'" 211 :disabled="formData.qszt!='0'"
213 v-model="childItem.tdsyjssj" 212 v-model="childItem.tdsyjssj"
214 type="date" 213 type="date"
214
215 value-format="yyyy-MM-dd" 215 value-format="yyyy-MM-dd"
216 placeholder="选择日期" 216 placeholder="选择日期"
217 > 217 >
......
...@@ -47,7 +47,8 @@ const store = new Vuex.Store({ ...@@ -47,7 +47,8 @@ const store = new Vuex.Store({
47 hbsm:'', 47 hbsm:'',
48 contentWidth:'', //内容区域宽度 48 contentWidth:'', //内容区域宽度
49 zrzh:'', //自然幢号 49 zrzh:'', //自然幢号
50 dzbsm:'' // 多幢bsm 50 dzbsm:'', // 多幢bsm
51 treeData:[], // 树数据
51 }, 52 },
52 modules: { 53 modules: {
53 user, 54 user,
......
...@@ -177,9 +177,11 @@ export default { ...@@ -177,9 +177,11 @@ export default {
177 "$store.state.zdbsm": function(bsm) { 177 "$store.state.zdbsm": function(bsm) {
178 this.getRightTree(bsm); 178 this.getRightTree(bsm);
179 }, 179 },
180 // "$store.state.zdbsms":function (zdbsms) { 180
181 // this.getTreeByS(zdbsms) 181 "$store.state.treeData":function (val) {
182 // } 182 console.log(val,'val');
183 this.pd = val;
184 }
183 }, 185 },
184 mounted(){ 186 mounted(){
185 187
......
...@@ -20,7 +20,6 @@ import jzx from "./jzx"; ...@@ -20,7 +20,6 @@ import jzx from "./jzx";
20 import djb from "./djb"; 20 import djb from "./djb";
21 import lshs from "./lshs"; 21 import lshs from "./lshs";
22 import fjcl from "./fjcl/fjcl" 22 import fjcl from "./fjcl/fjcl"
23 import {queryjzd,queryjzx} from "@/api/zd"
24 export default { 23 export default {
25 name: "", 24 name: "",
26 components: { 25 components: {
...@@ -30,34 +29,12 @@ export default { ...@@ -30,34 +29,12 @@ export default {
30 data() { 29 data() {
31 return { 30 return {
32 activeName: "djdcb", 31 activeName: "djdcb",
33 jzd:[],
34 jzx:[]
35 }; 32 };
36 }, 33 },
37 methods: { 34 methods: {
38 handleClick(tab, event) { 35 handleClick(tab, event) {
39 // console.log(tab, event); 36 // console.log(tab, event);
40 }, 37 },
41 //查询界址点
42 getJZD(){
43 var bsm = this.$store.state.zdbsm;
44 this.jzx = [];
45 queryjzd({glBsm:bsm}).then(res => {
46 if(res.code == 200){
47 this.jzd = res.data.data;
48 }
49 })
50 },
51 //查询界址线
52 getJZX(){
53 var bsm = this.$store.state.zdbsm;
54 this.jzx = [];
55 queryjzx({glBsm:bsm}).then(res => {
56 if(res.code = 200){
57 this.jzx = res.data.data;
58 }
59 });
60 }
61 }, 38 },
62 created() {}, 39 created() {},
63 mounted() {}, 40 mounted() {},
......
...@@ -339,7 +339,7 @@ ...@@ -339,7 +339,7 @@
339 </table> 339 </table>
340 340
341 <div style="min-height: 40px;text-align: center;margin-top: 10px"> 341 <div style="min-height: 40px;text-align: center;margin-top: 10px">
342 <el-button type="success" @click="updateZDxx()">保存</el-button> 342 <el-button type="success" @click="updateZDxx">保存</el-button>
343 <el-button type="primary" @click="submitZDxx">提交</el-button> 343 <el-button type="primary" @click="submitZDxx">提交</el-button>
344 </div> 344 </div>
345 </div> 345 </div>
...@@ -349,12 +349,13 @@ ...@@ -349,12 +349,13 @@
349 <script> 349 <script>
350 import Qlr from "../../../components/formMenu/qlr"; 350 import Qlr from "../../../components/formMenu/qlr";
351 import Qlxz from "../../../components/formMenu/qlxz"; 351 import Qlxz from "../../../components/formMenu/qlxz";
352 import {submit} from "../../../api/common"
353 import { 352 import {
354 getAllList, 353 getAllList,
355 getDdicByMC, 354 getDdicByMC,
356 getListByXzqbsm, 355 getListByXzqbsm,
357 getListByPbsm, 356 getListByPbsm,
357 submit,
358 getTree,
358 } from "../../../api/common"; 359 } from "../../../api/common";
359 import { 360 import {
360 getBdcdyh, 361 getBdcdyh,
...@@ -623,11 +624,16 @@ export default { ...@@ -623,11 +624,16 @@ export default {
623 status:1, 624 status:1,
624 type:"zd" 625 type:"zd"
625 } 626 }
626
627 submit(data).then((res)=>{ 627 submit(data).then((res)=>{
628 if(res.code===200){ 628 if(res.code===200){
629 this.$message.success("提交完成!") 629 this.$message.success("提交成功!")
630 this.getZdjbxxData(this.$store.state.zdbsm); 630 this.getZdjbxxData(this.curZdbsm);
631 getTree(this.curZdbsm).then((res) => {
632 if (res.success) {
633 // console.log('successsuccesssuccesssuccess');
634 this.$store.state.treeData = res.result;
635 }
636 });
631 } 637 }
632 }) 638 })
633 }, 639 },
......