对接法规月报
This commit is contained in:
+10
-10
@@ -9,7 +9,7 @@
|
||||
<span>{{$t('RegulationMonthlyName')}}</span>
|
||||
</div>
|
||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('RegulationMonthlyName')"
|
||||
v-model="queryParam.RegulationMonthlyName"></j-input>
|
||||
v-model="queryParam.name"></j-input>
|
||||
</div>
|
||||
</a-col>
|
||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<a class="text-operation"
|
||||
@click="withdraw(record)">
|
||||
{{record.state == 2 ? $t('release') : $t('withdraw')}}
|
||||
{{record.issueStatus == 2 ? $t('release') : $t('withdraw')}}
|
||||
</a>
|
||||
<a class="text-operation"
|
||||
@click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
||||
@@ -82,9 +82,9 @@
|
||||
return {
|
||||
//url传参严格按照当前命名
|
||||
url: {
|
||||
list: '',
|
||||
urlWithdraw: '',
|
||||
deleteBatch: ''
|
||||
list: '/report/lawsMonthlyReportManageEO/page',
|
||||
urlWithdraw: '/report/lawsMonthlyReportManageEO/issue',
|
||||
deleteBatch: '/report/lawsMonthlyReportManageEO/deleteBatch'
|
||||
},
|
||||
loading: false,
|
||||
dataSource: [],
|
||||
@@ -111,7 +111,7 @@
|
||||
align: 'center',
|
||||
width: 140,
|
||||
ellipsis: true,
|
||||
dataIndex: 'releaseStatus'
|
||||
dataIndex: 'issueStatus'
|
||||
},
|
||||
{
|
||||
title: this.$t('uploadTime'),
|
||||
@@ -210,17 +210,17 @@
|
||||
}
|
||||
},
|
||||
managementAddForm() {
|
||||
this.getList()
|
||||
this.pageOnChange(1)
|
||||
},
|
||||
//撤回
|
||||
withdraw(val) {
|
||||
let item = {}
|
||||
let content = ''
|
||||
if (val.state == 2) {
|
||||
if (val.issueStatus == 2) {
|
||||
content = this.$t('confirmRelease')
|
||||
item.state = 1
|
||||
item.issueStatus = 1
|
||||
} else {
|
||||
item.state = 2
|
||||
item.issueStatus = 2
|
||||
content = this.$t('confirmWithdraw')
|
||||
}
|
||||
item.id = val.id
|
||||
|
||||
+48
-25
@@ -19,11 +19,11 @@
|
||||
<span class="title-text-text"
|
||||
:title="$t('monthlyReportRegulations')">{{$t('monthlyReportRegulations')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'RegulationMonthlyName'">
|
||||
<a-form-model-item class="itemModel" :prop="'name'">
|
||||
<a-button type="primary" class="button-text"
|
||||
@click="clickButtonToUpload('RegulationMonthlyName')">
|
||||
{{ (formInline['RegulationMonthlyName'] === 'null' || formInline['RegulationMonthlyName'] === '' ||
|
||||
formInline['RegulationMonthlyName'] == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
@click="clickButtonToUpload('name')">
|
||||
{{ (formInline['name'] === 'null' || formInline['name'] === '' ||
|
||||
formInline['name'] == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
</a-button>
|
||||
</a-form-model-item>
|
||||
@@ -36,9 +36,20 @@
|
||||
<span class="title-text-text" :title="$t('monthlyLanguage')">{{$t('monthlyLanguage')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="useExplain">
|
||||
<a-textarea
|
||||
:placeholder="$t('PleaseEnter')+$t('instructionForUse')"
|
||||
v-model.trim="formInline.useExplain" :rows="4"/>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('monthlyLanguage')"
|
||||
:disabled="disabled"
|
||||
class="box-input"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
allowClear
|
||||
v-model="formInline.language">
|
||||
<a-select-option v-for="(item, key) in languageList"
|
||||
:key="item.value"
|
||||
:value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title="item.text ">
|
||||
{{ item.text }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -50,7 +61,7 @@
|
||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"></uploadFile>
|
||||
<uploadFile ref="uploadFile" :isMultiple="true" @uploadSuccess="uploadSuccess"></uploadFile>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -69,32 +80,33 @@
|
||||
name: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('VirtualListName') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 100,
|
||||
message: this.$t('VirtualListName') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
message: this.$t('monthlyReportRegulations') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
],
|
||||
useExplain: [
|
||||
language: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('instructionForUse') + this.$t('cannotEmpty'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
max: 500,
|
||||
message: this.$t('instructionForUse') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
|
||||
trigger: 'blur'
|
||||
message: this.$t('monthlyLanguage') + this.$t('cannotEmpty'),
|
||||
trigger: 'change'
|
||||
}
|
||||
]
|
||||
},
|
||||
visible: false,
|
||||
languageList: [
|
||||
{
|
||||
text: this.$t('chinese'),
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
text: this.$t('English'),
|
||||
value: 2
|
||||
}
|
||||
],
|
||||
formInline: {},
|
||||
confirmLoading: false,
|
||||
uploadName: ''
|
||||
uploadName: '',
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -104,7 +116,18 @@
|
||||
handleSubmit() {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
|
||||
this.confirmLoading = true
|
||||
postAction('/report/lawsMonthlyReportManageEO/add', this.formInline).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.visible = false
|
||||
this.confirmLoading = false
|
||||
this.$emit('managementAddForm')
|
||||
} else {
|
||||
this.confirmLoading = false
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user