用车需求计算删除后进行数据刷新
This commit is contained in:
parent
6372e4e7ba
commit
72808130c0
@ -120,7 +120,7 @@
|
||||
<a @click="handleDetail(record)">详情</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item>
|
||||
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
||||
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id,record.vdNo)">
|
||||
<a>删除</a>
|
||||
</a-popconfirm>
|
||||
</a-menu-item>
|
||||
@ -139,7 +139,7 @@
|
||||
|
||||
import '@/assets/less/TableExpand.less'
|
||||
import { mixinDevice } from '@/utils/mixin'
|
||||
import { getAction } from '@/api/manage'
|
||||
import { getAction,deleteAction } from '@/api/manage'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import VehicleDemandCountModal from './modules/VehicleDemandCountModal'
|
||||
|
||||
@ -269,6 +269,21 @@
|
||||
this.loading = false;
|
||||
})
|
||||
},
|
||||
handleDelete(id,vdNo) {
|
||||
if(!this.url.delete){
|
||||
this.$message.error("请设置url.delete属性!")
|
||||
return
|
||||
}
|
||||
var that = this;
|
||||
deleteAction(that.url.delete, {id: id}).then((res) => {
|
||||
if (res.success) {
|
||||
that.$message.success(res.message);
|
||||
that.getByVdNo(vdNo);
|
||||
} else {
|
||||
that.$message.warning(res.message);
|
||||
}
|
||||
});
|
||||
},
|
||||
loadData(){},
|
||||
initDictConfig(){
|
||||
},
|
||||
|
@ -43,7 +43,7 @@
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item label="供应商编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="supplierCode">
|
||||
<a-input v-model="model.supplierCode" placeholder="请输入供应商编码"/>
|
||||
<a-input v-model.trim="model.supplierCode" placeholder="请输入供应商编码"/>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
|
Loading…
x
Reference in New Issue
Block a user