| | |
| | | createEmptyForm, |
| | | normalizeEnterpriseNewsStatus, |
| | | publishStatusLabel, |
| | | PUBLISH_STATUS_OPTIONS, |
| | | publishStatusTag, |
| | | } from "./enterpriseNewsUtils.js"; |
| | | |
| | | /** formPayload 中存放完整企业新闻业务数据的键(审批实例保存用) */ |
| | |
| | | width: 100, |
| | | dataType: "tag", |
| | | formatData: (v) => publishStatusLabel(v), |
| | | formatType: (v) => { |
| | | const hit = PUBLISH_STATUS_OPTIONS.find((x) => x.value === v); |
| | | return hit?.tag || "info"; |
| | | }, |
| | | formatType: (v) => publishStatusTag(v), |
| | | }, |
| | | { label: "创建人", prop: "publisherName", width: 110 }, |
| | | { label: "创建时间", prop: "createTime", width: 170 }, |