78293 国内外政策-配置政策弹窗修改
This commit is contained in:
@@ -119,6 +119,22 @@
|
|||||||
:total="configTotal"
|
:total="configTotal"
|
||||||
@pageChange="configuraPageChange"
|
@pageChange="configuraPageChange"
|
||||||
@pageSizeChange="configuraPageSizeChange"></pagination>
|
@pageSizeChange="configuraPageSizeChange"></pagination>
|
||||||
|
<div class="divDel">
|
||||||
|
<div class="divDel_title">已选政策</div>
|
||||||
|
<div class="divDel_box">
|
||||||
|
<el-tag
|
||||||
|
v-for="tag in selectConfigStand"
|
||||||
|
:key="tag.id"
|
||||||
|
size="mini"
|
||||||
|
closable
|
||||||
|
@close="handleTagClose(tag)">
|
||||||
|
<a v-if="tag.standStatusShow === '作废' "
|
||||||
|
class="table-jump" style="color: #F56C6C"
|
||||||
|
@click="handlePreview(tag)">{{ tag.lawsName }}</a>
|
||||||
|
<a v-else @click="handlePreview(tag)" class="table-jump" style="color: #333333">{{ tag.lawsName }}</a>
|
||||||
|
</el-tag>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<loading :loading="configLoading">加载中...</loading>
|
<loading :loading="configLoading">加载中...</loading>
|
||||||
</div>
|
</div>
|
||||||
<div class="demo-drawer-footer">
|
<div class="demo-drawer-footer">
|
||||||
@@ -169,6 +185,7 @@ export default {
|
|||||||
// standSort: '',
|
// standSort: '',
|
||||||
// replaceStandNum: ''
|
// replaceStandNum: ''
|
||||||
}, // 分页查询过程中用到的对象
|
}, // 分页查询过程中用到的对象
|
||||||
|
selectConfigStand: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -255,10 +272,7 @@ export default {
|
|||||||
this.selectConfiguraStand()
|
this.selectConfiguraStand()
|
||||||
},
|
},
|
||||||
selectConfigStandChange (alldata) {
|
selectConfigStandChange (alldata) {
|
||||||
this.selectConfigStand = []
|
this.selectConfigStand = alldata
|
||||||
for (let i = 0; i < alldata.length; i++) {
|
|
||||||
this.selectConfigStand.push(alldata[i].id)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// 分页点击后方法
|
// 分页点击后方法
|
||||||
configuraPageChange (page) {
|
configuraPageChange (page) {
|
||||||
@@ -284,7 +298,7 @@ export default {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
search.idlist = this.selectConfigStand
|
search.idlist = this.selectConfigStand.map(item => item.id)
|
||||||
this.$http.postData('lawss/sarLawsInfo/saveStandardsMenu', search, {
|
this.$http.postData('lawss/sarLawsInfo/saveStandardsMenu', search, {
|
||||||
_this: this,
|
_this: this,
|
||||||
loading: 'isSubmit'
|
loading: 'isSubmit'
|
||||||
@@ -307,6 +321,20 @@ export default {
|
|||||||
}
|
}
|
||||||
return dateStr
|
return dateStr
|
||||||
},
|
},
|
||||||
|
handleTagClose (tag) {
|
||||||
|
this.$set(this, 'selectConfigStand', this.selectConfigStand.filter(item => item.id !== tag.id))
|
||||||
|
this.$refs.selection.toggleRowSelection(tag, false)
|
||||||
|
},
|
||||||
|
handlePreview (tag) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: 'OtherLawsStandDetails',
|
||||||
|
params: {
|
||||||
|
id: tag.id,
|
||||||
|
pageType: 'FOREIGN_LAWS'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
window.open(routeUrl.href, '_blank')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -316,10 +344,33 @@ export default {
|
|||||||
.demo-drawer-content{
|
.demo-drawer-content{
|
||||||
.drawer-content{
|
.drawer-content{
|
||||||
//height: calc(~'100% - 52px - 56px');
|
//height: calc(~'100% - 52px - 56px');
|
||||||
flex: auto;
|
//flex: auto;
|
||||||
|
height: calc(100% - 220px);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
.divDel {
|
||||||
|
border-top: 1px solid #000;
|
||||||
|
height: 100px;
|
||||||
|
.divDel_title {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
.divDel_box {
|
||||||
|
height: 55px;
|
||||||
|
padding: 0px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow: auto;
|
||||||
|
margin: 10px;
|
||||||
|
align-content: flex-start;
|
||||||
|
span {
|
||||||
|
margin: 0px 5px 5px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.demo-drawer-footer{
|
||||||
|
height: 60px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user