diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java index 9d721509b..2b4646201 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java @@ -21,10 +21,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.OutputStream; import java.text.SimpleDateFormat; -import java.util.Arrays; -import java.util.Date; -import java.util.List; -import java.util.Map; +import java.util.*; /** * @Description: 文档对比信息条款评论表 @@ -168,13 +165,19 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.eq(SarFileCompareItemComment::getInfoId, infoId); - if (!StringUtils.isEmpty(selectIds)) { - queryWrapper.in(SarFileCompareItemComment::getId, Arrays.asList(selectIds.split(","))); + List list = null; + if (includeComments && StringUtils.isEmpty(selectIds)) { + //只导出全文评论的情况 + list = new ArrayList<>(); + } else { + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.eq(SarFileCompareItemComment::getInfoId, infoId); + if (!StringUtils.isEmpty(selectIds)) { + queryWrapper.in(SarFileCompareItemComment::getId, Arrays.asList(selectIds.split(","))); + } + queryWrapper.orderBy(true, true, SarFileCompareItemComment::getCreateTime); + list = this.list(queryWrapper); } - queryWrapper.orderBy(true, true, SarFileCompareItemComment::getCreateTime); - List list = this.list(queryWrapper); Map sfcItemMap = SarFileCompareItemServiceImpl.queryMapByInfoId(infoId); OutputStream os = null; @@ -230,7 +233,7 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl + + + +
+
+ * + {{$t('applicableMarket')}} +
+ + + + + {{ item.title}} + + + + +
+
+
+
-
- -
@@ -80,15 +93,23 @@ deleteOne: '' }, title: '', + formInline: {}, + rules: { + applyMarket: [ + { + required: true, + message: this.$t('LabelType') + this.$t('cannotEmpty'), + trigger: 'change' + } + ] + }, visible: false, selectedRowKeys: [], dataList: [{}], loading: false, - pageNo: 1, - pageSize: 10, - total: 0, confirmLoading: false, index: '', + applyMarketList: [], columns: [ { title: this.$t('LabelName'), @@ -118,10 +139,21 @@ add() { this.visible = true this.title = this.$t('newlyAdded') + this.getApplyMarketList() }, edit() { this.visible = true this.title = this.$t('edit') + this.getApplyMarketList() + }, + getApplyMarketList() { + getAction('/problemKnowledgeBase/countryCardManageReleaseEO/getApplyMarketList', {}).then((res) => { + if (res.success) { + this.applyMarketList = res.result || [] + } else { + this.applyMarketList = [] + } + }) }, clickButtonToUpload(item, index) { this.$refs.uploadFile.perentHandleFunc() @@ -152,31 +184,20 @@ this.visible = false }, handleSubmit() { + this.$refs.ruleForm.validate(valid => { + if (valid) { - }, - onChange(page, pageSize) { - this.pageNo = page - this.replacePage() - }, - SizeChange(page, pageSize) { - this.pageNo = 1 - this.pageSize = pageSize - this.replacePage() + } + }) }, replacePage() { - let query = { - pageNo: this.pageNo, - pageSize: this.pageSize - } this.loading = true - postAction(this.url.list, query).then((res) => { + postAction(this.url.list, {}).then((res) => { if (res.success) { - this.dataList = res.result.records || [] - this.total = res.result.total + this.dataList = res.result || [] this.loading = false } else { this.dataList = [] - this.total = 0 this.loading = false } }) @@ -204,21 +225,6 @@ border-radius: 0 0 2px 2px; } - .box-title { - width: 100%; - text-align: right; - margin-bottom: 20px; - } - - .operator-text { - cursor: pointer; - margin-right: 13px; - font-size: 14px; - font-weight: 400; - color: #040B29; - display: inline-block; - } - .button-text { height: 38px; width: 100%; @@ -227,4 +233,45 @@ border: 1px #00B3BE solid; color: #00B3BE; } + + .box-title-text { + line-height: 1.4; + display: flex; + } + + .title-text { + width: 84px; + text-align: right; + display: inline-block; + font-weight: 500; + font-size: 14px; + margin-right: 16px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + height: 42px; + line-height: 42px; + } + + .box-input { + display: inline-block; + height: 38px; + width: 100%; + } + + .itemModel { + width: calc(100% - 130px); + display: inline-block; + margin-top: 2px; + } + + .title-text-text { + margin-top: 9px; + } + + .Required { + color: red; + margin-right: 4px; + } + \ No newline at end of file diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseModelAdd.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseModelAdd.vue index a81230e9b..90873d393 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseModelAdd.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/countryCardReleaseModelAdd.vue @@ -37,6 +37,7 @@