main
fanfan 6 months ago
parent 167cc84573
commit 98c8850aac
  1. 9
      src/views/goods/Index.vue
  2. 2
      src/views/goods/filter/Index.vue
  3. 3
      src/views/goods/modules/Update.vue

@ -156,7 +156,7 @@
<a v-action:delete @click="handleDelete([item.goods_id])">删除</a> <a v-action:delete @click="handleDelete([item.goods_id])">删除</a>
</div> </div>
</s-table> </s-table>
<Update ref="UpdateRef" /> <Update ref="UpdateRef" @refresh="refreshParentMethod" />
</a-card> </a-card>
</template> </template>
@ -401,6 +401,9 @@ export default {
}) })
}, },
refreshParentMethod(){
this.handleRefresh(true)
},
// //
handleReset () { handleReset () {
this.searchForm.resetFields() this.searchForm.resetFields()
@ -489,4 +492,8 @@ export default {
.goodsWidth { .goodsWidth {
min-width: 220px; min-width: 220px;
} }
.ant-table .actions a {
padding: 20px 4px;
margin: 0;
}
</style> </style>

@ -247,7 +247,6 @@ export default {
onFormSubmit(values) { onFormSubmit(values) {
const params = {} const params = {}
params.fliter_condition = values.fliter_condition.map((x, i) => { params.fliter_condition = values.fliter_condition.map((x, i) => {
console.log(i)
return { return {
category: values[`category${i}`], category: values[`category${i}`],
profit: values[`profit${i}`], profit: values[`profit${i}`],
@ -289,7 +288,6 @@ export default {
.fan { .fan {
display: flex; display: flex;
align-items: top; align-items: top;
height: 40px;
} }
.fan /deep/ .ant-form-item { .fan /deep/ .ant-form-item {
margin-bottom: 0; margin-bottom: 0;

@ -753,9 +753,10 @@ export default {
.then((result) => { .then((result) => {
// //
this.$message.success(result.message, 1.5) this.$message.success(result.message, 1.5)
this.$emit('refresh');
setTimeout(() => { setTimeout(() => {
this.handleCancel() this.handleCancel()
}, 1500) }, 500)
}) })
.catch(() => { .catch(() => {
this.isBtnLoading = false this.isBtnLoading = false

Loading…
Cancel
Save