|
@@ -451,20 +451,20 @@ export default {
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
confirmAdd() {
|
|
|
- if (this.checkEleList.length === 0) {
|
|
|
- this.$message.error('请先选择元素');
|
|
|
- return;
|
|
|
- }
|
|
|
if (this.checkTableRow.pkeyId === undefined || this.checkTableRow.pkeyId === '') {
|
|
|
this.$message.error('请先选择表单');
|
|
|
return;
|
|
|
}
|
|
|
+ if (this.checkEleList.length === 0) {
|
|
|
+ this.$message.error('请先选择元素');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
const selectedCodes = this.checkEleList.map(ele => ({
|
|
|
colName: ele.keyName,
|
|
|
colKey: ele.elementId
|
|
|
}));
|
|
|
- console.log(selectedCodes,'selectedCodes');
|
|
|
- console.log(this.paramList,'this.paramList');
|
|
|
+
|
|
|
let objArr={}
|
|
|
const elementNames = selectedCodes.map(code => code.colName).join(' ');
|
|
|
objArr={
|