|
@@ -16,7 +16,9 @@
|
|
|
<el-select v-model="table.getdataListParm.parammaps.times" filterable placeholder="班次" class="filter-item" style="width: 120px;float: left;margin-left: 10px;" @change="changeFrequency">
|
|
|
<el-option v-for="item in frequencyList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
- <el-button class="export" icon="el-icon-time" style="float:right;" @click="handleHistoryRecord">历史记录 </el-button>
|
|
|
+ <!-- 临时注释 -->
|
|
|
+ <!-- <el-button class="export" icon="el-icon-time" style="float:right;" @click="handleHistoryRecord">历史记录 </el-button> -->
|
|
|
+ <!-- 临时注释 -->
|
|
|
</div>
|
|
|
<!-- <div class="search">
|
|
|
<el-select v-model="table.getdataListParm.parammaps.times" filterable placeholder="班次" class="filter-item" style="width: 120px;" @change="changeFrequency">
|
|
@@ -517,7 +519,11 @@ export default {
|
|
|
if (response.data !== null) {
|
|
|
this.equipmentList = response.data.list
|
|
|
if(this.create.dialogStatus == 'update'){
|
|
|
- this.create.temp.tclassname = this.equipmentList.find(obj => obj.id == this.create.temp.tmrid).tclassname
|
|
|
+ if(this.equipmentList.find(obj => obj.id == this.create.temp.tmrid) !== undefined){
|
|
|
+ this.create.temp.tclassname = this.equipmentList.find(obj => obj.id == this.create.temp.tmrid).tclassname
|
|
|
+ }else{
|
|
|
+ this.create.temp.tclassname = '固定式'
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
this.equipmentList = []
|
|
@@ -933,8 +939,9 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
this.isokDisable = false
|
|
|
}, 1000)
|
|
|
- console.log('点击了栏舍item==>', item)
|
|
|
this.create.temp.sumweight = parseFloat(this.create.temp.sumweight)
|
|
|
+ console.log('this.TMRNumberList==>', this.TMRNumberList)
|
|
|
+ console.log('点击了栏舍item==>', item)
|
|
|
console.log('temp==>',this.create.temp)
|
|
|
console.log('this.equipmentList==>',this.equipmentList)
|
|
|
// if(this.create.temp.tclassname == '固定式'){
|
|
@@ -1006,12 +1013,12 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
// ExecDataByConfig(this.requestParam).then(response => {
|
|
|
- this.requestParam = {}
|
|
|
- this.requestParam.common = { 'returnmap': '0' }
|
|
|
- this.requestParam.data = []
|
|
|
- this.requestParam.data[0] = { 'name': 'updateFpdetailUse', 'type': 'e',
|
|
|
- 'parammaps': { pastureid: item.pastureid, id: item.id, fttype: item.fttype, lweight: item.weight }
|
|
|
- }
|
|
|
+ this.requestParam = {}
|
|
|
+ this.requestParam.common = { 'returnmap': '0' }
|
|
|
+ this.requestParam.data = []
|
|
|
+ this.requestParam.data[0] = { '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 => {
|
|
@@ -1165,6 +1172,7 @@ export default {
|
|
|
data.parammaps.pastureid = obj.pastureid
|
|
|
data.parammaps.lppid = obj.lppid
|
|
|
data.parammaps.sort = evt.moved.newIndex +1
|
|
|
+ data.parammaps.id = obj.id
|
|
|
postJson(url, data).then(response => {
|
|
|
console.log('拖动保存发送参数', this.requestParam)
|
|
|
if (response.msg === 'fail') {
|