Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-template
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
03ffd458
authored
Aug 01, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板修改
parent
e9143252
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
config/dev.env.js
+2
-1
config/prod.env.js
+2
-1
src/framework/templateApi/index.js
+1
-1
src/templates/companyCulture/index.vue
+2
-2
src/templates/companyCulture/mixin.js
+1
-1
No files found.
config/dev.env.js
View file @
03ffd458
...
...
@@ -4,5 +4,5 @@ const prodEnv = require('./prod.env')
module
.
exports
=
merge
(
prodEnv
,
{
NODE_ENV
:
'"development"'
,
BASE_API
:
'"http://
47.95.238.195:8090
"'
BASE_API
:
'"http://
equipment.bdideal.com
"'
})
\ No newline at end of file
config/prod.env.js
View file @
03ffd458
'use strict'
module
.
exports
=
{
NODE_ENV
:
'"production"'
,
BASE_API
:
'"http://
47.95.238.195:8090
"'
BASE_API
:
'"http://
equipment.bdideal.com
"'
}
\ No newline at end of file
src/framework/templateApi/index.js
View file @
03ffd458
...
...
@@ -2,7 +2,7 @@ import request from 'src/config/request'
export
function
getFilmDetail
(
filmId
)
{
// 获取影片详情
return
request
({
url
:
`/
template
/get/film/info/
${
filmId
}
`
,
url
:
`/
equipment
/get/film/info/
${
filmId
}
`
,
method
:
'get'
})
}
src/templates/companyCulture/index.vue
View file @
03ffd458
...
...
@@ -151,10 +151,10 @@ export default {
}
else
{
this
.
isEditMode
=
false
;
}
if
(
getQuery
(
"filmId"
))
{
if
(
getQuery
(
"filmId"
)
&&
!
this
.
isEditMode
)
{
getFilmDetail
(
getQuery
(
"filmId"
)).
then
(
result
=>
{
console
.
log
(
result
);
vm
.
list
=
JSON
.
parse
(
result
.
filmData
);
vm
.
list
=
JSON
.
parse
(
result
.
filmData
)
.
pageList
;
vm
.
filmId
=
result
.
filmId
;
});
}
else
{
...
...
src/templates/companyCulture/mixin.js
View file @
03ffd458
import
data
from
'./schemaData2.js'
import
editMethod
from
'./editMethod.js'
import
requireIcons
from
'@/icons/requireIcons'
//
console.log(JSON.stringify(data))
console
.
log
(
JSON
.
stringify
(
data
))
export
default
{
data
:
function
()
{
...
...
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