对接项目库

This commit is contained in:
sunFlower
2022-10-18 12:00:07 +08:00
parent 18efbb8a44
commit f011361fd7
@@ -87,7 +87,9 @@
<a-modal v-model="areaVisible" :maskClosable="false" :title="$t('parameterTemplate')" width='750px' :footer="null"> <a-modal v-model="areaVisible" :maskClosable="false" :title="$t('parameterTemplate')" width='750px' :footer="null">
<parameter-template-add :url='url' ref='templateRef' v-if='areaVisible' @areaVisible='handleCancel' <parameter-template-add :url='url' ref='templateRef' v-if='areaVisible' @areaVisible='handleCancel'
:version='version' :version='version'
:projectId='this.$route.query.id'></parameter-template-add> :projectId='this.$route.query.parentId ? this.$route.query.parentId : this.$route.query.id'>
</parameter-template-add>
</a-modal> </a-modal>
<!-- 配置--> <!-- 配置-->
<configure ref="configureRef" :url='url' :itemId='itemId' :itemRow='itemRow'/> <configure ref="configureRef" :url='url' :itemId='itemId' :itemRow='itemRow'/>
@@ -100,7 +102,9 @@
<project-collection-parameters v-if='drawerVisible' @areaVisible='drawerhandleCancel' <project-collection-parameters v-if='drawerVisible' @areaVisible='drawerhandleCancel'
:templateTitle='templatetitle' @copysubmit='copysubmit' :templateTitle='templatetitle' @copysubmit='copysubmit'
:selectedRowKeyS='selectedRowKeys' :rowId='rowId' :version='version' :url='url' :selectedRowKeyS='selectedRowKeys' :rowId='rowId' :version='version' :url='url'
:projectId='this.$route.query.id'></project-collection-parameters> :projectId='this.$route.query.parentId ? this.$route.query.parentId : this.$route.query.id'>
</project-collection-parameters>
</a-modal> </a-modal>
</a-card> </a-card>
</template> </template>
@@ -237,8 +241,8 @@
//处理接收到的消息 //处理接收到的消息
handler: function(res) { handler: function(res) {
let that = this let that = this
if (res.data == '1'){ if (res.data == '1') {
this.getlist() this.getlist()
} }
} }
} }
@@ -255,8 +259,8 @@
// localStorage.setItem('paramsManifest', JSON.stringify(item)) // localStorage.setItem('paramsManifest', JSON.stringify(item))
let newUrl = _this.$router.resolve({ let newUrl = _this.$router.resolve({
path: '/ParameterItemCollection', path: '/ParameterItemCollection',
query: item query: item
// projectName:this.$route.query.projectName // projectName:this.$route.query.projectName
}) })
window.open(newUrl.href, '_blank') window.open(newUrl.href, '_blank')
} else { } else {
@@ -402,7 +406,7 @@
}, },
getlist() { getlist() {
let query = { let query = {
projectId: this.$route.query.id, projectId: this.$route.query.parentId ? this.$route.query.parentId : this.$route.query.id,
pageSize: this.pageSize, pageSize: this.pageSize,
pageNo: this.pageNo, pageNo: this.pageNo,
...this.queryParam ...this.queryParam
@@ -561,13 +565,14 @@
text-justify: inter-ideograph; text-justify: inter-ideograph;
word-break: break-all word-break: break-all
} }
::v-deep .ant-table-row:first-child { ::v-deep .ant-table-row:first-child {
background: #fff!important; background: #fff !important;
opacity: 0.95; opacity: 0.95;
} }
::v-deep .ant-table-body { ::v-deep .ant-table-body {
background: transparent!important; background: transparent !important;
} }
</style> </style>
<style> <style>