n20-common-lib 2.2.35 → 2.2.37
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
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
<slot slot="header" slot-scope="scope" name="time-header" :column="scope.column">{{ '上传时间' | $lc }}</slot>
|
|
105
105
|
<slot slot-scope="{ row }" name="time" :row="row">{{ row[keys.time] }}</slot>
|
|
106
106
|
</el-table-column>
|
|
107
|
-
<el-table-column :label="'上传人' | $lc" :prop="keys.user">
|
|
107
|
+
<el-table-column v-if="!hideUser" :label="'上传人' | $lc" :prop="keys.user">
|
|
108
108
|
<slot slot="header" slot-scope="scope" name="user-header" :column="scope.column">{{ '上传人' | $lc }}</slot>
|
|
109
109
|
<slot slot-scope="{ row }" name="user" :row="row">{{ row[keys.user] }}</slot>
|
|
110
110
|
</el-table-column>
|
|
@@ -320,6 +320,10 @@ export default {
|
|
|
320
320
|
getFileMethod: {
|
|
321
321
|
type: Function,
|
|
322
322
|
default: undefined
|
|
323
|
+
},
|
|
324
|
+
hideUser: {
|
|
325
|
+
type: Boolean,
|
|
326
|
+
default: false
|
|
323
327
|
}
|
|
324
328
|
},
|
|
325
329
|
data() {
|
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
filters: {
|
|
17
17
|
keyF({ path, query = {} }) {
|
|
18
18
|
path = path.replace(/^\//, routerBase)
|
|
19
|
-
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' +
|
|
19
|
+
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' + window._tab_route_key[path]
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
props: {
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
51
51
|
},
|
|
52
52
|
filters: {
|
|
53
53
|
keyF({ path, query = {} }) {
|
|
54
|
-
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' +
|
|
54
|
+
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' + window._tab_route_key[path]
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
props: {
|
|
@@ -227,13 +227,18 @@ export default {
|
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
addRouterKey(path, query) {
|
|
230
|
-
let
|
|
231
|
-
if (
|
|
232
|
-
|
|
230
|
+
let nuPath = window.sessionStorage.getItem('not-update-path')
|
|
231
|
+
if (nuPath === path) {
|
|
232
|
+
window.sessionStorage.removeItem('not-update-path')
|
|
233
233
|
} else {
|
|
234
|
-
keys
|
|
234
|
+
let keys = window._tab_route_key
|
|
235
|
+
if (!keys[path]) {
|
|
236
|
+
keys[path] = 1
|
|
237
|
+
} else {
|
|
238
|
+
keys[path] = keys[path] + 1
|
|
239
|
+
}
|
|
240
|
+
this.CompatibleUpdateCache(path) // 兼容旧的子模块清除缓存
|
|
235
241
|
}
|
|
236
|
-
this.CompatibleUpdateCache(path) // 兼容旧的子模块清除缓存
|
|
237
242
|
},
|
|
238
243
|
routerPush({ path, query }) {
|
|
239
244
|
this.$router.push({ path, query })
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
51
51
|
},
|
|
52
52
|
filters: {
|
|
53
53
|
keyF({ path, query = {} }) {
|
|
54
|
-
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' +
|
|
54
|
+
return path + '^' + JSON.stringify({ ...query, _fromNo: undefined }) + '^' + window._tab_route_key[path]
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
props: {
|
|
@@ -237,13 +237,18 @@ export default {
|
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
239
|
addRouterKey(path, query) {
|
|
240
|
-
let
|
|
241
|
-
if (
|
|
242
|
-
|
|
240
|
+
let nuPath = window.sessionStorage.getItem('not-update-path')
|
|
241
|
+
if (nuPath === path) {
|
|
242
|
+
window.sessionStorage.removeItem('not-update-path')
|
|
243
243
|
} else {
|
|
244
|
-
keys
|
|
244
|
+
let keys = window._tab_route_key
|
|
245
|
+
if (!keys[path]) {
|
|
246
|
+
keys[path] = 1
|
|
247
|
+
} else {
|
|
248
|
+
keys[path] = keys[path] + 1
|
|
249
|
+
}
|
|
250
|
+
this.CompatibleUpdateCache(path) // 兼容旧的子模块清除缓存
|
|
245
251
|
}
|
|
246
|
-
this.CompatibleUpdateCache(path) // 兼容旧的子模块清除缓存
|
|
247
252
|
},
|
|
248
253
|
routerPush({ path, query }) {
|
|
249
254
|
this.$router.push({ path, query })
|