mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore: 1
This commit is contained in:
@@ -59,7 +59,10 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any) {
|
|||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
column: {
|
column: {
|
||||||
width: 120
|
width: 200,
|
||||||
|
component: {
|
||||||
|
color: "auto"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
component: {
|
component: {
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||||||
key: "id",
|
key: "id",
|
||||||
type: "number",
|
type: "number",
|
||||||
column: {
|
column: {
|
||||||
width: 50
|
width: 100
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
show: false
|
show: false
|
||||||
@@ -65,6 +65,9 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
rules: [{ required: true, message: "必填项" }]
|
rules: [{ required: true, message: "必填项" }]
|
||||||
|
},
|
||||||
|
column: {
|
||||||
|
width: 300
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
...commonColumnsDefine
|
...commonColumnsDefine
|
||||||
|
|||||||
@@ -118,10 +118,11 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
|||||||
const isUpdate = bean.id > 0 && old != null;
|
const isUpdate = bean.id > 0 && old != null;
|
||||||
if (!isPlus()) {
|
if (!isPlus()) {
|
||||||
let count = await this.repository.count();
|
let count = await this.repository.count();
|
||||||
if (isUpdate) {
|
if (!isUpdate) {
|
||||||
count -= 1;
|
//如果是添加要加1
|
||||||
|
count += 1;
|
||||||
}
|
}
|
||||||
if (count >= freeCount) {
|
if (count > freeCount) {
|
||||||
throw new NeedVIPException('免费版最多只能创建10个pipeline');
|
throw new NeedVIPException('免费版最多只能创建10个pipeline');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user