|
@@ -59,6 +59,13 @@
|
|
|
<div class="edit">
|
|
|
<div class="content">
|
|
|
<el-form ref="editTemp" :rules="rules" :model="edit.temp" label-position="right" label-width="115px" style="width: 90%;margin:0 auto 30px">
|
|
|
+ <el-row v-if="edit.dialogStatus == 'add'">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="牧场ID:" prop="pasture_id">
|
|
|
+ <el-input ref="pasture_id" type="number" v-model="edit.temp.pasture_id" placeholder="请输入牧场ID" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="牧场名称:" prop="name">
|
|
@@ -147,6 +154,7 @@ export default {
|
|
|
dialogStatus: '',
|
|
|
dialogFormVisible: false,
|
|
|
temp: {
|
|
|
+ pasture_id:0,
|
|
|
name:'',
|
|
|
account:'',
|
|
|
username:'',
|
|
@@ -284,6 +292,7 @@ export default {
|
|
|
this.edit.dialogStatus = 'add'
|
|
|
this.edit.dialogFormVisible = true
|
|
|
this.edit.temp= {
|
|
|
+ pasture_id:0,
|
|
|
name:'',
|
|
|
account:'',
|
|
|
username:'',
|
|
@@ -302,6 +311,7 @@ export default {
|
|
|
}, 1000)
|
|
|
let url = 'api/v1/ops/pasture/add'
|
|
|
let data = {
|
|
|
+ 'pasture_id':his.edit.temp.pasture_id,
|
|
|
'name': this.edit.temp.name,
|
|
|
"account": this.edit.temp.account,
|
|
|
"manager_user": this.edit.temp.manager_user,
|