feat: 新媒体账号管理
@ -1,3 +1,7 @@
|
|||||||
|
/*
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-24 16:29:10
|
||||||
|
*/
|
||||||
/* eslint-env node */
|
/* eslint-env node */
|
||||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||||
require('@rushstack/eslint-patch/modern-module-resolution');
|
require('@rushstack/eslint-patch/modern-module-resolution');
|
||||||
@ -29,6 +33,8 @@ module.exports = {
|
|||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
||||||
|
'vue/no-duplicate-attributes': 'off',
|
||||||
|
'vue/v-on-event-hyphenation': 'off',
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
defineOptions: 'readonly',
|
defineOptions: 'readonly',
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: 田鑫
|
* @Author: 田鑫
|
||||||
* @Date: 2023-03-05 18:14:16
|
* @Date: 2023-03-05 18:14:16
|
||||||
* @LastEditors: 田鑫
|
* @LastEditors: Please set LastEditors
|
||||||
* @LastEditTime: 2023-03-05 19:23:48
|
* @LastEditTime: 2025-06-25 10:54:24
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
import Unocss from 'unocss/vite';
|
import Unocss from 'unocss/vite';
|
||||||
|
|||||||
20
src/api/all/propertyMarketing.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 17:34:56
|
||||||
|
*/
|
||||||
|
import Http from '@/api';
|
||||||
|
|
||||||
|
// 媒体账号标签-列表
|
||||||
|
export const fetchAccountTags = (params = {}) => {
|
||||||
|
return Http.get('/v1/media-account-tags/list', params);
|
||||||
|
};
|
||||||
|
|
||||||
|
// 媒体账号分组-列表
|
||||||
|
export const fetchAccountGroups = (params = {}) => {
|
||||||
|
return Http.get('/v1/media-account-groups/list', params);
|
||||||
|
};
|
||||||
|
|
||||||
|
// 媒体运营人员分组-列表
|
||||||
|
export const fetchAccountOperators = (params = {}) => {
|
||||||
|
return Http.get('/v1/media-account-operators/list', params);
|
||||||
|
};
|
||||||
@ -8,21 +8,20 @@
|
|||||||
|
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
||||||
import { handleUserLogout } from '@/utils/user';
|
import { handleUserLogout, goUserLogin } from '@/utils/user';
|
||||||
|
import { useEnterpriseStore } from '@/stores/modules/enterprise';
|
||||||
|
import pinia from '@/stores';
|
||||||
|
|
||||||
const contentType = 'application/json';
|
const contentType = 'application/json';
|
||||||
const requestTimeout = 30000;
|
const requestTimeout = 30000;
|
||||||
|
|
||||||
const HttpStatusCode = {
|
enum HttpStatusCode {
|
||||||
OK: 200,
|
OK = 200,
|
||||||
BadRequest: 400, // 请求参数错误
|
BadRequest = 400, // 请求参数错误
|
||||||
Unauthorized: 401, // token 无效或过期
|
Unauthorized = 401, // token 无效或过期
|
||||||
NotFound: 404,
|
NotFound = 404,
|
||||||
InternalServerError: 500,
|
InternalServerError = 500,
|
||||||
};
|
}
|
||||||
|
|
||||||
import { useEnterpriseStore } from '@/stores/modules/enterprise';
|
|
||||||
import pinia from '@/stores';
|
|
||||||
|
|
||||||
//* 导出Request类,可以用来自定义传递配置来创建实例
|
//* 导出Request类,可以用来自定义传递配置来创建实例
|
||||||
export class Request {
|
export class Request {
|
||||||
@ -70,9 +69,15 @@ export class Request {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
(err: any) => {
|
(err: any) => {
|
||||||
const message = err.response?.data?.message ?? err.message;
|
const { message, code } = err.response?.data ?? {};
|
||||||
AMessage.error(message);
|
AMessage.error(message ?? err.message);
|
||||||
// 这里用来处理http常见错误,进行全局提示
|
|
||||||
|
switch (code) {
|
||||||
|
case HttpStatusCode.Unauthorized:
|
||||||
|
goUserLogin();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return Promise.reject(err.response);
|
return Promise.reject(err.response);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
BIN
src/assets/img/media-account/icon-add.png
Normal file
|
After Width: | Height: | Size: 249 B |
BIN
src/assets/img/media-account/icon-delete.png
Normal file
|
After Width: | Height: | Size: 354 B |
BIN
src/assets/img/media-account/icon-dy.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
src/assets/img/media-account/icon-group.png
Normal file
|
After Width: | Height: | Size: 513 B |
BIN
src/assets/img/media-account/icon-success.png
Normal file
|
After Width: | Height: | Size: 760 B |
BIN
src/assets/img/media-account/icon-tag.png
Normal file
|
After Width: | Height: | Size: 632 B |
BIN
src/assets/img/media-account/icon-warn.png
Normal file
|
After Width: | Height: | Size: 791 B |
BIN
src/assets/img/media-account/icon-xhs.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
@ -91,7 +91,7 @@ provide('toggleDrawerMenu', () => {
|
|||||||
</a-drawer>
|
</a-drawer>
|
||||||
<a-layout class="layout-content" :style="paddingStyle">
|
<a-layout class="layout-content" :style="paddingStyle">
|
||||||
<base-tab-bar v-if="appStore.tabBar" />
|
<base-tab-bar v-if="appStore.tabBar" />
|
||||||
<a-layout-content class="px-5">
|
<a-layout-content class="px-5 py-5">
|
||||||
<base-breadcrumb />
|
<base-breadcrumb />
|
||||||
<layout-page />
|
<layout-page />
|
||||||
</a-layout-content>
|
</a-layout-content>
|
||||||
|
|||||||
@ -1,14 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-24 16:29:10
|
||||||
|
*/
|
||||||
import App from './App.vue';
|
import App from './App.vue';
|
||||||
import router from './router';
|
import router from './router';
|
||||||
import store from './stores';
|
import store from './stores';
|
||||||
import '@/api/index';
|
import '@/api/index';
|
||||||
|
|
||||||
|
import '@arco-design/web-vue/dist/arco.css'; // Arco 默认样式
|
||||||
import './styles';
|
import './styles';
|
||||||
import './core';
|
import './core';
|
||||||
import 'uno.css';
|
import 'uno.css';
|
||||||
import './mock';
|
import './mock';
|
||||||
import '@/styles/vars.css'; // 优先加载
|
// import '@/styles/vars.css'; // 优先加载
|
||||||
import '@arco-design/web-vue/dist/arco.css'; // Arco 默认样式
|
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
app.use(store);
|
app.use(store);
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
/*
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-24 16:50:35
|
||||||
|
*/
|
||||||
export const WHITE_LIST = [
|
export const WHITE_LIST = [
|
||||||
{ name: 'notFound', children: [] },
|
{ name: 'notFound', children: [] },
|
||||||
{ name: 'login', children: [] },
|
{ name: 'login', children: [] },
|
||||||
@ -20,6 +24,6 @@ export const DEFAULT_ROUTE = {
|
|||||||
export const MENU_GROUP_IDS = {
|
export const MENU_GROUP_IDS = {
|
||||||
DATA_ENGINE_ID: 1, // 全域数据分析
|
DATA_ENGINE_ID: 1, // 全域数据分析
|
||||||
MANAGEMENT_ID: -1, // 管理中心
|
MANAGEMENT_ID: -1, // 管理中心
|
||||||
PROPERTY_ID: 2, // 资产营销平台
|
PROPERTY_ID: 10, // 资产营销平台
|
||||||
WORK_BENCH_ID: -99, // 工作台
|
WORK_BENCH_ID: -99, // 工作台
|
||||||
};
|
};
|
||||||
|
|||||||
@ -27,6 +27,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
locale: '行业热门话题洞察',
|
locale: '行业热门话题洞察',
|
||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
roles: ['*'],
|
roles: ['*'],
|
||||||
|
id: 2,
|
||||||
},
|
},
|
||||||
component: () => import('@/views/components/dataEngine/hotTranslation.vue'),
|
component: () => import('@/views/components/dataEngine/hotTranslation.vue'),
|
||||||
},
|
},
|
||||||
@ -37,6 +38,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
locale: '行业词云',
|
locale: '行业词云',
|
||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
roles: ['*'],
|
roles: ['*'],
|
||||||
|
id: 3,
|
||||||
},
|
},
|
||||||
component: () => import('@/views/components/dataEngine/hotCloud.vue'),
|
component: () => import('@/views/components/dataEngine/hotCloud.vue'),
|
||||||
},
|
},
|
||||||
@ -47,6 +49,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
locale: '行业关键词动向',
|
locale: '行业关键词动向',
|
||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
roles: ['*'],
|
roles: ['*'],
|
||||||
|
id: 4,
|
||||||
},
|
},
|
||||||
component: () => import('@/views/components/dataEngine/keyWord.vue'),
|
component: () => import('@/views/components/dataEngine/keyWord.vue'),
|
||||||
},
|
},
|
||||||
@ -57,6 +60,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
locale: '用户痛点观察',
|
locale: '用户痛点观察',
|
||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
roles: ['*'],
|
roles: ['*'],
|
||||||
|
id: 5,
|
||||||
},
|
},
|
||||||
component: () => import('@/views/components/dataEngine/userPainPoints.vue'),
|
component: () => import('@/views/components/dataEngine/userPainPoints.vue'),
|
||||||
},
|
},
|
||||||
@ -67,6 +71,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
locale: '重点品牌动向',
|
locale: '重点品牌动向',
|
||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
roles: ['*'],
|
roles: ['*'],
|
||||||
|
id: 6,
|
||||||
},
|
},
|
||||||
component: () => import('@/views/components/dataEngine/keyBrandMovement.vue'),
|
component: () => import('@/views/components/dataEngine/keyBrandMovement.vue'),
|
||||||
},
|
},
|
||||||
@ -77,6 +82,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
locale: '用户画像',
|
locale: '用户画像',
|
||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
roles: ['*'],
|
roles: ['*'],
|
||||||
|
id: 7,
|
||||||
},
|
},
|
||||||
component: () => import('@/views/components/dataEngine/userPersona.vue'),
|
component: () => import('@/views/components/dataEngine/userPersona.vue'),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -53,7 +53,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
roles: ['*'],
|
roles: ['*'],
|
||||||
},
|
},
|
||||||
component: () => import('@/views/property-marketing/repository/test'),
|
component: () => import('@/views/property-marketing/media-account/account-manage'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'accountDashboard',
|
path: 'accountDashboard',
|
||||||
@ -98,7 +98,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
|
|||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
roles: ['*'],
|
roles: ['*'],
|
||||||
},
|
},
|
||||||
component: () => import('@/views/property-marketing/repository/test'),
|
component: () => import('@/views/property-marketing/put-account/account-manage'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'accountData',
|
path: 'accountData',
|
||||||
|
|||||||
1
src/styles/components/index.scss
Normal file
@ -0,0 +1 @@
|
|||||||
|
@import "./input.scss";
|
||||||
5
src/styles/components/input.scss
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.arco-input-wrapper {
|
||||||
|
border-radius: 4px;
|
||||||
|
border-color: #d7d7d9;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
import './vars.css';
|
||||||
|
import './components/index.scss';
|
||||||
import 'normalize.css';
|
import 'normalize.css';
|
||||||
import 'uno.css';
|
import 'uno.css';
|
||||||
import './vars.css';
|
|
||||||
|
|||||||
@ -17,6 +17,10 @@
|
|||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.flex {
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -0,0 +1,12 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 10:02:20
|
||||||
|
-->
|
||||||
|
|
||||||
|
<template></template>
|
||||||
|
|
||||||
|
<script lang="ts"></script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,80 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 15:31:15
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<div class="card-container">
|
||||||
|
<div v-for="(item, index) in dataSource" :key="index" class="card-item">
|
||||||
|
<a-checkbox></a-checkbox>
|
||||||
|
<div class="ml-8px flex-1">
|
||||||
|
<p class="name">{{ item.name }}</p>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">状态</span>
|
||||||
|
<div class="status-box" :class="`status-box-${item.status}`">
|
||||||
|
<span class="text">{{ STATUS_LIST.find((v) => v.value === item.status)?.label ?? '-' }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">平台</span>
|
||||||
|
<img :src="item.platform === 0 ? icon1 : icon2" width="20" height="19" />
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">账号ID</span>
|
||||||
|
<span class="cts">{{ item.account_id }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">手机号码</span>
|
||||||
|
<span class="cts">{{ item.mobile }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">运营人员</span>
|
||||||
|
<span class="cts">{{ item.operator?.name }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">分组</span>
|
||||||
|
<span class="cts">{{ item.group?.name }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">标签</span>
|
||||||
|
<div class="flex items-center">
|
||||||
|
<div v-for="(tag, index) in item.tags" :key="index" class="tag-box">
|
||||||
|
<span class="text">{{ tag.name }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="operate-row">
|
||||||
|
<img :src="icon3" width="16" height="16" class="mr-8px cursor-pointer" />
|
||||||
|
<a-button class="w-64px search-btn mr-8px" size="mini">
|
||||||
|
<template #default>暂停同步</template>
|
||||||
|
</a-button>
|
||||||
|
<a-button class="w-64px search-btn mr-8px" size="mini">
|
||||||
|
<template #default>重新授权</template>
|
||||||
|
</a-button>
|
||||||
|
<a-button class="w-40px search-btn" size="mini">
|
||||||
|
<template #default>编辑</template>
|
||||||
|
</a-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { defineProps } from 'vue';
|
||||||
|
import { STATUS_LIST } from '../../constants';
|
||||||
|
|
||||||
|
import icon1 from '@/assets/img/media-account/icon-dy.png';
|
||||||
|
import icon2 from '@/assets/img/media-account/icon-xhs.png';
|
||||||
|
import icon3 from '@/assets/img/media-account/icon-delete.png';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
dataSource: {
|
||||||
|
type: Array,
|
||||||
|
default: () => [],
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,103 @@
|
|||||||
|
.card-container {
|
||||||
|
flex: 1;
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: repeat(2, 1fr); /* 2行 */
|
||||||
|
grid-template-columns: repeat(4, 1fr); /* 4列 */
|
||||||
|
gap: 20px;
|
||||||
|
.card-item {
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid var(--BG-300, #e6e6e8);
|
||||||
|
background: var(--BG-white, #fff);
|
||||||
|
padding: 12px 16px 16px;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
.name {
|
||||||
|
color: var(--Text-1, #211f24);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-bottom: 11px;
|
||||||
|
// line-height: 22px; /* 157.143% */
|
||||||
|
}
|
||||||
|
.label {
|
||||||
|
color: var(--Text-3, #737478);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 12px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 20px; /* 166.667% */
|
||||||
|
}
|
||||||
|
.field-row {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
.cts {
|
||||||
|
color: var(--Text-2, #3c4043);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 12px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 20px; /* 166.667% */
|
||||||
|
}
|
||||||
|
.status-box {
|
||||||
|
display: flex;
|
||||||
|
padding: 0px 8px;
|
||||||
|
align-items: center;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: #f2f3f5;
|
||||||
|
.text {
|
||||||
|
color: var(--BG-700, #737478);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 12px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 20px; /* 166.667% */
|
||||||
|
}
|
||||||
|
|
||||||
|
&-1 {
|
||||||
|
background: #ebf7f2;
|
||||||
|
.text {
|
||||||
|
color: #25c883;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-2 {
|
||||||
|
background: #ffe7e4;
|
||||||
|
.text {
|
||||||
|
color: #f64b31;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tag-box {
|
||||||
|
display: flex;
|
||||||
|
height: 16px;
|
||||||
|
padding: 0px 4px;
|
||||||
|
align-items: center;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: var(--BG-200, #f2f3f5);
|
||||||
|
.text {
|
||||||
|
color: var(--Text-2, #3c4043);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 10px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
&:not(:last-child) {
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 17:51:46
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<a-modal v-model:visible="visible" width="800px" modal-class="add-account-modal" :footer="false" @close="close">
|
||||||
|
<template #title> 添加账号 </template>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { defineExpose } from 'vue';
|
||||||
|
|
||||||
|
const visible = ref(false);
|
||||||
|
const open = () => {
|
||||||
|
visible.value = true;
|
||||||
|
};
|
||||||
|
const close = () => {
|
||||||
|
visible.value = false;
|
||||||
|
};
|
||||||
|
const handleOk = () => {
|
||||||
|
console.log('handleOk');
|
||||||
|
};
|
||||||
|
defineExpose({
|
||||||
|
open,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
.add-account-modal {
|
||||||
|
.arco-modal-header {
|
||||||
|
border-bottom: none;
|
||||||
|
height: 56px;
|
||||||
|
padding: 22px 24px 16px 24px;
|
||||||
|
.arco-modal-title {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.arco-modal-body {
|
||||||
|
padding: 16px 24px 20px;
|
||||||
|
}
|
||||||
|
.arco-modal-footer {
|
||||||
|
border-top: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,160 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 14:02:40
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<div class="container px-24px pt-12px pb-24px">
|
||||||
|
<div class="filter-row flex mb-20px">
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">账号名称/ID/手机号</span>
|
||||||
|
<a-space size="medium">
|
||||||
|
<a-input
|
||||||
|
v-model="query.search"
|
||||||
|
class="w-240px"
|
||||||
|
placeholder="请搜索..."
|
||||||
|
size="medium"
|
||||||
|
allow-clear
|
||||||
|
@change="handleSearch"
|
||||||
|
>
|
||||||
|
<template #prefix>
|
||||||
|
<icon-search />
|
||||||
|
</template>
|
||||||
|
</a-input>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">状态</span>
|
||||||
|
<a-space class="w-160px">
|
||||||
|
<a-select v-model="query.status" size="medium" placeholder="全部" allow-clear @change="handleSearch">
|
||||||
|
<a-option v-for="(item, index) in STATUS_LIST" :key="index" :value="item.value" :label="item.label">{{
|
||||||
|
item.label
|
||||||
|
}}</a-option>
|
||||||
|
</a-select>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">平台</span>
|
||||||
|
<a-space class="w-160px">
|
||||||
|
<a-select v-model="query.platform" size="medium" placeholder="全部" allow-clear @change="handleSearch">
|
||||||
|
<a-option v-for="(item, index) in PLATFORM_LIST" :key="index" :value="item.value" :label="item.label">{{
|
||||||
|
item.label
|
||||||
|
}}</a-option>
|
||||||
|
</a-select>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">运营人员</span>
|
||||||
|
<a-space class="w-160px">
|
||||||
|
<a-select v-model="query.operator_id" size="medium" placeholder="全部" allow-clear @change="handleSearch">
|
||||||
|
<a-option v-for="(item, index) in operators" :key="index" :value="item.id" :label="item.name">{{
|
||||||
|
item.name
|
||||||
|
}}</a-option>
|
||||||
|
</a-select>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="filter-row flex mb-20px">
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">分组</span>
|
||||||
|
<a-space class="w-200px">
|
||||||
|
<a-select
|
||||||
|
v-model="query.group_ids"
|
||||||
|
size="medium"
|
||||||
|
multiple
|
||||||
|
placeholder="全部"
|
||||||
|
allow-clear
|
||||||
|
@change="handleSearch"
|
||||||
|
>
|
||||||
|
<a-option v-for="(item, index) in groups" :key="index" :value="item.id" :label="item.name">{{
|
||||||
|
item.name
|
||||||
|
}}</a-option>
|
||||||
|
</a-select>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">标签</span>
|
||||||
|
<a-space class="w-320px">
|
||||||
|
<a-select
|
||||||
|
v-model="query.tag_ids"
|
||||||
|
multiple
|
||||||
|
size="medium"
|
||||||
|
placeholder="全部"
|
||||||
|
allow-clear
|
||||||
|
@change="handleSearch"
|
||||||
|
>
|
||||||
|
<a-option v-for="(item, index) in tags" :key="index" :value="item.id" :label="item.name">{{
|
||||||
|
item.name
|
||||||
|
}}</a-option>
|
||||||
|
</a-select>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a-space class="flex items-center">
|
||||||
|
<a-button class="w-84px search-btn" size="medium" @click="handleSearch">
|
||||||
|
<template #icon>
|
||||||
|
<icon-search />
|
||||||
|
</template>
|
||||||
|
<template #default>搜索</template>
|
||||||
|
</a-button>
|
||||||
|
<a-button class="w-84px reset-btn" size="medium" @click="handleReset">
|
||||||
|
<template #icon>
|
||||||
|
<icon-refresh />
|
||||||
|
</template>
|
||||||
|
<template #default>重置</template>
|
||||||
|
</a-button>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { reactive, defineEmits, defineProps } from 'vue';
|
||||||
|
import { fetchAccountTags, fetchAccountGroups, fetchAccountOperators } from '@/api/all/propertyMarketing';
|
||||||
|
import {
|
||||||
|
INITIAL_QUERY,
|
||||||
|
PLATFORM_LIST,
|
||||||
|
STATUS_LIST,
|
||||||
|
} from '@/views/property-marketing/media-account/account-manage/constants';
|
||||||
|
|
||||||
|
const emits = defineEmits('onSearch', 'onReset');
|
||||||
|
|
||||||
|
const query = ref(cloneDeep(INITIAL_QUERY));
|
||||||
|
const tags = ref([]);
|
||||||
|
const groups = ref([]);
|
||||||
|
const operators = ref([]);
|
||||||
|
|
||||||
|
const handleSearch = () => {
|
||||||
|
emits('onSearch', query);
|
||||||
|
};
|
||||||
|
const handleReset = () => {
|
||||||
|
query.value = cloneDeep(INITIAL_QUERY);
|
||||||
|
emits('onReset');
|
||||||
|
};
|
||||||
|
const getTags = async () => {
|
||||||
|
const { code, data } = await fetchAccountTags();
|
||||||
|
if (code === 200) {
|
||||||
|
tags.value = data;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const getGroups = async () => {
|
||||||
|
const { code, data } = await fetchAccountGroups();
|
||||||
|
if (code === 200) {
|
||||||
|
tags.value = data;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const getOperators = async () => {
|
||||||
|
const { code, data } = await fetchAccountOperators();
|
||||||
|
if (code === 200) {
|
||||||
|
operators.value = data;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
getTags();
|
||||||
|
getGroups();
|
||||||
|
getOperators();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
.container {
|
||||||
|
:deep(.arco-input-wrapper),
|
||||||
|
:deep(.arco-select-view-single),
|
||||||
|
:deep(.arco-select-view-multiple) {
|
||||||
|
border-radius: 4px;
|
||||||
|
border-color: #d7d7d9;
|
||||||
|
background-color: #fff;
|
||||||
|
&:focus-within,
|
||||||
|
&.arco-input-focus {
|
||||||
|
background-color: var(--color-bg-2);
|
||||||
|
border-color: rgb(var(--primary-6));
|
||||||
|
box-shadow: 0 0 0 0 var(--color-primary-light-2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.filter-row {
|
||||||
|
.filter-row-item {
|
||||||
|
&:not(:last-child) {
|
||||||
|
margin-right: 24px;
|
||||||
|
}
|
||||||
|
.label {
|
||||||
|
margin-right: 8px;
|
||||||
|
color: #211f24;
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
flex-shrink: 0;
|
||||||
|
line-height: 22px; /* 157.143% */
|
||||||
|
}
|
||||||
|
:deep(.arco-space-item) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,32 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 17:51:46
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<a-modal v-model:visible="visible" width="800px" modal-class="account-manage-modal" :footer="false" @close="close">
|
||||||
|
<template #title> 分组管理 </template>
|
||||||
|
<template #footer> </template>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { defineExpose } from 'vue';
|
||||||
|
|
||||||
|
const visible = ref(false);
|
||||||
|
const open = () => {
|
||||||
|
visible.value = true;
|
||||||
|
};
|
||||||
|
const close = () => {
|
||||||
|
visible.value = false;
|
||||||
|
};
|
||||||
|
const handleOk = () => {
|
||||||
|
console.log('handleOk');
|
||||||
|
};
|
||||||
|
defineExpose({
|
||||||
|
open,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
.account-manage-modal {
|
||||||
|
.arco-modal-header {
|
||||||
|
border-bottom: none;
|
||||||
|
height: 56px;
|
||||||
|
padding: 22px 24px 16px 24px;
|
||||||
|
.arco-modal-title {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.arco-modal-body {
|
||||||
|
padding: 16px 24px 20px;
|
||||||
|
}
|
||||||
|
.arco-modal-footer {
|
||||||
|
border-top: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 17:51:46
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<a-modal v-model:visible="visible" width="800px" modal-class="tags-manage-modal" :footer="false" @close="close">
|
||||||
|
<template #title> 标签管理 </template>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { defineExpose } from 'vue';
|
||||||
|
|
||||||
|
const visible = ref(false);
|
||||||
|
const open = () => {
|
||||||
|
visible.value = true;
|
||||||
|
};
|
||||||
|
const close = () => {
|
||||||
|
visible.value = false;
|
||||||
|
};
|
||||||
|
const handleOk = () => {
|
||||||
|
console.log('handleOk');
|
||||||
|
};
|
||||||
|
defineExpose({
|
||||||
|
open,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
.tags-manage-modal {
|
||||||
|
.arco-modal-header {
|
||||||
|
border-bottom: none;
|
||||||
|
height: 56px;
|
||||||
|
padding: 22px 24px 16px 24px;
|
||||||
|
.arco-modal-title {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.arco-modal-body {
|
||||||
|
padding: 16px 24px 20px;
|
||||||
|
}
|
||||||
|
.arco-modal-footer {
|
||||||
|
border-top: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 15:24:59
|
||||||
|
*/
|
||||||
|
export const INITIAL_QUERY = {
|
||||||
|
search: '',
|
||||||
|
status: '',
|
||||||
|
platform: '',
|
||||||
|
operator_id: '',
|
||||||
|
group_ids: [],
|
||||||
|
tag_ids: [],
|
||||||
|
};
|
||||||
|
|
||||||
|
export const PLATFORM_LIST = [
|
||||||
|
{
|
||||||
|
label: '抖音',
|
||||||
|
value: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '小红书',
|
||||||
|
value: 1,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const STATUS_LIST = [
|
||||||
|
{
|
||||||
|
label: '未授权',
|
||||||
|
value: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '正常',
|
||||||
|
value: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '异常',
|
||||||
|
value: 2,
|
||||||
|
},
|
||||||
|
];
|
||||||
@ -0,0 +1,178 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 10:00:50
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<div class="account-manage-wrap">
|
||||||
|
<div class="filter-wrap bg-#fff border-radius-8px">
|
||||||
|
<div class="top flex h-64px px-24px py-10px justify-between items-center">
|
||||||
|
<p class="text-18px font-400 lh-26px color-#211F24 title">账号管理</p>
|
||||||
|
<div class="flex items-center">
|
||||||
|
<a-button class="w-112px mr-12px search-btn" size="medium" @click="handleOpenTagsModal">
|
||||||
|
<template #icon>
|
||||||
|
<img :src="icon3" width="16" height="16" />
|
||||||
|
</template>
|
||||||
|
<template #default>标签管理</template>
|
||||||
|
</a-button>
|
||||||
|
<a-button class="w-112px mr-12px search-btn" size="medium" @click="handleOpenGroupModal">
|
||||||
|
<template #icon>
|
||||||
|
<img :src="icon2" width="16" height="16" />
|
||||||
|
</template>
|
||||||
|
<template #default>分组管理</template>
|
||||||
|
</a-button>
|
||||||
|
<a-button type="primary" class="w-112px search-btn" size="medium" @click="handleOpenAccountModal">
|
||||||
|
<template #icon>
|
||||||
|
<img :src="icon1" width="16" height="16" />
|
||||||
|
</template>
|
||||||
|
<template #default>添加账号</template>
|
||||||
|
</a-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<FilterBlock @onSearch="handleSearch" @onReset="handleReset" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="tip-row flex justify-between px-16px py-10px w-100% my-12px h-42px"
|
||||||
|
:class="{
|
||||||
|
normal: isNormalStatus,
|
||||||
|
abnormal: isAbnormalStatus,
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<div class="flex items-center">
|
||||||
|
<template v-if="isNormalStatus || isAbnormalStatus">
|
||||||
|
<img :src="isNormalStatus ? icon4 : icon5" width="16" height="16" class="mr-8px" />
|
||||||
|
<span class="label">
|
||||||
|
{{
|
||||||
|
isNormalStatus
|
||||||
|
? '太棒啦!所有账号都在正常运行。'
|
||||||
|
: `共有 12 个账号存在授权异常,其中:7 个已掉线,5 个已超过 5 天未登录,有掉线风险。`
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a-space v-if="isAbnormalStatus" class="flex items-center">
|
||||||
|
<a-button class="w-96px err-btn" size="mini">
|
||||||
|
<template #default>查看异常账号</template>
|
||||||
|
</a-button>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-wrap">
|
||||||
|
<AccountTable :dataSource="dataSource" />
|
||||||
|
<div class="pagination-box">
|
||||||
|
<a-pagination
|
||||||
|
:total="pageInfo.total"
|
||||||
|
size="mini"
|
||||||
|
show-total
|
||||||
|
show-jumper
|
||||||
|
show-page-size
|
||||||
|
:current="pageInfo.page"
|
||||||
|
:page-size="pageInfo.pageSize"
|
||||||
|
@change="onPageChange"
|
||||||
|
@page-size-change="onPageSizeChange"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<GroupManageModal ref="groupManageModalRef" />
|
||||||
|
<TagsManageModal ref="tagsManageModalRef" />
|
||||||
|
<AddAccountModal ref="addAccountModalRef" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
import FilterBlock from './components/filter-block';
|
||||||
|
import AccountTable from './components/account-table';
|
||||||
|
import GroupManageModal from './components/group-manage-modal';
|
||||||
|
import TagsManageModal from './components/tags-manage-modal';
|
||||||
|
import AddAccountModal from './components/add-account-modal';
|
||||||
|
|
||||||
|
import { INITIAL_QUERY } from './constants';
|
||||||
|
|
||||||
|
import icon1 from '@/assets/img/media-account/icon-add.png';
|
||||||
|
import icon2 from '@/assets/img/media-account/icon-group.png';
|
||||||
|
import icon3 from '@/assets/img/media-account/icon-tag.png';
|
||||||
|
import icon4 from '@/assets/img/media-account/icon-success.png';
|
||||||
|
import icon5 from '@/assets/img/media-account/icon-warn.png';
|
||||||
|
|
||||||
|
const groupManageModalRef = ref(null);
|
||||||
|
const tagsManageModalRef = ref(null);
|
||||||
|
const addAccountModalRef = ref(null);
|
||||||
|
|
||||||
|
const tipStatus = ref(2);
|
||||||
|
const pageInfo = reactive({
|
||||||
|
page: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
total: 100,
|
||||||
|
});
|
||||||
|
const query = ref(cloneDeep(INITIAL_QUERY));
|
||||||
|
const dataSource = ref([]);
|
||||||
|
|
||||||
|
const isNormalStatus = computed(() => tipStatus.value === 1);
|
||||||
|
const isAbnormalStatus = computed(() => tipStatus.value === 2);
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
getData();
|
||||||
|
});
|
||||||
|
|
||||||
|
const getData = () => {
|
||||||
|
console.log('getData', query.value, pageInfo);
|
||||||
|
dataSource.value = new Array(8).fill({
|
||||||
|
id: 1,
|
||||||
|
name: '全球',
|
||||||
|
account_id: 1,
|
||||||
|
mobile: 1777777,
|
||||||
|
status: 1,
|
||||||
|
platform: 0,
|
||||||
|
operator: {
|
||||||
|
name: '小周',
|
||||||
|
},
|
||||||
|
group: {
|
||||||
|
name: '美团组',
|
||||||
|
},
|
||||||
|
tags: [
|
||||||
|
{
|
||||||
|
name: '标签1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '标签2',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const handleSearch = (newQuery) => {
|
||||||
|
query.value = { ...newQuery };
|
||||||
|
getData();
|
||||||
|
};
|
||||||
|
const handleReset = () => {
|
||||||
|
query.value = cloneDeep(INITIAL_QUERY);
|
||||||
|
getData();
|
||||||
|
};
|
||||||
|
|
||||||
|
const onPageChange = (current) => {
|
||||||
|
pageInfo.page = current;
|
||||||
|
getData();
|
||||||
|
};
|
||||||
|
const onPageSizeChange = (pageSize) => {
|
||||||
|
pageInfo.pageSize = pageSize;
|
||||||
|
pageInfo.page = 1;
|
||||||
|
getData();
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleOpenGroupModal = () => {
|
||||||
|
groupManageModalRef.value?.open();
|
||||||
|
};
|
||||||
|
const handleOpenTagsModal = () => {
|
||||||
|
tagsManageModalRef.value?.open();
|
||||||
|
};
|
||||||
|
const handleOpenAccountModal = () => {
|
||||||
|
addAccountModalRef.value?.open();
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,106 @@
|
|||||||
|
.account-manage-wrap {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
:deep(.search-btn) {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--Brand-Brand-6, #6d4cfe);
|
||||||
|
color: #6d4cfe;
|
||||||
|
}
|
||||||
|
:deep(.reset-btn) {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--BG-500, #b1b2b5);
|
||||||
|
background: var(--BG-white, #fff);
|
||||||
|
}
|
||||||
|
.filter-wrap {
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #e6e6e8;
|
||||||
|
.top {
|
||||||
|
.title {
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
:deep(.arco-btn) {
|
||||||
|
.arco-btn-icon {
|
||||||
|
line-height: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tip-row {
|
||||||
|
border-radius: 2px;
|
||||||
|
background: #f0edff;
|
||||||
|
.label {
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 22px;
|
||||||
|
}
|
||||||
|
&.normal {
|
||||||
|
background: #ebf7f2;
|
||||||
|
.label {
|
||||||
|
color: #211f24;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.abnormal {
|
||||||
|
background: #ffe7e4;
|
||||||
|
.label {
|
||||||
|
color: #211f24;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.err-btn {
|
||||||
|
background-color: #f64b31 !important;
|
||||||
|
color: var(--BG-white, #fff);
|
||||||
|
font-family: 'PingFang SC';
|
||||||
|
font-size: 12px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 20px; /* 166.667% */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.card-wrap {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
.pagination-box {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
padding: 16px 24px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
:deep(.arco-pagination) {
|
||||||
|
.arco-pagination-list {
|
||||||
|
.arco-pagination-item {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--BG-300, #e6e6e8);
|
||||||
|
&.arco-pagination-item-ellipsis {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.arco-pagination-item-active {
|
||||||
|
background-color: transparent;
|
||||||
|
border: 1px solid var(--Brand-Brand-6, #6d4cfe);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.arco-pagination-jumper-input {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--BG-300, #e6e6e8);
|
||||||
|
}
|
||||||
|
.arco-pagination-jumper-prepend {
|
||||||
|
color: var(--Text-2, #3c4043);
|
||||||
|
text-align: right;
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 22px; /* 157.143% */
|
||||||
|
}
|
||||||
|
.arco-select-view-single {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--BG-300, #e6e6e8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,80 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 15:31:15
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<div class="card-container">
|
||||||
|
<div v-for="(item, index) in dataSource" :key="index" class="card-item">
|
||||||
|
<a-checkbox></a-checkbox>
|
||||||
|
<div class="ml-8px flex-1">
|
||||||
|
<p class="name">{{ item.name }}</p>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">状态</span>
|
||||||
|
<div class="status-box" :class="`status-box-${item.status}`">
|
||||||
|
<span class="text">{{ STATUS_LIST.find((v) => v.value === item.status)?.label ?? '-' }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">平台</span>
|
||||||
|
<img :src="item.platform === 0 ? icon1 : icon2" width="20" height="19" />
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">账号ID</span>
|
||||||
|
<span class="cts">{{ item.account_id }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">手机号码</span>
|
||||||
|
<span class="cts">{{ item.mobile }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">运营人员</span>
|
||||||
|
<span class="cts">{{ item.operator?.name }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">分组</span>
|
||||||
|
<span class="cts">{{ item.group?.name }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="field-row">
|
||||||
|
<span class="label">标签</span>
|
||||||
|
<div class="flex items-center">
|
||||||
|
<div v-for="(tag, index) in item.tags" :key="index" class="tag-box">
|
||||||
|
<span class="text">{{ tag.name }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="operate-row">
|
||||||
|
<img :src="icon3" width="16" height="16" class="mr-8px cursor-pointer" />
|
||||||
|
<a-button class="w-64px search-btn mr-8px" size="mini">
|
||||||
|
<template #default>暂停同步</template>
|
||||||
|
</a-button>
|
||||||
|
<a-button class="w-64px search-btn mr-8px" size="mini">
|
||||||
|
<template #default>获取凭证</template>
|
||||||
|
</a-button>
|
||||||
|
<a-button class="w-40px search-btn" size="mini">
|
||||||
|
<template #default>编辑</template>
|
||||||
|
</a-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { defineProps } from 'vue';
|
||||||
|
import { STATUS_LIST } from '../../constants';
|
||||||
|
|
||||||
|
import icon1 from '@/assets/img/media-account/icon-dy.png';
|
||||||
|
import icon2 from '@/assets/img/media-account/icon-xhs.png';
|
||||||
|
import icon3 from '@/assets/img/media-account/icon-delete.png';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
dataSource: {
|
||||||
|
type: Array,
|
||||||
|
default: () => [],
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,103 @@
|
|||||||
|
.card-container {
|
||||||
|
flex: 1;
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: repeat(2, 1fr); /* 2行 */
|
||||||
|
grid-template-columns: repeat(4, 1fr); /* 4列 */
|
||||||
|
gap: 20px;
|
||||||
|
.card-item {
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid var(--BG-300, #e6e6e8);
|
||||||
|
background: var(--BG-white, #fff);
|
||||||
|
padding: 12px 16px 16px;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
.name {
|
||||||
|
color: var(--Text-1, #211f24);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-bottom: 11px;
|
||||||
|
// line-height: 22px; /* 157.143% */
|
||||||
|
}
|
||||||
|
.label {
|
||||||
|
color: var(--Text-3, #737478);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 12px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 20px; /* 166.667% */
|
||||||
|
}
|
||||||
|
.field-row {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
.cts {
|
||||||
|
color: var(--Text-2, #3c4043);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 12px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 20px; /* 166.667% */
|
||||||
|
}
|
||||||
|
.status-box {
|
||||||
|
display: flex;
|
||||||
|
padding: 0px 8px;
|
||||||
|
align-items: center;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: #f2f3f5;
|
||||||
|
.text {
|
||||||
|
color: var(--BG-700, #737478);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 12px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 20px; /* 166.667% */
|
||||||
|
}
|
||||||
|
|
||||||
|
&-1 {
|
||||||
|
background: #ebf7f2;
|
||||||
|
.text {
|
||||||
|
color: #25c883;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&-2 {
|
||||||
|
background: #ffe7e4;
|
||||||
|
.text {
|
||||||
|
color: #f64b31;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tag-box {
|
||||||
|
display: flex;
|
||||||
|
height: 16px;
|
||||||
|
padding: 0px 4px;
|
||||||
|
align-items: center;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: var(--BG-200, #f2f3f5);
|
||||||
|
.text {
|
||||||
|
color: var(--Text-2, #3c4043);
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 10px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
&:not(:last-child) {
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.operate-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,94 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 14:02:40
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<div class="container px-24px pt-12px pb-24px">
|
||||||
|
<div class="filter-row flex mb-20px">
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">账号名称/ID/手机号</span>
|
||||||
|
<a-space size="medium">
|
||||||
|
<a-input
|
||||||
|
v-model="query.search"
|
||||||
|
class="w-240px"
|
||||||
|
placeholder="请搜索..."
|
||||||
|
size="medium"
|
||||||
|
allow-clear
|
||||||
|
@change="handleSearch"
|
||||||
|
>
|
||||||
|
<template #prefix>
|
||||||
|
<icon-search />
|
||||||
|
</template>
|
||||||
|
</a-input>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">状态</span>
|
||||||
|
<a-space class="w-160px">
|
||||||
|
<a-select v-model="query.status" size="medium" placeholder="全部" allow-clear @change="handleSearch">
|
||||||
|
<a-option v-for="(item, index) in STATUS_LIST" :key="index" :value="item.value" :label="item.label">{{
|
||||||
|
item.label
|
||||||
|
}}</a-option>
|
||||||
|
</a-select>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">平台</span>
|
||||||
|
<a-space class="w-160px">
|
||||||
|
<a-select v-model="query.platform" size="medium" placeholder="全部" allow-clear @change="handleSearch">
|
||||||
|
<a-option v-for="(item, index) in PLATFORM_LIST" :key="index" :value="item.value" :label="item.label">{{
|
||||||
|
item.label
|
||||||
|
}}</a-option>
|
||||||
|
</a-select>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
<div class="filter-row-item flex items-center">
|
||||||
|
<span class="label">运营人员</span>
|
||||||
|
<a-space class="w-160px">
|
||||||
|
<a-select v-model="query.operator_id" size="medium" placeholder="全部" allow-clear @change="handleSearch">
|
||||||
|
<a-option value="Beijing" label="Beijing">Beijing</a-option>
|
||||||
|
</a-select>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a-space class="flex items-center">
|
||||||
|
<a-button class="w-84px search-btn" size="medium" @click="handleSearch">
|
||||||
|
<template #icon>
|
||||||
|
<icon-search />
|
||||||
|
</template>
|
||||||
|
<template #default>搜索</template>
|
||||||
|
</a-button>
|
||||||
|
<a-button class="w-84px reset-btn" size="medium" @click="handleReset">
|
||||||
|
<template #icon>
|
||||||
|
<icon-refresh />
|
||||||
|
</template>
|
||||||
|
<template #default>重置</template>
|
||||||
|
</a-button>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { reactive, defineEmits, defineProps } from 'vue';
|
||||||
|
import {
|
||||||
|
INITIAL_QUERY,
|
||||||
|
PLATFORM_LIST,
|
||||||
|
STATUS_LIST,
|
||||||
|
} from '@/views/property-marketing/media-account/account-manage/constants';
|
||||||
|
|
||||||
|
const emits = defineEmits('onSearch', 'onReset');
|
||||||
|
|
||||||
|
const query = ref(cloneDeep(INITIAL_QUERY));
|
||||||
|
|
||||||
|
const handleSearch = () => {
|
||||||
|
emits('onSearch', query);
|
||||||
|
};
|
||||||
|
const handleReset = () => {
|
||||||
|
query.value = cloneDeep(INITIAL_QUERY);
|
||||||
|
emits('onReset');
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
.container {
|
||||||
|
:deep(.arco-input-wrapper),
|
||||||
|
:deep(.arco-select-view-single),
|
||||||
|
:deep(.arco-select-view-multiple) {
|
||||||
|
border-radius: 4px;
|
||||||
|
border-color: #d7d7d9;
|
||||||
|
background-color: #fff;
|
||||||
|
&:focus-within,
|
||||||
|
&.arco-input-focus {
|
||||||
|
background-color: var(--color-bg-2);
|
||||||
|
border-color: rgb(var(--primary-6));
|
||||||
|
box-shadow: 0 0 0 0 var(--color-primary-light-2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.filter-row {
|
||||||
|
.filter-row-item {
|
||||||
|
&:not(:last-child) {
|
||||||
|
margin-right: 24px;
|
||||||
|
}
|
||||||
|
.label {
|
||||||
|
margin-right: 8px;
|
||||||
|
color: #211f24;
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
flex-shrink: 0;
|
||||||
|
line-height: 22px; /* 157.143% */
|
||||||
|
}
|
||||||
|
:deep(.arco-space-item) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 15:24:59
|
||||||
|
*/
|
||||||
|
export const INITIAL_QUERY = {
|
||||||
|
search: '',
|
||||||
|
status: '',
|
||||||
|
platform: '',
|
||||||
|
operator_id: '',
|
||||||
|
};
|
||||||
|
|
||||||
|
export const PLATFORM_LIST = [
|
||||||
|
{
|
||||||
|
label: '抖音',
|
||||||
|
value: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '小红书',
|
||||||
|
value: 1,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export const STATUS_LIST = [
|
||||||
|
{
|
||||||
|
label: '未授权',
|
||||||
|
value: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '正常',
|
||||||
|
value: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '异常',
|
||||||
|
value: 2,
|
||||||
|
},
|
||||||
|
];
|
||||||
@ -0,0 +1,143 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: RenXiaoDong
|
||||||
|
* @Date: 2025-06-25 10:00:50
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<div class="account-manage-wrap">
|
||||||
|
<div class="filter-wrap bg-#fff border-radius-8px">
|
||||||
|
<div class="top flex h-64px px-24px py-10px justify-between items-center">
|
||||||
|
<p class="text-18px font-400 lh-26px color-#211F24 title">账户管理</p>
|
||||||
|
<div class="flex items-center">
|
||||||
|
<a-button type="primary" class="w-139px search-btn" size="medium">
|
||||||
|
<template #icon>
|
||||||
|
<img :src="icon1" width="16" height="16" />
|
||||||
|
</template>
|
||||||
|
<template #default>添加投放账号</template>
|
||||||
|
</a-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<FilterBlock @onSearch="handleSearch" @onReset="handleReset" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="tip-row flex justify-between px-16px py-10px w-100% my-12px h-42px"
|
||||||
|
:class="{
|
||||||
|
normal: isNormalStatus,
|
||||||
|
abnormal: isAbnormalStatus,
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<div class="flex items-center">
|
||||||
|
<template v-if="isNormalStatus || isAbnormalStatus">
|
||||||
|
<img :src="isNormalStatus ? icon4 : icon5" width="16" height="16" class="mr-8px" />
|
||||||
|
<span class="label">
|
||||||
|
{{
|
||||||
|
isNormalStatus
|
||||||
|
? '太棒啦!所有账号都在正常运行。'
|
||||||
|
: `共有 12 个账号存在授权异常,其中:7 个已掉线,5 个已超过 5 天未登录,有掉线风险。`
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a-space v-if="isAbnormalStatus" class="flex items-center">
|
||||||
|
<a-button class="w-96px err-btn" size="mini">
|
||||||
|
<template #default>查看异常账号</template>
|
||||||
|
</a-button>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-wrap">
|
||||||
|
<AccountTable :dataSource="dataSource" />
|
||||||
|
<div class="pagination-box">
|
||||||
|
<a-pagination
|
||||||
|
:total="pageInfo.total"
|
||||||
|
size="mini"
|
||||||
|
show-total
|
||||||
|
show-jumper
|
||||||
|
show-page-size
|
||||||
|
:current="pageInfo.page"
|
||||||
|
:page-size="pageInfo.pageSize"
|
||||||
|
@change="onPageChange"
|
||||||
|
@page-size-change="onPageSizeChange"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
import FilterBlock from './components/filter-block';
|
||||||
|
import AccountTable from './components/account-table';
|
||||||
|
import { INITIAL_QUERY } from './constants';
|
||||||
|
|
||||||
|
import icon1 from '@/assets/img/media-account/icon-add.png';
|
||||||
|
import icon4 from '@/assets/img/media-account/icon-success.png';
|
||||||
|
import icon5 from '@/assets/img/media-account/icon-warn.png';
|
||||||
|
|
||||||
|
const tipStatus = ref(2);
|
||||||
|
const pageInfo = reactive({
|
||||||
|
page: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
total: 100,
|
||||||
|
});
|
||||||
|
|
||||||
|
const query = ref(cloneDeep(INITIAL_QUERY));
|
||||||
|
const dataSource = ref([]);
|
||||||
|
|
||||||
|
const isNormalStatus = computed(() => tipStatus.value === 1);
|
||||||
|
const isAbnormalStatus = computed(() => tipStatus.value === 2);
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
getData();
|
||||||
|
});
|
||||||
|
|
||||||
|
const getData = () => {
|
||||||
|
console.log('getData', query.value, pageInfo);
|
||||||
|
dataSource.value = new Array(8).fill({
|
||||||
|
id: 1,
|
||||||
|
name: '全球',
|
||||||
|
account_id: 1,
|
||||||
|
mobile: 1777777,
|
||||||
|
status: 1,
|
||||||
|
platform: 0,
|
||||||
|
operator: {
|
||||||
|
name: '小周',
|
||||||
|
},
|
||||||
|
group: {
|
||||||
|
name: '美团组',
|
||||||
|
},
|
||||||
|
tags: [
|
||||||
|
{
|
||||||
|
name: '标签1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '标签2',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const handleSearch = (newQuery) => {
|
||||||
|
query.value = { ...newQuery };
|
||||||
|
getData();
|
||||||
|
};
|
||||||
|
const handleReset = () => {
|
||||||
|
query.value = cloneDeep(INITIAL_QUERY);
|
||||||
|
getData();
|
||||||
|
};
|
||||||
|
|
||||||
|
const onPageChange = (current) => {
|
||||||
|
pageInfo.page = current;
|
||||||
|
getData();
|
||||||
|
};
|
||||||
|
const onPageSizeChange = (pageSize) => {
|
||||||
|
pageInfo.pageSize = pageSize;
|
||||||
|
pageInfo.page = 1;
|
||||||
|
getData();
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import './style.scss';
|
||||||
|
</style>
|
||||||
@ -0,0 +1,106 @@
|
|||||||
|
.account-manage-wrap {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
:deep(.search-btn) {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--Brand-Brand-6, #6d4cfe);
|
||||||
|
color: #6d4cfe;
|
||||||
|
}
|
||||||
|
:deep(.reset-btn) {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--BG-500, #b1b2b5);
|
||||||
|
background: var(--BG-white, #fff);
|
||||||
|
}
|
||||||
|
.filter-wrap {
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #e6e6e8;
|
||||||
|
.top {
|
||||||
|
.title {
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
:deep(.arco-btn) {
|
||||||
|
.arco-btn-icon {
|
||||||
|
line-height: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tip-row {
|
||||||
|
border-radius: 2px;
|
||||||
|
background: #f0edff;
|
||||||
|
.label {
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 22px;
|
||||||
|
}
|
||||||
|
&.normal {
|
||||||
|
background: #ebf7f2;
|
||||||
|
.label {
|
||||||
|
color: #211f24;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.abnormal {
|
||||||
|
background: #ffe7e4;
|
||||||
|
.label {
|
||||||
|
color: #211f24;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.err-btn {
|
||||||
|
background-color: #f64b31 !important;
|
||||||
|
color: var(--BG-white, #fff);
|
||||||
|
font-family: 'PingFang SC';
|
||||||
|
font-size: 12px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 20px; /* 166.667% */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.card-wrap {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
.pagination-box {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
padding: 16px 24px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
:deep(.arco-pagination) {
|
||||||
|
.arco-pagination-list {
|
||||||
|
.arco-pagination-item {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--BG-300, #e6e6e8);
|
||||||
|
&.arco-pagination-item-ellipsis {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.arco-pagination-item-active {
|
||||||
|
background-color: transparent;
|
||||||
|
border: 1px solid var(--Brand-Brand-6, #6d4cfe);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.arco-pagination-jumper-input {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--BG-300, #e6e6e8);
|
||||||
|
}
|
||||||
|
.arco-pagination-jumper-prepend {
|
||||||
|
color: var(--Text-2, #3c4043);
|
||||||
|
text-align: right;
|
||||||
|
font-family: 'Alibaba PuHuiTi';
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 22px; /* 157.143% */
|
||||||
|
}
|
||||||
|
.arco-select-view-single {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid var(--BG-300, #e6e6e8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||