配合后端 save 必填化(2026-10-12 拍板): - def-editor:保存前校验归属应用非空(新建必选;升版本/存量草稿继承源行, 源行未归属必须补选),头部 Select 改必选样式 - Defs.vue:应用列存量 NULL 行显示「未归属」橙色 Tag;「编辑信息」弹窗 归属应用改必填(原地补填通道)
This commit is contained in:
@@ -369,6 +369,12 @@ async function onSave(): Promise<void> {
|
||||
Message.warning("请填写流程编码");
|
||||
return;
|
||||
}
|
||||
// 归属应用必填(2026-10-12 拍板):新建必须选;升版本继承源线(baseGuid 载入时已带回),
|
||||
// 源线未归属(存量 NULL)时必须在此补选
|
||||
if (!(appKey.value || "").trim()) {
|
||||
Message.warning("请选择归属应用(应用需先在 流程管理 > 应用设置 中开启)");
|
||||
return;
|
||||
}
|
||||
const errors = countErrors(issues.value);
|
||||
if (errors.length) {
|
||||
Message.error(`校验未通过:${errors[0].text}`);
|
||||
@@ -487,8 +493,8 @@ onUnmounted(() => window.removeEventListener("beforeunload", onBeforeUnload));
|
||||
/>
|
||||
</label>
|
||||
<label>
|
||||
应用
|
||||
<Select v-model="appKey" placeholder="归属应用,可空" style="width: 170px" clearable filterable>
|
||||
应用 <span style="color: #ed4014">*</span>
|
||||
<Select v-model="appKey" placeholder="归属应用(必选)" style="width: 170px" filterable>
|
||||
<Option v-for="a in appOptions" :key="a.appKey" :value="a.appKey">{{ a.appName }}</Option>
|
||||
</Select>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user