@ -156,7 +156,7 @@
<a v-action:delete @click="handleDelete([item.goods_id])">删除</a>
</div>
</s-table>
<Update ref="UpdateRef" />
<Update ref="UpdateRef" @refresh="refreshParentMethod" />
</a-card>
</template>
@ -401,6 +401,9 @@ export default {
})
},
refreshParentMethod(){
this.handleRefresh(true)
// 重置搜索表单
handleReset () {
this.searchForm.resetFields()
@ -489,4 +492,8 @@ export default {
.goodsWidth {
min-width: 220px;
}
.ant-table .actions a {
padding: 20px 4px;
margin: 0;
</style>
@ -247,7 +247,6 @@ export default {
onFormSubmit(values) {
const params = {}
params.fliter_condition = values.fliter_condition.map((x, i) => {
console.log(i)
return {
category: values[`category${i}`],
profit: values[`profit${i}`],
@ -289,7 +288,6 @@ export default {
.fan {
display: flex;
align-items: top;
height: 40px;
.fan /deep/ .ant-form-item {
margin-bottom: 0;
@ -753,9 +753,10 @@ export default {
.then((result) => {
// 显示提示信息
this.$message.success(result.message, 1.5)
this.$emit('refresh');
setTimeout(() => {
this.handleCancel()
}, 1500)
}, 500)
.catch(() => {
this.isBtnLoading = false