Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
abda1cd8
Commit
abda1cd8
authored
Apr 27, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分字段为空replace报错问题
parent
852bd420
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
src/views/school-center/productManagement/broadband.vue
+3
-3
src/views/school-center/productManagement/package.vue
+1
-2
src/views/school-center/productManagement/product.vue
+5
-5
No files found.
src/views/school-center/productManagement/broadband.vue
View file @
abda1cd8
...
@@ -558,9 +558,9 @@ export default {
...
@@ -558,9 +558,9 @@ export default {
const
schools
=
res
.
data
.
schoolsData
const
schools
=
res
.
data
.
schoolsData
that
.
modelData
.
schools
=
(
schools
==
undefined
?
[]
:
schools
);
that
.
modelData
.
schools
=
(
schools
==
undefined
?
[]
:
schools
);
that
.
modelData
.
universityId
=
university
.
universityId
that
.
modelData
.
universityId
=
university
.
universityId
that
.
productIntroduction
=
this
.
HTMLEncode
(
product
.
productIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
));
that
.
productIntroduction
=
this
.
HTMLEncode
(
product
.
productIntroduction
==
null
?
""
:
product
.
productIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
));
that
.
productSetMealIntroduction
=
this
.
HTMLEncode
(
product
.
productSetMealIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
));
that
.
productSetMealIntroduction
=
this
.
HTMLEncode
(
product
.
productSetMealIntroduction
==
null
?
""
:
product
.
productSetMealIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
));
that
.
productRf2
=
this
.
HTMLEncode
(
product
.
productRf2
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
));
that
.
productRf2
=
this
.
HTMLEncode
(
product
.
productRf2
==
null
?
""
:
product
.
productRf2
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
));
that
.
modelData
.
productMealPrice
=
product
.
productMealPrice
that
.
modelData
.
productMealPrice
=
product
.
productMealPrice
that
.
modelData
.
productUniversity
=
product
.
productUniversity
that
.
modelData
.
productUniversity
=
product
.
productUniversity
that
.
modelData
.
productRhPrice
=
product
.
productRhPrice
that
.
modelData
.
productRhPrice
=
product
.
productRhPrice
...
...
src/views/school-center/productManagement/package.vue
View file @
abda1cd8
...
@@ -340,13 +340,12 @@
...
@@ -340,13 +340,12 @@
},
0
)
},
0
)
},
},
modifyfunction
(
data
){
modifyfunction
(
data
){
console
.
log
(
data
);
this
.
modifyForm
.
id
=
data
.
id
this
.
modifyForm
.
id
=
data
.
id
this
.
fileid
=
{
this
.
fileid
=
{
id
:
data
.
id
id
:
data
.
id
}
}
let
url
=
this
.
baseuploadUrl
()
+
"app/ciop"
+
data
.
advImg
.
replace
(
"enclosure"
,
"ciop"
)
if
(
!
(
data
.
advImg
==
null
||
data
.
advImg
==
""
))
{
if
(
!
(
data
.
advImg
==
null
||
data
.
advImg
==
""
))
{
let
url
=
this
.
baseuploadUrl
()
+
"app/ciop"
+
data
.
advImg
.
replace
(
"enclosure"
,
"ciop"
)
//下载图片浏览
//下载图片浏览
this
.
fileList
.
push
({
this
.
fileList
.
push
({
uid
:
this
.
getuuid
(),
uid
:
this
.
getuuid
(),
...
...
src/views/school-center/productManagement/product.vue
View file @
abda1cd8
...
@@ -199,8 +199,8 @@
...
@@ -199,8 +199,8 @@
modifyvisible
:
false
,
modifyvisible
:
false
,
add
:
true
,
add
:
true
,
productIntroduction
:
""
,
productIntroduction
:
""
,
productSetMealIntroduction
:
''
,
productSetMealIntroduction
:
""
,
productRf2
:
''
,
productRf2
:
""
,
subNames
:
[],
subNames
:
[],
schoolNames
:
[],
schoolNames
:
[],
queryParam
:
{
queryParam
:
{
...
@@ -358,9 +358,9 @@
...
@@ -358,9 +358,9 @@
}
}
})
})
if
(
data
!=
undefined
)
{
if
(
data
!=
undefined
)
{
this
.
productIntroduction
=
data
.
productIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
)
this
.
productIntroduction
=
data
.
productIntroduction
==
null
?
""
:
data
.
productIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
)
this
.
productSetMealIntroduction
=
data
.
productSetMealIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
)
this
.
productSetMealIntroduction
=
data
.
productSetMealIntroduction
==
null
?
""
:
data
.
productSetMealIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
)
this
.
productRf2
=
data
.
productRf2
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
)
this
.
productRf2
=
data
.
productRf2
==
null
?
""
:
data
.
productRf2
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
)
this
.
modelData
.
productMealPrice
=
data
.
productMealPrice
this
.
modelData
.
productMealPrice
=
data
.
productMealPrice
this
.
modelData
.
productUniversity
=
data
.
productUniversity
this
.
modelData
.
productUniversity
=
data
.
productUniversity
this
.
modelData
.
productRhPrice
=
data
.
productRhPrice
this
.
modelData
.
productRhPrice
=
data
.
productRhPrice
...
...
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