对外报告管理-编辑变更

This commit is contained in:
zyx.net
2022-07-28 11:46:04 +08:00
parent e6a99db73e
commit 1ade62ed50
2 changed files with 11 additions and 11 deletions
@@ -41,7 +41,6 @@
<a-form-model-item class="itemModel" prop="fileDescription">
<a-input class="box-input add-input"
type="textarea"
:disabled="disabled"
:placeholder="$t('PleaseEnter')+$t('fileDeclaration')"
v-model="formInline.fileDescription"/>
</a-form-model-item>
@@ -56,7 +55,7 @@
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
</div>
</a-modal>
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess" :disabled='disabled'/>
<!-- <div class="loading-box" v-if="spinning">-->
<!-- <div class="loading-content">-->
<!-- <a-icon class="loading" type="loading"/>-->
@@ -135,6 +134,7 @@ export default {
editModel(value) {
this.visible = true
this.title = this.$t('edit')
this.disabled = true
this.$nextTick(() => {
this.formInline = value
this.$refs['ruleForm'].clearValidate()
+9 -9
View File
@@ -82,7 +82,7 @@
<span>{{$t('uploadedBy')}}</span>
</div>
<a-input class="box-input" style='width: 264px' :placeholder="$t('PleaseEnter')+$t('uploadedBy')"
v-model="queryParams.updateBy"></a-input>
v-model="queryParams.createBy"></a-input>
</div>
</a-col>
<a-col :md="6" :sm="8">
@@ -96,7 +96,7 @@
@change="onChange"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-model="queryParams.updateTime"
v-model="queryParams.createTime"
:disabled="false"/>
</div>
</a-col>
@@ -327,7 +327,7 @@ export default {
{
title: this.$t('uploadedBy'),
align: 'center',
dataIndex: 'updateBy',
dataIndex: 'createBy',
},
// {
// title: this.$t('category'),
@@ -337,7 +337,7 @@ export default {
{
title: this.$t('uploadTime'),
align: 'center',
dataIndex: 'updateTime',
dataIndex: 'createTime',
width: 250
},
{
@@ -714,8 +714,8 @@ export default {
//搜索
searchQuery(item) {
this.pageNo = 1
if(this.queryParams.updateTime){
this.queryParams.updateTime = this.queryParams.updateTime.join(',')
if(this.queryParams.createTime){
this.queryParams.createTime = this.queryParams.createTime.join(',')
}
this.loadData(item)
},
@@ -802,12 +802,12 @@ export default {
downloadFile('split/sarFileSplitItems/exportSplitInfoZip', name, query, this.selectClear)
},
onChange(value,dateString){
if (this.queryParams.updateTime && this.queryParams.updateTime.length > 0) {
if (this.queryParams.createTime && this.queryParams.createTime.length > 0) {
let dateOne = moment(dateString[0]).format('YYYY-MM-DD')
let dateTwo = moment(dateString[1]).format('YYYY-MM-DD')
this.queryParams.updateTime = [dateOne, dateTwo]
this.queryParams.createTime = [dateOne, dateTwo]
} else {
this.queryParams.updateTime = []
this.queryParams.createTime = []
// this.queryParamOne[item + '_name'] = []
}
},