|
|
@@ -58,7 +58,7 @@ export default function Component(props: { records: any[] }) {
|
|
|
success: function (res) {
|
|
|
// console.log(res.tapIndex)
|
|
|
setSelReference(global.selMetricItem.references[res.tapIndex])
|
|
|
- updateMetricStandard(global.selMetricItem.references[res.tapIndex].id).then(res=>{
|
|
|
+ updateMetricStandard(global.selMetricItem.references[res.tapIndex].id).then(res => {
|
|
|
global.refreshMetric()
|
|
|
})
|
|
|
},
|
|
|
@@ -75,7 +75,17 @@ export default function Component(props: { records: any[] }) {
|
|
|
if (global.selMetricItem && global.selMetricItem.references.length > 0) {
|
|
|
return <View style={{ display: 'flex', flexDirection: 'column', position: 'relative' }}>
|
|
|
<Text className="cell_header">{selReference.standard}</Text>
|
|
|
- <Text onClick={showMore} style={{ color: global.selMetricItem.theme_color, position: 'absolute', right: rpxToPx(86), top: -rpxToPx(10) }}>More</Text>
|
|
|
+ {
|
|
|
+ global.selMetricItem.references.length > 1 &&
|
|
|
+ <Text onClick={showMore}
|
|
|
+ style={{
|
|
|
+ color: global.selMetricItem.theme_color,
|
|
|
+ position: 'absolute',
|
|
|
+ right: rpxToPx(86),
|
|
|
+ top: -rpxToPx(10)
|
|
|
+ }}>More</Text>
|
|
|
+ }
|
|
|
+
|
|
|
{
|
|
|
selReference.categories.map((item, index) => {
|
|
|
var cellClassName = 'cell_full'
|