n20-common-lib 2.8.16 → 2.8.18

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.8.16",
3
+ "version": "2.8.18",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -240,4 +240,16 @@ $--button-margin-left: 6px;
240
240
 
241
241
  .el-button-dropdown-item {
242
242
  margin-left: 27px !important;
243
+ }
244
+
245
+ .el-button--default.is-active {
246
+ color: $--color-primary;
247
+ background: $--color-white;
248
+ border-color: $--color-primary;
249
+
250
+ &:focus {
251
+ color: $--color-primary;
252
+ background: $--color-white;
253
+ border-color: $--color-primary;
254
+ }
243
255
  }
@@ -10,7 +10,14 @@
10
10
  @show="show"
11
11
  >
12
12
  <template slot="reference">
13
- <el-button icon="n20-icon-iconfontshaixuan" plain onlyicon size="mini" @click="clickBtn" />
13
+ <el-button
14
+ icon="n20-icon-iconfontshaixuan"
15
+ :class="isValueCpt ? 'is-active' : ''"
16
+ plain
17
+ onlyicon
18
+ size="mini"
19
+ @click="clickBtn"
20
+ />
14
21
  </template>
15
22
  <el-form
16
23
  v-show="showPopC"
@@ -81,10 +88,10 @@
81
88
  </template>
82
89
 
83
90
  <script>
84
- import formItemInput from './form-item-input.vue'
91
+ import getWidth from '../../utils/asciiWidth'
85
92
  import footerBox from '../FooterBox/index.vue'
86
93
  import showColumn, { getColumns } from '../ShowColumn/index.vue'
87
- import getWidth from '../../utils/asciiWidth'
94
+ import formItemInput from './form-item-input.vue'
88
95
 
89
96
  export default {
90
97
  name: 'Filters',
@@ -190,6 +197,17 @@ export default {
190
197
  if (this.width !== undefined) return this.width
191
198
 
192
199
  return this.labelWidthAs + 240
200
+ },
201
+ isValueCpt() {
202
+ let values = Object.values(this.form).some((value) => {
203
+ if (Array.isArray(value)) {
204
+ return value.length > 0
205
+ } else {
206
+ return value !== '' && value !== null && value !== undefined
207
+ }
208
+ })
209
+
210
+ return values
193
211
  }
194
212
  },
195
213
  methods: {
@@ -145,14 +145,14 @@
145
145
  <div class="uif-user-w" :style="{ backgroundImage: headerUserInfoBg ? `url(${headerUserInfoBg})` : undefined }">
146
146
  <div class="uif-img-w">
147
147
  <img class="_img" :src="headerUserUrl" />
148
- <cl-upload
148
+ <upload
149
149
  :action="`/bems/1.0/upload/${userNo}_img`"
150
150
  accept="image/*"
151
151
  msg-type="message"
152
152
  :on-success="getUserImg"
153
153
  >
154
154
  <div slot="trigger" class="_edit">{{ '更换头像' | $lc }}</div>
155
- </cl-upload>
155
+ </upload>
156
156
  </div>
157
157
  <div class="uif-name">
158
158
  <span>{{ userNo }}</span
@@ -320,6 +320,7 @@ import realUrl from '../../../assets/realUrl'
320
320
  import auth from '../../../utils/auth.js'
321
321
  import axios from '../../../utils/axios.js'
322
322
  import { linkPush } from '../../../utils/urlToGo.js'
323
+ import upload from '../../Upload/index.vue'
323
324
  dayjs.extend(duration)
324
325
 
325
326
  import { siteTree2menus } from '../../LoginTemporary/utils'
@@ -398,7 +399,8 @@ export default {
398
399
  changePwd,
399
400
  noticePop,
400
401
  switchUser,
401
- operatingStatus
402
+ operatingStatus,
403
+ upload
402
404
  },
403
405
  props: {
404
406
  beforeLogout: {