mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 10:28:24 +08:00
feat: remove inner domain
This commit is contained in:
parent
952ad82983
commit
f81adfaf27
|
@ -1 +1,2 @@
|
||||||
|
// commit-lint config
|
||||||
module.exports = { extends: ['@commitlint/config-conventional'] };
|
module.exports = { extends: ['@commitlint/config-conventional'] };
|
||||||
|
|
|
@ -159,7 +159,7 @@ export function getBrandColor(type: string): ColorToken {
|
||||||
|
|
||||||
export function getColorList(colorArray: [ColorToken]): string[] {
|
export function getColorList(colorArray: [ColorToken]): string[] {
|
||||||
const pureColorList = [];
|
const pureColorList = [];
|
||||||
colorArray.map((colorToken) => Object.keys(colorToken).map((key) => pureColorList.push(colorToken[key])));
|
colorArray.map(colorToken => Object.keys(colorToken).map(key => pureColorList.push(colorToken[key])));
|
||||||
|
|
||||||
return pureColorList;
|
return pureColorList;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
export const PREFIX = 'tdesign-pro';
|
export const PREFIX = 'tdesign-pro';
|
||||||
export const THEME = 'light';
|
export const THEME = 'light';
|
||||||
// 登录方式设定,authenticationMethod取值有:smartProxy(走智能网关内网登录,要求.oa.co../.woa.co.. 等域名,且要求域名申请接入智能网关)
|
|
||||||
// customize(自定义登录,外网域名,统一重定向到登录页面)
|
// customize(自定义登录,外网域名,统一重定向到登录页面)
|
||||||
// export const authenticationMethod = 'smartProxy';
|
// export const authenticationMethod = 'smartProxy';
|
||||||
export const AUTHENTICATION_METHOD = 'customize';
|
export const AUTHENTICATION_METHOD = 'customize';
|
||||||
|
|
|
@ -2,29 +2,29 @@ export const PANE_LIST_DATA = [
|
||||||
{
|
{
|
||||||
title: '总申请数(次)',
|
title: '总申请数(次)',
|
||||||
count: 1126,
|
count: 1126,
|
||||||
percent: 10
|
percent: 10,
|
||||||
}, {
|
}, {
|
||||||
title: '供应商数量(个)',
|
title: '供应商数量(个)',
|
||||||
count: 1126,
|
count: 1126,
|
||||||
percent: -13
|
percent: -13,
|
||||||
}, {
|
}, {
|
||||||
title: '采购商品品类(类)',
|
title: '采购商品品类(类)',
|
||||||
count: 1126,
|
count: 1126,
|
||||||
percent: 10
|
percent: 10,
|
||||||
}, {
|
}, {
|
||||||
title: '申请人数量(人)',
|
title: '申请人数量(人)',
|
||||||
count: 1126,
|
count: 1126,
|
||||||
percent: 44
|
percent: 44,
|
||||||
}, {
|
}, {
|
||||||
title: '申请完成率(%)',
|
title: '申请完成率(%)',
|
||||||
count: 1126,
|
count: 1126,
|
||||||
percent: 70
|
percent: 70,
|
||||||
}, {
|
}, {
|
||||||
title: '到货及时率(%)',
|
title: '到货及时率(%)',
|
||||||
count: 78,
|
count: 78,
|
||||||
percent: 16
|
percent: 16,
|
||||||
}
|
},
|
||||||
]
|
];
|
||||||
|
|
||||||
export const PRODUCT_LIST = [
|
export const PRODUCT_LIST = [
|
||||||
{
|
{
|
||||||
|
@ -41,4 +41,4 @@ export const PRODUCT_LIST = [
|
||||||
name: 'SSL证书',
|
name: 'SSL证书',
|
||||||
type: 4,
|
type: 4,
|
||||||
},
|
},
|
||||||
]
|
];
|
||||||
|
|
|
@ -139,7 +139,7 @@ export const PRODUCT_LIST = [
|
||||||
memory: 'RAM 16GB',
|
memory: 'RAM 16GB',
|
||||||
info: '最高可选配 16GB 内存 · 最高可选配 2TB 存储设备 电池续航最长达 18 小时',
|
info: '最高可选配 16GB 内存 · 最高可选配 2TB 存储设备 电池续航最长达 18 小时',
|
||||||
use: 1420,
|
use: 1420,
|
||||||
stock: 1500
|
stock: 1500,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Surface Laptop Go',
|
name: 'Surface Laptop Go',
|
||||||
|
@ -149,6 +149,6 @@ export const PRODUCT_LIST = [
|
||||||
memory: 'RAM 16GB',
|
memory: 'RAM 16GB',
|
||||||
info: '常规使用 Surface,续航时间最长可达13小时 随时伴您工作',
|
info: '常规使用 Surface,续航时间最长可达13小时 随时伴您工作',
|
||||||
use: 120,
|
use: 120,
|
||||||
stock: 2000
|
stock: 2000,
|
||||||
}
|
},
|
||||||
]
|
];
|
||||||
|
|
|
@ -75,4 +75,4 @@ export const BASE_INFO_DATA = [
|
||||||
value: '2020-12-22 10:00:00',
|
value: '2020-12-22 10:00:00',
|
||||||
type: null,
|
type: null,
|
||||||
},
|
},
|
||||||
]
|
];
|
||||||
|
|
|
@ -8,7 +8,7 @@ export const FORM_RULES = {
|
||||||
signDate: [{ required: true, message: '请选择日期', type: 'error' }],
|
signDate: [{ required: true, message: '请选择日期', type: 'error' }],
|
||||||
startDate: [{ required: true, message: '请选择日期', type: 'error' }],
|
startDate: [{ required: true, message: '请选择日期', type: 'error' }],
|
||||||
endDate: [{ required: true, message: '请选择日期', type: 'error' }],
|
endDate: [{ required: true, message: '请选择日期', type: 'error' }],
|
||||||
}
|
};
|
||||||
|
|
||||||
export const INITIAL_DATA = {
|
export const INITIAL_DATA = {
|
||||||
name: '',
|
name: '',
|
||||||
|
@ -20,23 +20,23 @@ export const INITIAL_DATA = {
|
||||||
endDate: '',
|
endDate: '',
|
||||||
payment: '1',
|
payment: '1',
|
||||||
amount: 0,
|
amount: 0,
|
||||||
comment: ''
|
comment: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const TYPE_OPTIONS = [
|
export const TYPE_OPTIONS = [
|
||||||
{ label: '类型A', value: '1' },
|
{ label: '类型A', value: '1' },
|
||||||
{ label: '类型B', value: '2' },
|
{ label: '类型B', value: '2' },
|
||||||
{ label: '类型C', value: '3' },
|
{ label: '类型C', value: '3' },
|
||||||
]
|
];
|
||||||
|
|
||||||
export const PARTY_A_OPTIONS = [
|
export const PARTY_A_OPTIONS = [
|
||||||
{ label: '公司A', value: '1' },
|
{ label: '公司A', value: '1' },
|
||||||
{ label: '公司B', value: '2' },
|
{ label: '公司B', value: '2' },
|
||||||
{ label: '公司C', value: '3' },
|
{ label: '公司C', value: '3' },
|
||||||
]
|
];
|
||||||
|
|
||||||
export const PARTY_B_OPTIONS = [
|
export const PARTY_B_OPTIONS = [
|
||||||
{ label: '公司A', value: '1' },
|
{ label: '公司A', value: '1' },
|
||||||
{ label: '公司B', value: '2' },
|
{ label: '公司B', value: '2' },
|
||||||
{ label: '公司C', value: '3' },
|
{ label: '公司C', value: '3' },
|
||||||
]
|
];
|
||||||
|
|
|
@ -45,4 +45,4 @@ export const COLUMNS = [
|
||||||
colKey: 'op',
|
colKey: 'op',
|
||||||
title: '操作',
|
title: '操作',
|
||||||
},
|
},
|
||||||
]
|
];
|
||||||
|
|
|
@ -83,4 +83,4 @@ export const TREE_DATA = [
|
||||||
label: '湖北',
|
label: '湖北',
|
||||||
value: 4,
|
value: 4,
|
||||||
},
|
},
|
||||||
]
|
];
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// style-lint config
|
||||||
module.exports = {
|
module.exports = {
|
||||||
defaultSeverity: 'error',
|
defaultSeverity: 'error',
|
||||||
extends: ['stylelint-config-airbnb'],
|
extends: ['stylelint-config-airbnb'],
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { viteMockServe } from 'vite-plugin-mock';
|
||||||
import { viteThemePlugin } from 'vite-plugin-theme';
|
import { viteThemePlugin } from 'vite-plugin-theme';
|
||||||
import createVuePlugin from '@vitejs/plugin-vue';
|
import createVuePlugin from '@vitejs/plugin-vue';
|
||||||
import vueJsx from '@vitejs/plugin-vue-jsx';
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||||
import svgLoader from 'vite-svg-loader'
|
import svgLoader from 'vite-svg-loader';
|
||||||
|
|
||||||
// import HttpProxyAgent from 'http-proxy-agent';
|
// import HttpProxyAgent from 'http-proxy-agent';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user