|
@@ -11,7 +11,7 @@
|
|
|
class='parent hc-excel-table-form'
|
|
|
id='parent'
|
|
|
@click="parentClick($event)"
|
|
|
-
|
|
|
+
|
|
|
>
|
|
|
</div>
|
|
|
|
|
@@ -19,12 +19,12 @@
|
|
|
<el-col
|
|
|
style="position: fixed;right: 13px;"
|
|
|
:span="7"
|
|
|
-
|
|
|
+
|
|
|
>
|
|
|
<div style="margin-bottom: 20px;text-align: right;">
|
|
|
<el-button @click="goBack">返回上一级</el-button>
|
|
|
<el-button type="primary" @click="saveInfo" :loading="saveLoaing">保存</el-button>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
<div class="right_box">
|
|
|
<div>
|
|
@@ -61,8 +61,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</basic-container>
|
|
@@ -121,19 +121,19 @@ export default{
|
|
|
ele.htmlKeyName=newItem.htmlKeyName
|
|
|
ele.trialTabId=newItem.trialTabId
|
|
|
ele.trialTabName=newItem.trialTabName
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
this.clickArr.push(newItem);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
// 在这里执行你想要的操作
|
|
|
},
|
|
|
deep: true, // 指定为深度监听,
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
},
|
|
@@ -240,7 +240,7 @@ export default{
|
|
|
if (
|
|
|
target.getAttribute("trindex") !== null &&
|
|
|
target.getAttribute("tdindex")
|
|
|
- )
|
|
|
+ )
|
|
|
{
|
|
|
let tdEle = this.getParentTD(target);
|
|
|
if (tdEle) {
|
|
@@ -250,7 +250,7 @@ export default{
|
|
|
target.getAttribute("trindex") +
|
|
|
"_" +
|
|
|
target.getAttribute("tdindex");
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
@@ -258,14 +258,14 @@ export default{
|
|
|
if (row.length) {
|
|
|
this.$refs.tablescroll.$el.scrollTop = row[0].offsetTop;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
this.clickKeyname=target.getAttribute('keyname')||target1.getAttribute('keyname')
|
|
|
await this.getInfoDEtail()
|
|
|
this.$set(this.curItem,'htmlKeyName',this.clickKeyname)
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
getParentTD(ele) {
|
|
@@ -289,10 +289,10 @@ export default{
|
|
|
const { data: res } = await getLinkTablist({
|
|
|
classId:this.classId,
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
if (res.code === 200) {
|
|
|
this.formoptions=res.data
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
this.formoptions=[]
|
|
|
}
|
|
@@ -303,9 +303,9 @@ export default{
|
|
|
id:this.classId,
|
|
|
});
|
|
|
if (res.code === 200) {
|
|
|
-
|
|
|
+
|
|
|
this.linkedData=res.data
|
|
|
- const mappedObject = Object.fromEntries(res.data.map(item => [item.htmlKeyName, item.elementValue.eName]));
|
|
|
+ const mappedObject = Object.fromEntries(res.data.map(item => [item.htmlKeyName, item.elementValue]));
|
|
|
this.linkedData=mappedObject
|
|
|
} else {
|
|
|
this.linkedData=[]
|
|
@@ -322,7 +322,7 @@ export default{
|
|
|
this.infoDetail.tabName=ele.tabName
|
|
|
this.$set(this.curItem,'trialTabId',ele.pkeyId)
|
|
|
this.$set(this.curItem,'trialTabName',ele.initTableName)
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -344,7 +344,7 @@ export default{
|
|
|
console.log(res);
|
|
|
if (res.code === 200) {
|
|
|
this.eleOptions=res.data
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
this.eleOptions=[]
|
|
|
}
|
|
@@ -357,7 +357,7 @@ export default{
|
|
|
});
|
|
|
if (res.code === 200) {
|
|
|
this.infoDetail=res.data
|
|
|
-
|
|
|
+
|
|
|
if(this.infoDetail&&this.infoDetail.id){
|
|
|
this.formoptions.forEach((ele)=>{
|
|
|
if(ele.tabName===this.infoDetail.tabName){
|
|
@@ -376,9 +376,9 @@ export default{
|
|
|
this.$set( this.curItem,'elementKey',ele.ekey)
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}else{
|
|
|
this.infoDetail={}
|
|
|
this.formVal=''
|
|
@@ -387,12 +387,12 @@ export default{
|
|
|
// this.curItem.htmlKeyName=this.clickKeyname
|
|
|
this.$set( this.curItem,'htmlKeyName',this.clickKeyname)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
this.infoDetail={}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
//映射数据保存
|
|
@@ -418,7 +418,7 @@ export default{
|
|
|
await this.getLinkedData()
|
|
|
await this.getExcelHtmlCol(this.classId,this.linkedData); //获取excel模板
|
|
|
this.clickArr=[]
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -427,7 +427,7 @@ export default{
|
|
|
await this.getLinkedData()
|
|
|
await this.getExcelHtmlCol(this.classId,this.linkedData); //获取excel模板
|
|
|
this.getFormoptions()
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
mounted(){
|
|
|
this.heights = this.$refs.heights.clientHeight
|
|
@@ -469,8 +469,8 @@ export default{
|
|
|
padding-top: 20px;
|
|
|
padding-left: 15px;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
.replace_box::after {
|
|
|
content: '映射数据来源';
|