fix: 限制挂账管理编辑挂账人禁止修改挂账方式
This commit is contained in:
parent
30f10bed93
commit
546b3f4303
|
|
@ -172,6 +172,10 @@ async function handleEditClick(row: IObject) {
|
||||||
// 根据id获取数据进行填充
|
// 根据id获取数据进行填充
|
||||||
// const data = await creditApi.getFormData(row.id);
|
// const data = await creditApi.getFormData(row.id);
|
||||||
console.log({ ...row });
|
console.log({ ...row });
|
||||||
|
const item = editModalConfig?.formItems.find((item) => item.prop == "repaymentMethod");
|
||||||
|
if (item) {
|
||||||
|
item.options = (item.options ?? []).filter((v) => v.value == row.repaymentMethod);
|
||||||
|
}
|
||||||
editModalRef.value?.setFormData({ ...row, url: [row.url] });
|
editModalRef.value?.setFormData({ ...row, url: [row.url] });
|
||||||
}
|
}
|
||||||
function refresh() {
|
function refresh() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue