This commit is contained in:
sjl
2024-12-17 13:57:45 +08:00
parent fe8bc407d3
commit 645fb83bce
2 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
</template>
<script lang="ts" setup>
import * as echarts from "echarts";
import { ref } from "vue";
const chartsRef = ref();
const props = defineProps({
//饼图数据
@@ -75,7 +76,7 @@ const init = () => {
type: "pie",
radius: customData.value.isRing ? ["55", "75"] : "80%",
data: props.chartsData,
formatter: function (name) {
formatter: function (name: any) {
const item = props.chartsData.filter(item=>item.name==name)
console.log(item)
if(item)

View File

@@ -161,7 +161,7 @@
:icon="Notebook"
@click="openDrawer('归档', scope.row)"
v-if="form.activeTabs === 4"
:disabled = "scope.row.check_State != '检测完成'"
:disabled = "scope.row.checkState != 2"
>归档</el-button
>
<el-button
@@ -177,11 +177,11 @@
link
:icon="Switch"
@click="openDrawer('误差体系更换', scope.row)"
v-if="form.activeTabs === 5 && scope.row.document_State === '已归档'"
v-if="form.activeTabs === 5 && scope.row.documentState === 1"
>误差体系更换</el-button
>
<div class='cn-render-buttons' v-if="form.activeTabs === 5 && scope.row.document_State === '已归档'">
<div class='cn-render-buttons' v-if="form.activeTabs === 5 && scope.row.documentState === 1">
<el-dropdown trigger='click'>
<el-button link type='primary' :icon="Download" class='table-operate'>
<div class='table-operate-text'>报告下载</div>