|
@@ -37,16 +37,15 @@
|
|
|
</a-flex>
|
|
</a-flex>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <a-button v-if="isNewSimilarAssets" style="margin-top: 6px;" @click="newSimilarAssets">
|
|
|
|
|
- <template #icon>
|
|
|
|
|
- <PlusCircleTwoTone />
|
|
|
|
|
- </template>
|
|
|
|
|
- 确认添加
|
|
|
|
|
- </a-button>
|
|
|
|
|
|
|
+ <!-- 自定义按钮 -->
|
|
|
|
|
+ <a-space style="margin-top: 6px;">
|
|
|
|
|
+ <slot name="customButton" />
|
|
|
|
|
+ </a-space>
|
|
|
<div v-if="!isSearchWidget" style="display: inline-block">
|
|
<div v-if="!isSearchWidget" style="display: inline-block">
|
|
|
<QueryPageButton
|
|
<QueryPageButton
|
|
|
- :info-buttons="infoWindowDto.infoButtons" :info-window-no="infoWindowDto.no" :select-info-data="selectInfoData" :icon-src="iconSrc"
|
|
|
|
|
- @refresh-datas="pageSearch" @execute-export="executeExport" @execute-process="executeProcess"
|
|
|
|
|
|
|
+ :info-buttons="infoWindowDto.infoButtons" :info-window-no="infoWindowDto.no"
|
|
|
|
|
+ :select-info-data="selectInfoData" :icon-src="iconSrc" @refresh-datas="pageSearch"
|
|
|
|
|
+ @execute-export="executeExport" @execute-process="executeProcess"
|
|
|
>
|
|
>
|
|
|
<template #customContent>
|
|
<template #customContent>
|
|
|
<slot name="customContent" />
|
|
<slot name="customContent" />
|
|
@@ -187,7 +186,7 @@ export default {
|
|
|
SyncOutlined,
|
|
SyncOutlined,
|
|
|
DownloadOutlined,
|
|
DownloadOutlined,
|
|
|
QueryPageButton,
|
|
QueryPageButton,
|
|
|
- ExclamationCircleOutlined,PlusCircleTwoTone,
|
|
|
|
|
|
|
+ ExclamationCircleOutlined, PlusCircleTwoTone,
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
props: {
|
|
@@ -201,11 +200,6 @@ export default {
|
|
|
type: Boolean,
|
|
type: Boolean,
|
|
|
default: false,
|
|
default: false,
|
|
|
},
|
|
},
|
|
|
- // 用于新增同类资产,其他可以忽略
|
|
|
|
|
- isNewSimilarAssets: {
|
|
|
|
|
- type: Boolean,
|
|
|
|
|
- default: false,
|
|
|
|
|
- },
|
|
|
|
|
parentModelData: {
|
|
parentModelData: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
default() {
|
|
default() {
|
|
@@ -246,7 +240,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- emits: ['dataSelected', 'deleteSelected','getSelectModelData'],
|
|
|
|
|
|
|
+ emits: ['dataSelected', 'deleteSelected', 'getSelectModelData'],
|
|
|
|
|
|
|
|
data: function () {
|
|
data: function () {
|
|
|
this.Language = Language;
|
|
this.Language = Language;
|
|
@@ -1008,11 +1002,6 @@ export default {
|
|
|
infoSelected: function () {
|
|
infoSelected: function () {
|
|
|
this.selectInfoData = this.infoWindowDataInstance.getSelected();
|
|
this.selectInfoData = this.infoWindowDataInstance.getSelected();
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- // 获取需要新增同类资产数据
|
|
|
|
|
- newSimilarAssets: function(){
|
|
|
|
|
- this.$emit('getSelectModelData',this.selectInfoData);
|
|
|
|
|
- },
|
|
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
@@ -1092,4 +1081,7 @@ nav>>>ul.pagination {
|
|
|
.m-segmented>>>.ant-segmented-item {
|
|
.m-segmented>>>.ant-segmented-item {
|
|
|
margin-bottom: 0px;
|
|
margin-bottom: 0px;
|
|
|
}
|
|
}
|
|
|
|
|
+:deep(.ant-btn) {
|
|
|
|
|
+ padding: 4px 8px;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|