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

This commit is contained in:
zyx.net
2022-07-26 17:46:12 +08:00
4 changed files with 30 additions and 10 deletions
@@ -3189,7 +3189,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
//您订阅的XXX已被修改 //您订阅的XXX已被修改
content = "In the "+category + " " + serialNumber+" you subscribed to, has been modified,Please pay attention to check."; content = "In the "+category + " " + serialNumber+" you subscribed to, has been modified,Please pay attention to check.";
String contentInfo = "In the "+category + " " + href+" you subscribed to, "+sysUser.getUsername()+" changed the "+ href + " " + sbStr.toString(); String contentInfo = "In the "+category + " " + href+" you subscribed to, "+sysUser.getUsername()+" changed the "+ href + " " + sbStr.toString();
String msgTitle = serialNumber + " you subsribed to has been updated"; String msgTitle = serialNumber + " you subscribed to has been updated";
//封装消息的实体类 //封装消息的实体类
SysAnnouncement sysAnnouncement = getSysAnnouncement(userIdListUpdate, msgTitle, content, contentInfo,MessageTypeEnum.READ.getValue(),MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName()); SysAnnouncement sysAnnouncement = getSysAnnouncement(userIdListUpdate, msgTitle, content, contentInfo,MessageTypeEnum.READ.getValue(),MessageTypeEnum.SYSTEMATIC_NOTIFICATION.getName());
sysAnnouncementService.saveAnnouncement(sysAnnouncement); sysAnnouncementService.saveAnnouncement(sysAnnouncement);
@@ -42,7 +42,7 @@
<a-table <a-table
:columns="columns" :columns="columns"
rowKey="id" rowKey="id"
:scroll="{x: '100%',y:'calc(100vh - 430px)'}" :scroll="{x: '100%',y:'calc(100vh - 440px)'}"
:data-source="dataList" :data-source="dataList"
:pagination="false" :pagination="false"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:' ' }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:' ' }"
@@ -68,7 +68,7 @@
<span class="Required-One">*</span> <span class="Required-One">*</span>
<span class="title-text-text-One" :title="$t('translationLanguage')">{{$t('translationLanguage')}}</span> <span class="title-text-text-One" :title="$t('translationLanguage')">{{$t('translationLanguage')}}</span>
</div> </div>
<a-form-model-item class="itemModel-One" style="width: calc(50% - 20px)" prop="translationLanguage"> <a-form-model-item class="itemModel-One" style="width: calc(50% - 20px)" prop="sourceLanguage">
<j-dict-select-tag class="box-input" v-model="formInline.sourceLanguage" <j-dict-select-tag class="box-input" v-model="formInline.sourceLanguage"
@input="handleInput('sourceLanguage')" @input="handleInput('sourceLanguage')"
:placeholder="$t('PleaseSelect')+$t('translationLanguage')" :placeholder="$t('PleaseSelect')+$t('translationLanguage')"
@@ -78,7 +78,7 @@
<span class="text-icon-One"> <span class="text-icon-One">
<a-icon type="arrow-right" style="font-size: 20px"/> <a-icon type="arrow-right" style="font-size: 20px"/>
</span> </span>
<a-form-model-item class="itemModel-One" style="width: calc(50% - 20px)" prop="translationLanguageOne"> <a-form-model-item class="itemModel-One" style="width: calc(50% - 20px)" prop="targetLanguage">
<j-dict-select-tag class="box-input" v-model="formInline.targetLanguage" <j-dict-select-tag class="box-input" v-model="formInline.targetLanguage"
@input="handleInput('targetLanguage')" @input="handleInput('targetLanguage')"
:placeholder="$t('PleaseSelect')+$t('translationLanguage')" :placeholder="$t('PleaseSelect')+$t('translationLanguage')"
@@ -111,14 +111,14 @@
selectedRowKeys: [], selectedRowKeys: [],
formInline: {}, formInline: {},
rules: { rules: {
translationLanguage: [ sourceLanguage: [
{ {
required: true, required: true,
message: this.$t('translationLanguage') + this.$t('cannotEmpty'), message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
trigger: 'change' trigger: 'change'
} }
], ],
translationLanguageOne: [ targetLanguage: [
{ {
required: true, required: true,
message: this.$t('translationLanguage') + this.$t('cannotEmpty'), message: this.$t('translationLanguage') + this.$t('cannotEmpty'),
@@ -191,6 +191,9 @@
this.queryParam = {} this.queryParam = {}
this.selectedRowKeys = [] this.selectedRowKeys = []
this.replacePage() this.replacePage()
this.$nextTick(() => {
this.$refs.ruleForm.clearValidate()
})
}, },
searchQuery() { searchQuery() {
this.pageNo = 1 this.pageNo = 1
@@ -216,7 +219,7 @@
let query = { let query = {
pageNo: pageNo + '', pageNo: pageNo + '',
pageSize: pageSize + '', pageSize: pageSize + '',
type: 'pdf', type: 'doc',
...this.queryParam ...this.queryParam
} }
this.loading = true this.loading = true
@@ -249,9 +252,25 @@
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
let query = {
...this.formInline,
serialNumber: this.selectedRowKeysRecord[0].serial_number,
title: this.selectedRowKeysRecord[0].title,
fileName: this.selectedRowKeysRecord[0].file_name,
textStatus: this.selectedRowKeysRecord[0].text_info_id
}
this.confirmLoading = true this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) postAction('/docTranslation/docTranslationEO/add', query).then((res) => {
this.visible = false if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.visible = false
this.confirmLoading = false
this.$emit('RetrieveFilesListForm')
} else {
this.$message.warning(this.$t('operationFailed'))
this.confirmLoading = false
}
})
} }
}) })
} else { } else {
@@ -222,6 +222,7 @@
this.getList() this.getList()
}, },
RetrieveFilesListForm() { RetrieveFilesListForm() {
this.pageNo = 1
this.getList() this.getList()
}, },
handleToggleSearch() { handleToggleSearch() {
@@ -198,7 +198,7 @@
</div> </div>
<!-- 强制撤回--> <!-- 强制撤回-->
<div @click="compulsoryWithdrawaljurisdiction" class="operator-text" <div @click="compulsoryWithdrawaljurisdiction" class="operator-text"
v-if='currentPersonRole == "homo" || currentPersonRole == "sdt" ||currentPersonRole == "dre"'> v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
<a-icon type="delete"/> <a-icon type="delete"/>
{{$t('CompulsoryWithdrawal')}} {{$t('CompulsoryWithdrawal')}}
</div> </div>