合并分支 'dev_third_stage' 到 'master'

Dev third stage

查看合并请求 laws-nio/laws-weilai!172
This commit is contained in:
高嵩
2022-09-09 17:55:04 +08:00
4 changed files with 53 additions and 19 deletions
@@ -170,6 +170,13 @@ public class CommonController {
// bizPath = ""; // bizPath = "";
// } // }
} }
if(file.getOriginalFilename().length()>70){
if(StringUtils.equals(cut,CutEnum.CN.getValue())){
throw new JeroBootException("文件名长度不能超过70位,请检查!");
}else if(StringUtils.equals(cut,CutEnum.EN.getValue())){
throw new JeroBootException("File name length cannot exceed 70 characters, please check!");
}
}
// OSSFile oSSFile = ossFileService.uploadLocal(file, bizPath,state,cut); // OSSFile oSSFile = ossFileService.uploadLocal(file, bizPath,state,cut);
OSSFile oSSFile = ossFileService.uploadLocalOfCos(file, bizPath,state,cut); // 切换cos OSSFile oSSFile = ossFileService.uploadLocalOfCos(file, bizPath,state,cut); // 切换cos
if (oConvertUtils.isNotEmpty(oSSFile)) { if (oConvertUtils.isNotEmpty(oSSFile)) {
@@ -186,6 +193,10 @@ public class CommonController {
return result; return result;
} }
public static void main(String[] args) {
}
/** /**
* 查看已上传的文件 * 查看已上传的文件
* @param id * @param id
@@ -88,11 +88,15 @@ public class TranslationDocumentUtils {
if(i == 0){ if(i == 0){
translateFrontTextSplit = translateFrontText.substring(0,splitLength); translateFrontTextSplit = translateFrontText.substring(0,splitLength);
}else { }else {
//每一次截取开始的下标
int startSplitLength = i*(splitLength) + 1;
//如果长度不够根据splitLength再截取一次。 //如果长度不够根据splitLength再截取一次。
if(translateFrontText.length() < i*splitLength+(splitLength+1)){ if(translateFrontText.length() < i*splitLength+(splitLength)){
translateFrontTextSplit = translateFrontText.substring(i*(splitLength + 1),translateFrontText.length()); if(startSplitLength < translateFrontText.length()){
translateFrontTextSplit = translateFrontText.substring(startSplitLength,translateFrontText.length());
}
}else { }else {
translateFrontTextSplit = translateFrontText.substring(i*(splitLength + 1),i*splitLength+(splitLength+1)); translateFrontTextSplit = translateFrontText.substring(startSplitLength,i*splitLength+(splitLength));
} }
} }
@@ -25,7 +25,7 @@
<!-- {{$t('engineerFeedbackResults')}}--> <!-- {{$t('engineerFeedbackResults')}}-->
<!-- </div>--> <!-- </div>-->
<a-card :bordered="false" class="box-clause" style="margin-top: 20px" v-for="(item,index) in dataSource"> <a-card :bordered="false" class="box-clause" style="margin-top: 20px" v-for="(item,index) in dataSource">
<div class="table-operator"> <div class="table-operator" v-if="item.id">
<div class="operator-text" style="float: left;font-size: 16px"> <div class="operator-text" style="float: left;font-size: 16px">
{{$t('engineer')+item.createBy+$t('feedbackResults')}} {{$t('engineer')+item.createBy+$t('feedbackResults')}}
</div> </div>
@@ -110,7 +110,7 @@
} }
}, },
mounted() { mounted() {
document.title = this.$route.query.serialNumber +' '+this.$t('regulatoryTechnicalEvaluationResults') document.title = this.$route.query.serialNumber + ' ' + this.$t('regulatoryTechnicalEvaluationResults')
this.getList() this.getList()
}, },
methods: { methods: {
@@ -118,10 +118,10 @@
let query = { let query = {
firstInitiation: '2', firstInitiation: '2',
whetherTobring: '2', whetherTobring: '2',
processBackground:this.$route.query.processBackground || '', processBackground: this.$route.query.processBackground || '',
remark:this.$route.query.remark || '', remark: this.$route.query.remark || '',
standId:this.$route.query.standId, standId: this.$route.query.standId,
lawsTechnologyEvaluationId:this.$route.query.lawsTechnologyEvaluationId lawsTechnologyEvaluationId: this.$route.query.lawsTechnologyEvaluationId
} }
let newUrl = this.$router.resolve({ let newUrl = this.$router.resolve({
path: '/evaluationInitiationProcess', path: '/evaluationInitiationProcess',
@@ -146,6 +146,11 @@
getAction(this.url.list, query).then((res) => { getAction(this.url.list, query).then((res) => {
if (res.success) { if (res.success) {
this.dataSource = res.result || [] this.dataSource = res.result || []
if (this.dataSource.length == 0) {
this.dataSource.push({
name: ''
})
}
this.loading = false this.loading = false
} else { } else {
this.dataSource = [] this.dataSource = []
@@ -118,9 +118,9 @@
@cancel="visible = false" @cancel="visible = false"
> >
<template slot="footer"> <template slot="footer">
<a-button type="primary" @click="fullTextCommentsEdit"> <!-- <a-button type="primary" @click="fullTextCommentsEdit">-->
{{$t('edit')}} <!-- {{$t('edit')}}-->
</a-button> <!-- </a-button>-->
<a-button type="primary" :loading="confirmLoading" @click="fullTextCommentsSubmit"> <a-button type="primary" :loading="confirmLoading" @click="fullTextCommentsSubmit">
{{$t('submit')}} {{$t('submit')}}
</a-button> </a-button>
@@ -133,11 +133,11 @@
<a-form-model-item class="itemModel" style="width: calc(100% - 113px)" prop="comment"> <a-form-model-item class="itemModel" style="width: calc(100% - 113px)" prop="comment">
<a-textarea :placeholder="$t('pleaseEnter')+$t('fullTextComments')" <a-textarea :placeholder="$t('pleaseEnter')+$t('fullTextComments')"
v-model.trim="formInlineText.comment" v-model.trim="formInlineText.comment"
:disabled="fullTextDisabled"
:rows="4"/> :rows="4"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-form-model> </a-form-model>
<JLoading :loading="textDataLoading">{{$t('dataLoading')}}</JLoading>
</a-modal> </a-modal>
<JLoading :loading="loading">{{dataLoadingText}}</JLoading> <JLoading :loading="loading">{{dataLoadingText}}</JLoading>
</div> </div>
@@ -153,7 +153,7 @@
formInline: {}, formInline: {},
formInlineText: {}, formInlineText: {},
dataLoadingText: '', dataLoadingText: '',
loadingText:false, loadingText: false,
rules: { rules: {
comment: [ comment: [
{ {
@@ -173,6 +173,7 @@
] ]
}, },
loading: false, loading: false,
textDataLoading: false,
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
fullTextDisabled: false, fullTextDisabled: false,
@@ -256,11 +257,24 @@
}, },
addFullTextCommentClick() { addFullTextCommentClick() {
this.visible = true this.visible = true
if (this.formInlineText.comment) { let query = {
this.fullTextDisabled = true id: this.$route.query.id
} else {
this.fullTextDisabled = false
} }
this.textDataLoading = true
postAction('/compare/sarFileCompareInfo/getComparisonDetail', query).then((res) => {
if (res.success) {
this.formInlineText.comment = res.result.comments || ''
this.formInlineText = { ...this.formInlineText }
this.textDataLoading = false
} else {
this.textDataLoading = false
}
})
// if (this.formInlineText.comment) {
// this.fullTextDisabled = true
// } else {
// this.fullTextDisabled = false
// }
}, },
turnOffAutomaticMatchingClick() { turnOffAutomaticMatchingClick() {
this.isMatching = !this.isMatching this.isMatching = !this.isMatching
@@ -388,7 +402,7 @@
this.loadingText = false this.loadingText = false
this.resultData.textLeft[this.dataLeft.numIndex].itemsText = res.result[0] this.resultData.textLeft[this.dataLeft.numIndex].itemsText = res.result[0]
this.resultData.textRight[this.dataRight.numIndex].itemsText = res.result[1] this.resultData.textRight[this.dataRight.numIndex].itemsText = res.result[1]
}else{ } else {
this.loadingText = false this.loadingText = false
} }
}) })