ringcode 3 роки тому
батько
коміт
ee1d8389ac

+ 8 - 1
src/components/tool-bar/index.vue

@@ -5,7 +5,10 @@
     </div>
     <div class="tool-bar-item" v-for="(field, index) in text" :key="field">
       <p class="label">{{ label[index] }}</p>
-      <a-input v-model:value="fields[field]" :placeholder="label[index]" />
+      <a-input
+        v-model:value="fields[field]"
+        :placeholder="placeholder[index] ? placeholder[index] : label[index]"
+      />
     </div>
     <slot />
     <div class="tool-bar-item btn-item">
@@ -45,6 +48,10 @@ const ToolBar = defineComponent({
       type: Object as PropType<string[]>,
       default: () => ref<string[]>([]),
     },
+    placeholder: {
+      type: Object as PropType<string[]>,
+      default: () => ref<string[]>([]),
+    },
     defaultVal: {
       type: Object,
       default: () => ({}),

+ 3 - 3
src/views/_pageOptions/table-account.ts

@@ -29,7 +29,7 @@ export const TableColumnOfAccount = [
   },
   {
     title: "回传方式",
-    width: 200,
+    width: 140,
     dataIndex: "module",
     slots: {
       customRender: "module"
@@ -45,9 +45,9 @@ export const TableColumnOfAccount = [
   //   }
   // },
   {
-    title: "站点回传比例",
+    title: "站点回传比例(%)",
     dataIndex: "rate",
-    width: 120,
+    width: 140,
     slots: {
       customRender: "rate"
     }

+ 7 - 7
src/views/_pageOptions/table-put.ts

@@ -22,7 +22,7 @@ export const TableColumnOfPutBooks = [
     slots: { customRender: "official_name" },
   },
   {
-    title: "书籍",
+    title: "书籍名称",
     dataIndex: "book_name",
   },
   {
@@ -118,7 +118,7 @@ export const TableColumnOfPutData = [
     fiexd: "left",
   },
   {
-    title: "消耗",
+    title: "消耗(元)",
     dataIndex: "cost",
     fiexd: "left",
   },
@@ -132,15 +132,15 @@ export const TableColumnOfPutData = [
     ellipsis: true,
   },
   {
-    title: "注册成本",
+    title: "注册成本(元)",
     dataIndex: "register_cost",
   },
   {
-    title: "支付粉价",
+    title: "支付粉价(元)",
     dataIndex: "pay_fans_cost",
   },
   {
-    title: "累计回本",
+    title: "累计回本(元)",
     dataIndex: "recovery_rate",
   },
   {
@@ -702,7 +702,7 @@ export const AdgroupCloumn: Array<colunm> = [
     width: 80,
   },
   {
-    title: "平均点击单价",
+    title: "平均点击单价(元)",
     dataIndex: "avg_click_cost",
     width: 80,
   },
@@ -873,7 +873,7 @@ export const AdCoundCloumn: Array<colunm> = [
     ],
   },
   {
-    title: "账户预算(最低1000元)",
+    title: "账户预算(元)",
     dataIndex: "firle",
     width: 140,
     slots: {

+ 20 - 20
src/views/_pageOptions/table_financial.ts

@@ -12,15 +12,15 @@ export const TableColumnOfFinancial = [
     dataIndex: "date",
     fixed: "left",
     ellipsis: true,
-    width:150
+    width: 150
   },
   {
-    title: "账户",
+    title: "账户名称",
     dataIndex: "advertiser_name",
     slots: { customRender: "advertiser" },
     fixed: "left",
     ellipsis: true,
-    width:220
+    width: 220
   },
   {
     title: "所属代理商",
@@ -28,46 +28,46 @@ export const TableColumnOfFinancial = [
     slots: { customRender: "agent" },
     fixed: "left",
     ellipsis: true,
-    width:220
+    width: 220
   },
-  
+
   {
-    title: "总支出",
+    title: "总支出(元)",
     dataIndex: "cost",
-    sorter:true,
-    sortDirections: ['descend', 'ascend',false],
+    sorter: true,
+    sortDirections: ['descend', 'ascend', false],
   },
   {
-    title: "现金支出",
+    title: "现金支出(元)",
     dataIndex: "cash_cost",
-    sorter:true,
-    sortDirections: ['descend', 'ascend',false],
+    sorter: true,
+    sortDirections: ['descend', 'ascend', false],
   },
   {
-    title: "赠款支出",
+    title: "赠款支出(元)",
     dataIndex: "reward_cost",
   },
   {
-    title: "总存入",
+    title: "总存入(元)",
     dataIndex: "income",
   },
   {
-    title: "总转入",
+    title: "总转入(元)",
     dataIndex: "transfer_in",
   },
   {
-    title: "总转出",
+    title: "总转出(元)",
     dataIndex: "transfer_out",
   },
   {
-    title: "冻结",
+    title: "冻结(元)",
     dataIndex: "frozen",
   },
   {
-    title: "日终结余",
+    title: "日终结余(元)",
     dataIndex: "balance",
-    sorter:true,
-    sortDirections: ['descend', 'ascend',false],
+    sorter: true,
+    sortDirections: ['descend', 'ascend', false],
   },
-  
+
 ];

+ 2 - 1
src/views/financial/index.vue

@@ -2,7 +2,8 @@
   <div class="page-wrap page-finacial">
     <tool-bar
       :text="['advertiser_id']"
-      :label="['账户名/ID']"
+      :label="['账户名称']"
+      :placeholder="['请输入账户名称或ID']"
       v-model:loading="inSearching"
       @confirm="onSearch"
     >

+ 2 - 1
src/views/put/ad-countdata.vue

@@ -2,7 +2,8 @@
   <div class="page-wrap page-wrap-put-books">
     <tool-bar
       :text="['advertiser_id']"
-      :label="['账户名称/ID']"
+      :label="['账户信息']"
+      :placeholder="['请输入账户名称或ID']"
       v-model:loading="inSearching"
       @confirm="onSearch"
     >

+ 2 - 1
src/views/put/ad-group.vue

@@ -2,7 +2,8 @@
   <div class="page-wrap page-wrap-put-books">
     <tool-bar
       :text="['campaign_id', 'advertiser_id']"
-      :label="['广告组名称/ID', '账户信息']"
+      :label="['广告组名称', '所属账户']"
+      :placeholder="['请输入广告组名称或ID', '请输入所属账户']"
       :defaultVal="defaultToolvalue"
       v-model:loading="inSearching"
       @confirm="onSearch"

+ 3 - 2
src/views/put/put-ad-account.vue

@@ -1,8 +1,9 @@
 <template>
   <div class="page-wrap page-wrap-put-books">
     <tool-bar
-      :text="['advertiser_id', 'email']"
-      :label="['广告主名称/ID', '广告主邮箱']"
+      :text="['advertiser_id']"
+      :label="['广告主名称']"
+      :placeholder="['请输入广告主名称或ID']"
       v-model:loading="inSearching"
       @confirm="onSearch"
     >

+ 2 - 1
src/views/put/put-ad-plan.vue

@@ -2,7 +2,8 @@
   <div class="page-wrap page-wrap-account page-adplan">
     <tool-bar
       :text="['ad_id', 'advertiser_id', 'campaign_id','channel_id']"
-      :label="['计划名称/ID', '所属账号/ID', '所属广告组名称/ID','所属公众号']"
+      :label="['计划名称', '所属账号', '所属广告组','所属公众号']"
+      :placeholder="['请输入计划名称或ID', '请输入账户名称或ID', '请输入广告组名称或ID','所属公众号']"
       :defaultVal="defaultToolvalue"
       v-model:loading="inSearching"
       @confirm="onSearch"

+ 1 - 1
src/views/put/put-book.vue

@@ -2,7 +2,7 @@
   <div class="page-wrap page-wrap-put-books">
     <tool-bar
       :text="['official_name', 'book_name']"
-      :label="['公众号名称', '书名']"
+      :label="['公众号名称', '书']"
       v-model:loading="searching"
       @confirm="onSearch"
     />