imeik-bizui 1.7.1 → 1.7.2

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.
@@ -6,7 +6,10 @@
6
6
  <ImSelect v-if="!isView" v-model="row.doctorNumber" :class="{ 'is-error': row.valid === false && !row.doctorNumber }" :attrs="doctorAttrs" @input="changedoctorName(row)"></ImSelect>
7
7
  <div v-else>
8
8
  <ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="row.doctorName" :no-absolute="true" :new-value="row._newData?.doctorName" />
9
- <div v-else>{{ row.doctorName }}</div>
9
+ <div v-else>
10
+ <p v-if="row.doctorNumber" class="text-button" @click="viewdoctorDetailItem(row)">{{ row.doctorName }}</p>
11
+ <p v-else>{{ row.doctorName }}</p>
12
+ </div>
10
13
  </div>
11
14
  </template>
12
15
  <!-- 职业机构 -->
@@ -533,6 +536,19 @@ export default {
533
536
  })
534
537
 
535
538
  return sums
539
+ },
540
+ viewdoctorDetailItem(row) {
541
+ let host = ''
542
+ if (this.$bizui.env === 'testenv') {
543
+ host = '//usercenter-test.imeik.com'
544
+ } else if (this.$bizui.env === 'pre') {
545
+ host = '//usercenter-pre.imeik.com'
546
+ } else {
547
+ host = '//usercenter.imeik.com'
548
+ }
549
+ const token = this.$bizui.userTokenFunc()
550
+ const url = `${host}/user/expertDatabase/expertDetails?objectCode=${row.doctorNumber}&type=list&token=${token}&hideBar=1`
551
+ window.open(url)
536
552
  }
537
553
  }
538
554
  }
@@ -586,4 +602,9 @@ export default {
586
602
  /deep/ .el-input-number .el-input__inner {
587
603
  text-align: left;
588
604
  }
605
+ .text-button {
606
+ color: #3285f6;
607
+ font-weight: 500;
608
+ cursor: pointer;
609
+ }
589
610
  </style>