Merge branch 'master-dev' into feature-Beta-dev-renpy

This commit is contained in:
orgin 2024-02-29 17:25:32 +08:00
commit a294bb442f
12 changed files with 34 additions and 20 deletions

View File

@ -839,6 +839,6 @@ body {
</style> </style>
<style lang="less" scoped> <style lang="less" scoped>
.ant-menu { .ant-menu {
width: 1750px; max-width: calc(100% - 200px);
} }
</style> </style>

View File

@ -521,7 +521,7 @@ export default {
if (res.success) { if (res.success) {
this.itemOptions = res.result.map((item) => { this.itemOptions = res.result.map((item) => {
return { return {
label: item.name, label: item.units ? `${item.name}(${item.units})` : item.name,
value: item.itemId, value: item.itemId,
units: item.units, units: item.units,
valueType: item.valueType, valueType: item.valueType,

View File

@ -1,9 +1,9 @@
<template> <template>
<div class="search-bar"> <div class="search-bar">
<a-row type="flex"> <a-row type="flex">
<a-col flex="190px"> <!-- <a-col flex="190px">
<a-input placeholder="search..." /> <a-input placeholder="search..." />
</a-col> </a-col> -->
<a-col flex="310px" v-if="type == 'alarmCenter'"> <a-col flex="310px" v-if="type == 'alarmCenter'">
<a-form-model-item label="Type"> <a-form-model-item label="Type">
<a-select <a-select

View File

@ -292,7 +292,7 @@ export default {
if (res.success) { if (res.success) {
this.itemOptions = res.result.map((item) => { this.itemOptions = res.result.map((item) => {
return { return {
label: item.name, label: item.units ? `${item.name}(${item.units})` : item.name,
value: item.itemId, value: item.itemId,
units: item.units, units: item.units,
valueType: item.valueType, valueType: item.valueType,

View File

@ -57,9 +57,10 @@
<!-- 日志列表结束 --> <!-- 日志列表结束 -->
<custom-modal title="Log" :width="950" v-model="visible" :footer="null"> <custom-modal title="Log" :width="950" v-model="visible" :footer="null">
<a-spin class="log-detail" :spinning="isGettingDetail"> <a-spin class="log-detail" :spinning="isGettingDetail">
<div style="font-family: 宋体" v-for="(logItem, index) in logInfo" :key="index"> <pre style="font-family: 仿宋">{{ logInfo }}</pre>
<!-- <div style="font-family: 宋体" v-for="(logItem, index) in logInfo" :key="index">
{{ logItem }} {{ logItem }}
</div> </div> -->
</a-spin> </a-spin>
</custom-modal> </custom-modal>
</div> </div>
@ -200,7 +201,8 @@ export default {
try { try {
this.isGettingDetail = true this.isGettingDetail = true
const res = await postAction('/logManage/downloadFile', formData) const res = await postAction('/logManage/downloadFile', formData)
this.logInfo = res.split('\r\n') // this.logInfo = res.split('\r\n')
this.logInfo = res
} catch (error) { } catch (error) {
console.error(error) console.error(error)
} finally { } finally {

View File

@ -1,7 +1,7 @@
<template> <template>
<custom-modal v-model="visible" :width="1200" :title="type == 1 || type == 3 ? 'ARR' : 'RRR'"> <custom-modal v-model="visible" :width="1200" :title="type == 1 || type == 3 ? 'ARR' : 'RRR'">
<a-spin :spinning="isLoading"> <a-spin :spinning="isLoading">
<a-textarea style="font-family: " v-model="content" :readonly="type == 1 || type == 2"></a-textarea> <a-textarea style="font-family: 仿宋" v-model="content" :readonly="type == 1 || type == 2"></a-textarea>
</a-spin> </a-spin>
<div slot="custom-footer" style="text-align: center"> <div slot="custom-footer" style="text-align: center">
<a-space :size="20"> <a-space :size="20">

View File

@ -1,7 +1,7 @@
<template> <template>
<custom-modal v-model="visible" :width="1000" title="Auto Process Log Viewer"> <custom-modal v-model="visible" :width="1000" title="Auto Process Log Viewer">
<a-spin :spinning="isLoading"> <a-spin :spinning="isLoading">
<pre style="font-family: "> <pre style="font-family: 仿宋">
{{ content }} {{ content }}
</pre> </pre>
</a-spin> </a-spin>

View File

@ -1,7 +1,7 @@
<template> <template>
<custom-modal v-model="visible" title="BetaGamma Analyser Log" :width="1200"> <custom-modal v-model="visible" title="BetaGamma Analyser Log" :width="1200">
<a-spin :spinning="isLoading"> <a-spin :spinning="isLoading">
<a-textarea v-model="content" style="font-family: "></a-textarea> <a-textarea v-model="content" style="font-family: 仿宋"></a-textarea>
</a-spin> </a-spin>
<div slot="custom-footer"> <div slot="custom-footer">
<a-button type="primary" @click="handleClick">Save As</a-button> <a-button type="primary" @click="handleClick">Save As</a-button>

View File

@ -1,7 +1,7 @@
<template> <template>
<custom-modal v-model="visible" :width="1000" title="View Sample Infomation"> <custom-modal v-model="visible" :width="1000" title="View Sample Infomation">
<a-spin :spinning="isLoading"> <a-spin :spinning="isLoading">
<a-textarea v-model="content" style="font-family: "></a-textarea> <a-textarea v-model="content" style="font-family: 仿宋"></a-textarea>
</a-spin> </a-spin>
<div slot="custom-footer"> <div slot="custom-footer">

View File

@ -3,16 +3,16 @@
<a-spin :spinning="isLoading"> <a-spin :spinning="isLoading">
<a-tabs :animated="false" @change="handleTabChange"> <a-tabs :animated="false" @change="handleTabChange">
<a-tab-pane tab="Sample Spectrum" :key="1"> <a-tab-pane tab="Sample Spectrum" :key="1">
<a-textarea v-model="content.sample" style="font-family: "></a-textarea> <a-textarea v-model="content.sample" style="font-family: 仿宋"></a-textarea>
</a-tab-pane> </a-tab-pane>
<a-tab-pane tab="GasBg Spectrum" :key="2"> <a-tab-pane tab="GasBg Spectrum" :key="2">
<a-textarea v-model="content.gasBg" style="font-family: "></a-textarea> <a-textarea v-model="content.gasBg" style="font-family: 仿宋"></a-textarea>
</a-tab-pane> </a-tab-pane>
<a-tab-pane tab="DetBg Spectrum" :key="3"> <a-tab-pane tab="DetBg Spectrum" :key="3">
<a-textarea v-model="content.detBg" style="font-family: "></a-textarea> <a-textarea v-model="content.detBg" style="font-family: 仿宋"></a-textarea>
</a-tab-pane> </a-tab-pane>
<a-tab-pane tab="QC Spectrum" :key="4"> <a-tab-pane tab="QC Spectrum" :key="4">
<a-textarea v-model="content.qc" style="font-family: "></a-textarea> <a-textarea v-model="content.qc" style="font-family: 仿宋"></a-textarea>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
</a-spin> </a-spin>

View File

@ -1,7 +1,7 @@
<template> <template>
<custom-modal v-model="visible" :width="1000" title="Data Processing Log"> <custom-modal v-model="visible" :width="1000" title="Data Processing Log">
<a-spin :spinning="isLoading"> <a-spin :spinning="isLoading">
<pre class="data-processing-log" style="font-family: ">{{ text }}</pre> <pre class="data-processing-log" style="font-family: 仿宋">{{ text }}</pre>
</a-spin> </a-spin>
<div slot="custom-footer" style="text-align: center"> <div slot="custom-footer" style="text-align: center">
<a-space :size="20"> <a-space :size="20">

View File

@ -46,6 +46,8 @@
</template> </template>
<script> <script>
import { cloneDeep } from 'lodash'
const columns = [ const columns = [
{ {
title: 'Flag', title: 'Flag',
@ -94,6 +96,8 @@ const columns = [
width: 34, width: 34,
}, },
] ]
const sortList = ['Xe131m', 'Xe133', 'Xe133m', 'Xe135']
export default { export default {
props: { props: {
data: { data: {
@ -121,7 +125,8 @@ export default {
data: { data: {
handler(val) { handler(val) {
if (val && Array.isArray(val)) { if (val && Array.isArray(val)) {
val.forEach((item) => { const list = cloneDeep(val)
list.forEach((item) => {
if (item.conc < 0) { if (item.conc < 0) {
item.className = 'error' item.className = 'error'
} else if (item.conc > 0 && item.conc < item.mdc) { } else if (item.conc > 0 && item.conc < item.mdc) {
@ -130,8 +135,15 @@ export default {
item.className = 'success' item.className = 'success'
} }
}) })
this.source1 = val.slice(0, 2)
this.source2 = val.slice(2, 4) list.sort((a, b) => {
const index1 = sortList.indexOf(a.nuclideName)
const index2 = sortList.indexOf(b.nuclideName)
return index1 - index2
})
this.source1 = list.slice(0, 2)
this.source2 = list.slice(2, 4)
} }
}, },
immediate: true, immediate: true,