合并分支 'fix_2nd_period' 到 'master'
Fix 2nd period 查看合并请求 laws-nio/laws-weilai!252
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ public class LawsMonthlyReportManageEOServiceImpl extends ServiceImpl<LawsMonthl
|
|||||||
query.in("create_by",sysUser.getUsername()).in("issue_status", InventoryStateEnum.TO_BE_RELEASED.getValue())
|
query.in("create_by",sysUser.getUsername()).in("issue_status", InventoryStateEnum.TO_BE_RELEASED.getValue())
|
||||||
.or().in("issue_status",InventoryStateEnum.ISSUE.getValue());
|
.or().in("issue_status",InventoryStateEnum.ISSUE.getValue());
|
||||||
});
|
});
|
||||||
queryWrapper.orderByDesc("create_time");
|
queryWrapper.orderByDesc("name");
|
||||||
Page<LawsMonthlyReportManageEO> pageInfo = this.page(page, queryWrapper);
|
Page<LawsMonthlyReportManageEO> pageInfo = this.page(page, queryWrapper);
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-2
@@ -450,12 +450,13 @@
|
|||||||
this.$refs.SelectedByRef.getPush()
|
this.$refs.SelectedByRef.getPush()
|
||||||
},
|
},
|
||||||
detailClick(item,key) {
|
detailClick(item,key) {
|
||||||
this.$router.push({
|
let newUrl = this.$router.resolve({
|
||||||
path: '/docManage/library/detail',
|
path: '/docManage/library/detail',
|
||||||
query: {
|
query: {
|
||||||
id: item.bussDocumentLibraryId.split(',')[key]
|
id: item.bussDocumentLibraryId.split(',')[key]
|
||||||
},
|
}
|
||||||
})
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
SelectedByForm(userIds) {
|
SelectedByForm(userIds) {
|
||||||
let query = {
|
let query = {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="standard">
|
<a-form-model-item class="itemModel" prop="standard">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:disabled="true"
|
:disabled="false"
|
||||||
v-model="formInline.serialNumber"
|
v-model="formInline.serialNumber"
|
||||||
:placeholder="$t('PleaseEnter')+$t('standard')"/>
|
:placeholder="$t('PleaseEnter')+$t('standard')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('title'),
|
title: this.$t('title'),
|
||||||
value: 'title'
|
value: localStorage.getItem('language') && localStorage.getItem('language') == 'zh-cn'?'title':'title_en'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('regulatoryEngineer'),
|
title: this.$t('regulatoryEngineer'),
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('title'),
|
title: this.$t('title'),
|
||||||
value: 'title'
|
value: localStorage.getItem('language') && localStorage.getItem('language') == 'zh-cn'?'title':'title_en'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('regulatoryEngineer'),
|
title: this.$t('regulatoryEngineer'),
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="serialNumber">
|
<a-form-model-item class="itemModel" prop="serialNumber">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:disabled="true"
|
:disabled="false"
|
||||||
v-model="formInline.serialNumber"
|
v-model="formInline.serialNumber"
|
||||||
:placeholder="$t('PleaseEnter')+$t('standard')"/>
|
:placeholder="$t('PleaseEnter')+$t('standard')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<a-col :md="6" :sm="8" style="line-height: 48px">
|
<a-col :md="6" :sm="8" style="line-height: 48px">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('MessageContent')">
|
<div class="title-text" :title="$t('MessageContent')">
|
||||||
<span>{{this.$t('MessageContent')}}</span>
|
<span>{{ this.$t('MessageContent') }}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:placeholder="$t('pleaseEnter')+$t('MessageContent')"
|
:placeholder="$t('pleaseEnter')+$t('MessageContent')"
|
||||||
@@ -18,16 +18,16 @@
|
|||||||
<a-col :md="6" :sm="8" style="line-height: 48px">
|
<a-col :md="6" :sm="8" style="line-height: 48px">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('MessageType')">
|
<div class="title-text" :title="$t('MessageType')">
|
||||||
<span>{{this.$t('MessageType')}}</span>
|
<span>{{ this.$t('MessageType') }}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-select class="box-input"
|
<a-select class="box-input"
|
||||||
:placeholder="$t('pleaseSelect')+$t('MessageType')"
|
:placeholder="$t('pleaseSelect')+$t('MessageType')"
|
||||||
v-model="queryParam.msgCategory">
|
v-model="queryParam.msgCategory">
|
||||||
<a-select-option :value="undefined">{{$t('pleaseSelect')}}</a-select-option>
|
<a-select-option :value="undefined">{{ $t('pleaseSelect') }}</a-select-option>
|
||||||
<a-select-option v-for="(item, key) in Object.keys(msgCategoryQuery)"
|
<a-select-option v-for="(item, key) in Object.keys(msgCategoryQuery)"
|
||||||
:key="key" :value="item">
|
:key="key" :value="item">
|
||||||
<span style="display: inline-block;width: 100%" :title="msgCategoryQuery[item]">
|
<span style="display: inline-block;width: 100%" :title="msgCategoryQuery[item]">
|
||||||
{{ msgCategoryQuery[item]}}
|
{{ msgCategoryQuery[item] }}
|
||||||
</span>
|
</span>
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@@ -35,8 +35,9 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
<a-button class="box-button" type="primary" @click="searchQuery">{{ $t('query') }}</a-button>
|
||||||
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
<a-button class="box-button" style="margin-left: 8px"
|
||||||
|
@click="searchReset">{{ $t('reset') }}</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -46,12 +47,12 @@
|
|||||||
|
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div @click="readAll" class="operator-text" :title="$t('AllLabelsRead')">
|
<div @click="readAll" class="operator-text" :title="$t('AllLabelsRead')">
|
||||||
<a-icon type="eye"/>
|
<a-icon type="eye" />
|
||||||
{{$t('AllLabelsRead')}}
|
{{ $t('AllLabelsRead') }}
|
||||||
</div>
|
</div>
|
||||||
<div @click="handleDel" class="operator-text">
|
<div @click="handleDel" class="operator-text">
|
||||||
<a-icon type="delete"/>
|
<a-icon type="delete" />
|
||||||
{{$t('BatchDelete')}}
|
{{ $t('BatchDelete') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -63,7 +64,7 @@
|
|||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:expandIconAsCell='false'
|
:expandIconAsCell="false"
|
||||||
:expandIconColumnIndex="5"
|
:expandIconColumnIndex="5"
|
||||||
:expandIcon="expandIcon"
|
:expandIcon="expandIcon"
|
||||||
:expandRowByClick="true"
|
:expandRowByClick="true"
|
||||||
@@ -74,13 +75,13 @@
|
|||||||
<!-- @click="msgContentClick(scope)"-->
|
<!-- @click="msgContentClick(scope)"-->
|
||||||
<a :style="{'color':scope.readFlag == 0 ? 'red':'#00A0E9'}"
|
<a :style="{'color':scope.readFlag == 0 ? 'red':'#00A0E9'}"
|
||||||
:title="language == 'zh-cn' && scope.msgContentCn? scope.msgContentCn : scope.msgContent">
|
:title="language == 'zh-cn' && scope.msgContentCn? scope.msgContentCn : scope.msgContent">
|
||||||
{{language == 'zh-cn' && scope.msgContentCn? scope.msgContentCn : scope.msgContent}}
|
{{ language == 'zh-cn' && scope.msgContentCn ? scope.msgContentCn : scope.msgContent }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span slot="msgCategory" slot-scope="text,scope">
|
<span slot="msgCategory" slot-scope="text,scope">
|
||||||
<!-- :style="{'color':scope.readFlag == 0 ? 'red':'#00A0E9'}" @click="msgContentClick(scope)"-->
|
<!-- :style="{'color':scope.readFlag == 0 ? 'red':'#00A0E9'}" @click="msgContentClick(scope)"-->
|
||||||
<span :title="msgCategoryQuery[text]">
|
<span :title="msgCategoryQuery[text]">
|
||||||
{{msgCategoryQuery[text]}}
|
{{ msgCategoryQuery[text] }}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<p slot="expandedRowRender" slot-scope="record" style="margin: 0;padding-left: 58px;">
|
<p slot="expandedRowRender" slot-scope="record" style="margin: 0;padding-left: 58px;">
|
||||||
@@ -89,18 +90,20 @@
|
|||||||
</p>
|
</p>
|
||||||
</a-table>
|
</a-table>
|
||||||
<show-announcement ref="ShowAnnouncement"></show-announcement>
|
<show-announcement ref="ShowAnnouncement"></show-announcement>
|
||||||
<dynamic-notice ref="showDynamNotice" :path="openPath" :formData="formData"/>
|
<dynamic-notice ref="showDynamNotice" :path="openPath" :formData="formData" />
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { filterObj } from '@/utils/util'
|
import { filterObj } from '@/utils/util'
|
||||||
import { getAction, putAction, deleteAction } from '@/api/manage'
|
import { getAction, putAction, deleteAction } from '@/api/manage'
|
||||||
import ShowAnnouncement from '@/components/tools/ShowAnnouncement'
|
import ShowAnnouncement from '@/components/tools/ShowAnnouncement'
|
||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
import DynamicNotice from '../../components/tools/DynamicNotice'
|
import DynamicNotice from '../../components/tools/DynamicNotice'
|
||||||
|
import Vue from 'vue'
|
||||||
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UserAnnouncementList',
|
name: 'UserAnnouncementList',
|
||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
components: {
|
components: {
|
||||||
@@ -195,21 +198,67 @@
|
|||||||
methods: {
|
methods: {
|
||||||
expandIcon(props) {
|
expandIcon(props) {
|
||||||
if (props.expanded) {
|
if (props.expanded) {
|
||||||
return <a-icon type = 'down'onClick = { e=>
|
return <a-icon type="down" onClick={e => {
|
||||||
{
|
|
||||||
props.onExpand(props.record, e)
|
props.onExpand(props.record, e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>;
|
/>
|
||||||
} else {
|
} else {
|
||||||
return <a-icon type = 'right' onClick = { e =>
|
return <a-icon type="right" onClick={e => {
|
||||||
{
|
|
||||||
props.onExpand(props.record, e)
|
props.onExpand(props.record, e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>;
|
/>
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
loadData(arg) {
|
||||||
|
if (!this.url.list) {
|
||||||
|
this.$message.error('请设置url.list属性!')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
//加载数据 若传入参数1则加载第一页的内容
|
||||||
|
if (arg === 1) {
|
||||||
|
this.ipagination.current = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
var params = this.getQueryParams()//查询条件
|
||||||
|
this.loading = true
|
||||||
|
getAction(this.url.list, params).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
//update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
||||||
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.loadData(1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.dataSource = res.result.records || res.result
|
||||||
|
if (this.dataSource && this.dataSource.length > 0) {
|
||||||
|
this.dataSource.forEach(val => {
|
||||||
|
if (val.msgContentInfoCn && val.msgContentInfoCn.includes('/common/downLoadFile')) {
|
||||||
|
let index = val.msgContentInfoCn.indexOf('target')
|
||||||
|
val.msgContentInfoCn = val.msgContentInfoCn.slice(0, index - 2) + '&token=' + Vue.ls.get(ACCESS_TOKEN) + '\' '
|
||||||
|
+ val.msgContentInfoCn.slice(index)
|
||||||
|
}
|
||||||
|
if (val.msgContentInfo && val.msgContentInfo.includes('/common/downLoadFile')) {
|
||||||
|
let index = val.msgContentInfo.indexOf('target')
|
||||||
|
val.msgContentInfo = val.msgContentInfo.slice(0, index - 2) + '&token=' + Vue.ls.get(ACCESS_TOKEN) + '\' '
|
||||||
|
+ val.msgContentInfo.slice(index)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if (res.result.total) {
|
||||||
|
this.ipagination.total = res.result.total
|
||||||
|
} else {
|
||||||
|
this.ipagination.total = 0
|
||||||
|
}
|
||||||
|
//update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
|
||||||
|
}
|
||||||
|
if (res.code === 510) {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
getQueryParams() {
|
getQueryParams() {
|
||||||
//获取查询条件
|
//获取查询条件
|
||||||
let sqp = {}
|
let sqp = {}
|
||||||
@@ -307,45 +356,45 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@import '~@assets/less/common.less';
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
.ant-card-body .table-operator {
|
.ant-card-body .table-operator {
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.anty-row-operator button {
|
.anty-row-operator button {
|
||||||
margin: 0 5px
|
margin: 0 5px
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-btn-danger {
|
.ant-btn-danger {
|
||||||
background-color: #ffffff
|
background-color: #ffffff
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-modal-cust-warp {
|
.ant-modal-cust-warp {
|
||||||
height: 100%
|
height: 100%
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-modal-cust-warp .ant-modal-body {
|
.ant-modal-cust-warp .ant-modal-body {
|
||||||
height: calc(100% - 110px) !important;
|
height: calc(100% - 110px) !important;
|
||||||
overflow-y: auto
|
overflow-y: auto
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-modal-cust-warp .ant-modal-content {
|
.ant-modal-cust-warp .ant-modal-content {
|
||||||
height: 90% !important;
|
height: 90% !important;
|
||||||
overflow-y: hidden
|
overflow-y: hidden
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-title-text {
|
.box-title-text {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-text {
|
.title-text {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
min-width: 90px;
|
min-width: 90px;
|
||||||
color: #000F16;
|
color: #000F16;
|
||||||
@@ -358,31 +407,31 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-input {
|
.box-input {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-button {
|
.box-button {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
/*margin-top: 2px;*/
|
/*margin-top: 2px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .ant-table .ant-table-row-indent + .ant-table-row-expand-icon {
|
::v-deep .ant-table .ant-table-row-indent + .ant-table-row-expand-icon {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.box-input .ant-select-selection {
|
.box-input .ant-select-selection {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-input .ant-select-selection__rendered {
|
.box-input .ant-select-selection__rendered {
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user