n20-common-lib 2.4.43 → 2.4.44

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,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.4.43",
3
+ "version": "2.4.44",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -117,6 +117,14 @@ $--input-max: 224px;
117
117
  padding-right: 10px;
118
118
  }
119
119
 
120
+ .el-input.is-disabled .el-input__inner {
121
+ color: $--color-text-primary;
122
+ }
123
+
124
+ .el-textarea.is-disabled .el-textarea__inner {
125
+ color: $--color-text-primary;
126
+ }
127
+
120
128
  .w-224 {
121
129
  width: $--input-width !important;
122
130
  }
@@ -1,3 +1,5 @@
1
+ $--button-margin-left: 6px;
2
+
1
3
  .el-button--primary,
2
4
  .el-button--default,
3
5
  .el-button--default.is-plain,
@@ -16,15 +18,15 @@
16
18
  }
17
19
 
18
20
  .el-button + .el-button {
19
- margin-left: 8px;
21
+ margin-left: $--button-margin-left;
20
22
  }
21
23
 
22
24
  .el-button + .el-dropdown {
23
- margin-left: 8px;
25
+ margin-left: $--button-margin-left;
24
26
  }
25
27
 
26
28
  .el-button--mini + .el-button--mini {
27
- margin-left: 8px;
29
+ margin-left: $--button-margin-left;
28
30
  }
29
31
 
30
32
  .el-button[onlyicon] {
@@ -396,18 +396,18 @@ iframe {
396
396
 
397
397
  .page-footer-shadow {
398
398
  position: relative;
399
- height: 38px;
400
- margin-bottom: -8px;
399
+ height: 28px;
400
+ margin-bottom: -4px;
401
401
 
402
402
  &::before {
403
403
  content: '';
404
404
  pointer-events: none;
405
405
  position: absolute;
406
- top: 0px;
406
+ top: 0;
407
407
  height: 100%;
408
408
  left: -8px;
409
409
  right: -8px;
410
- box-shadow: 0px -2px 6px 0px rgba($--color-black, 0.08);
410
+ box-shadow: 0 -2px 6px 0px rgba($--color-black, 0.08);
411
411
  }
412
412
  }
413
413
 
@@ -24,15 +24,23 @@
24
24
  </label>
25
25
  <div class="flex-box">
26
26
  <el-select
27
- v-if="preAddTask"
27
+ v-if="authList.includes('isAddtask') || authList.includes('isAddForwardTask') || preAddTask"
28
28
  v-model="addTaskWay"
29
29
  class="m-r-ss"
30
30
  clearable
31
31
  :placeholder="'请选择加签类型' | $lc"
32
32
  style="width: 10em"
33
33
  >
34
- <el-option :label="'向前加签' | $lc" value="2" />
35
- <el-option :label="'向后加签' | $lc" value="1" />
34
+ <el-option
35
+ v-if="authList.includes('isAddForwardTask') || preAddTask"
36
+ :label="'向前加签' | $lc"
37
+ :value="authList.includes('isAddForwardTask') ? 'isAddForwardTask' : '2'"
38
+ />
39
+ <el-option
40
+ v-if="authList.includes('isAddtask') || preAddTask"
41
+ :label="'向后加签' | $lc"
42
+ :value="authList.includes('isAddtask') ? 'isAddtask' : '1'"
43
+ />
36
44
  </el-select>
37
45
  <el-select
38
46
  v-model="addTaskType"
@@ -295,7 +303,6 @@ export default {
295
303
  this.getBtns()
296
304
  this.getShowApprovalTo()
297
305
  this.getHasQueryAppOpiAndUser()
298
- this.getHasPreAddTask()
299
306
  },
300
307
  methods: {
301
308
  // 换回到发起页
@@ -325,9 +332,15 @@ export default {
325
332
  } else {
326
333
  this.authList = this.btnList
327
334
  }
335
+ if (!(this.authList.includes('isAddtask') || this.authList.includes('isAddForwardTask'))) {
336
+ this.getHasPreAddTask()
337
+ }
328
338
  })
329
339
  .catch(() => {
330
340
  this.authList = this.btnList
341
+ if (!(this.authList.includes('isAddtask') || this.authList.includes('isAddForwardTask'))) {
342
+ this.getHasPreAddTask()
343
+ }
331
344
  })
332
345
  },
333
346
  // 获取是否显示驳回至按钮
@@ -106,7 +106,7 @@
106
106
  </slot>
107
107
  </el-table-column>
108
108
  <slot name="slotCol"></slot>
109
- <el-table-column :label="'上传时间' | $lc" :prop="keys.time" sortable width="170" align="center">
109
+ <el-table-column :label="'上传时间' | $lc" :prop="keys.time" sortable width="170" align="left">
110
110
  <slot slot="header" slot-scope="scope" name="time-header" :column="scope.column">{{ '上传时间' | $lc }}</slot>
