Explorar o código

资源表 未开启状态 也要能查看

shaogen1995 hai 2 meses
pai
achega
7da0891a7d

+ 10 - 0
src/pages/Bresource/B1overview/index.tsx

@@ -264,6 +264,16 @@ function B1overview() {
                   placeholder='发布状态'
                 />
               </div>
+              <div className='sgLeftRow'>
+                <Select
+                  allowClear
+                  style={{ width: 120 }}
+                  value={(formData.queryParams || {})['status_hot']}
+                  onChange={e => dongFormChange('status_hot', e)}
+                  options={selectObj['推荐状态']}
+                  placeholder='推荐状态'
+                />
+              </div>
 
               {formZi.map(item => (
                 <div key={item.id} className='sgLeftRow'>

+ 1 - 0
src/pages/Zsystem/Z6roleSet/Z6edit.tsx

@@ -278,6 +278,7 @@ function Z6edit({ sId, closeFu, addTableFu, editTableFu }: Props) {
                         }}
                       >
                         {v.label}
+                        {v.isEnabled !== 1 ? '(关闭状态)' : ''}
                       </Checkbox>
                     ))}
                   </div>

+ 1 - 1
src/utils/dataChange.ts

@@ -52,7 +52,7 @@ export const selectObj = {
   ]
 }
 
-export type antdSelectType = { value: number; label: string }
+export type antdSelectType = { value: number; label: string; isEnabled: 0 | 1 }
 
 // 表格下拉
 export const tableSelectToTxt = (val: number, arr: any[]) => {

+ 1 - 1
src/utils/http.ts

@@ -17,7 +17,7 @@ const baseFlag = baseUrlTemp.includes('https://')
 
 // 工作台图标/其他静态图 前缀地址
 export const iconUrl = envFlag
-  ? `https://sit-qingdaobeer.4dage.com/backstage/tabImg`
+  ? `https://sit-chaoxuept.4dage.com/backstage/tabImg`
   : '/backstage/tabImg'
 
 // 请求基地址