|
@@ -248,7 +248,7 @@
|
|
|
<div slot="content">{{ item.barname }}</div>
|
|
|
<div class="barname">
|
|
|
<span style="float: left;width: 70px;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">{{ item.barname }}</span>
|
|
|
- <b style="background: red;float: right;width: 18px;font-size: 18px;" class="el-icon-check" @click="clickBar(item)" />
|
|
|
+ <button style="background: red;float: right;color: #fff;width: 18px;font-size: 18px;border: none;text-align: center;" :disabled="isokDisable" @click="clickBar(item)">√</button>
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<div class="barWeight" :style="{ background: 'rgba('+item.background2+ ',0.1)' }"> {{ item.weight }} </div>
|
|
@@ -930,6 +930,10 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
clickBar(item) {
|
|
|
+ this.isokDisable = true
|
|
|
+ setTimeout(() => {
|
|
|
+ this.isokDisable = false
|
|
|
+ }, 1000)
|
|
|
console.log('点击了栏舍item==>', item)
|
|
|
this.create.temp.sumweight = parseFloat(this.create.temp.sumweight)
|
|
|
console.log('temp==>',this.create.temp)
|
|
@@ -1008,32 +1012,6 @@ export default {
|
|
|
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[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()
|
|
|
- })
|
|
|
},
|
|
|
handleUpdate(row) {
|
|
|
console.log(row)
|