稳态合格率,畸变率表格调整

This commit is contained in:
sjl
2026-01-08 14:50:29 +08:00
parent 715cdb892f
commit 54517c0d5f
4 changed files with 39 additions and 24 deletions

View File

@@ -3,7 +3,7 @@
<el-drawer v-model="drawer" size="60%"> <el-drawer v-model="drawer" size="60%">
<div class="box mt20"> <div class="box mt20">
<el-upload :show-file-list="false" action="" :auto-upload="false" class="ml10" :on-change="choose" <el-upload :show-file-list="false" action="" :auto-upload="false" class="ml10" :on-change="choose"
v-if="information"> v-if="information" >
<el-button icon="el-icon-Top" type="primary">上传常见治理措施</el-button> <el-button icon="el-icon-Top" type="primary">上传常见治理措施</el-button>
</el-upload> </el-upload>
<el-button icon="el-icon-Download" type="primary" class="ml10" @click="downloadTheReport"> <el-button icon="el-icon-Download" type="primary" class="ml10" @click="downloadTheReport">
@@ -15,16 +15,16 @@
<el-collapse-item title="国家电网有限公司企业标准" name="2"> <el-collapse-item title="国家电网有限公司企业标准" name="2">
<!-- <el-empty description="暂无数据" class="custom-empty iframe" /> --> <!-- <el-empty description="暂无数据" class="custom-empty iframe" /> -->
<div :style="`overflow: auto;`" class="iframe"> <div :style="`overflow: auto;`" class="iframe">
<vue-office-docx v-if="url.includes('.doc') || url.includes('.docx')" :src="url" /> <vue-office-docx v-if="urlKey.includes('.doc') || urlKey.includes('.docx')" :src="url" />
<vue-office-excel v-if="url.includes('.xls') || url.includes('.xlsx')" :src="url" <vue-office-excel v-if="urlKey.includes('.xls') || urlKey.includes('.xlsx')" :src="url"
:options="excelOptions" /> :options="excelOptions" />
<!-- <vue-office-pdf v-if="url.includes('.pdf')" :src="url" /> --> <!-- <vue-office-pdf v-if="urlKey.includes('.pdf')" :src="url" /> -->
<iframe v-if="url.includes('.pdf')" :src="url" style="width: 100%; height: 99%"></iframe> <iframe v-if="urlKey.includes('.pdf')" :src="url" style="width: 100%; height: 99%"></iframe>
<img v-if=" <img v-if="
url.includes('.png') || urlKey.includes('.png') ||
url.includes('.jpg') || urlKey.includes('.jpg') ||
url.includes('.gif') || urlKey.includes('.gif') ||
url.includes('.bmp') urlKey.includes('.bmp')
" :src="url" /> " :src="url" />
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -45,6 +45,7 @@ import { useAdminInfo } from '@/stores/adminInfo'
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
import { uploadFile, getFileNameAndFilePath, downloadFile } from '@/api/system-boot/file' import { uploadFile, getFileNameAndFilePath, downloadFile } from '@/api/system-boot/file'
import { addStandardCase, queryStandardCase } from '@/api/supervision-boot/database/index' import { addStandardCase, queryStandardCase } from '@/api/supervision-boot/database/index'
import { previewFile } from '@/utils/fileDownLoad'
const adminInfo = useAdminInfo() const adminInfo = useAdminInfo()
const drawer = ref(false) const drawer = ref(false)
const activeName = ref('2') const activeName = ref('2')
@@ -53,17 +54,14 @@ const url = ref('')
const excelOptions = ref({}) const excelOptions = ref({})
const information = adminInfo.roleCode.includes('information_info') const information = adminInfo.roleCode.includes('information_info')
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
const open = (row: any) => {
// console.log('🚀 ~ open ~ row:', row)
// url.value = row
drawer.value = true
if(VITE_FLAG){
url.value = `/api-docx/excelreport` + row
excelOptions.value = { xls: row.split('.')[1] == 'xls' ? true : false }
}else{
} const urlKey=ref('')
const open = async (row: any) => {
drawer.value = true
urlKey.value=row
const previewUrl = await previewFile(row);
url.value = previewUrl;
// getFileNameAndFilePath({ filePath: row }).then(res => { // getFileNameAndFilePath({ filePath: row }).then(res => {
// url.value = res.data.url // url.value = res.data.url
// }) // })

View File

@@ -88,6 +88,7 @@ const handleNodeClick = (data: any, node: any) => {
if (data?.url != null && data?.url != '') { if (data?.url != null && data?.url != '') {
flag.value = true flag.value = true
urlKey.value = data.url urlKey.value = data.url
console.log('urlKey.value',urlKey.value)
setTimeout(async () => { setTimeout(async () => {
if(VITE_FLAG){ if(VITE_FLAG){
url.value = `/api-docx/excelreport` + data.url url.value = `/api-docx/excelreport` + data.url

View File

@@ -107,7 +107,7 @@ const tableStore = new TableStore({
var tips = '' var tips = ''
for (var i = 0; i < params.length; i++) { for (var i = 0; i < params.length; i++) {
if (params[i].value == 1) { if (params[i].value == 3.14159) {
tips += params[i].name + '</br>' tips += params[i].name + '</br>'
tips += params[i].marker + '在线率:暂无数据' tips += params[i].marker + '在线率:暂无数据'
} else { } else {
@@ -143,7 +143,21 @@ const tableStore = new TableStore({
//color:function(d){return "#"+Math.floor(Math.random()*(256*256*256-1)).toString(16);} //color:function(d){return "#"+Math.floor(Math.random()*(256*256*256-1)).toString(16);}
// 定制显示(按顺序) // 定制显示(按顺序)
color: function (params: any) { color: function (params: any) {
if (params.value >= 90) { if (params.value == 3.14159) {
return new echarts.graphic.LinearGradient(
0,
1,
0,
0,
[
{
offset: 1,
color: '#ccc'
}
],
false
)
}else if (params.value >= 90) {
return new echarts.graphic.LinearGradient( return new echarts.graphic.LinearGradient(
0, 0,
1, 1,
@@ -171,7 +185,7 @@ const tableStore = new TableStore({
], ],
false false
) )
} else if (params.value <= 60 && params.value > 1) { } else if (params.value > 0 && params.value <= 60) {
return new echarts.graphic.LinearGradient( return new echarts.graphic.LinearGradient(
0, 0,
1, 1,
@@ -180,12 +194,12 @@ const tableStore = new TableStore({
[ [
{ {
offset: 1, offset: 1,
color: '#A52a2a' color: '#CC0100'
} }
], ],
false false
) )
} else if (params.value > 0 && params.value <= 1) { } else if (params.value == 0) {
return new echarts.graphic.LinearGradient( return new echarts.graphic.LinearGradient(
0, 0,
1, 1,

View File

@@ -98,6 +98,7 @@
</div> </div>
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, onMounted, watch } from 'vue' import { ref, onMounted, watch } from 'vue'
import { useDictData } from '@/stores/dictData' import { useDictData } from '@/stores/dictData'
@@ -316,6 +317,7 @@ onMounted(() => {
tableStore.index() tableStore.index()
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// .online { // .online {
// width: 100%; // width: 100%;