eztech-core-components 1.0.30 → 1.0.31

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.
@@ -9,27 +9,23 @@
9
9
  import { mapGetters } from 'vuex'
10
10
  export default {
11
11
  props: {
12
- src: {
13
- type: String,
14
- default: ''
15
- },
16
- thumbnail: {
17
- type: Boolean,
18
- default: false
19
- },
20
- letter: {
21
- type: String,
22
- default: ''
23
- },
24
- tid: {
25
- type: String,
26
- default: ''
27
- }
12
+ src: { type: String, default: '' },
13
+ thumbnail: { type: Boolean, default: false },
14
+ letter: { type: String, default: '' },
15
+ tid: { type: String, default: '' },
16
+ isUser: { type: Boolean, default: false }
28
17
  },
29
18
  computed: {
30
19
  ...mapGetters('settings', ['env']),
31
20
  fullSrc () {
32
- const path = this.thumbnail ? `/api${this.env.fileRoutePath}/thumbnail` : `/api${this.env.fileRoutePath}/`
21
+ let path = ''
22
+ if (this.isUser) {
23
+ path = `/api${this.env.fileRoutePath}/user/`
24
+ } else if (this.thumbnail) {
25
+ path = `/api${this.env.fileRoutePath}/thumbnail/`
26
+ } else {
27
+ path = `/api${this.env.fileRoutePath}/`
28
+ }
33
29
  return path + this.src + '?tid=' + this.tid
34
30
  }
35
31
  }
@@ -48,7 +48,7 @@
48
48
  <span>{{ item.pos_name }} {{ item.expert_num }} {{ item.phone_num }}</span>
49
49
  </div>
50
50
  </div>
51
- <button class="text-xs text-corePrimaryText hover:bg-white rounded px-2 p-1" @click.stop.prevent="handleVisible(item._id)">
51
+ <button class="text-xs text-corePrimaryText hover:bg-white rounded px-2 p-1" @click.stop.prevent="handleVisible(item._id, item.tid)">
52
52
  <i class="el-icon-edit" />
53
53
  </button>
54
54
  </div>
@@ -155,6 +155,11 @@ export default {
155
155
  return getFormBoolean(this.col_multiple)
156
156
  },
157
157
  tableName () {
158
+ if (['reg_org_emps'].includes(this.table_name)) {
159
+ return 'service_search_reg_org_emps'
160
+ } else if (['reg_external_experts'].includes(this.table_name)) {
161
+ return 'service_search_reg_external_experts'
162
+ }
158
163
  return this.table_name
159
164
  },
160
165
  clonedTemp () {
@@ -210,8 +215,8 @@ export default {
210
215
  focus () {
211
216
  this.$refs.refComponent.focus()
212
217
  },
213
- async handleVisible (id) {
214
- await this.handleGetConfig(id)
218
+ async handleVisible (id, tid) {
219
+ await this.handleGetConfig(id, tid)
215
220
  },
216
221
  handleDefault () {
217
222
  let vals = []
@@ -282,7 +287,7 @@ export default {
282
287
  this.temp = null
283
288
  this.id = null
284
289
  },
285
- async handleGetConfig (id) {
290
+ async handleGetConfig (id, tid) {
286
291
  try {
287
292
  if (this.loadingVisible) {
288
293
  return
@@ -305,6 +310,7 @@ export default {
305
310
  this.resetDefaultTemp()
306
311
  this.defaultTemp.resolution_org_id = this.parentTemp.resolution_org_id?._id ? this.parentTemp.resolution_org_id : null
307
312
  this.id = id || 'create'
313
+ this.tid = tid || null
308
314
  this.resetTemp(this.id)
309
315
  })
310
316
  this.visible = true
@@ -89,7 +89,12 @@
89
89
  :key="item1._id"
90
90
  class="flex flex-row items-start justify-start bg-white border rounded text-xs leading-3 gap-1 pl-1 pr-1 p-1 max-w-64"
91
91
  >
92
- <core-image class="w-[28px] h-8 rounded bg-coreBgInput border" :src="item1.employee_id.image?._id || item1.employee_id.image" />
92
+ <core-image
93
+ class="w-[28px] h-8 rounded bg-coreBgInput border"
94
+ :src="item1.employee_id.image?._id || item1.employee_id.image"
95
+ :tid="item1.employee_id.image.tid"
96
+ :is-user="true"
97
+ />
93
98
  <div class="flex flex-col gap-1 flex-1">
94
99
  <div class="flex flex-row w-full items-start justify-start gap-2 flex-1">
95
100
  <div class="flex-1">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eztech-core-components",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },