@@ -360,7 +367,8 @@ const data = reactive({
designSubitemId: undefined,
volumeNumber: undefined,
documentName: undefined,
- params: {}
+ params: {},
+ isUpload: '2'
},
rules: {
design: [{ required: true, message: '主键ID不能为空', trigger: 'blur' }],
@@ -585,7 +593,6 @@ const handleUploadSuccess = async (flieList: any, res: any) => {
};
/** 审核蓝图按钮操作 */
const handleAuditLantu = async (row) => {
- proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/approval/volumeCatalog/blueprintEdit`,
query: {
@@ -596,7 +603,6 @@ const handleAuditLantu = async (row) => {
};
/** 查看蓝图按钮操作 */
const handleAuditViewLantu = async (row) => {
- proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/approval/volumeCatalog/blueprintEdit`,
query: {
diff --git a/src/views/enterpriseLarge/digitalizationScreen/components/centerPage.vue b/src/views/enterpriseLarge/digitalizationScreen/components/centerPage.vue
new file mode 100644
index 0000000..c71a8cd
--- /dev/null
+++ b/src/views/enterpriseLarge/digitalizationScreen/components/centerPage.vue
@@ -0,0 +1,328 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ safety_inspection_type[scope.row.riskType] }}
+
+
+
+
+
+
+
+ {{ risk_level_type[scope.row.alarmLevel] }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/enterpriseLarge/digitalizationScreen/components/header.vue b/src/views/enterpriseLarge/digitalizationScreen/components/header.vue
new file mode 100644
index 0000000..d911f88
--- /dev/null
+++ b/src/views/enterpriseLarge/digitalizationScreen/components/header.vue
@@ -0,0 +1,327 @@
+
+
+
+
+
+
+
diff --git a/src/views/enterpriseLarge/digitalizationScreen/components/leftPage.vue b/src/views/enterpriseLarge/digitalizationScreen/components/leftPage.vue
new file mode 100644
index 0000000..47717e6
--- /dev/null
+++ b/src/views/enterpriseLarge/digitalizationScreen/components/leftPage.vue
@@ -0,0 +1,540 @@
+
+
+
+
+
+
+
+
{{ indicator.value }}
+
{{ indicator.unit }}
+
+
{{ indicator.name }}
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
+

+
出勤人
+
+ {{ attendanceCount }}
+ 人
+
+
+
+

+
在岗人
+
+ {{ peopleCount }}
+ 人
+
+
+
+

+
出勤率
+
+ {{ attendanceRate }}
+ %
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/enterpriseLarge/digitalizationScreen/components/optionList.ts b/src/views/enterpriseLarge/digitalizationScreen/components/optionList.ts
new file mode 100644
index 0000000..502ddc2
--- /dev/null
+++ b/src/views/enterpriseLarge/digitalizationScreen/components/optionList.ts
@@ -0,0 +1,216 @@
+export let pieOption = {
+ // 定义中心文字
+ graphic: [
+ // {
+ // type: 'text',
+ // left: 'center',
+ // top: '40%',
+ // style: {
+ // // 需要从接口替换
+ // text: '70%',
+ // fontSize: 24,
+ // fontWeight: 'bold',
+ // fill: '#fff'
+ // }
+ // }
+ // {
+ // type: 'text',
+ // left: 'center',
+ // top: '50%',
+ // style: {
+ // text: '111',
+ // fontSize: 14,
+ // fill: '#fff'
+ // }
+ // }
+ ],
+ // legend: {
+ // show: true,
+ // type: 'plain',
+ // bottom: 20,
+ // itemWidth: 12,
+ // itemHeight: 12,
+ // textStyle: {
+ // color: '#fff'
+ // }
+ // },
+ series: {
+ type: 'pie',
+ data: [],
+ radius: [50, 80],
+ center: ['50%', '45%'],
+ // itemStyle: {
+ // borderColor: '#fff',
+ // borderWidth: 1
+ // },
+ label: {
+ alignTo: 'edge',
+ formatter: function (params) {
+ // 只显示前三个数据项
+ return `{name|${params.data.name}}\n{percent|${params.data.completionRate}MW}`;
+ },
+ minMargin: 10,
+ edgeDistance: 20,
+ lineHeight: 15,
+ rich: {
+ name: {
+ fontSize: 12,
+ color: '#fff'
+ },
+ percent: {
+ fontSize: 12,
+ color: '#fff'
+ }
+ }
+ },
+ legend: {
+ top: 'bottom'
+ }
+ }
+};
+
+export let barOption = {
+ legend: {
+ icon: 'rect',
+ itemWidth: 12,
+ itemHeight: 12,
+ // 调整文字与图标间距
+ data: ['计划产值', '实际产值'],
+ top: 0,
+ right: 10,
+ bottom: 10,
+ textStyle: {
+ color: '#fff'
+ }
+ },
+
+ tooltip: {
+ show: true,
+ backgroundColor: '',
+ trigger: 'axis',
+ // formatter: '{b0}:{c0}万元',
+ formatter: (params: any) => {
+ // params 是数组,对应每条柱子
+ return params
+ .map((p: any) => `${p.seriesName}:${Number(p.value).toFixed(2)} 亿元`)
+
+ .join('
');
+ },
+ textStyle: {
+ color: '#fff'
+ },
+ axisPointer: {
+ type: 'shadow' // 默认为直线,可选为:'line' | 'shadow',
+ }
+ // borderColor: 'rgba(252, 217, 18, 1)'
+ },
+ xAxis: {
+ type: 'category',
+ data: [],
+
+ axisLabel: {
+ color: '#fff'
+ },
+ axisLine: {
+ show: false
+ },
+ splitLine: {
+ show: false
+ }
+ },
+ yAxis: {
+ name: '单位:亿元',
+ type: 'value',
+ axisLabel: {
+ formatter: '{value}'
+ },
+ splitLine: {
+ show: false // 不显示分割线
+ }
+ },
+ grid: {
+ left: '12%',
+ top: '15%', // 顶部留一点空间给 legend
+ bottom: '8%',
+ right: '2%'
+ },
+ series: [
+ {
+ name: '计划产值',
+ type: 'bar',
+ data: [],
+ barWidth: '10',
+ itemStyle: {
+ color: {
+ type: 'linear',
+ x: 0,
+ y: 1, // 修改y为1表示从底部开始
+ x2: 0,
+ y2: 0, // 修改y2为0表示渐变到顶部
+ colorStops: [
+ {
+ offset: 0,
+ color: 'rgba(255, 209, 92, 0.1)' // 底部透明度0.1
+ },
+ {
+ offset: 1,
+ color: 'rgba(255, 209, 92, 1)' // 顶部透明度1
+ }
+ ]
+ }
+ }
+ },
+ {
+ name: '实际产值',
+ type: 'bar',
+ data: [],
+ barWidth: '10',
+ itemStyle: {
+ color: {
+ type: 'linear',
+ x: 0,
+ y: 1, // 从底部开始
+ x2: 0,
+ y2: 0, // 到顶部结束
+ colorStops: [
+ {
+ offset: 0,
+ color: 'rgba(7, 209, 250, 0.1)' // 底部透明度0.1
+ },
+ {
+ offset: 1,
+ color: 'rgba(7, 209, 250, 1)' // 顶部透明度1
+ }
+ ]
+ }
+ }
+ }
+ ]
+};
+
+export let mapOption = {
+ geo: {
+ map: 'ch',
+ roam: true,
+ aspectScale: Math.cos((47 * Math.PI) / 180)
+ },
+ series: [
+ {
+ type: 'graph',
+ coordinateSystem: 'geo',
+ data: [
+ { name: 'a', value: [7.667821250000001, 46.791734269956265] },
+ { name: 'b', value: [7.404848750000001, 46.516308805996054] },
+ { name: 'c', value: [7.376673125000001, 46.24728858538375] },
+ { name: 'd', value: [8.015320625000001, 46.39460918238572] },
+ { name: 'e', value: [8.616400625, 46.7020608630855] },
+ { name: 'f', value: [8.869981250000002, 46.37539345234199] },
+ { name: 'g', value: [9.546196250000001, 46.58676648282309] },
+ { name: 'h', value: [9.311399375, 47.182454114178896] },
+ { name: 'i', value: [9.085994375000002, 47.55395822835779] },
+ { name: 'j', value: [8.653968125000002, 47.47709530818285] },
+ { name: 'k', value: [8.203158125000002, 47.44506909144329] }
+ ]
+ }
+ ]
+};
diff --git a/src/views/enterpriseLarge/digitalizationScreen/components/rightPage.vue b/src/views/enterpriseLarge/digitalizationScreen/components/rightPage.vue
new file mode 100644
index 0000000..e57e5b6
--- /dev/null
+++ b/src/views/enterpriseLarge/digitalizationScreen/components/rightPage.vue
@@ -0,0 +1,392 @@
+
+
+
+
+
+
+
+
+

+
+
+
+
+
{{ capacityData.gridConnectedCapacity ?? '0' }}
+
MW
+
+
井网总容量
+
+
+
+
+
+

+
+
+
+
+
{{ capacityData.plannedCapacity ?? '0' }}
+
MW
+
+
计划总容量
+
+
+
+
+
+

+
+
+
+
+
{{ capacityData.delayedProjectCount ?? '0' }}
+
个
+
+
延期项目
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/enterpriseLarge/digitalizationScreen/components/title.vue b/src/views/enterpriseLarge/digitalizationScreen/components/title.vue
new file mode 100644
index 0000000..36d226d
--- /dev/null
+++ b/src/views/enterpriseLarge/digitalizationScreen/components/title.vue
@@ -0,0 +1,46 @@
+
+
+
+

+

+
+
+
+
+
{{ title }}
+
+
+
+
+
+
diff --git a/src/views/ProjectScreen/index.vue b/src/views/enterpriseLarge/digitalizationScreen/index.vue
similarity index 97%
rename from src/views/ProjectScreen/index.vue
rename to src/views/enterpriseLarge/digitalizationScreen/index.vue
index f58a18f..fead15c 100644
--- a/src/views/ProjectScreen/index.vue
+++ b/src/views/enterpriseLarge/digitalizationScreen/index.vue
@@ -22,11 +22,10 @@ import leftPage from './components/leftPage.vue';
import centerPage from './components/centerPage.vue';
import rightPage from './components/rightPage.vue';
import { useUserStoreHook } from '@/store/modules/user';
-
const userStore = useUserStoreHook();
const projectId = computed(() => userStore.selectedProject.id);
-const isFull = ref(false)
-const isHideOther = ref(false)
+const isFull = ref(false);
+const isHideOther = ref(false);
/**
* 切换中心页面全屏
@@ -41,7 +40,7 @@ const handleChangePage = () => {
isFull.value = true;
isHideOther.value = true;
}
-}
+};
diff --git a/src/views/materials/materialsUseRecord/index.vue b/src/views/materials/materialsUseRecord/index.vue
index 73f3263..b982c00 100644
--- a/src/views/materials/materialsUseRecord/index.vue
+++ b/src/views/materials/materialsUseRecord/index.vue
@@ -228,8 +228,13 @@ const getMaterialsListData = async () => {
label: item.materialsName + '_' + item.createTime,
children: []
}));
- queryParams.value.materialsId = TreeData.value[0].id;
- getList();
+ if (TreeData.value.length > 0) {
+ queryParams.value.materialsId = TreeData.value[0].id;
+ getList();
+ } else {
+ queryParams.value.materialsId = '';
+ getList();
+ }
}
};
@@ -453,7 +458,7 @@ const listeningProject: WatchStopHandle = watch(
Object.values(childRowStates.value).forEach((state) => {
state.queryParams.projectId = newId;
});
- getList();
+ getMaterialsListData();
}
);
diff --git a/src/views/materials/overallPlanMaterialSupply/indexEdit.vue b/src/views/materials/overallPlanMaterialSupply/indexEdit.vue
index 56c849b..0781865 100644
--- a/src/views/materials/overallPlanMaterialSupply/indexEdit.vue
+++ b/src/views/materials/overallPlanMaterialSupply/indexEdit.vue
@@ -73,12 +73,12 @@
-->
-
-
-
-
-
-
+
+
+
+
+
+
@@ -214,7 +214,7 @@ const getInfo = () => {
console.log('res.data', masterDataRes);
Object.assign(form.value, masterDataRes?.data[0]);
// console.log('form', form.value);
- tableData.value = res.rows.reverse();//翻转
+ tableData.value = res.rows; //正序显示
loading.value = false;
buttonLoading.value = false;
});
@@ -319,9 +319,7 @@ onMounted(() => {
.el-input__inner,
.el-select .el-input__inner {
border-radius: 4px;
- transition:
- border-color 0.2s,
- box-shadow 0.2s;
+ transition: border-color 0.2s, box-shadow 0.2s;
&:focus {
border-color: var(--primary-light);
@@ -331,9 +329,7 @@ onMounted(() => {
.el-textarea__inner {
border-radius: 4px;
- transition:
- border-color 0.2s,
- box-shadow 0.2s;
+ transition: border-color 0.2s, box-shadow 0.2s;
&:focus {
border-color: var(--primary-light);
diff --git a/src/views/other/ys7Device/component/presetAdd.vue b/src/views/other/ys7Device/component/presetAdd.vue
index 5262a88..80421f0 100644
--- a/src/views/other/ys7Device/component/presetAdd.vue
+++ b/src/views/other/ys7Device/component/presetAdd.vue
@@ -123,6 +123,8 @@ function addPre() {
// 视频播放
function videoPlay(obj: any) {
+ console.log('objobjobj',obj);
+
getAccessToken().then((res: any) => {
if (res.code == 200 && obj.deviceSerial) {
flvPlayer.value = new EZUIKit.EZUIKitPlayer({
diff --git a/src/views/out/constructionValue/index.vue b/src/views/out/constructionValue/index.vue
index b6d49e0..dc3bf88 100644
--- a/src/views/out/constructionValue/index.vue
+++ b/src/views/out/constructionValue/index.vue
@@ -19,9 +19,9 @@