111
111
  <slot slot-scope="{ row }" name="time" :row="row">{{ row[keys.time] }}</slot>
112
112
  </el-table-column>
@@ -246,7 +246,7 @@ export default {
246
246
  item.options = opts || []
247
247
  }
248
248
  },
249
- getRemote() {
249
+ getRemote(flag) {
250
250
  getColumns(this.pageId, this.userNo, this.filterLT).then((list) => {
251
251
  if (list) {
252
252
  this.remoteList = list
@@ -254,7 +254,7 @@ export default {
254
254
  let defaultList = this.filterLT.filter((col) => col.isDefault)
255
255
  this.remoteList = defaultList.length ? defaultList : this.filterLT.slice(0, this.defaultShow)
256
256
  }
257
- this.showPop = true
257
+ this.showPop = flag || true
258
258
  })
259
259
  },
260
260
  setRemoteChange(list) {
@@ -105,10 +105,8 @@ export default {
105
105
  phd() {
106
106
  if (this.placeholder) {
107
107
  return this.placeholder
108
- } else if (this.type === 'rate') {
109
- return $lc('请输入利率')
110
108
  } else {
111
- return $lc('请输入金额')
109
+ return $lc('请输入')
112
110
  }
113
111
  },
114
112
  fNum() {
@@ -95,6 +95,7 @@
95
95
  </el-popover>
96
96
 
97
97
  <el-dropdown
98
+ ref="userDrop"
98
99
  class="user-info-drop"
99
100
  trigger="click"
100
101
  placement="bottom-end"
@@ -104,7 +105,12 @@
104
105
  >
105
106
  <img v-popover:by_popover class="user-info-btn header-color" :src="headerUserUrl" />
106
107
 
107
- <el-dropdown-menu slot="dropdown" :class="{ 'user-info-drop_height': !inBack }" class="user-info-drop-menu-new">
108
+ <el-dropdown-menu
109
+ ref="userDropMenu"
110
+ slot="dropdown"
111
+ :class="{ 'user-info-drop_height': !inBack }"
112
+ class="user-info-drop-menu-new"
113
+ >
108
114
  <div class="uif-user-w" :style="{ backgroundImage: headerUserInfoBg ? `url(${headerUserInfoBg})` : undefined }">
109
115
  <div class="uif-img-w">
110
116
  <img class="_img" :src="headerUserUrl" />
@@ -209,6 +215,15 @@
209
215
  <div class="uif-ydn p-r-m">{{ '已登录' | $lc }}:{{ durationTime }}</div>
210
216
  </el-dropdown-menu>
211
217
  </el-dropdown>
218
+ <div
219
+ v-title:br="rolesList.map((el) => el.name).join(',')"
220
+ :style="{ width: (userInfo?.companyName?.length * 0.86 || 4) + 'em', overflow: 'hidden' }"
221
+ class="text-ellipsis pointer"
222
+ @click="handleUser"
223
+ >
224
+ <div class="font-size-small">{{ userNo }}/{{ rolesList.map((el) => el.name).join('/') }}</div>
225
+ <div class="companyClass">{{ userInfo.companyName }}</div>
226
+ </div>
212
227
 
213
228
  <dialogWrap :title="'主题设置' | $lc" :visible.sync="themeV" append-to-body width="432px">
214
229
  <div style="min-height: 114px">
@@ -417,7 +432,7 @@ export default {
417
432
  },
418
433
  async clickSystem(item) {
419
434
  await this.getTreeList(item)
420
- localStorage.setItem('pageInType', 'toFront')
435
+ // localStorage.setItem('pageInType', 'toFront')
421
436
  window.localStorage.setItem('pageInSystemNo', item.NO)
422
437
  let { base = '/' } = this.$router.options
423
438
  if (!/\/$/.test(base)) base += '/'
@@ -425,6 +440,14 @@ export default {
425
440
  window.location.href = window.location.origin + base + 'dashboard/workplace'
426
441
  },
427
442
 
443
+ handleUser() {
444
+ this.$refs.userDropMenu.offset = 1000
445
+ if (this.$refs.userDrop.visible) {
446
+ this.$refs.userDrop.hide()
447
+ } else {
448
+ this.$refs.userDrop.show()
449
+ }
450
+ },
428
451
  // 跳转打主数据人员页面
429
452
  goMdmUser() {
430
453
  this.customOpt.userMd && linkPush('/mdm/personnel')
@@ -687,4 +710,8 @@ export default {
687
710
  font-size: 20px;
688
711
  vertical-align: middle;
689
712
  }
713
+ .companyClass {
714
+ font-size: 12px;
715
+ color: #999;
716
+ }
690
717
  </style>
@@ -1,21 +1,26 @@
1
1
  <template>
2
- <el-table :data="userListBanck" style="width: 100%">
3
- <el-table-column type="index" :label="'序号' | $lc" />
4
- <el-table-column prop="uno" :label="'账号' | $lc" width="180" />
5
- <el-table-column prop="cltName" :label="'单位' | $lc" />
6
- <el-table-column width="100" :label="'操作' | $lc">
7
- <template slot-scope="{ row }">
8
- <el-button v-if="userNo === row.uno" type="text" disabled>{{ '当前用户' | $lc }}</el-button>
9
- <el-button v-else type="text" @click="handleChange(row.uno)">{{ '切换' | $lc }}</el-button>
10
- </template>
11
- </el-table-column>
12
- </el-table>
2
+ <div>
3
+ <div>
4
+ <el-input v-model="searchValue" class="w-224 m-r" />
5
+ <el-button type="primary" @click="search">查询</el-button>
6
+ </div>
7
+ <el-table :data="userListBanck" height="400px" style="width: 100%; margin-top: 8px">
8
+ <el-table-column type="index" :label="'序号' | $lc" />
9
+ <el-table-column prop="uno" :label="'账号' | $lc" width="180" />
10
+ <el-table-column prop="cltName" :label="'单位' | $lc" />
11
+ <el-table-column width="100" :label="'操作' | $lc">
12
+ <template slot-scope="{ row }">
13
+ <el-button v-if="userNo === row.uno" type="text" disabled>{{ '当前用户' | $lc }}</el-button>
14
+ <el-button v-else type="text" @click="handleChange(row.uno)">{{ '切换' | $lc }}</el-button>
15
+ </template>
16
+ </el-table-column>
17
+ </el-table>
18
+ </div>
13
19
  </template>
14
20
 
15
21
  <script>
16
22
  import axios from '../../../utils/axios'
17
23
  import auth from '../../../utils/auth'
18
-
19
24
  export default {
20
25
  props: {
21
26
  visible: {
@@ -29,15 +34,23 @@ export default {
29
34
  },
30
35
  data() {
31
36
  return {
32
- userListBanck: [{}]
37
+ userListBanck: [{}],
38
+ searchValue: '',
39
+ list: [{}]
33
40
  }
34
41
  },
35
42
  created() {
36
43
  axios.get(`/bems/prod_1.0/user/api/userController/queryUserListByUserNo/${this.userNo}`).then(({ data }) => {
37
44
  this.userListBanck = data
45
+ this.list = data
38
46
  })
39
47
  },
40
48
  methods: {
49
+ search() {
50
+ this.userListBanck = this.list.filter(
51
+ (item) => item.uno.match(this.searchValue) || item.cltName.match(this.searchValue)
52
+ )
53
+ },
41
54
  handleChange(uno) {
42
55
  axios.get(`/bems/prod_1.0/uas/api/authorization/switchUser/${uno}`).then(({ data }) => {
43
56
  this.$emit('update:visible', false)
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <div v-if="size !== 'mini'" class="flex-box p-t-s p-b-s">
3
+ <div v-if="size !== 'mini'" class="flex-box p-t-ss p-b-ss">
4
4
  <statisItem :type="'当页合计' | $lc" :list="pageList" :show-w="showW" :show-u="showU" :count-label="countLabel" />
5
5
  <statisItem
6
6
  :type="'全部合计' | $lc"
@@ -10,7 +10,7 @@
10
10
  :count-label="countLabel"
11
11
  />
12
12
  </div>
13
- <div v-else class="n20-statis p-t-s p-b-s">
13
+ <div v-else class="n20-statis p-t-ss p-b-ss">
14
14
  <span class="m-r">
15
15
  {{ '当页:' | $lc }}<span class="n20-primary"> {{ pageSum }}</span> {{ '条' | $lc }}
16
16
  </span>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div v-if="lists.length == 1" class="flex-box p-t-s p-b-s">
2
+ <div v-if="lists.length == 1" class="flex-box p-t-ss p-b-ss">
3
3
  <statisItem
4
4
  v-for="(item, i) in lists[0]['statis']"
5
5
  :key="i"
@@ -20,7 +20,7 @@
20
20
  @show="show = true"
21
21
  @hide="show = false"
22
22
  >
23
- <div slot="reference" class="flex-box p-t-s p-b-s">
23
+ <div slot="reference" class="flex-box p-t-ss p-b-ss">
24
24
  <statisItem
25
25
  v-for="(item, i) in lists[0]['statis']"
26
26
  :key="i"
@@ -245,6 +245,7 @@ export default {
245
245
  this.$emit('update:size', size)
246
246
  },
247
247
  sizeSet(el) {
248
+ console.log(el)
248
249
  this.sizeBind = el
249
250
  let inTable = this.$refs['el-table']
250
251
  if (inTable) {
package/src/i18n.json CHANGED
@@ -5,6 +5,9 @@
5
5
  "数据请求": {
6
6
  "en": "Data request"
7
7
  },
8
+ "新一代集团财资管理系统": {
9
+ "en": "New generation group accounting system"
10
+ },
8
11
  "不支持在线预览,请": {
9
12
  "en": "Online preview is not supported, please"
10
13
  },