生成数据修改
This commit is contained in:
parent
a4f6f74e52
commit
ff64deb138
@ -68,53 +68,57 @@
|
||||
</div>
|
||||
<div class="texts">
|
||||
<div class="topform">
|
||||
<div
|
||||
v-for="(item, index) in getParamslistData"
|
||||
:key="index"
|
||||
style="display: flex"
|
||||
>
|
||||
<el-card class="box-card">
|
||||
<el-form
|
||||
ref="form"
|
||||
:inline="true"
|
||||
:model="form"
|
||||
class="form"
|
||||
label-width="100px"
|
||||
v-for="(ite, ind) in item"
|
||||
:key="ind"
|
||||
:rules="rules"
|
||||
>
|
||||
<el-form-item :label="ite.paramName" :key="ind">
|
||||
<el-input
|
||||
class="textarea"
|
||||
v-model="ite.paramValue"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<div class="icon">
|
||||
<i
|
||||
class="el-icon-delete"
|
||||
@click="delitem(index)"
|
||||
v-if="index != 0"
|
||||
></i>
|
||||
<i
|
||||
v-if="index == 0"
|
||||
class="el-icon-circle-plus-outline"
|
||||
@click="additem(index)"
|
||||
></i>
|
||||
<el-button
|
||||
v-if="
|
||||
taskPartitionCode == 'TPC202405200003' ||
|
||||
taskPartitionCode == 'TPC202405200004' ||
|
||||
taskPartitionCode == 'TPC202405200005' ||
|
||||
taskPartitionCode == 'TPC202405200006'
|
||||
"
|
||||
round
|
||||
style="margin-left: 10px"
|
||||
@click="knowledge(index, item)"
|
||||
>知识库获取</el-button
|
||||
>
|
||||
<div v-if="getParamslistData">
|
||||
<div
|
||||
v-for="(item, index) in getParamslistData"
|
||||
:key="index"
|
||||
style="display: flex"
|
||||
>
|
||||
<el-card class="box-card">
|
||||
<el-form
|
||||
ref="form"
|
||||
:inline="true"
|
||||
:model="form"
|
||||
class="form"
|
||||
label-width="100px"
|
||||
:rules="rules"
|
||||
>
|
||||
<el-form-item
|
||||
:label="ite.paramName"
|
||||
v-for="(ite, ind) in item"
|
||||
:key="ind"
|
||||
>
|
||||
<el-input
|
||||
class="textarea"
|
||||
v-model="ite.paramValue"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<div class="icon">
|
||||
<i
|
||||
class="el-icon-delete"
|
||||
@click="delitem(index)"
|
||||
v-if="index != 0"
|
||||
></i>
|
||||
<i
|
||||
v-if="index == 0"
|
||||
class="el-icon-circle-plus-outline"
|
||||
@click="additem(index)"
|
||||
></i>
|
||||
<el-button
|
||||
v-if="
|
||||
taskPartitionCode == 'TPC202405200003' ||
|
||||
taskPartitionCode == 'TPC202405200004' ||
|
||||
taskPartitionCode == 'TPC202405200005' ||
|
||||
taskPartitionCode == 'TPC202405200006'
|
||||
"
|
||||
round
|
||||
style="margin-left: 10px"
|
||||
@click="knowledge(index, item)"
|
||||
>知识库获取</el-button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -786,6 +790,7 @@ export default {
|
||||
})
|
||||
this.moban = JSON.parse(JSON.stringify(res.data))
|
||||
this.getParamslistData = res.data
|
||||
console.log(this.getParamslistData, '009090')
|
||||
|
||||
})
|
||||
},
|
||||
@ -906,18 +911,24 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
inserList(this.getParamslistData).then(res => {
|
||||
this.$modal.msgSuccess("提交成功!");
|
||||
this.indexdata = null
|
||||
inserList(getParamslistData2).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$modal.msgSuccess("提交成功!");
|
||||
this.indexdata = null
|
||||
loading.close();
|
||||
}
|
||||
else {
|
||||
loading.close();
|
||||
}
|
||||
}).catch(() => {
|
||||
loading.close();
|
||||
})
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
bottomclickevent(ulitem, uindex, ulindex) {
|
||||
|
||||
console.log(ulitem, uindex, ulindex)
|
||||
this.getParamslistData =[]
|
||||
this.getParamslistData = []
|
||||
this.itemdata = ulitem
|
||||
this.taskPartitionList = []
|
||||
this.querytParams.id = ulitem.routeNodeId
|
||||
@ -944,7 +955,6 @@ export default {
|
||||
this.NursinggetList()
|
||||
}
|
||||
this.indexdata = index
|
||||
|
||||
},
|
||||
additem(index) {
|
||||
this.moban[0].forEach(e => {
|
||||
@ -970,13 +980,11 @@ export default {
|
||||
::v-deep .el-card__body {
|
||||
position: relative;
|
||||
}
|
||||
::v-deep .el-select .el-input.is-disabled .el-input__inner{
|
||||
::v-deep .el-select .el-input.is-disabled .el-input__inner {
|
||||
background: #fff !important;
|
||||
}
|
||||
::v-deep .el-input.is-disabled .el-input__inner{
|
||||
::v-deep .el-input.is-disabled .el-input__inner {
|
||||
background: #fff !important;
|
||||
|
||||
|
||||
}
|
||||
.routeCheckStatus {
|
||||
position: absolute;
|
||||
@ -988,40 +996,53 @@ export default {
|
||||
padding: 0 20px 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.topform {
|
||||
position: relative;
|
||||
padding: 15px 70px 30px 15px;
|
||||
.form{
|
||||
.texts {
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
width: 72%;
|
||||
height: calc(100vh - 30px);
|
||||
background-color: #fff;
|
||||
.topform {
|
||||
width: 100%;
|
||||
}
|
||||
.box-card {
|
||||
// width:calc(100% - 149px);
|
||||
|
||||
width: 85%;
|
||||
margin-left: 20px;
|
||||
padding-top: 25px;
|
||||
.textarea {
|
||||
width: 500px;
|
||||
}
|
||||
}
|
||||
.icon {
|
||||
width: 150px;
|
||||
right: -20px;
|
||||
top: 40px;
|
||||
position: relative;
|
||||
}
|
||||
.form {
|
||||
::v-deep .el-input__inner {
|
||||
height: 30px !important;
|
||||
line-height: 30px !important;
|
||||
padding: 15px 70px 30px 15px;
|
||||
.box-card {
|
||||
// width:calc(100% - 149px);
|
||||
width: 85%;
|
||||
margin-left: 20px;
|
||||
padding-top: 25px;
|
||||
.textarea {
|
||||
display: flex;
|
||||
// width: 500px;
|
||||
// width: 100%;
|
||||
}
|
||||
}
|
||||
.icon {
|
||||
width: 150px;
|
||||
right: -20px;
|
||||
top: 40px;
|
||||
position: relative;
|
||||
}
|
||||
.form {
|
||||
width: 100%;
|
||||
::v-deep .el-form-item {
|
||||
display: flex;
|
||||
}
|
||||
::v-deep .el-form-item__content {
|
||||
flex: 1;
|
||||
}
|
||||
::v-deep .el-input__inner {
|
||||
height: 30px !important;
|
||||
line-height: 30px !important;
|
||||
}
|
||||
|
||||
::v-deep .el-form-item__label {
|
||||
font-size: 12px !important;
|
||||
::v-deep .el-form-item__label {
|
||||
font-size: 12px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list {
|
||||
margin: 20px auto;
|
||||
width: 100%;
|
||||
@ -1052,15 +1073,6 @@ export default {
|
||||
padding: 15px 0 0 !important;
|
||||
}
|
||||
}
|
||||
.texts {
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
width: 72%;
|
||||
// height: 680px;
|
||||
height: calc(100vh - 30px);
|
||||
// overflow: scroll;
|
||||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
.cards {
|
||||
border: 1px solid #409eff;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user