引入依赖错误
parent
23c3ec8294
commit
433a4bfab9
|
@ -1,6 +1,6 @@
|
||||||
import { BasicColumn } from '/@/components/Table';
|
import { BasicColumn } from '/@/components/Table';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import lodash from 'lodash-es';
|
import _get from 'lodash.get';
|
||||||
import { h } from 'vue';
|
import { h } from 'vue';
|
||||||
import { Tag } from 'ant-design-vue';
|
import { Tag } from 'ant-design-vue';
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'request.method',
|
dataIndex: 'request.method',
|
||||||
width: 20,
|
width: 20,
|
||||||
customRender({ record, column }) {
|
customRender({ record, column }) {
|
||||||
let value = lodash.get(record, column.dataIndex!);
|
let value = _get(record, column.dataIndex!);
|
||||||
let color = '';
|
let color = '';
|
||||||
if (value === 'GET') {
|
if (value === 'GET') {
|
||||||
color = '#87d068';
|
color = '#87d068';
|
||||||
|
@ -40,7 +40,7 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'request.uri',
|
dataIndex: 'request.uri',
|
||||||
width: 200,
|
width: 200,
|
||||||
customRender({ record, column }) {
|
customRender({ record, column }) {
|
||||||
return lodash.get(record, column.dataIndex!);
|
return _get(record, column.dataIndex!);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -48,7 +48,7 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'response.status',
|
dataIndex: 'response.status',
|
||||||
width: 50,
|
width: 50,
|
||||||
customRender({ record, column }) {
|
customRender({ record, column }) {
|
||||||
let value = lodash.get(record, column.dataIndex!);
|
let value = _get(record, column.dataIndex!);
|
||||||
let color = '';
|
let color = '';
|
||||||
if (value < 200) {
|
if (value < 200) {
|
||||||
color = 'pink';
|
color = 'pink';
|
||||||
|
@ -69,7 +69,7 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'timeTaken',
|
dataIndex: 'timeTaken',
|
||||||
width: 50,
|
width: 50,
|
||||||
customRender({ record, column }) {
|
customRender({ record, column }) {
|
||||||
let value = lodash.get(record, column.dataIndex!);
|
let value = _get(record, column.dataIndex!);
|
||||||
let color = 'red';
|
let color = 'red';
|
||||||
if (value < 500) {
|
if (value < 500) {
|
||||||
color = 'green';
|
color = 'green';
|
||||||
|
|
Loading…
Reference in New Issue