|
@@ -280,7 +280,7 @@
|
|
|
animation="500"
|
|
|
force-fallback="true"
|
|
|
:move="move1"
|
|
|
- @change="changeLog1(create.temp)"
|
|
|
+ @change="changeLog1"
|
|
|
@start="start1"
|
|
|
@end="end1(create.temp)"
|
|
|
>
|
|
@@ -935,25 +935,69 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
console.log('item.weight===>', item.weight)
|
|
|
+ const url = 'authdata/lpplandtl/add'
|
|
|
+ const data = {}
|
|
|
+ data.parammaps = {}
|
|
|
+ data.parammaps.id = item.id
|
|
|
+ data.parammaps.pastureid = evt.pastureid
|
|
|
+ data.parammaps.lppid = evt.id
|
|
|
+ data.parammaps.barid = item.barid
|
|
|
+ data.parammaps.barname = item.barname
|
|
|
+ data.parammaps.fpdid = item.id
|
|
|
+ data.parammaps.lweight = item.weight
|
|
|
+ data.parammaps.tmrid = evt.tmrid
|
|
|
+ data.parammaps.tmrname = evt.tmrname
|
|
|
+ data.parammaps.fttype = item.fttype
|
|
|
+ data.parammaps.background = item.background
|
|
|
+ data.parammaps.cowcount = item.cowcount
|
|
|
+ data.parammaps.ccountradio = item.ccountradio
|
|
|
+ postJson(url, data).then(response => {
|
|
|
+ this.requestParam = {}
|
|
|
+ this.requestParam.common = { 'returnmap': '0' }
|
|
|
+ this.requestParam.data = []
|
|
|
+ this.requestParam.data[0] = { 'name': 'updateLpplandtlSorts', 'type': 'e',
|
|
|
+ 'parammaps': { pastureid: evt.pastureid, sort: evt.sort, lppid: evt.id }
|
|
|
+ }
|
|
|
+ // this.requestParam.data[1] = { 'name': 'insertLppd', 'type': 'e',
|
|
|
+ // 'parammaps': {
|
|
|
+ // pastureid: evt.pastureid, lppid: evt.id, barid: item.barid, barname: item.barname, fpdid: item.id, fttype: item.fttype,
|
|
|
+ // lweight: item.weight, sort: evt.sort, tmrid: evt.tmrid, tmrname: evt.tmrname,
|
|
|
+ // background: item.background, ccountradio: item.ccountradio, cowcount: item.cowcount
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ this.requestParam.data[1] = { 'name': 'updateFpdetailUse', 'type': 'e',
|
|
|
+ 'parammaps': { pastureid: item.pastureid, id: item.id, fttype: item.fttype, lweight: item.weight }
|
|
|
+ }
|
|
|
+ const url2 = 'authdata/ExecDataByConfig'
|
|
|
+ const data2 = this.requestParam
|
|
|
+ postJson(url2, data2).then(response => {
|
|
|
+ if (response.msg === 'fail') {
|
|
|
+ this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
+ } else {
|
|
|
+ this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
|
|
|
+ }
|
|
|
+ this.getCreateList1()
|
|
|
+ })
|
|
|
+ })
|
|
|
this.requestParam = {}
|
|
|
this.requestParam.common = { 'returnmap': '0' }
|
|
|
this.requestParam.data = []
|
|
|
this.requestParam.data[0] = { 'name': 'updateLpplandtlSorts', 'type': 'e',
|
|
|
'parammaps': { pastureid: evt.pastureid, sort: evt.sort, lppid: evt.id }
|
|
|
}
|
|
|
- this.requestParam.data[1] = { 'name': 'insertLppd', 'type': 'e',
|
|
|
- 'parammaps': {
|
|
|
- pastureid: evt.pastureid, lppid: evt.id, barid: item.barid, barname: item.barname, fpdid: item.id, fttype: item.fttype,
|
|
|
- lweight: item.weight, sort: evt.sort, tmrid: evt.tmrid, tmrname: evt.tmrname,
|
|
|
- background: item.background, ccountradio: item.ccountradio, cowcount: item.cowcount
|
|
|
- }
|
|
|
- }
|
|
|
- this.requestParam.data[2] = { 'name': 'updateFpdetailUse', 'type': 'e',
|
|
|
+ // this.requestParam.data[1] = { 'name': 'insertLppd', 'type': 'e',
|
|
|
+ // 'parammaps': {
|
|
|
+ // pastureid: evt.pastureid, lppid: evt.id, barid: item.barid, barname: item.barname, fpdid: item.id, fttype: item.fttype,
|
|
|
+ // lweight: item.weight, sort: evt.sort, tmrid: evt.tmrid, tmrname: evt.tmrname,
|
|
|
+ // background: item.background, ccountradio: item.ccountradio, cowcount: item.cowcount
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ this.requestParam.data[1] = { 'name': 'updateFpdetailUse', 'type': 'e',
|
|
|
'parammaps': { pastureid: item.pastureid, id: item.id, fttype: item.fttype, lweight: item.weight }
|
|
|
}
|
|
|
- const url = 'authdata/ExecDataByConfig'
|
|
|
- const data = this.requestParam
|
|
|
- postJson(url, data).then(response => {
|
|
|
+ const url2 = 'authdata/ExecDataByConfig'
|
|
|
+ const data2 = this.requestParam
|
|
|
+ postJson(url2, data2).then(response => {
|
|
|
if (response.msg === 'fail') {
|
|
|
this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
} else {
|
|
@@ -1071,31 +1115,16 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.requestParam = {}
|
|
|
- this.requestParam.common = {
|
|
|
- 'returnmap': '0'
|
|
|
- }
|
|
|
- this.requestParam.data = []
|
|
|
- this.requestParam.data[0] = {
|
|
|
- 'name': 'updateLppd',
|
|
|
- 'type': 'e',
|
|
|
- 'parammaps': {
|
|
|
- pastureid: this.create.temp.pastureid,
|
|
|
- lppid: this.create.temp.id,
|
|
|
- barid: objList.barid,
|
|
|
- barname: objList.barname,
|
|
|
- fpdid: objList.fpdid,
|
|
|
- fttype: objList.fttype,
|
|
|
- lweight: objList.weight,
|
|
|
- sort: objList.sort,
|
|
|
- tmrid: objList.tmrid,
|
|
|
- tmrname: objList.tmrname,
|
|
|
- background: objList.background,
|
|
|
- id: objList.id
|
|
|
- }
|
|
|
- }
|
|
|
- ExecDataByConfig(this.requestParam).then(response => {
|
|
|
- console.log('编辑保存发送参数', this.requestParam)
|
|
|
+ const url = 'authdata/lpplandtl/add'
|
|
|
+ const data = {}
|
|
|
+ data.parammaps = {}
|
|
|
+ data.parammaps.id = objList.id
|
|
|
+ data.parammaps.pastureid = this.create.temp.pastureid
|
|
|
+ data.parammaps.lppid = this.create.temp.id
|
|
|
+ data.parammaps.tmrid = objList.tmrid
|
|
|
+ data.parammaps.tmrname = objList.tmrname
|
|
|
+ postJson(url, data).then(response => {
|
|
|
+ console.log('新增保存发送参数', this.requestParam)
|
|
|
if (response.msg === 'fail') {
|
|
|
this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
} else {
|
|
@@ -1103,11 +1132,62 @@ export default {
|
|
|
this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
|
|
|
}
|
|
|
})
|
|
|
+ // this.requestParam = {}
|
|
|
+ // this.requestParam.common = {
|
|
|
+ // 'returnmap': '0'
|
|
|
+ // }
|
|
|
+ // this.requestParam.data = []
|
|
|
+ // this.requestParam.data[0] = {
|
|
|
+ // 'name': 'updateLppd',
|
|
|
+ // 'type': 'e',
|
|
|
+ // 'parammaps': {
|
|
|
+ // pastureid: this.create.temp.pastureid,
|
|
|
+ // lppid: this.create.temp.id,
|
|
|
+ // barid: objList.barid,
|
|
|
+ // barname: objList.barname,
|
|
|
+ // fpdid: objList.fpdid,
|
|
|
+ // fttype: objList.fttype,
|
|
|
+ // lweight: objList.weight,
|
|
|
+ // sort: objList.sort,
|
|
|
+ // tmrid: objList.tmrid,
|
|
|
+ // tmrname: objList.tmrname,
|
|
|
+ // background: objList.background,
|
|
|
+ // id: objList.id
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // ExecDataByConfig(this.requestParam).then(response => {
|
|
|
+ // console.log('编辑保存发送参数', this.requestParam)
|
|
|
+ // if (response.msg === 'fail') {
|
|
|
+ // this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
+ // } else {
|
|
|
+ // this.getCreateList2()
|
|
|
+ // this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
},
|
|
|
move1(evt, originalEvent){
|
|
|
- console.log('move1===>', evt, originalEvent)
|
|
|
+ console.log('move1===>evt', evt)
|
|
|
+ console.log('move1===>originalEvent', originalEvent)
|
|
|
+ },
|
|
|
+ changeLog1(evt){
|
|
|
+ const url = 'authdata/lpplandtl/edit/sort'
|
|
|
+ const data = {}
|
|
|
+ var obj = evt.moved.element
|
|
|
+ data.parammaps = {}
|
|
|
+ data.parammaps.tmrid = obj.tmrid
|
|
|
+ data.parammaps.pastureid = obj.pastureid
|
|
|
+ data.parammaps.lppid = obj.lppid
|
|
|
+ data.parammaps.sort = evt.moved.newIndex +1
|
|
|
+ postJson(url, data).then(response => {
|
|
|
+ console.log('拖动保存发送参数', this.requestParam)
|
|
|
+ if (response.msg === 'fail') {
|
|
|
+ this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
+ } else {
|
|
|
+ this.getCreateList2()
|
|
|
+ this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
- changeLog1(){},
|
|
|
start1(evt){
|
|
|
console.log('start1===>', evt)
|
|
|
// this.$set(this.table.startObj, 'from', evt.from.className)
|