提交 13f4fd40 编写于 作者: U unknown

导入模型修改

上级 4c1d14c9
{
"path": "",
"events": {
// "beforeImport" : {
// "code": "",
......
{
"path": "",
"dataType_CMSProcess": "string",
"dataType_Querytable" : "string",
"validFieldType" : true,
......
......@@ -985,6 +985,7 @@ MWF.xApplication.query.Query.Importer.Row = new Class({
this.importer.fireEvent("beforeCreateRowData", [this]);
json.data.columnList.each( function (columnJson, i) {
if(!columnJson.path)return;
var value = this.importedData[i] || "";
if( !value )return;
......@@ -1019,6 +1020,7 @@ MWF.xApplication.query.Query.Importer.Row = new Class({
var data = this.importer.Macro.exec( fieldJson.valueScript, this );
if( o2.typeOf(data) === "null" )return;
if( !fieldJson.path )return;
if( json.type === "dynamicTable" ){
this.data[ fieldJson.path ] = data;
......@@ -1188,6 +1190,8 @@ MWF.xApplication.query.Query.Importer.Row = new Class({
setDataWithField: function(obj, fieldName, path, isName){
if(!this.pathIndexMap)this.pathIndexMap = {};
if( !path )return;
var json = this.importer.json;
if( json.data[fieldName] ){
var f = json.data[fieldName];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册