[add] 接口对接

This commit is contained in:
zhaomeijing
2022-05-12 10:01:56 +08:00
parent 047fe6983d
commit 09b6dff601
2 changed files with 23 additions and 7 deletions
@@ -124,7 +124,7 @@
</div>
<!-- 添加 -->
<a-modal v-model="areaVisible" :title="$t('ParameterLibrary')" width='750px' :footer="null">
<parameter-library v-if='areaVisible' @addselectedRowKeys='addselectedRowKeys'/>
<parameter-library v-if='areaVisible' @addselectedRowKeys='addselectedRowKeys' :authenticationParameterCollection='authenticationParameterCollection'/>
</a-modal>
</a-card>
</template>
@@ -212,7 +212,8 @@ export default {
rowId: '',
version: 0,
itemId: '',
selectedRowKeysValue: []
selectedRowKeysValue: [],
authenticationParameterCollection: {},
}
},
props: {
@@ -223,6 +224,8 @@ export default {
}
},
mounted() {
this.authenticationParameterCollection = JSON.parse(localStorage.getItem('paramsManifest'))
// console.log(JSON.parse(localStorage.getItem('paramsManifest')))
},
methods:{
addselectedRowKeys() {
@@ -254,10 +257,11 @@ export default {
postDateobj.id = item.id
postDate.push(postDateobj)
})
let configDataList = { configDataList: postDate }
if(this.selectedRowKeys.length == 0) {
this.$message.warning(this.$t('selectLeastOne'))
}else {
postAction(this.url.add, postDate).then((res) => {
postAction(this.url.add, configDataList).then((res) => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
// _this.getlist()