Commit 03ffd458 by hank

模板修改

parent e9143252
...@@ -4,5 +4,5 @@ const prodEnv = require('./prod.env') ...@@ -4,5 +4,5 @@ const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, { module.exports = merge(prodEnv, {
NODE_ENV: '"development"', NODE_ENV: '"development"',
BASE_API: '"http://47.95.238.195:8090"' BASE_API: '"http://equipment.bdideal.com"'
}) })
\ No newline at end of file
'use strict' 'use strict'
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
BASE_API: '"http://47.95.238.195:8090"' BASE_API: '"http://equipment.bdideal.com"'
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ import request from 'src/config/request' ...@@ -2,7 +2,7 @@ import request from 'src/config/request'
export function getFilmDetail (filmId) { // 获取影片详情 export function getFilmDetail (filmId) { // 获取影片详情
return request({ return request({
url: `/template/get/film/info/${filmId}`, url: `/equipment/get/film/info/${filmId}`,
method: 'get' method: 'get'
}) })
} }
...@@ -151,10 +151,10 @@ export default { ...@@ -151,10 +151,10 @@ export default {
} else { } else {
this.isEditMode = false; this.isEditMode = false;
} }
if (getQuery("filmId")) { if (getQuery("filmId") && !this.isEditMode) {
getFilmDetail(getQuery("filmId")).then(result => { getFilmDetail(getQuery("filmId")).then(result => {
console.log(result); console.log(result);
vm.list = JSON.parse(result.filmData); vm.list = JSON.parse(result.filmData).pageList;
vm.filmId = result.filmId; vm.filmId = result.filmId;
}); });
} else { } else {
......
import data from './schemaData2.js' import data from './schemaData2.js'
import editMethod from './editMethod.js' import editMethod from './editMethod.js'
import requireIcons from '@/icons/requireIcons' import requireIcons from '@/icons/requireIcons'
// console.log(JSON.stringify(data)) console.log(JSON.stringify(data))
export default { export default {
data: function () { data: function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment