imeik-bizui 1.8.9 → 1.9.1

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.
@@ -79,7 +79,9 @@
79
79
  <!-- 活动身份 -->
80
80
  <template slot="identity" slot-scope="{ row }">
81
81
  <div v-if="!isView">
82
+ <div v-if="checkIdentity(row.shenfenList_new)">-</div>
82
83
  <ImSelect
84
+ v-else
83
85
  v-model="row.identity"
84
86
  :class="{ 'is-error': row.valid === false && !row.identity }"
85
87
  :attrs="{ options: row.shenfenList_new }"
@@ -93,12 +95,12 @@
93
95
  </template>
94
96
  <!-- 授课名称 -->
95
97
  <template slot="className" slot-scope="{ row }">
96
- <div v-if="!isView">
98
+ <div v-if="!isView && checkHasCourse(row)">
97
99
  <ImInput v-model="row.courseName" :class="{ 'is-error': row.valid === false && checkHasCourse(row) }" placeholder="请输入" maxlength="100"></ImInput>
98
100
  </div>
99
101
  <div v-else>
100
102
  <ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="row.courseName" :no-absolute="true" :new-value="row._newData?.courseName" />
101
- <div v-else>{{ row.courseName }}</div>
103
+ <div v-else>{{ row.courseName || '-' }}</div>
102
104
  </div>
103
105
  </template>
104
106
 
@@ -645,6 +647,9 @@ export default {
645
647
  // 获取焦点的时候清楚当前options缓存
646
648
  onDoctorFocus() {
647
649
  this.doctorAttrs.options = []
650
+ },
651
+ checkIdentity(data) {
652
+ return data?.length === 1 && data[0].value === ''
648
653
  }
649
654
  }
650
655
  }