data.js 9.68 KB
Newer Older
lxyang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425
export default {
  table: {
    head: [
      {
        label: "客户名称",
        prop: "customerName",
        width: '150'
      },
      {
        label: "Ads创建计划消耗",
        prop: "adsConsume",
        width: '150',
        sortable: 'custom'
      },
      {
        label: "媒体创建计划消耗",
        prop: "mediaConsume",
        width: '150',
        sortable: 'custom'
      },
      {
        label: "消耗倍数(Ads/Ads+媒体)",
        prop: "consumeRatio",
        width: '200'
      },
      {
        label: "Ads创建计划数",
        prop: "adsPlanNum",
        width: '150',
        sortable: 'custom'
      },
      {
        label: "媒体创建计划数",
        prop: "mediaPlanNum",
        width: '150',
        sortable: 'custom'
      },
      {
        label: "绑定账号总数",
        prop: "totalAccountNum",
        width: '130',
        sortable: 'custom'
      },
      {
        label: "新绑定账号数",
        prop: "newAccountNum",
        width: '130',
        sortable: 'custom'
      },
      {
        label: "优化经理总数",
        prop: "totalManagerNum",
        width: '130',
        sortable: 'custom'
      },
      {
        label: "新添加优化经理数",
        prop: "newManagerNum",
        width: '150',
        sortable: 'custom'
      },
      {
        label: "优化师总数",
        prop: "totalOperateNum",
        width: '130',
        sortable: 'custom'
      },
      {
        label: "新添加优化师数",
        prop: "newOperateNum",
        width: '150',
        sortable: 'custom'
      },
      {
        label: "设计师总数",
        prop: "totalDesignerNum",
        width: '130',
        sortable: 'custom'
      },
      {
        label: "新添加设计师数",
        prop: "newDesignerNum",
        sortable: 'custom'
      }
    ]
  },
  shortcuts: [
    {
      text: "最近一周",
      onClick(picker) {
        const end = new Date();
        const start = new Date();
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
        picker.$emit("pick",
          [start, end
          ]);
      }
    },
    {
      text: "最近二周",
      onClick(picker) {
        const end = new Date();
        const start = new Date();
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 14);
        picker.$emit("pick",
          [start, end
          ]);
      }
    },
    {
      text: "最近一个月",
      onClick(picker) {
        const end = new Date();
        const start = new Date();
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
        picker.$emit("pick",
          [start, end
          ]);
      }
    },
    {
      text: "最近三个月",
      onClick(picker) {
        const end = new Date();
        const start = new Date();
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
        picker.$emit("pick",
          [start, end
          ]);
      }
    },
    {
      text: "最近半年",
      onClick(picker) {
        const end = new Date();
        const start = new Date();
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 180);
        picker.$emit("pick",
          [start, end
          ]);
      }
    },
    // {
    //   text: "最近一年",
    //   onClick(picker) {
    //     const end = new Date();
    //     const start = new Date();
    //     start.setTime(start.getTime() - 3600 * 1000 * 24 * 365);
    //     picker.$emit("pick",
    //       [start, end
    //       ]);
    //   }
    // },
  ],
  resData:{
    "code":200,
    "data":[{
      "alwaysShow":true,
      "children":[{
        "alwaysShow":null,
        "children":[],
        "component":"system/user/index",
        "hidden":"",
        "meta":{
          "icon":"user",
          "title":"用户管理"
        },
        "name":"用户管理",
        "path":"user",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"system/role/index",
        "hidden":"",
        "meta":{
          "icon":"peoples",
          "title":"角色管理"
        },
        "name":"角色管理",
        "path":"role",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"system/menu/index",
        "hidden":"",
        "meta":{
          "icon":"tree-table",
          "title":"菜单管理"
        },
        "name":"菜单管理",
        "path":"menu",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"system/dept/index",
        "hidden":"",
        "meta":{
          "icon":"tree",
          "title":"部门管理"
        },
        "name":"部门管理",
        "path":"dept",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"system/post/index",
        "hidden":"",
        "meta":{
          "icon":"post",
          "title":"岗位管理"
        },
        "name":"岗位管理",
        "path":"post",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"system/dict/index",
        "hidden":"",
        "meta":{
          "icon":"dict",
          "title":"字典管理"
        },
        "name":"字典管理",
        "path":"dict",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"system/config/index",
        "hidden":"",
        "meta":{
          "icon":"edit",
          "title":"参数设置"
        },
        "name":"参数设置",
        "path":"config",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"system/notice/index",
        "hidden":"",
        "meta":{
          "icon":"message",
          "title":"通知公告"
        },
        "name":"通知公告",
        "path":"notice",
        "redirect":""
      },{
        "alwaysShow":true,
        "children":[{
          "alwaysShow":null,
          "children":[],
          "component":"monitor/operlog/index",
          "hidden":"",
          "meta":{
            "icon":"form",
            "title":"操作日志"
          },
          "name":"操作日志",
          "path":"operlog",
          "redirect":""
        },{
          "alwaysShow":null,
          "children":[],
          "component":"monitor/logininfor/index",
          "hidden":"",
          "meta":{
            "icon":"logininfor",
            "title":"登录日志"
          },
          "name":"登录日志",
          "path":"logininfor",
          "redirect":""
        }],
        "component":"system/log/index",
        "hidden":"",
        "meta":{
          "icon":"log",
          "title":"日志管理"
        },
        "name":"日志管理",
        "path":"log",
        "redirect":"noRedirect"
      }],
      "component":"Layout",
      "hidden":"",
      "meta":{
        "icon":"system",
        "title":"系统管理"
      },
      "name":"系统管理",
      "path":"system",
      "redirect":"noRedirect"
    },{
      "alwaysShow":true,
      "children":[{
        "alwaysShow":null,
        "children":[],
        "component":"monitor/online/index",
        "hidden":"",
        "meta":{
          "icon":"online",
          "title":"在线用户"
        },
        "name":"在线用户",
        "path":"online",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"monitor/job/index",
        "hidden":"",
        "meta":{
          "icon":"job",
          "title":"定时任务"
        },
        "name":"定时任务",
        "path":"job",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"monitor/druid/index",
        "hidden":"",
        "meta":{
          "icon":"druid",
          "title":"数据监控"
        },
        "name":"数据监控",
        "path":"druid",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"monitor/server/index",
        "hidden":"",
        "meta":{
          "icon":"server",
          "title":"服务监控"
        },
        "name":"服务监控",
        "path":"server",
        "redirect":""
      }],
      "component":"Layout",
      "hidden":"",
      "meta":{
        "icon":"monitor",
        "title":"系统监控"
      },
      "name":"系统监控",
      "path":"monitor",
      "redirect":"noRedirect"
    },{
      "alwaysShow":true,
      "children":[{
        "alwaysShow":null,
        "children":[],
        "component":"tool/build/index",
        "hidden":"",
        "meta":{
          "icon":"build",
          "title":"表单构建"
        },
        "name":"表单构建",
        "path":"build",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"tool/gen/index",
        "hidden":"",
        "meta":{
          "icon":"code",
          "title":"代码生成"
        },
        "name":"代码生成",
        "path":"server",
        "redirect":""
      },{
        "alwaysShow":null,
        "children":[],
        "component":"tool/swagger/index",
        "hidden":"",
        "meta":{
          "icon":"swagger",
          "title":"系统接口"
        },
        "name":"系统接口",
        "path":"swagger",
        "redirect":""
      }],
      "component":"Layout",
      "hidden":"",
      "meta":{
        "icon":"tool",
        "title":"系统工具"
      },
      "name":"系统工具",
      "path":"tool",
      "redirect":"noRedirect"
    },{
      "alwaysShow":null,
      "children":[],
      "component":"Layout",
      "hidden":"",
      "meta":{
        "icon":"guide",
        "title":"若依官网"
      },
      "name":"若依官网",
      "path":"http://ruoyi.vip",
      "redirect":""
    }],
    "message":"Success",
    "success":true
  }
}