| | |
| | | me.dataRequestObj = data; |
| | | //预加载数据后给哪些字段设置options或formatterjson |
| | | if (me.dataRequestObj.sys_model) { |
| | | me.sys_model_map = me.dataRequestObj.sys_model.map.sys_model; |
| | | |
| | | me.dataRequestObj.sys_model.map(m=>{ |
| | | me.sys_model_map[m.id] = m |
| | | }) |
| | | } |
| | | |
| | | if (me.dataRequestObj.sys_page_model) { |
| | |
| | | |
| | | editData(sceneCode, row) { |
| | | var me = this; |
| | | let url = ""; |
| | | let totab = true; |
| | | if (me.detail_model_id && me.sys_model_map[me.detail_model_id]) { |
| | | url = me.sys_model_map[me.detail_model_id].url; |
| | | } |
| | | if (!url) { |
| | | return |
| | | } |
| | | if (me.sys_model_map[me.detail_model_id].open_type == "popup") { |
| | | totab = false; |
| | | } |
| | | |
| | | var config = { |
| | | totab: true, //true: 以Tab导航的方式打开 |
| | | totab: totab, //true: 以Tab导航的方式打开 |
| | | width: "900px", |
| | | height: "500px", |
| | | icon: "icon-product", |
| | | text: me.title + "详情", |
| | | id: "popup_form_simple" + sceneCode + row.id,//totab: true时需设置,用于判断是否已打开此页面 |
| | | url: "module/model/page/popup_form_simple.html", |
| | | url: url, //"module/model/page/popup_form_simple.html", |
| | | dataname: me.dataname, |
| | | data: row, |
| | | delta: {dataname: me.dataname}, |