Commit b34a2c00 authored by 李苏's avatar 李苏 💬

接口调整

parent 6775184b
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
value value
}) => { }) => {
if (value) { if (value) {
this.$post('lxyl/ckgl/cktz/close/cktzmx', { this.$post('lxyl/ckgl/ckdgb/close/cktzmx', {
id: ctx.singleItem.id, id: ctx.singleItem.id,
gbyy:value gbyy:value
}).then(res => { }).then(res => {
......
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
this.$warning('请勾选保留项') this.$warning('请勾选保留项')
return return
} }
let datas=[] let datas=[]
sekeyList.forEach(key=>{ sekeyList.forEach(key=>{
map[key].forEach(item=>{ map[key].forEach(item=>{
...@@ -91,7 +92,12 @@ ...@@ -91,7 +92,12 @@
datas.push(item) datas.push(item)
}) })
}) })
this.$datas=datas
if(datas.length==0){
this.$warning('请至少保留一条调整数据')
return
}
this.$datas=datas
this.showDialog=true this.showDialog=true
}, },
getRow(val) { getRow(val) {
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
value value
}) => { }) => {
if (value) { if (value) {
this.$post('lxyl/rkgl/rktz/close/rktzmx', { this.$post('lxyl/rkgl/rkdgb/close/rktzmx', {
id: ctx.singleItem.id, id: ctx.singleItem.id,
gbyy:value gbyy:value
}).then(res => { }).then(res => {
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => { }).then(res => {
this.$post('lxyl/rkgl/rkdgb/batchUnClose/rktzmx', { this.$post(':lxyl/rkgl/rkdgb/batchUnClose/rktzmx', {
datas:[ datas:[
{ {
id: ctx.singleItem.id id: ctx.singleItem.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment