| | |
| | | import func from "@/util/func"; |
| | | import {validatenull} from "@/util/validate"; |
| | | import {doAction} from '@/actions/base/BaseAction'; |
| | | import Vue from "vue"; |
| | | |
| | | export default { |
| | | name: "dynamic-button", |
| | |
| | | if (!paramVOS['type']) { |
| | | paramVOS['type'] = DefineVO.btmType; |
| | | } |
| | | for(let item in paramVOS) { |
| | | if (item.includes('.${') && item.includes('}')) { |
| | | //替换成源数据中的值 |
| | | if (Object.keys(this.sourceData).length === 0) { |
| | | this.$message.error("请先选择一条来源数据"); |
| | | return false; |
| | | } |
| | | item=item.replace(/:/g,'='); |
| | | let values = item.split(';'); |
| | | let initValues = [] |
| | | } else if (item.includes('${') && item.includes('}')) { |
| | | //替换成选中数据的值 |
| | | if (this.dataStore.length < 1) { |
| | | this.$message.error("请先选择一条数据"); |
| | | return false; |
| | | } |
| | | item=item.replace(/:/g,'='); |
| | | } |
| | | } |
| | | /*if (paramVOS['initvalue']) { |
| | | var values = paramVOS['initvalue'].split(';'); |
| | | var initValues = [] |