update DialogWithMenu在编辑时的初始化逻辑“

This commit is contained in:
lb
2023-02-24 14:13:47 +08:00
parent 3f405a3816
commit b0286bcc08
2 changed files with 81 additions and 41 deletions

View File

@@ -101,7 +101,8 @@ export default function () {
options: [],
refreshOptionsAfterConfirm: true,
elparams: { clearable: true, filterable: true, placeholder: "请选择砖型" },
fetchData: () => this.$http.get("/pms/shape/listUnR", { params: { wsId: 2, externalCode: '', key: '' } }),
// 下面参数的 techId 是为 /pms/xxx/listUnR 接口定制的,默认为 -1新增时使用编辑时传对应的 工艺id
fetchData: (techId = -1) => this.$http.get("/pms/shape/listUnR", { params: { wsId: 4, externalCode: '', key: '', techId } }),
},
],
// {