对外报告管理-编辑变更
This commit is contained in:
@@ -41,7 +41,6 @@
|
|||||||
<a-form-model-item class="itemModel" prop="fileDescription">
|
<a-form-model-item class="itemModel" prop="fileDescription">
|
||||||
<a-input class="box-input add-input"
|
<a-input class="box-input add-input"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:disabled="disabled"
|
|
||||||
:placeholder="$t('PleaseEnter')+$t('fileDeclaration')"
|
:placeholder="$t('PleaseEnter')+$t('fileDeclaration')"
|
||||||
v-model="formInline.fileDescription"/>
|
v-model="formInline.fileDescription"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -56,7 +55,7 @@
|
|||||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess" :disabled='disabled'/>
|
||||||
<!-- <div class="loading-box" v-if="spinning">-->
|
<!-- <div class="loading-box" v-if="spinning">-->
|
||||||
<!-- <div class="loading-content">-->
|
<!-- <div class="loading-content">-->
|
||||||
<!-- <a-icon class="loading" type="loading"/>-->
|
<!-- <a-icon class="loading" type="loading"/>-->
|
||||||
@@ -135,6 +134,7 @@ export default {
|
|||||||
editModel(value) {
|
editModel(value) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.title = this.$t('edit')
|
this.title = this.$t('edit')
|
||||||
|
this.disabled = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.formInline = value
|
this.formInline = value
|
||||||
this.$refs['ruleForm'].clearValidate()
|
this.$refs['ruleForm'].clearValidate()
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
<span>{{$t('uploadedBy')}}</span>
|
<span>{{$t('uploadedBy')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" style='width: 264px' :placeholder="$t('PleaseEnter')+$t('uploadedBy')"
|
<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>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
@change="onChange"
|
@change="onChange"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
:getCalendarContainer="(trigger) => trigger.parentNode"
|
:getCalendarContainer="(trigger) => trigger.parentNode"
|
||||||
v-model="queryParams.updateTime"
|
v-model="queryParams.createTime"
|
||||||
:disabled="false"/>
|
:disabled="false"/>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -327,7 +327,7 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('uploadedBy'),
|
title: this.$t('uploadedBy'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'updateBy',
|
dataIndex: 'createBy',
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: this.$t('category'),
|
// title: this.$t('category'),
|
||||||
@@ -337,7 +337,7 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('uploadTime'),
|
title: this.$t('uploadTime'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'updateTime',
|
dataIndex: 'createTime',
|
||||||
width: 250
|
width: 250
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -714,8 +714,8 @@ export default {
|
|||||||
//搜索
|
//搜索
|
||||||
searchQuery(item) {
|
searchQuery(item) {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
if(this.queryParams.updateTime){
|
if(this.queryParams.createTime){
|
||||||
this.queryParams.updateTime = this.queryParams.updateTime.join(',')
|
this.queryParams.createTime = this.queryParams.createTime.join(',')
|
||||||
}
|
}
|
||||||
this.loadData(item)
|
this.loadData(item)
|
||||||
},
|
},
|
||||||
@@ -802,12 +802,12 @@ export default {
|
|||||||
downloadFile('split/sarFileSplitItems/exportSplitInfoZip', name, query, this.selectClear)
|
downloadFile('split/sarFileSplitItems/exportSplitInfoZip', name, query, this.selectClear)
|
||||||
},
|
},
|
||||||
onChange(value,dateString){
|
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 dateOne = moment(dateString[0]).format('YYYY-MM-DD')
|
||||||
let dateTwo = moment(dateString[1]).format('YYYY-MM-DD')
|
let dateTwo = moment(dateString[1]).format('YYYY-MM-DD')
|
||||||
this.queryParams.updateTime = [dateOne, dateTwo]
|
this.queryParams.createTime = [dateOne, dateTwo]
|
||||||
} else {
|
} else {
|
||||||
this.queryParams.updateTime = []
|
this.queryParams.createTime = []
|
||||||
// this.queryParamOne[item + '_name'] = []
|
// this.queryParamOne[item + '_name'] = []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user