Merge branch 'master-dev' into feature-Beta-dev-renpy
This commit is contained in:
commit
a294bb442f
|
@ -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>
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user