n20-common-lib 1.3.89 → 1.3.91
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 +1 -1
- package/src/components/FileUploadTable/index.vue +7 -4
- package/src/components/Layout/HeaderWrap/changePwd.vue +1 -1
- package/src/components/Layout/HeaderWrap/index.vue +6 -1
- package/src/components/SelectTree/index.vue +1 -1
- package/src/utils/i18n/index.js +1 -0
- package/src/utils/tableheaderFilterpanel.vue +13 -6
package/package.json
CHANGED
|
@@ -140,7 +140,11 @@
|
|
|
140
140
|
</template>
|
|
141
141
|
<template slot-scope="{ row }">
|
|
142
142
|
<slot name="name" :row="row">
|
|
143
|
-
<el-input
|
|
143
|
+
<el-input
|
|
144
|
+
:value="row[keys.name] ? row[keys.name].replace(/\.[A-z0-9]+$/, '') : ''"
|
|
145
|
+
disabled
|
|
146
|
+
:placeholder="'请输入' | $lc"
|
|
147
|
+
/>
|
|
144
148
|
</slot>
|
|
145
149
|
</template>
|
|
146
150
|
</el-table-column>
|
|
@@ -494,9 +498,8 @@ export default {
|
|
|
494
498
|
row[this.keys.time] = dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
495
499
|
|
|
496
500
|
row[this.keys.url] = response.data
|
|
497
|
-
if (!row[this.keys.name]) {
|
|
498
|
-
|
|
499
|
-
}
|
|
501
|
+
// if (!row[this.keys.name]) { row[this.keys.name] = file.name }
|
|
502
|
+
row[this.keys.name] = file.name
|
|
500
503
|
this.$set(row, '_status', 'success')
|
|
501
504
|
|
|
502
505
|
this.$emit('on-success', file, row)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-loading="laoding">
|
|
3
|
-
<el-form ref="cp-form" :model="form" label-width="6em" @submit.native.prevent>
|
|
3
|
+
<el-form ref="cp-form" :model="form" :label-width="_lang == 'zh' ? '6em' : '11em'" @submit.native.prevent>
|
|
4
4
|
<el-form-item :label="'账号' | $lc">
|
|
5
5
|
<el-input :value="form.username" disabled />
|
|
6
6
|
</el-form-item>
|
|
@@ -106,7 +106,12 @@
|
|
|
106
106
|
></span>
|
|
107
107
|
</div>
|
|
108
108
|
</dialogWrap>
|
|
109
|
-
<dialogWrap
|
|
109
|
+
<dialogWrap
|
|
110
|
+
:title="'修改密码' | $lc"
|
|
111
|
+
:visible.sync="cpwdV"
|
|
112
|
+
append-to-body
|
|
113
|
+
:width="_lang == 'zh' ? '400px' : '460px'"
|
|
114
|
+
>
|
|
110
115
|
<changePwd :visible.sync="cpwdV" />
|
|
111
116
|
</dialogWrap>
|
|
112
117
|
<!-- 消息/通知 -->
|
package/src/utils/i18n/index.js
CHANGED
|
@@ -6,7 +6,13 @@
|
|
|
6
6
|
v-click-outside:capture="handleOutsideClick"
|
|
7
7
|
class="el-table-filter p-a m-t"
|
|
8
8
|
>
|
|
9
|
-
<el-input
|
|
9
|
+
<el-input
|
|
10
|
+
v-model="searchVal"
|
|
11
|
+
class="input-w m-b"
|
|
12
|
+
:placeholder="'请输入' | $lc"
|
|
13
|
+
clearable
|
|
14
|
+
suffix-icon="el-icon-search"
|
|
15
|
+
/>
|
|
10
16
|
<div>
|
|
11
17
|
<el-scrollbar>
|
|
12
18
|
<el-checkbox v-model="allCheck" :label="true" :indeterminate="filteredValue.length > 0" @change="allChange">{{
|
|
@@ -35,16 +41,16 @@
|
|
|
35
41
|
}
|
|
36
42
|
"
|
|
37
43
|
>
|
|
38
|
-
确认
|
|
44
|
+
{{ '确认' | $lc }}
|
|
39
45
|
</el-button>
|
|
40
|
-
<el-button plain size="mini" @click="handleReset"
|
|
46
|
+
<el-button plain size="mini" @click="handleReset">{{ '清空' | $lc }}</el-button>
|
|
41
47
|
</div>
|
|
42
48
|
</div>
|
|
43
49
|
<div v-else v-show="showPopper" v-click-outside:capture="handleOutsideClick" class="el-table-filter p-a m-t">
|
|
44
50
|
<el-input
|
|
45
51
|
v-model="searchVal"
|
|
46
52
|
class="input-w m-b-ss"
|
|
47
|
-
placeholder="请输入"
|
|
53
|
+
:placeholder="'请输入' | $lc"
|
|
48
54
|
clearable
|
|
49
55
|
suffix-icon="el-icon-search"
|
|
50
56
|
/>
|
|
@@ -76,6 +82,7 @@
|
|
|
76
82
|
</template>
|
|
77
83
|
|
|
78
84
|
<script>
|
|
85
|
+
import { $lc } from './i18n/index'
|
|
79
86
|
import Popper from 'element-ui/lib/utils/vue-popper.js'
|
|
80
87
|
export default {
|
|
81
88
|
name: 'ElTableFilterPanelPor',
|
|
@@ -95,9 +102,9 @@ export default {
|
|
|
95
102
|
total = total + Number(c.count)
|
|
96
103
|
}
|
|
97
104
|
})
|
|
98
|
-
return '全部 (' + total + ')'
|
|
105
|
+
return $lc('全部') + ' (' + total + ')'
|
|
99
106
|
} else {
|
|
100
|
-
return '全部'
|
|
107
|
+
return $lc('全部')
|
|
101
108
|
}
|
|
102
109
|
}
|
|
103
110
|
},
|