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
2e5297bd
Commit
2e5297bd
authored
Oct 12, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复报价单选择有牌价格不更新
parent
f2bf1505
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
.gitignore
.gitignore
+1
-1
collectI18nMessages.js
collectI18nMessages.js
+3
-2
edit.vue
src/views/ecw/offer/edit.vue
+1
-0
No files found.
.gitignore
View file @
2e5297bd
...
@@ -10,7 +10,7 @@ tests/**/coverage/
...
@@ -10,7 +10,7 @@ tests/**/coverage/
tests/e2e/reports
tests/e2e/reports
selenium-debug.log
selenium-debug.log
# 提取的需要翻译的文件列表
# 提取的需要翻译的文件列表
messages.txt
i18n-
messages.txt
# Editor directories and files
# Editor directories and files
.idea
.idea
.vscode
.vscode
...
...
collectI18nMessages.js
View file @
2e5297bd
...
@@ -2,6 +2,7 @@ const fs = require('fs');
...
@@ -2,6 +2,7 @@ const fs = require('fs');
const
root
=
"
./src
"
const
root
=
"
./src
"
let
allFiles
=
[]
let
allFiles
=
[]
function
getFiles
(
dir
){
function
getFiles
(
dir
){
let
files
=
fs
.
readdirSync
(
dir
)
let
files
=
fs
.
readdirSync
(
dir
)
files
.
forEach
(
file
=>
{
files
.
forEach
(
file
=>
{
...
@@ -16,12 +17,12 @@ getFiles(root)
...
@@ -16,12 +17,12 @@ getFiles(root)
let
messages
=
new
Set
()
let
messages
=
new
Set
()
allFiles
.
forEach
(
file
=>
{
allFiles
.
forEach
(
file
=>
{
let
data
=
fs
.
readFileSync
(
file
,
{
encoding
:
'
utf-8
'
})
let
data
=
fs
.
readFileSync
(
file
,
{
encoding
:
'
utf-8
'
})
let
matched
=
data
.
matchAll
(
/
\$
t
\([\'\"]{1}([^\"\']
+
)[\'\"]{1}
\)
/g
)
let
matched
=
data
.
matchAll
(
/
\$
t
\([\'\"]{1}([^\"\']
+
)[\'\"]{1}
/g
)
let
i
=
0
let
i
=
0
for
(
let
item
of
matched
){
for
(
let
item
of
matched
){
i
++
i
++
messages
.
add
(
item
[
1
])
messages
.
add
(
item
[
1
])
}
}
})
})
fs
.
writeFileSync
(
"
./messages.txt
"
,
Array
.
from
(
messages
).
join
(
"
\n
"
))
fs
.
writeFileSync
(
"
./
i18n-
messages.txt
"
,
Array
.
from
(
messages
).
join
(
"
\n
"
))
console
.
log
(
"
done!
"
)
console
.
log
(
"
done!
"
)
\ No newline at end of file
src/views/ecw/offer/edit.vue
View file @
2e5297bd
...
@@ -1021,6 +1021,7 @@ export default {
...
@@ -1021,6 +1021,7 @@ export default {
console
.
log
(
'
产品未选择
'
,
item
)
console
.
log
(
'
产品未选择
'
,
item
)
calcable
=
false
calcable
=
false
}
}
item
.
brandType
=
item
.
brand
})
})
if
(
this
.
calculating
||
!
calcable
)
return
false
if
(
this
.
calculating
||
!
calcable
)
return
false
this
.
calculating
=
true
this
.
calculating
=
true
...
...
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