diff --git a/src/components/chart/Bar.vue b/src/components/chart/Bar.vue
index 796330f..b0e5b8c 100644
--- a/src/components/chart/Bar.vue
+++ b/src/components/chart/Bar.vue
@@ -37,6 +37,19 @@
type: String,
default: '#1890ff',
},
+ axisLabel: {
+ type: Object,
+ default: () => ({ rotate: 0}),
+ },
+ grid: {
+ type: Object,
+ default: () => ({
+ left: '3%',
+ right: '4%',
+ bottom: '3%',
+ containLabel: true
+ }),
+ },
// update-end--author:liaozhiyang---date:20240407---for:【QQYUN-8762】首页默认及echars颜色调整
},
setup(props) {
@@ -53,9 +66,11 @@
},
},
},
+ grid: props.grid,
xAxis: {
type: 'category',
data: [],
+ axisLabel: props.axisLabel,
},
yAxis: {
type: 'value',
diff --git a/src/views/zh/hy/tdcs/index.vue b/src/views/zh/hy/tdcs/index.vue
index 65a596b..274a4c6 100644
--- a/src/views/zh/hy/tdcs/index.vue
+++ b/src/views/zh/hy/tdcs/index.vue
@@ -272,13 +272,13 @@ const handleBlock = (record) => {
onMounted(() => {
- getHousingestates();
if (parmas.type == '1') {
parmas.beginTime = getPreviousDate(0) + ' 00:00:00';
parmas.endTime = getPreviousDate(0) + ' 23:59:59';
}
loadDate();
loadListDate();
+ getHousingestates();
})
diff --git a/src/views/zh/hy/tdzl/index.vue b/src/views/zh/hy/tdzl/index.vue
index 13f72ee..fd6c454 100644
--- a/src/views/zh/hy/tdzl/index.vue
+++ b/src/views/zh/hy/tdzl/index.vue
@@ -95,12 +95,12 @@
}
onMounted(() => {
- getHousingestates();
if(parmas.type=='1'){
parmas.beginTime=getPreviousDate(2)+' 00:00:00';
parmas.endTime=getPreviousDate(0)+' 23:59:59';
}
loadDate();
+ getHousingestates();
})
diff --git a/src/views/zh/hy/zc/index.vue b/src/views/zh/hy/zc/index.vue
index 692ec2c..55b5837 100644
--- a/src/views/zh/hy/zc/index.vue
+++ b/src/views/zh/hy/zc/index.vue
@@ -74,11 +74,11 @@
}
onMounted(() => {
- getHousingestates();
if(parmas.dateString==''){
parmas.dateString=getCurrent();
}
loadDate();
+ getHousingestates();
})
diff --git a/src/views/zh/shebei/tdcs/index.vue b/src/views/zh/shebei/tdcs/index.vue
index 9971fb2..e538784 100644
--- a/src/views/zh/shebei/tdcs/index.vue
+++ b/src/views/zh/shebei/tdcs/index.vue
@@ -16,8 +16,7 @@
全部
- {{
- item.housingestateName }}
+ {{item.housingestateName }}
@@ -41,7 +40,9 @@
+ :itemStyle="{ normal: { label: { show: true, position: 'top' } } }"
+ :axisLabel="{ rotate: 45}"
+ :seriesName="'次数'">
@@ -211,8 +212,12 @@ async function loadDate() {
const res = await tdcsList(parmas);
dataSource.value = [];
for (let i = 0; i < res.length; i++) {
+ let name = res[i].imei;
+ if(res[i].housingestateName!=null&&res[i].content!=null){
+ name = res[i].housingestateName+'-'+res[i].content;
+ }
dataSource.value.push({
- name: `${res[i].imei}`,
+ name: `${name}`,
value: res[i].cn,
});
}
@@ -272,13 +277,13 @@ const handleBlock = (record) => {
onMounted(() => {
- getHousingestates();
if (parmas.type == '1') {
parmas.beginTime = getPreviousDate(0) + ' 00:00:00';
parmas.endTime = getPreviousDate(0) + ' 23:59:59';
}
loadDate();
loadListDate();
+ getHousingestates();
})
diff --git a/src/views/zh/shebei/zcxx/DeviceInfo.api.ts b/src/views/zh/shebei/zcxx/DeviceInfo.api.ts
index 8204a73..09c5044 100644
--- a/src/views/zh/shebei/zcxx/DeviceInfo.api.ts
+++ b/src/views/zh/shebei/zcxx/DeviceInfo.api.ts
@@ -1,66 +1,17 @@
import { defHttp } from '/@/utils/http/axios';
-import { useMessage } from "/@/hooks/web/useMessage";
-
-const { createConfirm } = useMessage();
enum Api {
- list = '/deviceinfo/deviceInfo/list',
- save='/deviceinfo/deviceInfo/add',
- edit='/deviceinfo/deviceInfo/edit',
- deleteOne = '/deviceinfo/deviceInfo/delete',
- deleteBatch = '/deviceinfo/deviceInfo/deleteBatch',
- importExcel = '/deviceinfo/deviceInfo/importExcel',
- exportXls = '/deviceinfo/deviceInfo/exportXls',
+ list = '/zh/shebei/list',
+ save='/zh/shebei/add',
+ edit='/zh/shebei/edit',
}
-/**
- * 导出api
- * @param params
- */
-export const getExportUrl = Api.exportXls;
-
-/**
- * 导入api
- */
-export const getImportUrl = Api.importExcel;
-
/**
* 列表接口
* @param params
*/
export const list = (params) => defHttp.get({ url: Api.list, params });
-/**
- * 删除单个
- * @param params
- * @param handleSuccess
- */
-export const deleteOne = (params,handleSuccess) => {
- return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
- handleSuccess();
- });
-}
-
-/**
- * 批量删除
- * @param params
- * @param handleSuccess
- */
-export const batchDelete = (params, handleSuccess) => {
- createConfirm({
- iconType: 'warning',
- title: '确认删除',
- content: '是否删除选中数据',
- okText: '确认',
- cancelText: '取消',
- onOk: () => {
- return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
- handleSuccess();
- });
- }
- });
-}
-
/**
* 保存或者更新
* @param params
diff --git a/src/views/zh/shebei/zcxx/DeviceInfo.data.ts b/src/views/zh/shebei/zcxx/DeviceInfo.data.ts
index 815e9f3..2f3b6d9 100644
--- a/src/views/zh/shebei/zcxx/DeviceInfo.data.ts
+++ b/src/views/zh/shebei/zcxx/DeviceInfo.data.ts
@@ -1,8 +1,5 @@
import { BasicColumn } from '/@/components/Table';
-import { FormSchema } from '/@/components/Table';
-import { rules } from '/@/utils/helper/validator';
-import { render } from '/@/utils/common/renderUtils';
-import { getWeekMonthQuarterYear } from '/@/utils';
+
//列表数据
export const columns: BasicColumn[] = [
{
@@ -10,25 +7,7 @@ export const columns: BasicColumn[] = [
align: 'center',
dataIndex: 'imei',
},
- {
- title: 'ICCID',
- align: 'center',
- dataIndex: 'iccid',
- },
- {
- title: '是否在线',
- align: 'center',
- dataIndex: 'isOnline',
- format(text, record, index) {
- console.log("🌊 ~ format ~ text:", text)
-
- if (text == 'true') {
- return '在线';
- } else {
- return '离线';
- }
- },
- },
+
{
title: '区域名称',
align: 'center',
@@ -44,32 +23,43 @@ export const columns: BasicColumn[] = [
align: 'center',
dataIndex: 'boxNum',
},
+ {
+ title: '注册会员数',
+ align: "center",
+ dataIndex: 'hyCount'
+ },
+ {
+ title: '投递次数',
+ align: "center",
+ dataIndex: 'tdcsCount'
+ },
+ {
+ title: 'ICCID',
+ align: 'center',
+ dataIndex: 'iccid',
+ },
+ {
+ title: '是否在线',
+ align: 'center',
+ dataIndex: 'isOnline',
+ format(text) {
+ if (text == 'true') {
+ return '在线';
+ } else {
+ return '离线';
+ }
+ },
+ },
{
title: '是否在仓库中',
align: 'center',
dataIndex: 'inWarehouse',
format(text, record, index) {
- if (text == 0) {
- return '0待翻译';
+ if (text == '0') {
+ return '离仓';
} else {
- return '1待翻译';
+ return '在仓';
}
},
},
- // {
- // title: '区域ID',
- // align: 'center',
- // dataIndex: 'housingestateId',
- // },
];
-
-// 高级查询数据
-export const superQuerySchema = {
- imei: { title: '设备编码', order: 0, view: 'text', type: 'string' },
- iccid: { title: 'ICCID', order: 1, view: 'text', type: 'string' },
- isOnline: { title: '是否在线', order: 2, view: 'text', type: 'string' },
- content: { title: '设备点位', order: 3, view: 'text', type: 'string' },
- boxNum: { title: '桶数量', order: 4, view: 'text', type: 'string' },
- inWarehouse: { title: '是否在仓库中', order: 5, view: 'text', type: 'string' },
- housingestateId: { title: '区域ID', order: 6, view: 'text', type: 'string' },
-};
diff --git a/src/views/zh/shebei/zcxx/DeviceInfoList.vue b/src/views/zh/shebei/zcxx/DeviceInfoList.vue
index 206add0..d3ea9b3 100644
--- a/src/views/zh/shebei/zcxx/DeviceInfoList.vue
+++ b/src/views/zh/shebei/zcxx/DeviceInfoList.vue
@@ -5,43 +5,47 @@
-
+
设备编码
-
+
+
- 是否在线
+ 在线
在线
离线
-
+
- 是否在仓
+ 在仓
- 0待翻译
- 1待翻译
+ 离仓
+ 在仓
-
+
区域名称
-
+
+ 全部
+ {{item.housingestateName }}
+
-
+
查询
@@ -71,20 +75,20 @@