Browse Source

图表增加字段

develop
fuguobin 1 year ago
parent
commit
1b1ff6fe2c
  1. 2
      src/api/device/types.ts
  2. 2
      src/types/auto-imports.d.ts
  3. 2
      src/views/dataScreen/screen/index.scss
  4. 3
      src/views/details/index.vue
  5. 2
      src/views/monitoring/screen/index.scss
  6. 2
      vite.config.ts

2
src/api/device/types.ts

@ -90,6 +90,8 @@ export interface seriesVo {
symbol: string;
paramUnit: string;
unit: string;
unitMax: number;
unitMin: number;
data: Array<string | number>;
}
export interface mainInfoVo {

2
src/types/auto-imports.d.ts

@ -2,6 +2,7 @@
export {}
declare global {
const EffectScope: typeof import('vue')['EffectScope']
const ElForm: typeof import('element-plus/es')['ElForm']
const ElMessage: typeof import('element-plus/es')['ElMessage']
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const ElNotification: typeof import('element-plus/es')['ElNotification']
@ -272,6 +273,7 @@ import { UnwrapRef } from 'vue'
declare module 'vue' {
interface ComponentCustomProperties {
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
readonly ElForm: UnwrapRef<typeof import('element-plus/es')['ElForm']>
readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
readonly ElNotification: UnwrapRef<typeof import('element-plus/es')['ElNotification']>

2
src/views/dataScreen/screen/index.scss

@ -376,7 +376,7 @@
align-items: center;
.warning {
font-size: 15px;
font-size: 18px;
font-weight: bold;
color: red;
}

3
src/views/details/index.vue

@ -836,6 +836,9 @@ function init(data: any) {
offset: offsetData,
scale: true, //
// minInterval: 1, //
min: item.unitMin, //
max: item.unitMax, //
// interval: 10, //
nameTextStyle: {
fontSize: 12,
padding: [0, 0, 0, 0] //name

2
src/views/monitoring/screen/index.scss

@ -398,7 +398,7 @@
align-items: center;
.warning {
font-size: 15px;
font-size: 18px;
font-weight: bold;
color: red;
}

2
vite.config.ts

@ -46,7 +46,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
proxy: {
'/dev-api': {
// target: 'http://172.1.2.132:9010/', //本地接口地址
// target: 'http://172.1.2.57:9010/', //本地接口地址
// target: 'http://172.1.2.90:9010/', //本地接口地址
target: 'http://10.10.10.56:9010/', //线上测试接口地址
changeOrigin: true,
rewrite: path => path.replace(/^\/dev-api/, '')

Loading…
Cancel
Save