|
@@ -645,6 +645,7 @@ export default {
|
|
|
url: {
|
|
|
add: '/qcsb/qcSsgqzysytdqk/add2',
|
|
|
edit: '/qcsb/qcSsgqzysytdqk/edit',
|
|
|
+ edit1: '/qcsb/qcSsgqzysytdqk/edit1',
|
|
|
queryById: '/qcsb/qcSsgqzysytdqk/queryById',
|
|
|
stag:'qcsb/qcSsgqzysytdqk/addStag'
|
|
|
},
|
|
@@ -813,6 +814,10 @@ export default {
|
|
|
this.model = Object.assign({}, record)
|
|
|
this.visible = true
|
|
|
},
|
|
|
+ edit1(record) {
|
|
|
+ this.model = Object.assign({}, record)
|
|
|
+ this.visible = true
|
|
|
+ },
|
|
|
//暂存
|
|
|
stagForm(){
|
|
|
const that = this
|
|
@@ -887,6 +892,53 @@ export default {
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ submitForm1() {
|
|
|
+ if (this.postion.lat != '' && this.postion.lng != '') {
|
|
|
+ this.model.lat = this.postion.lat;
|
|
|
+ this.model.lng = this.postion.lng;
|
|
|
+ };
|
|
|
+ /* if(this.model.lat == '' && this.model.lng == ''){
|
|
|
+ this.$info({
|
|
|
+ title: '说明',
|
|
|
+ content: (<div><p>请点击坐落位置后的定位按钮,选择地块相应位置</p></div>),
|
|
|
+ onOk() {
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }*/
|
|
|
+ const that = this
|
|
|
+ // 触发表单验证
|
|
|
+ this.$refs.form.validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ let startTime = moment(this.model.qsqssj);
|
|
|
+ let endTime = moment(this.model.qsdqsj);
|
|
|
+ if (endTime.valueOf() < startTime.valueOf()) {
|
|
|
+ this.$message.error('请检查权属到期时间是否正确!');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ that.confirmLoading = true
|
|
|
+ let httpurl = ''
|
|
|
+ let method = ''
|
|
|
+ if (!this.model.id) {
|
|
|
+ httpurl += this.url.add
|
|
|
+ method = 'post'
|
|
|
+ } else {
|
|
|
+ httpurl += this.url.edit1
|
|
|
+ method = 'put'
|
|
|
+ }
|
|
|
+ httpAction(httpurl, this.model, method).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ that.$message.success(res.message)
|
|
|
+ that.$emit('ok')
|
|
|
+ } else {
|
|
|
+ that.$message.warning(res.message)
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ that.confirmLoading = false
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
popupCallback(value, row) {
|
|
|
this.model = Object.assign(this.model, row);
|
|
|
},
|