1.修改三期优化点

This commit is contained in:
sunFlower
2022-09-21 11:22:30 +08:00
parent b07b15952c
commit d716e9c722
6 changed files with 47 additions and 30 deletions
@@ -101,8 +101,9 @@
<span>{{text}}</span> <span>{{text}}</span>
</span> </span>
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a> <!-- <a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a>-->
<a class="text-operation" v-if="record.gatherResult == 'Completed'" <!-- v-if="record.gatherResult == 'Completed'"-->
<a class="text-operation"
@click="evaluationResultsClick(record)">{{$t('evaluationResults')}}</a> @click="evaluationResultsClick(record)">{{$t('evaluationResults')}}</a>
<a class="text-operation" <a class="text-operation"
v-if="(record.gatherResult == 'Completed' && userInfoQuery.username == record.createBy) || administrators" v-if="(record.gatherResult == 'Completed' && userInfoQuery.username == record.createBy) || administrators"
@@ -181,7 +182,7 @@
align: 'center', align: 'center',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true, ellipsis: true,
width: 170 width: 280
}, },
{ {
title: this.$t('technicalField'), title: this.$t('technicalField'),
@@ -193,7 +194,7 @@
{ {
title: this.$t('collectResults'), title: this.$t('collectResults'),
align: 'center', align: 'center',
width: 170, width: 140,
ellipsis: true, ellipsis: true,
dataIndex: 'gatherResultShow' dataIndex: 'gatherResultShow'
}, },
@@ -201,21 +202,21 @@
title: this.$t('dateOfInitiation'), title: this.$t('dateOfInitiation'),
align: 'center', align: 'center',
ellipsis: true, ellipsis: true,
width: 170, width: 140,
dataIndex: 'startTime' dataIndex: 'startTime'
}, },
{ {
title: this.$t('closingDate'), title: this.$t('closingDate'),
align: 'center', align: 'center',
ellipsis: true, ellipsis: true,
width: 170, width: 140,
dataIndex: 'endTime' dataIndex: 'endTime'
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
align: 'center', align: 'center',
fixed: 'right', fixed: 'right',
width: 320, width: 210,
scopedSlots: { customRender: 'operation' } scopedSlots: { customRender: 'operation' }
} }
], ],
@@ -18,7 +18,7 @@
<div class="title-text"> <div class="title-text">
<span class="Required">*</span> <span class="Required">*</span>
<span class="title-text-text" <span class="title-text-text"
:title="$t('fileName')">{{$t('fileName')}}</span> :title="$t('file')">{{$t('file')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="fileKey"> <a-form-model-item class="itemModel" prop="fileKey">
<a-button type="primary" class="button-text" <a-button type="primary" class="button-text"
+4 -4
View File
@@ -61,10 +61,10 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="6" :sm="8"> <a-col :md="6" :sm="8">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('fileName')"> <div class="title-text" :title="$t('file')">
<span>{{ $t('fileName') }}</span> <span>{{ $t('file') }}</span>
</div> </div>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('fileName')" <a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('file')"
v-model="queryParams.fileName"></a-input> v-model="queryParams.fileName"></a-input>
</div> </div>
</a-col> </a-col>
@@ -355,7 +355,7 @@ export default {
], ],
columns: [ columns: [
{ {
title: this.$t('fileName'), title: this.$t('file'),
align: 'center', align: 'center',
dataIndex: 'fileName', dataIndex: 'fileName',
scopedSlots: { customRender: 'fileName' }, scopedSlots: { customRender: 'fileName' },
@@ -55,21 +55,6 @@
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text" :title="$t('reason')">{{$t('reason')}}</span>
</div>
<a-form-model-item class="itemModel"
:prop="'dataList.'+index+'.reason'"
:rules="[{max: 300,message: $t('reason') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
}]">
<a-textarea :placeholder="$t('PleaseEnter')+$t('reason')"
:disabled="disabled"
v-model="item.reason" :rows="4"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -87,6 +72,24 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="Required">*</span>
<span class="title-text-text" :title="$t('reason')">{{$t('reason')}}</span>
</div>
<a-form-model-item class="itemModel"
:prop="'dataList.'+index+'.reason'"
:rules="[
{ required: true, message: $t('reason') + $t('cannotEmpty'), trigger: 'blur'},
{max: 300,message: $t('reason') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'
}]">
<a-textarea :placeholder="$t('PleaseEnter')+$t('reason')"
:disabled="disabled"
v-model="item.reason" :rows="4"/>
</a-form-model-item>
</div>
</a-col>
</a-row> </a-row>
</div> </div>
</a-form-model> </a-form-model>
@@ -17,10 +17,13 @@
@click="urlClick(queryForm[item.value])" @click="urlClick(queryForm[item.value])"
v-if="item.type == 1" v-if="item.type == 1"
>{{queryForm[item.value]}}</span> >{{queryForm[item.value]}}</span>
<span class="text-field-right text-field-right-url"
@click="standardClick(queryForm)"
v-else-if="item.type == '5'" :title="queryForm[item.value]"
>{{queryForm[item.value]}}</span>
<span class="text-field-right text-field-right-url" <span class="text-field-right text-field-right-url"
@click="clickButtonToUpload(queryForm[item.value])" @click="clickButtonToUpload(queryForm[item.value])"
v-if="item.type == 2 && queryForm[item.value]" v-else-if="item.type == 2 && queryForm[item.value]"
>{{ $t('viewFile') }}</span> >{{ $t('viewFile') }}</span>
<span class="text-field-right" <span class="text-field-right"
:title="queryForm[item.value]" v-else :title="queryForm[item.value]" v-else
@@ -84,6 +87,15 @@
window.open(val) window.open(val)
} }
}, },
standardClick(row) {
let newUrl = this.$router.resolve({
path: '/docManage/library/detail',
query: {
id: row.standId
}
})
window.open(newUrl.href, '_blank')
},
clickButtonToUpload(item) { clickButtonToUpload(item) {
this.$refs.viewFileModelRef.clickButtonToUpload(item) this.$refs.viewFileModelRef.clickButtonToUpload(item)
} }
@@ -66,7 +66,8 @@
standardContentList: [ standardContentList: [
{ {
title: this.$t('standard'), title: this.$t('standard'),
value: 'serial_number' value: 'serial_number',
type: 5
}, },
{ {
title: this.$t('title'), title: this.$t('title'),