|
|
@@ -37,7 +37,12 @@
|
|
|
</a-flex>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+ <a-button v-if="isNewSimilarAssets" style="margin-top: 6px;" @click="newSimilarAssets">
|
|
|
+ <template #icon>
|
|
|
+ <PlusCircleTwoTone />
|
|
|
+ </template>
|
|
|
+ 确认添加
|
|
|
+ </a-button>
|
|
|
<div v-if="!isSearchWidget" style="display: inline-block">
|
|
|
<QueryPageButton
|
|
|
:info-buttons="infoWindowDto.infoButtons" :info-window-no="infoWindowDto.no" :select-info-data="selectInfoData" :icon-src="iconSrc"
|
|
|
@@ -156,6 +161,7 @@ import {
|
|
|
DownloadOutlined,
|
|
|
TableOutlined,
|
|
|
ExclamationCircleOutlined,
|
|
|
+ PlusCircleTwoTone,
|
|
|
} from '@ant-design/icons-vue';
|
|
|
|
|
|
import CssUtil from '../../common/CssUtil.js';
|
|
|
@@ -177,7 +183,7 @@ export default {
|
|
|
SyncOutlined,
|
|
|
DownloadOutlined,
|
|
|
QueryPageButton,
|
|
|
- ExclamationCircleOutlined,
|
|
|
+ ExclamationCircleOutlined,PlusCircleTwoTone,
|
|
|
},
|
|
|
|
|
|
props: {
|
|
|
@@ -191,6 +197,11 @@ export default {
|
|
|
type: Boolean,
|
|
|
default: false,
|
|
|
},
|
|
|
+ // 用于新增同类资产,其他可以忽略
|
|
|
+ isNewSimilarAssets: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
parentModelData: {
|
|
|
type: Object,
|
|
|
default() {
|
|
|
@@ -231,7 +242,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
|
|
|
- emits: ['dataSelected', 'deleteSelected'],
|
|
|
+ emits: ['dataSelected', 'deleteSelected','getSelectModelData'],
|
|
|
|
|
|
data: function () {
|
|
|
this.Language = Language;
|
|
|
@@ -990,8 +1001,13 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 获取表格选择的数据
|
|
|
- infoSelected: function (selected) {
|
|
|
- this.selectInfoData = selected;
|
|
|
+ infoSelected: function () {
|
|
|
+ this.selectInfoData = this.infoWindowDataInstance.getSelected();
|
|
|
+ },
|
|
|
+
|
|
|
+ // 获取需要新增同类资产数据
|
|
|
+ newSimilarAssets: function(){
|
|
|
+ this.$emit('getSelectModelData',this.selectInfoData);
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
@@ -1007,7 +1023,7 @@ export default {
|
|
|
margin-left: 15px;
|
|
|
}
|
|
|
|
|
|
-.mulitiple-select {
|
|
|
+:deep(.mulitiple-select) {
|
|
|
background-color: #6699cc !important;
|
|
|
}
|
|
|
|