@@ -59,7 +59,7 @@ export const padsSchemas: FormSchema[] = [
},
{
field: 'orderNum',
- component: 'Input',
+ component: 'InputNumber',
label: '排序',
defaultValue: 0,
componentProps: {
@@ -67,6 +67,7 @@ export const padsSchemas: FormSchema[] = [
placeholder: '推荐排序',
type: 'number',
min: 0,
+ max: 99999,
required: true,
rules: [
@@ -134,12 +135,13 @@ export const schemas: FormSchema[] = [
label: '轮播排序',
maxLength: 5,
placeholder: '轮播排序',
@@ -152,7 +152,7 @@ function showAction(): boolean {
if (getCheckRole(['company_admin']) && getEquity([1])) {
return true;
}
- if (getCheckRole(['super', 'plat_admin', 'company_admin'])) {
+ if (getCheckRole(['super', 'plat_admin'])) {
return false;
@@ -6,7 +6,7 @@
@ok="handleOk"
width="600px"
>
- <div class="pt-3px pr-3px">
+ <div style="padding-bottom: 90px" class="pt-3px pr-3px">
<BasicForm @register="registerForm">
<template #text="{ model, field }">
{{ model[field] }}
@@ -149,6 +149,7 @@
field: 'fieldTime',
component: 'RangePicker',
label: t('routes.rightsEnterprises.timeField'),
+ ifShow: !getCheckRole('plat_admin'),
colProps: {
span: 8,
@@ -171,7 +172,7 @@
formConfig: searchForm,
showTableSetting: true,
tableSetting: { fullScreen: true },
- showIndexColumn: false,
+ showIndexColumn: true,
pagination: { pageSize: 20 },
rowKey: 'companyId',
fetchSetting: {
@@ -142,6 +142,16 @@
+ title: t('routes.scenes.status'),
+ dataIndex: 'payStatus',
+ width: 180,
+ customRender: ({ record }) => {
+ const enable = record.payStatus == 1;
+ const text = enable ? t('routes.scenes.statusText.1') : t('routes.scenes.statusText.0');
+ return text;
+ },
+ {
title: t('routes.scenes.livestreamStatus'),
dataIndex: 'livestreamStatus',
width: 180,
@@ -167,6 +167,7 @@
accept: ['jpg', 'jpeg', 'gif', 'png'],
maxSize: 5,
+ maxNumber: 1,
api: uploadLiveApi,
onChange: async () => {
await validateFields(['appListPicUrl']);
@@ -187,7 +187,7 @@
});
labelField: 'permName',
- valueField: 'permTypeId',
+ valueField: 'id',
immediate: true,
mode: 'multiple',
params: {
@@ -260,7 +260,7 @@
field: 'phone',
- disabled: data.id ? true : false,
+ disabled: getCheckRole('plat_admin') ? false : data.id ? true : false,