shaogen1995 1 年之前
父節點
當前提交
634b7ffd61
共有 2 個文件被更改,包括 3 次插入76 次删除
  1. 3 1
      src/pages/A4hot/index.tsx
  2. 0 75
      src/utils/tableData.ts

+ 3 - 1
src/pages/A4hot/index.tsx

@@ -92,7 +92,9 @@ function A4hot() {
             formatter: function (name: string) {
               const resObj = dataRes.find((v) => v.name === name)!;
 
-              return `${resObj.name} ${((resObj.value / maxNum) * 100).toFixed(
+              const nameRes =resObj.name.length>8?resObj.name.slice(0,8)+'...':resObj.name
+
+              return `${nameRes} ${((resObj.value / maxNum) * 100).toFixed(
                 1
               )}%`;
             },

+ 0 - 75
src/utils/tableData.ts

@@ -15,41 +15,6 @@
 //   ];
 // };
 
-export const A1tableC = [
-  ["txt", "ID", "id"],
-  ["txt", "手机号", "phone"],
-  ["txt", "昵称", "userName"],
-  ["txt", "注册日期", "createTime"],
-  ["txt", "爱心币", "score"],
-];
-
-export const A1tableClook = [
-  ["txt", "时间", "createTime"],
-  ["txt", "类型", "type"],
-  ["txt", "爱心币", "score"],
-  ["text", "说明", "description", 50],
-];
-
-export const A2tableC1 = [
-  ["txt", "行为", "name"],
-  ["txt", "奖励爱心币", "score"],
-  ["txt", "说明", "description"],
-];
-
-export const A2tableC2 = [
-  ["txt", "动植物", "name"],
-  ["txt", "成熟周期(天)", "cycle"],
-  ["txt", "奖励爱心币", "score"],
-  ["txt", "说明", "description"],
-];
-
-export const A2tableC3 = [
-  ["txt", "游戏名称", "name"],
-  ["txt", "时限(秒)", "cycle"],
-  ["txt", "奖励爱心币", "score"],
-  ["txt", "单日奖励上限", "dayLimit"],
-  ["txt", "奖励说明", "description"],
-];
 
 export const A3tableC = [
   ["txt", "发布时间", "createTime"],
@@ -58,46 +23,6 @@ export const A3tableC = [
   ["text", "内容", "content", 50],
 ];
 
-export const A4tableC = [
-  ["txt", "奖品名称", "name"],
-  ["img", "封面", "thumb"],
-  ["txt", "所需爱心币", "score"],
-  ["txt", "库存", "stock"],
-  ["txt", "登记日期", "createTime"],
-  ["txtChange", "状态", "isEnabled", { 0: "下架", 1: "上架" }],
-];
-
-export const A5tableC = [
-  ["txt", "时间", "createTime"],
-  ["txt", "用户名", "creatorName"],
-  ["txt", "兑换奖品", "prizeName"],
-  ["txt", "爱心币记录", "score"],
-  ["txt", "称呼", "name"],
-  ["text", "联系方式", "phone", 50],
-  ["text", "地址和留言", "description", 50],
-];
-
-export const A6tableC = [
-  ["txt", "时间", "createTime"],
-  ["txt", "称呼", "name"],
-  ["txt", "联系方式", "phone"],
-  ["text", "反馈内容", "content", 50],
-];
-
-export const A7tableC1 = [
-  ["txt", "人物姓名", "name"],
-  ["text", "人物简介", "description",50],
-  ["img", "人物肖像", "thumb"],
-  ["txt", "采访主题", "dictName"],
-  ["txt", "排序值", "sort"],
-];
-export const A7tableC2 = [
-  ["txt", "刊物标题", "name"],
-  ["img", "刊物封面", "thumb"],
-  ["txt", "发布日期", "publishDate"],
-];
-export const A7tableCtheme = [["txt", "采访主题", "name"]];
-
 export const Z1tableC = [
   ["txt", "用户名", "userName"],
   ["txtChange", "角色", "isAdmin", { 1: "管理员", 0: "普通成员" }],