|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
-
|
|
|
+
|
|
|
<div>
|
|
|
|
|
|
|
|
@@ -11,12 +11,12 @@
|
|
|
<el-select v-model="searchData.calf_category_id" filterable placeholder="犊牛类型" class="g-mr20" style="width: 180px;" clearable>
|
|
|
<el-option v-for="item in calfTypeList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
-
|
|
|
+
|
|
|
<el-input-number v-model="searchData.min_daily_age" style="width:120px;" :controls="false" placeholder="日龄" />
|
|
|
<span style="margin:0px 8px;">至</span>
|
|
|
<el-input-number v-model="searchData.max_daily_age" style="width:120px;" class="g-mr20" :controls="false" placeholder="日龄" />
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="form_search">搜索</el-button>
|
|
@@ -25,7 +25,7 @@
|
|
|
<!-- <el-button type="primary" @click="form_export">导出</el-button> -->
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
<!-- 表格 -->
|
|
|
<el-table key="0" :data="tableList" v-loading="tableLoading" element-loading-text="给我一点时间" border fit>
|
|
|
<el-table-column label="序号" width="50px" align="center">
|
|
@@ -63,7 +63,7 @@
|
|
|
<span>{{ scope.row.female_calf_daily_weight }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<el-table-column label="操作" align="center" width="300" class-name="small-padding fixed-width" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
@@ -89,36 +89,36 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="配方名称:" prop="name">
|
|
|
<el-input v-model="addForm.name" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="犊牛类型:" prop="calf_category_id">
|
|
|
<el-select v-model="addForm.calf_category_id" filterable placeholder="请选择" class="filter-item" style="width: 100%;" >
|
|
|
<el-option v-for="item in calfTypeList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="公犊增重指标(KG/日):" prop="male_calf_daily_weight">
|
|
|
<el-input v-model="addForm.male_calf_daily_weight" placeholder="建议填写,用以统计牛只成长达标率" />
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- </el-col>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="母犊增重指标(KG/日):" prop="female_calf_daily_weight">
|
|
|
<el-input v-model="addForm.female_calf_daily_weight" placeholder="建议填写,用以统计牛只成长达标率" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<el-row :gutter="20" >
|
|
|
<el-button type="primary" @click="add_step">增加一个阶段</el-button>
|
|
|
- </el-row>
|
|
|
+ </el-row>
|
|
|
|
|
|
|
|
|
<el-row>
|
|
@@ -184,7 +184,7 @@
|
|
|
<span>{{ scope.row.allow_temp_error }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<el-table-column label="操作" align="center" width="300" class-name="small-padding fixed-width" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
@@ -195,10 +195,10 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- </el-row>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="addFormStatus==='create'?add_dialog_save():edit_dialog_save()">确认</el-button>
|
|
@@ -216,87 +216,87 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="阶段:" >
|
|
|
<el-input v-model="addFormStep.id" placeholder="" disabled />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="开始日龄:" prop="start_daily_age">
|
|
|
<el-input v-model="addFormStep.start_daily_age" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- </el-col>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="结束日龄:" prop="end_daily_age">
|
|
|
<el-input v-model="addFormStep.end_daily_age" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="饲料类型:" prop="forage_id">
|
|
|
<el-select v-model="addFormStep.forage_id" filterable placeholder="请选择" style="width: 100%;" >
|
|
|
<el-option v-for="item in forageList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="日饲喂量(kg):" prop="daily_feed_number">
|
|
|
<el-input v-model="addFormStep.daily_feed_number" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="第一班占比(%):" prop="first_class_ratio">
|
|
|
<el-input v-model="addFormStep.first_class_ratio" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="第二班占比(%):" prop="second_class_ratio" v-if="class_num == 2 || class_num == 3 || class_num == 4">
|
|
|
<el-input v-model="addFormStep.second_class_ratio" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="第三班占比(%):" prop="third_class_ratio" v-if=" class_num == 3 || class_num == 4">
|
|
|
<el-input v-model="addFormStep.third_class_ratio" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="第四班占比(%):" prop="fourth_class_ratio" v-if=" class_num == 4">
|
|
|
<el-input v-model="addFormStep.fourth_class_ratio" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
-
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="饲喂温度℃:" prop="feed_temp">
|
|
|
<el-input v-model="addFormStep.feed_temp" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="允许温差℃:" prop="allow_temp_error">
|
|
|
<el-input v-model="addFormStep.allow_temp_error" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="班次允许误差(kg):" prop="allow_class_error">
|
|
|
<el-input v-model="addFormStep.allow_class_error" placeholder="" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
-
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="addFormStatusStep==='create'?add_step_save():edit_step_save()">确认</el-button>
|
|
@@ -305,11 +305,11 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
|
|
|
-</template>
|
|
|
+</template>
|
|
|
|
|
|
<script>
|
|
|
import { ajaxDataGet, ajaxDataPost, ajaxDataPut, ajaxDataDelete, checkButtons} from '@/api/common'
|
|
@@ -318,23 +318,23 @@ export default {
|
|
|
data() {
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return {
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
//接口 - 获取 - 表格
|
|
|
url_get_table:'/api/v1/ops/formula_plan/formula/list',
|
|
|
//接口 - 新增 - 表格
|
|
|
- url_add_table:'/api/v1/ops/formula_plan/formula/add',
|
|
|
+ url_add_table:'/api/v1/ops/formula_plan/formula/add',
|
|
|
//接口 - 修改 - 表格
|
|
|
- url_edit_table:'/api/v1/ops/formula_plan/formula/update',
|
|
|
+ url_edit_table:'/api/v1/ops/formula_plan/formula/update',
|
|
|
//接口 - 删除 - 表格
|
|
|
- url_delete_table:'/api/v1/ops/formula_plan/formula',
|
|
|
-
|
|
|
- //接口 - 下拉框 列表
|
|
|
+ url_delete_table:'/api/v1/ops/formula_plan/formula',
|
|
|
+
|
|
|
+ //接口 - 下拉框 列表
|
|
|
url_get_select1:'/api/v1/ops/calf_feed/enum/list',
|
|
|
|
|
|
//接口 - 下拉框 列表 栏舍组
|
|
@@ -379,8 +379,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -391,16 +391,16 @@ export default {
|
|
|
{id: 3, value: '损坏'},
|
|
|
],
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
//犊牛类型
|
|
|
calfTypeList:[
|
|
|
-
|
|
|
+
|
|
|
],
|
|
|
|
|
|
//栏舍
|
|
|
cowsheList:[
|
|
|
-
|
|
|
+
|
|
|
],
|
|
|
//饲料
|
|
|
forageList:[
|
|
@@ -412,15 +412,15 @@ export default {
|
|
|
{id: 2, value: '母'},
|
|
|
],
|
|
|
|
|
|
-
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
addFormShow:false,
|
|
|
addFormStatus: '',
|
|
|
addFormTxt: { edit: '修改', create: '新增' },
|
|
|
addForm:{
|
|
|
- name:'',id:'' ,calf_category_id:undefined, male_calf_daily_weight:undefined, female_calf_daily_weight:undefined,
|
|
|
+ name:'',id:'' ,calf_category_id:undefined, male_calf_daily_weight:undefined, female_calf_daily_weight:undefined,
|
|
|
},
|
|
|
addFormRules:{
|
|
|
name: [ { required: true, message: '配方名称必填', trigger: 'blur' }, ],
|
|
@@ -433,7 +433,7 @@ export default {
|
|
|
tableLoadingStep: false,
|
|
|
//表格内容
|
|
|
tableListStep:[
|
|
|
-
|
|
|
+
|
|
|
],
|
|
|
|
|
|
addFormShowStep:false,
|
|
@@ -442,48 +442,48 @@ export default {
|
|
|
addFormStep:{
|
|
|
name:'',id:'' , start_daily_age:undefined,end_daily_age:undefined,forage_id:undefined,forage_name:'',daily_feed_number:undefined,first_class_ratio:undefined,second_class_ratio:undefined,third_class_ratio:undefined,fourth_class_ratio:undefined,allow_class_error:undefined,feed_temp:undefined,feed_temp:undefined,allow_temp_error:undefined,
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
addFormRulesStep:{
|
|
|
// name: [
|
|
|
// { required: true, message: '类型必填', trigger: 'blur' },
|
|
|
// ],
|
|
|
},
|
|
|
|
|
|
-
|
|
|
+
|
|
|
class_num:4
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
-
|
|
|
+
|
|
|
//获取按钮权限
|
|
|
- const isButtonEdit = checkButtons(this.$store.state.buttonsList, "配方模板编辑")
|
|
|
+ const isButtonEdit = checkButtons(this.$store.state.buttonsList, "日龄饲喂模板编辑")
|
|
|
this.isButtonEdit = isButtonEdit
|
|
|
console.log('this.isButtonEdit==========',this.isButtonEdit)
|
|
|
-
|
|
|
+
|
|
|
|
|
|
var me = this
|
|
|
|
|
|
//获取下拉框
|
|
|
this.get_select_list1()
|
|
|
|
|
|
- //表格 - 初始化
|
|
|
+ //表格 - 初始化
|
|
|
setTimeout(function () {
|
|
|
me.get_table_data()
|
|
|
}, 1000);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
// this.get_table_data()
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
methods:{
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
//获取 下拉框
|
|
|
get_select_list1(){
|
|
|
var me = this
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
ajaxDataPost('/api/v1/ops/base_setting/calf_type/list?page=1&page_size=1000', {name:"" }).then(e => {
|
|
@@ -515,7 +515,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
ajaxDataGet('/api/v1/ops/base_setting/forage/list?page=1&page_size=1000', { }).then(e => {
|
|
@@ -527,7 +527,7 @@ export default {
|
|
|
} else {
|
|
|
me.forageList = e.data.list
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
// 班次数量下拉框
|
|
|
ajaxDataGet('/api/v1/ops/calf_feed/enum/list').then(e => {
|
|
@@ -542,20 +542,20 @@ export default {
|
|
|
})
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
-
|
|
|
+
|
|
|
//获取 表格
|
|
|
get_table_data() {
|
|
|
-
|
|
|
+
|
|
|
var me = this
|
|
|
|
|
|
me.tableLoading = true
|
|
|
console.log("searchData======>", me.searchData)
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
if( me.searchData.calf_category_id == ""){
|
|
|
me.searchData.calf_category_id = undefined
|
|
@@ -572,7 +572,7 @@ export default {
|
|
|
me.searchData.total = e.data.total; // 总数
|
|
|
me.searchData.page = e.data.page; //页码
|
|
|
me.searchData.page_size = e.data.page_size; //每页数量
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
me.$message({ type: 'error', message: '请求表格列表失败!' + e.msg, duration: 2000 })
|
|
|
}
|
|
@@ -580,10 +580,10 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
me.tableLoading = false
|
|
|
}, 100)
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//搜索 查询表格
|
|
|
form_search(){
|
|
@@ -606,7 +606,7 @@ export default {
|
|
|
me.searchData.max_daily_weight_gain = undefined
|
|
|
me.searchData.min_daily_age = undefined
|
|
|
me.searchData.max_daily_age = undefined
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
me.get_table_data()
|
|
@@ -635,9 +635,9 @@ export default {
|
|
|
this.addForm.female_calf_daily_weight = undefined
|
|
|
this.addForm.number = ''
|
|
|
|
|
|
-
|
|
|
+
|
|
|
this.tableListStep = []
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
//新增
|
|
@@ -656,13 +656,13 @@ export default {
|
|
|
var me = this
|
|
|
console.log('行内容row=========', row)
|
|
|
//编辑行内容赋值
|
|
|
- this.addForm = Object.assign({}, row)
|
|
|
+ this.addForm = Object.assign({}, row)
|
|
|
|
|
|
if(row.genders == 0){
|
|
|
this.addForm.genders = undefined
|
|
|
}
|
|
|
me.tableListStep = row.formula_stage
|
|
|
-
|
|
|
+
|
|
|
this.addFormStatus = 'edit'
|
|
|
this.addFormShow = true
|
|
|
this.$nextTick(() => {
|
|
@@ -692,10 +692,10 @@ export default {
|
|
|
"female_calf_daily_weight": parseFloat(me.addForm.female_calf_daily_weight),
|
|
|
"formula_stage": me.tableListStep
|
|
|
}
|
|
|
-
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
console.log("弹窗参数:", send_data)
|
|
@@ -715,7 +715,7 @@ export default {
|
|
|
me.$message({ type: 'error', message: '新增失败!' + e.msg, duration: 2000 })
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -757,7 +757,7 @@ export default {
|
|
|
me.$message({ type: 'error', message: '编辑失败!' + e.msg, duration: 2000 })
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -784,18 +784,18 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}).catch(() => {
|
|
|
me.$message({
|
|
|
type: 'info',
|
|
|
message: '已取消删除'
|
|
|
- });
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
|
|
@@ -805,7 +805,7 @@ export default {
|
|
|
|
|
|
//清空弹窗表单信息
|
|
|
reset_step(){
|
|
|
-
|
|
|
+
|
|
|
this.addFormStep.name = ''
|
|
|
this.addFormStep.start_daily_age = undefined
|
|
|
this.addFormStep.end_daily_age = undefined
|
|
@@ -819,8 +819,8 @@ export default {
|
|
|
this.addFormStep.allow_class_error = undefined
|
|
|
this.addFormStep.feed_temp = undefined
|
|
|
this.addFormStep.allow_temp_error = undefined
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
//新增
|
|
@@ -828,7 +828,7 @@ export default {
|
|
|
this.reset_step()
|
|
|
this.addFormStatusStep = 'create'
|
|
|
this.addFormStep.id = this.tableListStep.length + 1
|
|
|
-
|
|
|
+
|
|
|
this.addFormShowStep = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs['addFormRefStep'].clearValidate()
|
|
@@ -840,7 +840,7 @@ export default {
|
|
|
this.stepIndex = index
|
|
|
console.log('行内容row=========', row)
|
|
|
//编辑行内容赋值
|
|
|
- this.addFormStep = Object.assign({}, row)
|
|
|
+ this.addFormStep = Object.assign({}, row)
|
|
|
|
|
|
if(row.forage_id == 0){
|
|
|
this.addFormStep.forage_id = undefined
|
|
@@ -886,9 +886,9 @@ export default {
|
|
|
"feed_temp": me.addFormStep.feed_temp,
|
|
|
"allow_temp_error": me.addFormStep.allow_temp_error,
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
console.log("弹窗参数:", send_data)
|
|
@@ -896,8 +896,8 @@ export default {
|
|
|
//关闭弹窗
|
|
|
me.addFormShowStep = false
|
|
|
me.tableListStep.push(send_data)
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -910,7 +910,7 @@ export default {
|
|
|
var forage_name = me.forageList.find(obj => obj.id == me.addFormStep.forage_id).name
|
|
|
//发起请求
|
|
|
var send_data = {
|
|
|
-
|
|
|
+
|
|
|
"id": me.addFormStep.id,
|
|
|
"name": me.addFormStep.name,
|
|
|
"start_daily_age":me.addFormStep.start_daily_age,
|
|
@@ -927,7 +927,7 @@ export default {
|
|
|
"allow_temp_error": me.addFormStep.allow_temp_error,
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
// 编辑保存
|
|
|
console.log("弹窗参数:", send_data)
|
|
@@ -935,8 +935,8 @@ export default {
|
|
|
var stepIndex = me.stepIndex
|
|
|
this.$set(me.tableListStep, stepIndex, send_data)
|
|
|
console.log('me.tableListStep============',me.tableListStep)
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -950,9 +950,9 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- console.log('点击了 - 删除一个阶段index===',index,'row===',row)
|
|
|
+ console.log('点击了 - 删除一个阶段index===',index,'row===',row)
|
|
|
me.tableListStep.splice(index, 1)
|
|
|
-
|
|
|
+
|
|
|
//加载 - 发送新增保存
|
|
|
// ajaxDataDelete(me.url_delete_table + '/' +row.id, {}).then(e => {
|
|
|
// console.log("编辑结果:",e)
|
|
@@ -965,22 +965,22 @@ export default {
|
|
|
// }
|
|
|
// })
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}).catch(() => {
|
|
|
me.$message({
|
|
|
type: 'info',
|
|
|
message: '已取消删除'
|
|
|
- });
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
form_export() {
|
|
|
//获取请求表格数据的参数
|
|
|
//this.download.getdataListParm.parammaps = this.tableObj.getdataListParm.parammaps
|
|
@@ -1006,7 +1006,7 @@ export default {
|
|
|
{
|
|
|
tHeader: ['表头1', '表头2', '表头3', '表头4',],
|
|
|
filterVal: ['title1', 'title2', 'title3', 'title4'],
|
|
|
- tableDatas: [
|
|
|
+ tableDatas: [
|
|
|
{title1: "内容1",title2: "内容2",title3: "内容3",title4: "内容4"},
|
|
|
{title1: "内容11",title2: "内容22",title3: "内容32",title4: "内容44"},
|
|
|
{title1: "内容111",title2: "内容222",title3: "内容333",title4: "内容444"},
|
|
@@ -1017,7 +1017,7 @@ export default {
|
|
|
json2excel(excelDatas, '表格大标题', true, 'xlsx')
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
}
|
|
|
}
|