部分问题修复
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
21c96300ad
commit
7b3fe42654
|
@ -71,6 +71,8 @@ export default {
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.notice-marquee_wrapper{
|
.notice-marquee_wrapper{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
/deep/ .el-dialog__header{
|
/deep/ .el-dialog__header{
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<el-form-item :label="$t('trials:notice:table:notificationContent')">
|
<el-form-item :label="$t('trials:notice:table:notificationContent')">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="searchData.NoticeContent"
|
v-model="searchData.NoticeContent"
|
||||||
style="width:100px;"
|
style="width: 100px"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -36,7 +36,11 @@
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||||
{{ $t('common:button:search') }}
|
{{ $t('common:button:search') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-refresh-left"
|
||||||
|
@click="handleReset"
|
||||||
|
>
|
||||||
{{ $t('common:button:reset') }}
|
{{ $t('common:button:reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -44,7 +48,7 @@
|
||||||
</template>
|
</template>
|
||||||
<template slot="main-container">
|
<template slot="main-container">
|
||||||
<el-table
|
<el-table
|
||||||
v-adaptive="{bottomOffset:60}"
|
v-adaptive="{ bottomOffset: 60 }"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="list"
|
:data="list"
|
||||||
stripe
|
stripe
|
||||||
|
@ -79,7 +83,15 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag :type="scope.row.ActualNoticeStateEnum === 0 ? 'info' : scope.row.ActualNoticeStateEnum === 1 ? 'success' : 'error'">
|
<el-tag
|
||||||
|
:type="
|
||||||
|
scope.row.ActualNoticeStateEnum === 0
|
||||||
|
? 'info'
|
||||||
|
: scope.row.ActualNoticeStateEnum === 1
|
||||||
|
? 'success'
|
||||||
|
: 'error'
|
||||||
|
"
|
||||||
|
>
|
||||||
{{ $fd('NoticeState', scope.row.ActualNoticeStateEnum) }}
|
{{ $fd('NoticeState', scope.row.ActualNoticeStateEnum) }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
|
@ -113,7 +125,12 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a :href="OSSclientConfig.basePath + scope.row.Path" target="_blank" style="color:#428bca">{{ scope.row.FileName }}</a>
|
<a
|
||||||
|
:href="OSSclientConfig.basePath + scope.row.Path"
|
||||||
|
target="_blank"
|
||||||
|
style="color: #428bca"
|
||||||
|
>{{ scope.row.FileName }}</a
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -124,11 +141,19 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.IsRead">{{ $fd('YesOrNo', scope.row.IsRead) }}</el-tag>
|
<el-tag v-if="scope.row.IsRead">{{
|
||||||
<el-tag v-else type="danger">{{ $fd('YesOrNo', scope.row.IsRead) }}</el-tag>
|
$fd('YesOrNo', scope.row.IsRead)
|
||||||
|
}}</el-tag>
|
||||||
|
<el-tag v-else type="danger">{{
|
||||||
|
$fd('YesOrNo', scope.row.IsRead)
|
||||||
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('common:action:action')" min-width="100" fixed="right">
|
<el-table-column
|
||||||
|
:label="$t('common:action:action')"
|
||||||
|
min-width="100"
|
||||||
|
fixed="right"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
circle
|
circle
|
||||||
|
@ -136,12 +161,17 @@
|
||||||
icon="el-icon-info"
|
icon="el-icon-info"
|
||||||
@click="showDetail(scope.row)"
|
@click="showDetail(scope.row)"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" />
|
<pagination
|
||||||
|
class="page"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="searchData.PageIndex"
|
||||||
|
:limit.sync="searchData.PageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</BaseContainer>
|
</BaseContainer>
|
||||||
</template>
|
</template>
|
||||||
|
@ -157,9 +187,10 @@ const searchDataDefault = () => {
|
||||||
ApplicableProjectEnum: null,
|
ApplicableProjectEnum: null,
|
||||||
NoticeModeEnum: null,
|
NoticeModeEnum: null,
|
||||||
NoticeStateEnum: null,
|
NoticeStateEnum: null,
|
||||||
Asc: true,
|
Asc: false,
|
||||||
|
SortField: 'PublishedTime',
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 20
|
PageSize: 20,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
@ -171,7 +202,7 @@ export default {
|
||||||
searchData: searchDataDefault(),
|
searchData: searchDataDefault(),
|
||||||
list: [],
|
list: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
loading: false
|
loading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -180,17 +211,21 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getUserSystemNoticeList(this.searchData).then(res => {
|
getUserSystemNoticeList(this.searchData)
|
||||||
this.loading = false
|
.then((res) => {
|
||||||
this.list = res.Result.CurrentPageData
|
this.loading = false
|
||||||
this.total = res.Result.TotalCount
|
this.list = res.Result.CurrentPageData
|
||||||
}).catch(() => { this.loading = false })
|
this.total = res.Result.TotalCount
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
showDetail(row) {
|
showDetail(row) {
|
||||||
var currentNoticeType = this.$fd('NoteType', row.NoticeTypeEnum)
|
var currentNoticeType = this.$fd('NoteType', row.NoticeTypeEnum)
|
||||||
if (row.IsRead || row.ActualNoticeStateEnum !== 1) {
|
if (row.IsRead || row.ActualNoticeStateEnum !== 1) {
|
||||||
this.$alert(row.NoticeContent, currentNoticeType, {
|
this.$alert(row.NoticeContent, currentNoticeType, {
|
||||||
showConfirmButton: false
|
showConfirmButton: false,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const h = this.$createElement
|
const h = this.$createElement
|
||||||
|
@ -200,18 +235,22 @@ export default {
|
||||||
beforeClose: (action, instance, done) => {
|
beforeClose: (action, instance, done) => {
|
||||||
if (action === 'confirm') {
|
if (action === 'confirm') {
|
||||||
instance.confirmButtonLoading = true
|
instance.confirmButtonLoading = true
|
||||||
setSystemNoticeHaveRead(row.Id).then(async res => {
|
setSystemNoticeHaveRead(row.Id)
|
||||||
if (res.IsSuccess) {
|
.then(async (res) => {
|
||||||
await this.$store.dispatch('global/getNoticeList')
|
if (res.IsSuccess) {
|
||||||
this.getList()
|
await this.$store.dispatch('global/getNoticeList')
|
||||||
}
|
this.getList()
|
||||||
instance.confirmButtonLoading = false
|
}
|
||||||
done()
|
instance.confirmButtonLoading = false
|
||||||
}).catch(() => { instance.confirmButtonLoading = false })
|
done()
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
instance.confirmButtonLoading = false
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
done()
|
done()
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -237,10 +276,9 @@ export default {
|
||||||
this.searchData.SortField = column.prop
|
this.searchData.SortField = column.prop
|
||||||
this.searchData.PageIndex = 1
|
this.searchData.PageIndex = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:uploadTime')"
|
:label="$t('trials:sysDocBeSigned:table:uploadTime')"
|
||||||
prop="UpdateTime"
|
prop="CreateTime"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
@ -168,7 +168,7 @@ const searchDataDefault = () => {
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
asc: false,
|
asc: false,
|
||||||
sortField: 'UpdateTime',
|
sortField: 'CreateTime',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('trials:sysDocBeSigned:table:uploadTime')"
|
:label="$t('trials:sysDocBeSigned:table:uploadTime')"
|
||||||
prop="UpdateTime"
|
prop="CreateTime"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
/>
|
/>
|
||||||
|
@ -130,7 +130,7 @@ const searchDataDefault = () => {
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
asc: false,
|
asc: false,
|
||||||
sortField: 'UpdateTime'
|
sortField: 'CreateTime'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
|
|
Loading…
Reference in New Issue