shenwu преди 5 месеца
родител
ревизия
ba9e35efda

+ 1 - 1
src/pages/distribution/book/longBook/formConfig.tsx

@@ -102,7 +102,7 @@ function formConfig(props: {
             dataIndex: 'beginPayChapterNo',
             valueType: 'select',
             fieldProps: { showSearch: true, placeholder: '开始付费章节' },
-            hideInForm: paymentType != 2,
+            hideInForm: paymentType == 0,
             valueEnum: () => {
               let arr = bookList;
               return arr

+ 4 - 4
src/pages/distribution/book/longBook/tableConfig.tsx

@@ -187,8 +187,8 @@ export const columns = (props: {
       ellipsis: true,
       hideInSearch: true,
       render: (a, b) => {
-        let isHot = a ? '是' : '否';
-        return <Badge status={a ? 'processing' : 'default'} text={isHot} />;
+        let isHot = b.publicDistributor ? '是' : '否';
+        return <Badge status={ b.publicDistributor ? 'processing' : 'default'} text={isHot} />;
       },
     },
     {
@@ -200,8 +200,8 @@ export const columns = (props: {
       ellipsis: true,
       hideInSearch: true,
       render: (a, b) => {
-        let isHot = a ? '是' : '否';
-        return <Badge status={a ? 'processing' : 'default'} text={isHot} />;
+        let isHot = b.allowDistributorConfig ? '是' : '否';
+        return <Badge status={b.allowDistributorConfig ? 'processing' : 'default'} text={isHot} />;
       },
     },
     {

+ 1 - 1
src/pages/distribution/book/shortBook/formConfig.tsx

@@ -103,7 +103,7 @@ function formConfig(props: {
             dataIndex: 'beginPayParagraphNo',
             valueType: 'select',
             fieldProps: { showSearch: true, placeholder: '开始付费章节/段落' },
-            hideInForm: paymentType != 2,
+            hideInForm: paymentType === 0,
             valueEnum: () => {
               let arr = bookList;
               return arr

+ 4 - 4
src/pages/distribution/book/shortBook/tableConfig.tsx

@@ -187,8 +187,8 @@ export const columns = (props: {
       ellipsis: true,
       hideInSearch: true,
       render: (a, b) => {
-        let isHot = a ? '是' : '否';
-        return <Badge status={a ? 'processing' : 'default'} text={isHot} />;
+        let isHot = b.publicDistributor ? '是' : '否';
+        return <Badge status={ b.publicDistributor ? 'processing' : 'default'} text={isHot} />;
       },
     },
     {
@@ -200,8 +200,8 @@ export const columns = (props: {
       ellipsis: true,
       hideInSearch: true,
       render: (a, b) => {
-        let isHot = a ? '是' : '否';
-        return <Badge status={a ? 'processing' : 'default'} text={isHot} />;
+        let isHot = b.allowDistributorConfig ? '是' : '否';
+        return <Badge status={b.allowDistributorConfig ? 'processing' : 'default'} text={isHot} />;
       },
     },
     {