[add] 接口对接
This commit is contained in:
@@ -97,7 +97,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('areaOfResponsibility'),
|
title: this.$t('areaOfResponsibility'),
|
||||||
dataIndex: 'dutyTerritory',
|
dataIndex: 'dutyTerritory_dictText',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
}
|
}
|
||||||
@@ -181,63 +181,30 @@ export default {
|
|||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.selectedRowKeys.length == 0) {
|
if (this.selectedRowKeys.length == 0) {
|
||||||
this.$message.warning(this.$t('pleaseSelectData'))
|
this.$message.warning(this.$t('pleaseSelectData'))
|
||||||
} else if (this.selectedRowKeys.length > 1) {
|
|
||||||
this.$message.warning(this.$t('OnlyOneSelected'))
|
|
||||||
} else {
|
} else {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.flag = true
|
this.flag = true
|
||||||
this.spinLoading = true
|
this.spinLoading = true
|
||||||
// 新增編輯之前 判断 标题唯一
|
//新增
|
||||||
getAction(`params/manifest/verifyTitle?projectId=${this.$route.query.id}
|
let postDate = {
|
||||||
&title=${this.templatetitle}`, {})
|
paramsInfoPublishEOList: this.selectedRowKeysDate,
|
||||||
.then(res => {
|
paramsManifestId: this.paramsManifest.id,
|
||||||
if (res.success) {
|
projectId: this.$route.query.id
|
||||||
let postDate = {
|
}
|
||||||
title: this.templatetitle,
|
postAction(`params/collectManifest/add`, postDate).then(res => {
|
||||||
paramsTemplateId: this.rowId || this.selectedRowKeysDate[0].id,
|
if (res.success) {
|
||||||
paramsTemplatePublishVersion: this.version || this.selectedRowKeysDate[0].version,
|
this.newVisible = false
|
||||||
projectId: this.projectId
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
}
|
|
||||||
if (this.rowId) {
|
|
||||||
//编辑
|
|
||||||
postAction(`params/manifest/edit`, postDate).then(res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.newVisible = false
|
|
||||||
this.$emit('areaVisible', false)
|
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
).finally(() => {
|
|
||||||
this.flag = false
|
|
||||||
this.spinLoading = false
|
|
||||||
this.newVisible = false
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
//新增
|
this.$message.warning(res.message)
|
||||||
postAction(`params/manifest/add`, postDate).then(res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.newVisible = false
|
|
||||||
this.$emit('areaVisible', false)
|
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
).finally(() => {
|
|
||||||
this.flag = false
|
|
||||||
this.spinLoading = false
|
|
||||||
this.newVisible = false
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
this.$message.warning(res.message)
|
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
).finally(() => {
|
||||||
this.loading = false
|
this.flag = false
|
||||||
})
|
this.spinLoading = false
|
||||||
|
this.newVisible = false
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="doc-detail">
|
<div class="doc-detail">
|
||||||
|
<!-- 认证参数收集——清单信息-->
|
||||||
<div class="Virtual-detail-header" style="position: fixed;top: 0">
|
<div class="Virtual-detail-header" style="position: fixed;top: 0">
|
||||||
<div class="Virtual-detail-title">
|
<div class="Virtual-detail-title">
|
||||||
<span style="line-height: 74px;display: inline-block;float: left">
|
<span style="line-height: 74px;display: inline-block;float: left">
|
||||||
@@ -98,6 +99,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.textColor()
|
this.textColor()
|
||||||
|
// 清单信息
|
||||||
this.paramsManifest = JSON.parse(localStorage.getItem('paramsManifest'))
|
this.paramsManifest = JSON.parse(localStorage.getItem('paramsManifest'))
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
|
<!-- 认证参数收集-参数项收集清单-10控件-->
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
@@ -119,10 +120,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
<!-- 表格-->
|
<!-- 表格-10控件-->
|
||||||
<table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue' @value='value'/>
|
<table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue' @value='value'/>
|
||||||
</div>
|
</div>
|
||||||
<!-- 添加 -->
|
<!-- 添加--->
|
||||||
<a-modal v-model="areaVisible" :title="$t('ParameterLibrary')" width='750px' :footer="null">
|
<a-modal v-model="areaVisible" :title="$t('ParameterLibrary')" width='750px' :footer="null">
|
||||||
<parameter-library v-if='areaVisible' :paramsManifest='paramsManifest'/>
|
<parameter-library v-if='areaVisible' :paramsManifest='paramsManifest'/>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
@@ -228,9 +229,6 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods:{
|
methods:{
|
||||||
addselectedRowKeys() {
|
|
||||||
console.log('llll')
|
|
||||||
},
|
|
||||||
// 表格所选中得行内容
|
// 表格所选中得行内容
|
||||||
rowValue(val) {
|
rowValue(val) {
|
||||||
this.selectedRowKeysValue = val
|
this.selectedRowKeysValue = val
|
||||||
@@ -275,7 +273,7 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
handleCody() {
|
handleCody() {
|
||||||
|
console.log(this.paramsManifest,'paramsManifestparamsManifestparamsManifestparamsManifest')
|
||||||
},
|
},
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
@@ -334,7 +332,10 @@ export default {
|
|||||||
SizeChange() {
|
SizeChange() {
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
// watch: {
|
||||||
|
//
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user