Gitea 11 months ago
parent 7b5f800347
commit 574c69f39d
  1. 15
      jeecgboot-vue3-master/src/views/basicsskill/Basicsskill.data.ts
  2. 2
      jeecgboot-vue3-master/src/views/basicsskill/BasicsskillList.vue
  3. 2
      jeecgboot-vue3-master/src/views/compskill/Compskill.data.ts

@ -19,6 +19,14 @@ export const columns: BasicColumn[] = [
align: 'center', align: 'center',
dataIndex: 'remark', dataIndex: 'remark',
}, },
{
title: '启停',
align: "center",
dataIndex: 'startstop',
customRender:({text}) => {
return render.renderSwitch(text, [{text:'启动',value:'Y'},{text:'停止',value:'N'}]);
},
},
]; ];
//查询数据 //查询数据
export const searchFormSchema: FormSchema[] = []; export const searchFormSchema: FormSchema[] = [];
@ -49,6 +57,13 @@ export const formSchema: FormSchema[] = [
field: 'remark', field: 'remark',
component: 'InputTextArea', component: 'InputTextArea',
}, },
{
label: '启停',
field: 'startstop',
component: 'JSwitch',
componentProps:{
},
},
// TODO 主键隐藏字段,目前写死为ID // TODO 主键隐藏字段,目前写死为ID
{ {
label: '', label: '',

@ -275,7 +275,7 @@
* 操作栏 * 操作栏
*/ */
function getTableAction(record) { function getTableAction(record) {
if(record.pid == "无上级"){ if(record.pid == "专业认证能力评价体系"||record.pid == "创新能力评价体系"){
return [ return [
{ {
label: '编辑', label: '编辑',

@ -67,7 +67,7 @@ export const formSchema: FormSchema[] = [
}, },
dynamicRules: ({ model, schema }) => { dynamicRules: ({ model, schema }) => {
return [{ required: true, message: '请输入能力id!' }]; return [{ required: true, message: '请选择能力!' }];
}, },
}, },
{ {

Loading…
Cancel
Save