Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
eaa1a9e2
Commit
eaa1a9e2
authored
Oct 09, 2022
by
dcy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
2863a5ff
f9c937d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
5 deletions
+33
-5
.gitignore
.gitignore
+2
-1
collectI18nMessages.js
collectI18nMessages.js
+27
-0
detail.vue
src/views/ecw/offer/detail.vue
+4
-4
No files found.
.gitignore
View file @
eaa1a9e2
...
@@ -9,7 +9,8 @@ yarn-error.log*
...
@@ -9,7 +9,8 @@ yarn-error.log*
tests/**/coverage/
tests/**/coverage/
tests/e2e/reports
tests/e2e/reports
selenium-debug.log
selenium-debug.log
# 提取的需要翻译的文件列表
messages.txt
# Editor directories and files
# Editor directories and files
.idea
.idea
.vscode
.vscode
...
...
collectI18nMessages.js
0 → 100644
View file @
eaa1a9e2
const
fs
=
require
(
'
fs
'
);
const
root
=
"
./src
"
let
allFiles
=
[]
function
getFiles
(
dir
){
let
files
=
fs
.
readdirSync
(
dir
)
files
.
forEach
(
file
=>
{
let
path
=
dir
+
'
/
'
+
file
if
(
fs
.
lstatSync
(
path
).
isDirectory
()){
getFiles
(
path
)
}
else
allFiles
.
push
(
path
)
})
}
getFiles
(
root
)
let
messages
=
new
Set
()
allFiles
.
forEach
(
file
=>
{
let
data
=
fs
.
readFileSync
(
file
,
{
encoding
:
'
utf-8
'
})
let
matched
=
data
.
matchAll
(
/
\$
t
\([\'\"]{1}([^\"\']
+
)[\'\"]{1}\)
/g
)
let
i
=
0
for
(
let
item
of
matched
){
i
++
messages
.
add
(
item
[
1
])
}
})
fs
.
writeFileSync
(
"
./messages.txt
"
,
Array
.
from
(
messages
).
join
(
"
\n
"
))
console
.
log
(
"
done!
"
)
\ No newline at end of file
src/views/ecw/offer/detail.vue
View file @
eaa1a9e2
...
@@ -105,10 +105,10 @@
...
@@ -105,10 +105,10 @@
<dict-tag
:value=
"scope.row.unit"
:type=
"DICT_TYPE.ECW_PACKAGING_TYPE"
defaultable
/>
<dict-tag
:value=
"scope.row.unit"
:type=
"DICT_TYPE.ECW_PACKAGING_TYPE"
defaultable
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('箱规
(m)')
"
width=
"120px"
prop=
"boxGauge"
/>
<el-table-column
:label=
"$t('箱规
') + '(m)'
"
width=
"120px"
prop=
"boxGauge"
/>
<el-table-column
:label=
"$t('体积
(m³)')
"
width=
"100px"
prop=
"volume"
/>
<el-table-column
:label=
"$t('体积
') + '(m³)'
"
width=
"100px"
prop=
"volume"
/>
<el-table-column
:label=
"$t('重量
(kg)')
"
width=
"100px"
prop=
"weight"
/>
<el-table-column
:label=
"$t('重量
') + '(kg)'
"
width=
"100px"
prop=
"weight"
/>
<el-table-column
:label=
"$t('货值
(RMB)')
"
width=
"100px"
prop=
"worth"
/>
<el-table-column
:label=
"$t('货值
') + '(RMB)'
"
width=
"100px"
prop=
"worth"
/>
<el-table-column
:label=
"$t('商品特性')"
width=
"200px"
prop=
"prodAttrName"
/>
<el-table-column
:label=
"$t('商品特性')"
width=
"200px"
prop=
"prodAttrName"
/>
<el-table-column
:label=
"$t('是否预付')"
>
<el-table-column
:label=
"$t('是否预付')"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment