safecheck-client 4.0.0-107 → 4.0.0-108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "safecheck-client",
3
3
  "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "4.0.0-107",
4
+ "version": "4.0.0-108",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -260,7 +260,7 @@
260
260
  <div partial>
261
261
  <div class="auto app-text" style="margin-top: 5px;">
262
262
  <div class="panel" style="padding: 10px 10px 5px 10px;">
263
- <div class="panel-body panel-self" :style="{ backgroundColor: $parent.$parent.$parent.getLastCheckStateStyle(row.f_last_check_state) }">
263
+ <div class="panel-body panel-self" :style="{ backgroundColor: $parent.$parent.$parent.getLastCheckStateStyle(row.f_state,row.f_last_check_state) }">
264
264
  <div class="col-xs-12">
265
265
  <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
266
266
  <p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
@@ -535,12 +535,19 @@ export default {
535
535
  window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
536
536
  },
537
537
  methods: {
538
- getLastCheckStateStyle(state){
539
- switch(state) {
540
- case '入户': return '#00ff71'
541
- case '拒检': return '#00f3ff'
542
- case '到访不遇': return '#fff600'
543
- default: return 'transparent'
538
+ getLastCheckStateStyle(state, f_last_check_state) {
539
+ if (state === '未检') {
540
+ return 'transparent';
541
+ }
542
+ switch(f_last_check_state) {
543
+ case '入户':
544
+ return '#00ff71';
545
+ case '拒检':
546
+ return '#00f3ff';
547
+ case '到访不遇':
548
+ return '#fff600';
549
+ default:
550
+ return 'transparent';
544
551
  }
545
552
  },
546
553
  scan(){