Authored by 姜敏

拍摄管理--拍摄要求管理完善

/**
* Created by JiangMin on 2016/3/22.
* 测量商品列表管理
*/
var $ = require('jquery');
var common = require('../common/common');
/**
* 列表显示数据
* @type {common.grid}
*/
var g = new common.grid({
el: '#content-list',
hash: false,
//查询参数
parms: function () {
//return {
// modelName: common.util.__input('content-filter1'),
// englishName: common.util.__input('content-filter2'),
// status: common.util.__input('status-filter')
//};
},
//列表显示
columns: [
{display: "SKN", name: "SKN"},
{display: "SKC/颜色", name: "skc"},
{display: "SKU", name: "sku"},
{display: "名称", name: "name"},
{display: "品牌", name: "brand"},
{display: "分类", name: "shoeSize"},
{display: "性别", name: "sex"},
{display: "尺码", name: "sex"},
{display: "状态", name: "sex"},
{display: "返回原因", name: "sex"},
{display: "库存", name: "sex"},
{display: "预计到货时间", name: "sex"},
{display: "到货时间", name: "sex"}
]
});
g.init("/meterGoods/meterGoods/index1");
... ... @@ -101,6 +101,7 @@ var Bll = {
option.data.weight = parseInt($("#weight").val());//模特体重
option.data.status = 1;//模特状态,默认启用
option.data.vitalStatistics = $("#Bust").val() + '|' + $("#waist").val() + "|" + $("#hips").val();//模特三围,拼接字符串
console.log("data", option.data);
//option.debug = true;//调试状态
option.success = function (res) {
//判断接口请求状态
... ...
... ... @@ -15,20 +15,22 @@ var g = new common.grid({
parms: function () {
return {
//查询参数
//modelName: common.util.__input('content-filter1'),
//englishName: common.util.__input('content-filter2'),
//status: common.util.__input('content-filter2')
productSkn: common.util.__input('content-filter1'),
productSkc: common.util.__input('content-filter2'),
productSku: common.util.__input('content-filter3'),
startTime: common.util.__input('startTime'),
endTime: common.util.__input('endTime')
};
},
//列表显示
columns: [
{display: "SKN", name: "skn"},
{display: "最后上传时间", name: "time"},
{display: "SKN", name: "productSkn"},
{display: "最后上传时间", name: "endTime"},
{
display: "图片", name: "avatar", render: function (item) {
return '<img src="' + item.avatar + '" width="100" height="60"/>'
console.log("item",item);
}
},//图片显示
},
{
display: "操作", name: "", render: function (item) {
var arr = [];
... ...
... ... @@ -6,7 +6,6 @@ var $ = require('jquery');
var common = require('../common/common');
/**
* 列表显示数据
* @type {common.grid}
*/
var g = new common.grid({
el: '#content-list',
... ... @@ -14,91 +13,55 @@ var g = new common.grid({
//查询参数
parms: function () {
return {
modelName: common.util.__input('content-filter1'),
englishName: common.util.__input('content-filter2'),
status: common.util.__input('status-filter')
status: common.util.__input('status-filter'),
type: common.util.__input('type-filter')
};
},
//列表显示
columns: [
{display: "姓名", name: "modelName"},
{display: "英文名", name: "englishName"},
{display: "名称", name: "name"},
{
display: "头像", name: "avatar", render: function (item) {
return '<img src="' + item.avatar + '" width="100" height="60"/>'
}
},//图片显示
{display: "国籍", name: "nationality"},
{display: "身高", name: "height"},
{display: "体重", name: "weight"},
{
display: "胸围", render: function (item) {
var a = item.vitalStatistics.split(/[,|/]/g);
return a[0];
}
},
{
display: "腰围", render: function (item) {
var a = item.vitalStatistics.split(/[,|/]/g);
return a[1];
}
},
{
display: "臀围", render: function (item) {
var a = item.vitalStatistics.split(/[,|/]/g);
return a[2];
}
},
{display: "鞋码", name: "shoeSize"},
{display: "衣服尺码", name: "dressSize"},
{
display: "模特卡", name: "modelCard", render: function (item) {
return '<img src="' + item.modelCard + '" width="100" height="60"/>'
display: "类别", name: "type", render: function (item) {
var type = item.type+"";
var type1 = type.replace(1, "拍摄类型").replace(2, "拍摄风格")
.replace(3, "模特类型").replace(4, "道具类型")
.replace(5, "滤镜效果").replace(6, "摄影场景")
.replace(/\|/g, " ");
return type1;
}
},
{
display: "状态", name: "status", render: function (item) {
if (item.status == 1) {
return status = "启用"
return "可用"
}
else {
return status = "禁用"
return "不可用"
}
}
},
{
display: "操作", name: "", render: function (item) {
var arr = [];
arr.push('<a class="btn btn-info update" data-index="' + item.__index + '">修改</a>');
arr.push('<a class="btn btn-danger delete" data-index="' + item.__index + '">删除</a>');
return arr.join('');
}
}
]
});
g.init("/shotManage/model/getAllModels");
g.init("/shotManage/shotRequire/index1");
var Bll = {
toast: function (url, item, hint) {
var e = new common.edit("#baseform", {
bucket: "modelCard"
});
//e.on("validate",function(){
// var dressSize=$.trim($("#dressSize").val());
// if(dressSize!='s'){
// return "尺码有误";
// }
// return true;
//});
var a=common.dialog.confirm(hint,
var e = new common.edit("#baseform");
var a = common.dialog.confirm(hint,
common.util.__template2($("#template").html(), item),
function () {
e.submit(url, function (option) {
option.data.modelType = 1;//模特类型,默认拍摄模特
option.data.status = 1;//模特状态,默认启用
option.data.height = parseInt($("#height").val());//模特身高
option.data.weight = parseInt($("#weight").val());//模特体重
option.data.status = 1;//模特状态,默认启用
option.data.vitalStatistics = $("#Bust").val() + '|' + $("#waist").val() + "|" + $("#hips").val();//模特三围,拼接字符串
option.data.status = 1;//状态,默认启用
option.data.type = parseInt($("#type").val());//类别
option.data.id = item.id;//类别
//option.debug = true;//调试状态
option.success = function (res) {
//判断接口请求状态
... ... @@ -116,24 +79,31 @@ var Bll = {
});
return false;
});
e.init();
}
};
//添加模特--点击事件
//添加--点击事件
$('#add-content').on('click', function () {
var item = {};
Bll.toast('/shotManage/model/addModel', item, "添加模特");
Bll.toast('/shotManage/shotRequire/add', item, "添加");
});
//修改模特--点击事件
$(document).on('click', '.update', function () {
var item = g.rows[$(this).data("index")];
var a = item.vitalStatistics.split(/[,|/]/g);
item.Bust = a[0];
item.waist = a[1];
item.hips = a[2];
Bll.toast('/shotManage/model/updateModel', item, "修改模特");
//删除--点击事件
$(document).on('click', '.delete', function() {
var item=g.rows[$(this).data("index")];
common.dialog.confirm("警告",
"确认删除?",
function() {
common.util.__ajax({
url:'/shotManage/shotRequire/update',
data:{
id: item.id,
name: item.name
}
},function() {
g.reload();
});
});
});
//查询按钮--点击事件
$(document).on('click', '#filter-btn', function () {
... ...
/**
* Created by JiangMin on 2016/3/22.
* 测量商品列表
*/
//exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.162:8080/platform'; //李建
exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境
exports.res = [
//主界面
{
route: '/meterManage/meterGoods/index',//访问路由
method: 'GET',//方法
view: 'pages/meterManage/meterGoods',//视图
src: '/meterManage/meterGoods'//控制层
},
//api请求数据
{
route: '/meterGoods/meterGoods/index1',
method: 'POST',
//url: '/model/queryModelList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
}
];
\ No newline at end of file
... ... @@ -2,7 +2,9 @@
* Created by JiangMin on 2016/3/22.
* 产品图片管理
*/
exports.domain = require('../config/common.js').domain;
//exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.162:8080/platform'; //李建
exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境
exports.res = [
//主界面
... ... @@ -16,11 +18,37 @@ exports.res = [
{
route: '/shotManage/proPhoto/index2',
method: 'POST',
//url: '/model/queryModelList',
url: '/productPhoto/queryProductPhotoList',
params: [
//查询参数
{name: 'productSkn', type: 'Number'},
{name: 'productSkc', type: 'Number'},
{name: 'productSku', type: 'Number'},
{name: 'startTime', type: 'Number'},
{name: 'endTime', type: 'Number'},
//分页参数
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
//新增图片
{
route: '/shotManage/model/addModel',
method: 'POST',
url: '/model/addModel',
params: [
{name: 'englishName', type: 'string'},//英文名
{name: 'height', type: 'Number'},//身高
{name: 'dressSize', type: 'string'},//穿衣尺码
{name: 'modelName', type: 'string'},//名称
{name: 'modelType', type: 'Number'},//模特类型:1 拍摄模特 2 试穿模特
{name: 'nationality', type: 'string'},//国籍
{name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
{name: 'shoeSize', type: 'string'},//鞋尺码
{name: 'vitalStatistics', type: 'string'},//三围
{name: 'weight', type: 'Number'},//体重
{name: 'avatar', type: 'string'},//头像
{name: 'modelCard', type: 'string'}//模特卡
]
}
];
\ No newline at end of file
... ...
... ... @@ -14,57 +14,39 @@ exports.res = [
view: 'pages/shotManage/shotRequire',//视图
src: '/shotManage/shotRequire'//控制层
},
//api请求数据
//api请求数据列表
{
route: '/shotManage/shotRequire/index2',
route: '/shotManage/shotRequire/index1',
method: 'POST',
//url: '/shotManage/shotRequire',
url: '/shootRequire/queryShootRequireList',
params: [
{name: 'englishName', type: 'string'},//英文名
{name: 'modelName', type: 'string'},//名称
{name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
{name: 'type', type: 'Number'},//类别
{name: 'status', type: 'Number'},//状态
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
//新增模特
//新增
{
route: '/shotManage/model/addModel',
route: '/shotManage/shotRequire/add',
method: 'POST',
url: '/model/addModel',
url: '/shootRequire/saveShootRequire',
params: [
{name: 'englishName', type: 'string'},//英文名
{name: 'height', type: 'Number'},//身高
{name: 'dressSize', type: 'string'},//穿衣尺码
{name: 'modelName', type: 'string'},//名称
{name: 'modelType', type: 'Number'},//模特类型:1 拍摄模特 2 试穿模特
{name: 'nationality', type: 'string'},//国籍
{name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
{name: 'shoeSize', type: 'string'},//鞋尺码
{name: 'vitalStatistics', type: 'string'},//三围
{name: 'weight', type: 'Number'},//体重
{name: 'avatar', type: 'string'},//头像
{name: 'modelCard', type: 'string'}//模特卡
{name: 'type', type: 'Number'},//类别
{name: 'status', type: 'Number'},//状态
{name: 'name', type: 'string'}//名称
]
},
//修改模特
//删除
{
route: '/shotManage/model/updateModel',
route: '/shotManage/shotRequire/update',
method: 'POST',
url: '/model/updateModel',
url: '/shootRequire/saveShootRequire',
params: [
{name: 'id', type: 'Number'},//主键
{name: 'englishName', type: 'string'},//英文名
{name: 'height', type: 'Number'},//身高
{name: 'dressSize', type: 'string'},//穿衣尺码
{name: 'modelName', type: 'string'},//名称
{name: 'modelType', type: 'Number'},//模特类型:1 拍摄模特 2 试穿模特
{name: 'nationality', type: 'string'},//国籍
{name: 'shoeSize', type: 'string'},//鞋尺码
{name: 'status', type: 'Number'},//模特状态:0 禁用 1 启用
{name: 'vitalStatistics', type: 'string'},//三围
{name: 'weight', type: 'Number'},//体重
{name: 'avatar', type: 'string'}//头像
{name: 'type', type: 'Number'},//类别
{name: 'status', type: 'Number'},//状态
{name: 'name', type: 'string'}//名称
]
}
];
\ No newline at end of file
... ...
<!--测量商品管理界面-->
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">测量管理</a></li>
<li>测量商品管理</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>测量商品列表</h4>
</div>
</div>
</div>
</div>
</div>
<div class="contentpanel">
<div class="panel panel-default" style="...">
<div class="panel-body">
<div class="row">
<div class="panel-col">
<select name="brand" id="brand-filter" tabindex="-1" title=""
class="form-control">
<option value="">品牌搜索</option>
</select>
</div>
<div class="panel-col">
<select name="liebie" id="liebie-filter" tabindex="-1" title=""
class="form-control">
<option value="">分类搜索</option>
</select>
</div>
<div class="panel-col">
<select name="type" id="type-filter" tabindex="-1" title=""
class="form-control">
<option value="">全部</option>
<option value="">未测量</option>
<option value="">返回测量</option>
<option value="">已测量</option>
</select>
</div>
<div class="panel-col">
<select name="status" id="status-filter" tabindex="-1" title=""
class="form-control">
<option value="">编辑状态</option>
<option value="">未编辑</option>
<option value="">已编辑</option>
</select>
</div>
<div class="panel-col2">
<input type="text" id="starttime" class="form-control panel-input hasDatepicker" name="start_time"
placeholder="开始时间" value="">
</div>
<div class="panel-col2">
<input type="text" id="endtime" class="form-control panel-input hasDatepicker" name="end_time"
placeholder="结束时间" value="">
</div>
<div class="panel-col2">
<a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>
</div>
</div>
</div>
</div>
<div id="content-list"></div>
</div>
... ... @@ -86,13 +86,13 @@
<div class="col-sm-3">
<input type="number" value="[[height]]" class="form-control" id="height"
placeholder="(cm)" required="required"/>
match="numbers" placeholder="(cm)" required="required"/>
</div>
<label class="col-sm-2 control-label" for="weight">体重</label>
<div class="col-sm-3">
<input type="number" value="[[weight]]" class="form-control" id="weight"
placeholder="(kg)" required="required"/>
match="numbers" placeholder="(kg)" required="required"/>
</div>
</div>
... ... @@ -113,16 +113,16 @@
<label class="col-sm-2 control-label">三围</label>
<div class="col-sm-3">
<input type="text" value="[[Bust]]" class="form-control" id="Bust"
placeholder="胸围" required="required"/>
<input type="number" value="[[Bust]]" class="form-control" id="Bust"
match="numbers" placeholder="胸围" required="required"/>
</div>
<div class="col-sm-3">
<input type="text" value="[[waist]]" class="form-control" id="waist"
placeholder="腰围" required="required"/>
<input type="number" value="[[waist]]" class="form-control" id="waist"
match="numbers" placeholder="腰围" required="required"/>
</div>
<div class="col-sm-3">
<input type="text" value="[[hips]]" class="form-control" id="hips"
placeholder="臀围" required="required"/>
<input type="number" value="[[hips]]" class="form-control" id="hips"
match="numbers" placeholder="臀围" required="required"/>
</div>
</div>
<div class="form-group">
... ...
... ... @@ -24,21 +24,21 @@
<div class="panel-body">
<div class="row">
<div class="panel-col2">
<input type="text" id="starttime" class="form-control panel-input hasDatepicker" name="start_time" placeholder="开始时间" value="">
<input type="text" id="startTime" class="form-control panel-input hasDatepicker" name="start_time" placeholder="开始时间" value="">
</div>
<div class="panel-col2">
<input type="text" id="endtime" class="form-control panel-input hasDatepicker" name="end_time" placeholder="结束时间" value="">
<input type="text" id="endTime" class="form-control panel-input hasDatepicker" name="end_time" placeholder="结束时间" value="">
</div>
<div class="panel-col">
<input type="text" value="" name="skn" id="content-filter1" placeholder="skn"
<input type="text" value="" name="productSkn" id="content-filter1" placeholder="skn"
class="form-control">
</div>
<div class="panel-col">
<input type="text" value="" name="skc" id="content-filter2" placeholder="skc"
<input type="text" value="" name="productSkc" id="content-filter2" placeholder="skc"
class="form-control">
</div>
<div class="panel-col">
<input type="text" value="" name="sku" id="content-filter3" placeholder="sku"
<input type="text" value="" name="productSku" id="content-filter3" placeholder="sku"
class="form-control">
</div>
<div class="panel-col2">
... ... @@ -52,87 +52,3 @@
<div id="content-list"></div>
</div>
<script type="text/template" id="template">
<div class="rows" id="baseform" >
<div class="form-group">
<label class="col-sm-2 control-label" for="avatar">头像</label>
<input type="hidden" value="[[id]]" id="id"/>
<div class="col-sm-6">
<input type="file" value="[[avatar]]" class="form-control" id="avatar" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="modelName">姓名</label>
<div class="col-sm-3">
<input type="text" value="[[modelName]]" class="form-control" id="modelName" required="required"/>
</div>
<label class="col-sm-2 control-label" for="englishName">英文名</label>
<div class="col-sm-3">
<input type="text" value="[[englishName]]" class="form-control" id="englishName" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="nationality">国籍</label>
<div class="col-sm-3">
<input type="text" value="[[nationality]]" class="form-control" id="nationality" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="height">身高</label>
<div class="col-sm-3">
<input type="number" value="[[height]]" class="form-control" id="height"
placeholder="(cm)" required="required"/>
</div>
<label class="col-sm-2 control-label" for="weight">体重</label>
<div class="col-sm-3">
<input type="number" value="[[weight]]" class="form-control" id="weight"
placeholder="(kg)" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="dressSize">穿衣尺码</label>
<div class="col-sm-3">
<input type="text" value="[[dressSize]]" class="form-control" id="dressSize" required="required"/>
</div>
<label class="col-sm-2 control-label" for="shoeSize">鞋码</label>
<div class="col-sm-3">
<input type="text" value="[[shoeSize]]" class="form-control" id="shoeSize" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">三围</label>
<div class="col-sm-3">
<input type="text" value="[[Bust]]" class="form-control" id="Bust"
placeholder="胸围" required="required"/>
</div>
<div class="col-sm-3">
<input type="text" value="[[waist]]" class="form-control" id="waist"
placeholder="腰围" required="required"/>
</div>
<div class="col-sm-3">
<input type="text" value="[[hips]]" class="form-control" id="hips"
placeholder="臀围" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="modelCard">模特卡</label>
<div class="col-sm-10">
<input type="file" value="[[modelCard]]" class="form-control" id="modelCard" />
</div>
</div>
</div>
</script>
... ...
... ... @@ -22,29 +22,32 @@
<div class="contentpanel">
<div class="panel panel-default" style="...">
<div class="panel-heading">
<!--<a class="btn btn-success " id="add-content"><i class="fa fa-plus"></i> 添加</a>-->
<a class="btn btn-success " id="add-content"><i class="fa fa-plus"></i> 添加</a>
</div>
<div class="panel-body">
<!--<div class="row">-->
<!--<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">-->
<!--<input type="text" value="" name="modelName" id="content-filter1" placeholder="姓名"-->
<!--class="form-control">-->
<!--</div>-->
<!--<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">-->
<!--<input type="text" value="" name="englishName" id="content-filter2" placeholder="英文名"-->
<!--class="form-control">-->
<!--</div>-->
<!--<div class="panel-col">-->
<!--<select name="status" id="status-filter" tabindex="-1" title=""-->
<!--class="form-control">-->
<!--<option value="">全部</option>-->
<!--<option value="0">禁用</option>-->
<!--<option value="1">启用</option>-->
<!--</select>-->
<!--</div>-->
<!--<input id="route" type="hidden" value="/operation/terms/searchWordsList">-->
<!--<a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>-->
<!--</div>-->
<div class="row">
<div class="panel-col">
<select name="status" id="status-filter" tabindex="-1" title=""
class="form-control">
<option value="">状态</option>
<option value="1">可用</option>
<option value="0">不可用</option>
</select>
</div>
<div class="panel-col">
<select name="type" id="type-filter" tabindex="-1" title=""
class="form-control">
<option value="">类型</option>
<option value="1">拍摄类型</option>
<option value="2">拍摄风格</option>
<option value="3">模特类型</option>
<option value="4">道具类型</option>
<option value="5">滤镜效果</option>
<option value="6">摄影场景</option>
</select>
</div>
<a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>
</div>
</div>
</div>
<div id="content-list"></div>
... ... @@ -53,84 +56,24 @@
<script type="text/template" id="template">
<div class="rows" id="baseform" >
<div class="form-group">
<label class="col-sm-2 control-label" for="avatar">头像</label>
<input type="hidden" value="[[id]]" id="id"/>
<label class="col-sm-2 control-label" for="type">选择类别</label>
<div class="col-sm-6">
<input type="file" value="[[avatar]]" class="form-control" id="avatar" />
<select id="type" class="form-control" value="[[type]]">
<option value="1">拍摄类型 </option>
<option value="2">拍摄风格</option>
<option value="3">模特类型</option>
<option value="4">道具类型</option>
<option value="5">滤镜效果</option>
<option value="6">摄影场景</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="modelName">姓名</label>
<div class="col-sm-3">
<input type="text" value="[[modelName]]" class="form-control" id="modelName" required="required"/>
</div>
<label class="col-sm-2 control-label" for="englishName">英文名</label>
<div class="col-sm-3">
<input type="text" value="[[englishName]]" class="form-control" id="englishName" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="nationality">国籍</label>
<div class="col-sm-3">
<input type="text" value="[[nationality]]" class="form-control" id="nationality" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="height">身高</label>
<div class="col-sm-3">
<input type="number" value="[[height]]" class="form-control" id="height"
placeholder="(cm)" required="required"/>
</div>
<label class="col-sm-2 control-label" for="weight">体重</label>
<div class="col-sm-3">
<input type="number" value="[[weight]]" class="form-control" id="weight"
placeholder="(kg)" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="dressSize">穿衣尺码</label>
<div class="col-sm-3">
<input type="text" value="[[dressSize]]" class="form-control" id="dressSize" required="required"/>
</div>
<label class="col-sm-2 control-label" for="shoeSize">鞋码</label>
<div class="col-sm-3">
<input type="text" value="[[shoeSize]]" class="form-control" id="shoeSize" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">三围</label>
<div class="col-sm-3">
<input type="text" value="[[Bust]]" class="form-control" id="Bust"
placeholder="胸围" required="required"/>
</div>
<div class="col-sm-3">
<input type="text" value="[[waist]]" class="form-control" id="waist"
placeholder="腰围" required="required"/>
</div>
<div class="col-sm-3">
<input type="text" value="[[hips]]" class="form-control" id="hips"
placeholder="臀围" required="required"/>
<label class="col-sm-2 control-label" for="name">名称</label>
<div class="col-sm-6">
<input type="text" value="[[name]]" class="form-control" id="name" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="modelCard">模特卡</label>
<div class="col-sm-10">
<input type="file" value="[[modelCard]]" class="form-control" id="modelCard" />
</div>
</div>
</div>
</script>
... ...