| | |
| | | item = item.replace(':', '='); |
| | | if (item.indexOf('${') > -1) { |
| | | if (item.split('=')[1].indexOf('.') > -1) { |
| | | if (options.sourceData.length < 1 || !options.sourceData.oid) { |
| | | //initvaluenull=true允许初始值为空 |
| | | if ((options.sourceData.length < 1 || !options.sourceData.oid) && options.paramVOS['initvaluenull']!=true && options.paramVOS['initvaluenull']!="true") { |
| | | isShow = false; |
| | | Vue.prototype.$message.error("请先选择一条来源数据") |
| | | return false; |
| | | } |
| | | let name = item.split('=')[1].split('.')[1].replace('${', '').replace('}', ''); |
| | | initValues[item.split('=')[0]] = options.sourceData[name] |
| | | if(options.sourceData){ |
| | | initValues[item.split('=')[0]] = options.sourceData[name] |
| | | }else { |
| | | initValues[item.split('=')[0]]="" |
| | | } |
| | | } else { |
| | | if (options.dataStore.length < 1) { |
| | | if (options.dataStore.length < 1 && options.paramVOS['initvaluenull'] != true && options.paramVOS['initvaluenull'] != "true") { |
| | | isShow = false; |
| | | Vue.prototype.$message.error("请先选择一条数据"); |
| | | return false; |
| | | } |
| | | let name = item.split('=')[1].replace('${', '').replace('}', ''); |
| | | initValues[item.split('=')[0]] = options.dataStore[0][name]; |
| | | |
| | | if (options.dataStore[0]) { |
| | | initValues[item.split('=')[0]] = options.dataStore[0][name]; |
| | | } else { |
| | | initValues[item.split('=')[0]] = ""; |
| | | } |
| | | } |
| | | } |
| | | } |