Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
11 changed files
with
81 additions
and
55 deletions
| ... | @@ -2,9 +2,12 @@ import Vue from 'vue' | ... | @@ -2,9 +2,12 @@ import Vue from 'vue' |
| 2 | import Popup from './index.vue' | 2 | import Popup from './index.vue' |
| 3 | 3 | ||
| 4 | const PopupBox = Vue.extend(Popup) | 4 | const PopupBox = Vue.extend(Popup) |
| 5 | Popup.install = function (title, editItem, data) { | 5 | Popup.install = function (title, editItem, data, formData) { |
| 6 | data.title = title | 6 | data.title = title |
| 7 | data.editItem = editItem | 7 | data.editItem = editItem |
| 8 | if (formData) { | ||
| 9 | data.formData = formData | ||
| 10 | } | ||
| 8 | let instance = new PopupBox({ | 11 | let instance = new PopupBox({ |
| 9 | data | 12 | data |
| 10 | }).$mount() | 13 | }).$mount() | ... | ... |
| ... | @@ -97,7 +97,6 @@ export default { | ... | @@ -97,7 +97,6 @@ export default { |
| 97 | } | 97 | } |
| 98 | }, | 98 | }, |
| 99 | destroyed () { | 99 | destroyed () { |
| 100 | // if appendToBody is true, remove DOM node after destroy | ||
| 101 | if (this.appendToBody && this.$el && this.$el.parentNode) { | 100 | if (this.appendToBody && this.$el && this.$el.parentNode) { |
| 102 | this.$el.parentNode.removeChild(this.$el); | 101 | this.$el.parentNode.removeChild(this.$el); |
| 103 | } | 102 | } | ... | ... |
| 1 | // import { Loading } from 'element-ui' | ||
| 2 | import Loading from '@/components/loading/index.js'; | 1 | import Loading from '@/components/loading/index.js'; |
| 3 | // 定义 loading | 2 | // 定义 loading |
| 4 | let loading | 3 | let loading |
| 5 | 4 | ||
| 6 | // loading开始 方法 | 5 | // loading开始 方法 |
| 7 | function startLoading (target = "body") { | 6 | function startLoading (target, loadingText = '正在加载中...') { |
| 8 | loading = Loading.service({ | 7 | loading = Loading.service({ |
| 9 | text: '正在加载中...', | 8 | text: loadingText, |
| 10 | spinner: 'el-icon-loading', | 9 | spinner: 'el-icon-loading', |
| 11 | background: 'rgba(255, 255, 255, 0.5)', | 10 | background: 'rgba(255, 255, 255, 0.5)', |
| 12 | target: '#' + target | 11 | target: target ? '#' + target : 'body' |
| 13 | }) | 12 | }) |
| 14 | } | 13 | } |
| 15 | 14 | ... | ... |
| ... | @@ -140,6 +140,15 @@ | ... | @@ -140,6 +140,15 @@ |
| 140 | </el-radio-group> | 140 | </el-radio-group> |
| 141 | </el-form-item> | 141 | </el-form-item> |
| 142 | </el-col> | 142 | </el-col> |
| 143 | <el-col :span="5"> | ||
| 144 | <el-form-item :class="flag ? 'marginBot0' : ''" label="发证方式:"> | ||
| 145 | <el-radio-group v-model="ruleForm.slywxx.fzfs"> | ||
| 146 | <el-radio label="1">小证</el-radio> | ||
| 147 | <el-radio label="2">大证</el-radio> | ||
| 148 | </el-radio-group> | ||
| 149 | </el-form-item> | ||
| 150 | </el-col> | ||
| 151 | |||
| 143 | <el-col :span="5" v-show="ruleForm.qlxx&&ruleForm.qlxx.gyfs == '2'"> | 152 | <el-col :span="5" v-show="ruleForm.qlxx&&ruleForm.qlxx.gyfs == '2'"> |
| 144 | <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:"> | 153 | <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:"> |
| 145 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | 154 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> |
| ... | @@ -195,9 +204,7 @@ export default { | ... | @@ -195,9 +204,7 @@ export default { |
| 195 | if (res.code === 200 && res.result) { | 204 | if (res.code === 200 && res.result) { |
| 196 | this.ruleForm = { | 205 | this.ruleForm = { |
| 197 | ...res.result, | 206 | ...res.result, |
| 198 | ...res.result.zdjbxxdatas, | ||
| 199 | ...res.result.qlxxdatas, | 207 | ...res.result.qlxxdatas, |
| 200 | ...res.result.jsydsyqdatas, | ||
| 201 | } | 208 | } |
| 202 | } | 209 | } |
| 203 | }); | 210 | }); |
| ... | @@ -231,8 +238,18 @@ export default { | ... | @@ -231,8 +238,18 @@ export default { |
| 231 | }, | 238 | }, |
| 232 | onSubmit () { | 239 | onSubmit () { |
| 233 | saveBatchData(this.ruleForm).then((res) => { | 240 | saveBatchData(this.ruleForm).then((res) => { |
| 234 | if (res.code === 200 && res.result) { | 241 | if (res.code === 200) { |
| 235 | console.log(res); | 242 | this.$message({ |
| 243 | showClose: true, | ||
| 244 | message: "保存成功!", | ||
| 245 | type: "success", | ||
| 246 | }); | ||
| 247 | } else { | ||
| 248 | this.$message({ | ||
| 249 | showClose: true, | ||
| 250 | message: res.message, | ||
| 251 | type: "error", | ||
| 252 | }); | ||
| 236 | } | 253 | } |
| 237 | }); | 254 | }); |
| 238 | }, | 255 | }, | ... | ... |
| ... | @@ -249,10 +249,18 @@ export default { | ... | @@ -249,10 +249,18 @@ export default { |
| 249 | }, | 249 | }, |
| 250 | onSubmit () { | 250 | onSubmit () { |
| 251 | saveData(this.ruleForm).then((res) => { | 251 | saveData(this.ruleForm).then((res) => { |
| 252 | console.log(this.ruleForm); | 252 | if (res.code === 200) { |
| 253 | if (res.code === 200 && res.result) { | 253 | this.$message({ |
| 254 | console.log(res); | 254 | showClose: true, |
| 255 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 255 | message: "保存成功!", |
| 256 | type: "success", | ||
| 257 | }); | ||
| 258 | } else { | ||
| 259 | this.$message({ | ||
| 260 | showClose: true, | ||
| 261 | message: res.message, | ||
| 262 | type: "error", | ||
| 263 | }); | ||
| 256 | } | 264 | } |
| 257 | }); | 265 | }); |
| 258 | }, | 266 | }, | ... | ... |
| ... | @@ -253,24 +253,12 @@ export default { | ... | @@ -253,24 +253,12 @@ export default { |
| 253 | }, | 253 | }, |
| 254 | methods: { | 254 | methods: { |
| 255 | onClick(){ | 255 | onClick(){ |
| 256 | this.$popup({ | 256 | this.$popup("房屋信息比对","ywbl/fdcq2/slxxCompareDetai", |
| 257 | titleStyle: "left", | 257 | { |
| 258 | title: "登记簿详情", // 弹窗标题 | ||
| 259 | editItem: "ywbl/fdcq2/slxxCompareDetai", // 弹窗内容 | ||
| 260 | formData: { | 258 | formData: { |
| 261 | bsmSldy: this.propsParam.bsmSldy, | 259 | bsmSldy: this.propsParam.bsmSldy, |
| 262 | qllx: this.propsParam.qllx | 260 | qllx: this.propsParam.qllx |
| 263 | }, | 261 | } |
| 264 | width: "1220px", | ||
| 265 | height: "790px", | ||
| 266 | // cancelText: '取消摆烂', // 右边按钮文本 | ||
| 267 | // confirmText: '确定点击', //左边按钮文本 | ||
| 268 | cancel: () => { | ||
| 269 | console.log("取消回调"); | ||
| 270 | }, | ||
| 271 | confirm: () => { | ||
| 272 | console.log("确认回调"); | ||
| 273 | }, | ||
| 274 | }); | 262 | }); |
| 275 | }, | 263 | }, |
| 276 | // 更新权利人信息 | 264 | // 更新权利人信息 |
| ... | @@ -284,9 +272,18 @@ export default { | ... | @@ -284,9 +272,18 @@ export default { |
| 284 | 272 | ||
| 285 | onSubmit () { | 273 | onSubmit () { |
| 286 | saveGZBatchData(this.ruleForm).then((res) => { | 274 | saveGZBatchData(this.ruleForm).then((res) => { |
| 287 | if (res.code === 200 && res.result) { | 275 | if (res.code === 200) { |
| 288 | console.log(res); | 276 | this.$message({ |
| 289 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 277 | showClose: true, |
| 278 | message: "保存成功!", | ||
| 279 | type: "success", | ||
| 280 | }); | ||
| 281 | } else { | ||
| 282 | this.$message({ | ||
| 283 | showClose: true, | ||
| 284 | message: res.message, | ||
| 285 | type: "error", | ||
| 286 | }); | ||
| 290 | } | 287 | } |
| 291 | }); | 288 | }); |
| 292 | }, | 289 | }, | ... | ... |
| ... | @@ -266,9 +266,18 @@ export default { | ... | @@ -266,9 +266,18 @@ export default { |
| 266 | }, | 266 | }, |
| 267 | onSubmit () { | 267 | onSubmit () { |
| 268 | saveLogoutData(this.ruleForm).then((res) => { | 268 | saveLogoutData(this.ruleForm).then((res) => { |
| 269 | if (res.code === 200 && res.result) { | 269 | if (res.code === 200) { |
| 270 | console.log(res); | 270 | this.$message({ |
| 271 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 271 | showClose: true, |
| 272 | message: "保存成功!", | ||
| 273 | type: "success", | ||
| 274 | }); | ||
| 275 | } else { | ||
| 276 | this.$message({ | ||
| 277 | showClose: true, | ||
| 278 | message: res.message, | ||
| 279 | type: "error", | ||
| 280 | }); | ||
| 272 | } | 281 | } |
| 273 | }); | 282 | }); |
| 274 | }, | 283 | }, | ... | ... |
| ... | @@ -228,26 +228,20 @@ export default { | ... | @@ -228,26 +228,20 @@ export default { |
| 228 | upDateYwrxxList (val) { | 228 | upDateYwrxxList (val) { |
| 229 | this.ruleForm.ywrList = _.cloneDeep(val); | 229 | this.ruleForm.ywrList = _.cloneDeep(val); |
| 230 | }, | 230 | }, |
| 231 | list (bsmSldy) { | ||
| 232 | var formdata = new FormData(); | ||
| 233 | formdata.append("bsmSldy", bsmSldy); | ||
| 234 | Init(formdata).then((res) => { | ||
| 235 | if (res.code === 200 && res.result) { | ||
| 236 | this.ruleForm = { | ||
| 237 | ...res.result, | ||
| 238 | ...res.result.zdjbxxdatas, | ||
| 239 | ...res.result.qlxxdatas, | ||
| 240 | ...res.result.jsydsyqdatas, | ||
| 241 | }; | ||
| 242 | } | ||
| 243 | }); | ||
| 244 | }, | ||
| 245 | onSubmit () { | 231 | onSubmit () { |
| 246 | saveBHZData(this.ruleForm).then((res) => { | 232 | saveBHZData(this.ruleForm).then((res) => { |
| 247 | console.log(this.ruleForm); | 233 | if (res.code === 200) { |
| 248 | if (res.code === 200 && res.result) { | 234 | this.$message({ |
| 249 | console.log(res); | 235 | showClose: true, |
| 250 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 236 | message: "保存成功!", |
| 237 | type: "success", | ||
| 238 | }); | ||
| 239 | } else { | ||
| 240 | this.$message({ | ||
| 241 | showClose: true, | ||
| 242 | message: res.message, | ||
| 243 | type: "error", | ||
| 244 | }); | ||
| 251 | } | 245 | } |
| 252 | }); | 246 | }); |
| 253 | }, | 247 | }, | ... | ... |
| ... | @@ -44,6 +44,7 @@ | ... | @@ -44,6 +44,7 @@ |
| 44 | <script> | 44 | <script> |
| 45 | import {getFdcqLSInfo} from "@/api/registerBook.js"; | 45 | import {getFdcqLSInfo} from "@/api/registerBook.js"; |
| 46 | import { datas } from "@/views/registerBook/qlxxFormData.js"; | 46 | import { datas } from "@/views/registerBook/qlxxFormData.js"; |
| 47 | |||
| 47 | export default { | 48 | export default { |
| 48 | data() { | 49 | data() { |
| 49 | return { | 50 | return { |
| ... | @@ -73,7 +74,6 @@ export default { | ... | @@ -73,7 +74,6 @@ export default { |
| 73 | }, | 74 | }, |
| 74 | methods: { | 75 | methods: { |
| 75 | loadData() { | 76 | loadData() { |
| 76 | console.log(this.propsParam.formData); | ||
| 77 | var formdata = new FormData(); | 77 | var formdata = new FormData(); |
| 78 | formdata.append("bsmSldy", this.propsParam.formData.bsmSldy); | 78 | formdata.append("bsmSldy", this.propsParam.formData.bsmSldy); |
| 79 | formdata.append("qllx", this.propsParam.formData.qllx); | 79 | formdata.append("qllx", this.propsParam.formData.qllx); | ... | ... |
-
Please register or sign in to post a comment