Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage

This commit is contained in:
liyawei
2022-08-15 10:51:08 +08:00
6 changed files with 44 additions and 13 deletions
+10 -1
View File
@@ -69,7 +69,7 @@
methods: { methods: {
onSelect(obj) { onSelect(obj) {
this.$emit('menuSelect', obj) this.$emit('menuSelect', obj)
}, }
} }
} }
</script> </script>
@@ -201,5 +201,14 @@
left: 0 !important; left: 0 !important;
right: inherit !important; right: inherit !important;
} }
</style>
<style scoped>
::v-deep .ant-menu-item a {
overflow: hidden !important;
white-space: nowrap!important;
text-overflow: ellipsis!important;
-o-text-overflow: ellipsis!important;
}
</style> </style>
<!-- update_end author:sunjianlei date:20190530 for: 选中首页的时候不显示背景颜色 --> <!-- update_end author:sunjianlei date:20190530 for: 选中首页的时候不显示背景颜色 -->
+2 -2
View File
@@ -109,7 +109,7 @@ export default {
props = { to: { path: menu.path } } props = { to: { path: menu.path } }
} }
const attrs = { href: menu.path, target: menu.meta.target } const attrs = { href: menu.path, target: menu.meta.target , title:menu.meta.title }
if (menu.children && menu.alwaysShow) { if (menu.children && menu.alwaysShow) {
// 把有子菜单的 并且 父菜单是要隐藏子菜单的 // 把有子菜单的 并且 父菜单是要隐藏子菜单的
@@ -162,7 +162,7 @@ export default {
span span
slot = 'title' > slot = 'title' >
{ this.renderIcon(menu.meta.icon) } { this.renderIcon(menu.meta.icon) }
< span > { menu.meta.title } < /span> < span title={menu.meta.title}> { menu.meta.title } < /span>
< /span> < /span>
{ {
itemArr itemArr
+2 -2
View File
@@ -223,7 +223,7 @@
// 将半年的时间单位换算成毫秒 // 将半年的时间单位换算成毫秒
var halfYear = 365 / 2 * 24 * 3600 * 1000 var halfYear = 365 / 2 * 24 * 3600 * 1000
// 半年前的时间(毫秒单位) // 半年前的时间(毫秒单位)
var pastResult = curDate - halfYear var pastResult = curDate + halfYear
// 日期函数,定义起点为半年前 // 日期函数,定义起点为半年前
var pastDate = new Date(pastResult) var pastDate = new Date(pastResult)
var pastYear = pastDate.getFullYear() var pastYear = pastDate.getFullYear()
@@ -235,7 +235,7 @@
if (pastDay >= 0 && pastDay <= 9) { if (pastDay >= 0 && pastDay <= 9) {
pastDay = '0' + pastDay pastDay = '0' + pastDay
} }
var endDate = pastYear + '-' + pastMonth + '-' + pastDay var endDate = pastYear + '-' + pastMonth + '-' + (pastDay + 1)
return endDate return endDate
}, },
dateChange(item) { dateChange(item) {
@@ -75,7 +75,7 @@
</a-form> </a-form>
</div> </div>
<div class="table-operator"> <div class="table-operator">
<div @click="initiatingProcessClick" class="operator-text"> <div @click="initiatingProcessClick" v-has="'regulatoryComments:initiationProcess'" class="operator-text">
<a-icon type="apartment"/> <a-icon type="apartment"/>
{{$t('initiatingProcess')}} {{$t('initiatingProcess')}}
</div> </div>
@@ -19,10 +19,18 @@
<div class="title-text" :title="$t('applicableMarket')"> <div class="title-text" :title="$t('applicableMarket')">
<span>{{$t('applicableMarket')}}</span> <span>{{$t('applicableMarket')}}</span>
</div> </div>
<j-dict-select-tag class="box-input" v-model="queryParam.applyMarket" <a-select class="box-input"
:placeholder="$t('PleaseSelect')+$t('applicableMarket')" :placeholder="$t('PleaseSelect')+$t('applicableMarket')"
:type="'select'" style="width: 100%"
:triggerChange="false" :dictCode="'region'"/> v-model="queryParam.applyMarket">
<a-select-option v-for="(item, key) in applyMarketList"
:key="key"
:value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.title ">
{{ item.title}}
</span>
</a-select-option>
</a-select>
</div> </div>
</a-col> </a-col>
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
@@ -150,6 +158,7 @@
deleteBatch: '/problemKnowledgeBase/countryCardManageReleaseEO/deleteBatch' deleteBatch: '/problemKnowledgeBase/countryCardManageReleaseEO/deleteBatch'
}, },
userInfoQuery: {}, userInfoQuery: {},
applyMarketList: [],
selectedRowKeys: [], selectedRowKeys: [],
columns: [ columns: [
{ {
@@ -177,10 +186,20 @@
mounted() { mounted() {
document.title = 'Country Card-' + this.$t('managePublishing') document.title = 'Country Card-' + this.$t('managePublishing')
this.getList() this.getList()
this.getApplyMarketList()
this.userInfoQuery = this.userInfo() this.userInfoQuery = this.userInfo()
}, },
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
getApplyMarketList() {
getAction('/problemKnowledgeBase/countryCardManageReleaseEO/getApplyMarketList', { queryFlag: '1' }).then((res) => {
if (res.success) {
this.applyMarketList = res.result || []
} else {
this.applyMarketList = []
}
})
},
searchQuery() { searchQuery() {
this.pageNo = 1 this.pageNo = 1
this.getList() this.getList()
@@ -200,6 +219,7 @@
this.getList() this.getList()
}, },
countryCardReleaseAddForm() { countryCardReleaseAddForm() {
this.getApplyMarketList()
this.pageNo = 1 this.pageNo = 1
this.getList() this.getList()
}, },
@@ -256,6 +276,7 @@
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = [] _this.selectedRowKeys = []
_this.getList() _this.getList()
_this.getApplyMarketList()
} else { } else {
_this.$message.warning(res.message) _this.$message.warning(res.message)
} }
@@ -317,6 +338,7 @@
if (res.success) { if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful')) _this.$message.success(_this.$t('OperationSuccessful'))
_this.getList() _this.getList()
_this.getApplyMarketList()
} else { } else {
_this.$message.warning(res.message) _this.$message.warning(res.message)
} }
@@ -244,7 +244,7 @@
// 将半年的时间单位换算成毫秒 // 将半年的时间单位换算成毫秒
var halfYear = 365 / 2 * 24 * 3600 * 1000 var halfYear = 365 / 2 * 24 * 3600 * 1000
// 半年前的时间(毫秒单位) // 半年前的时间(毫秒单位)
var pastResult = curDate - halfYear var pastResult = curDate + halfYear
// 日期函数,定义起点为半年前 // 日期函数,定义起点为半年前
var pastDate = new Date(pastResult) var pastDate = new Date(pastResult)
var pastYear = pastDate.getFullYear() var pastYear = pastDate.getFullYear()
@@ -256,7 +256,7 @@
if (pastDay >= 0 && pastDay <= 9) { if (pastDay >= 0 && pastDay <= 9) {
pastDay = '0' + pastDay pastDay = '0' + pastDay
} }
var endDate = pastYear + '-' + pastMonth + '-' + pastDay var endDate = pastYear + '-' + pastMonth + '-' + (pastDay + 1)
return endDate return endDate
}, },
pageOnChange(page) { pageOnChange(page) {