Explorar el Código

心理量表列表显示等级颜色

test
wzl hace 1 mes
padre
commit
3ae53351b7
Se han modificado 2 ficheros con 13 adiciones y 2 borrados
  1. +1
    -1
      src/config/models.js
  2. +12
    -1
      src/views/psychological-scale/list.vue

+ 1
- 1
src/config/models.js Ver fichero

@@ -8,7 +8,7 @@
import store from "@/store";
// 情绪模型
const appTypeList = ['1'];
export const VERSION_MODEL = '1.0.132F'; //版本号
export const VERSION_MODEL = '1.0.133F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',


+ 12
- 1
src/views/psychological-scale/list.vue Ver fichero

@@ -24,7 +24,7 @@
<div class="name">{{ item.ScaleName }}</div>
<div class="result">
<span>评测结果:</span>
<span>{{ item.Summary }}</span>
<span :style="{ color: levels[`${item.SummaryLevel}`].color }">{{ item.Summary }}</span>
</div>
<div class="time">
{{ formateDate('yyyy年mm月dd日 HH:MM', item.Time) }}
@@ -53,6 +53,17 @@ export default {
showLeftArrow: false,
fromSsjl: this.$store.getters.fromSsjl,
result: [],
levels: [
{
color: '#60B977',
},
{
color: '#FFB600',
},
{
color: '#CC0003',
},
],
}
},
computed: {


Cargando…
Cancelar
Guardar