对接法规月报

This commit is contained in:
qq787203167
2022-06-30 09:46:20 +08:00
parent 83f9c20264
commit 7ab7f5c4f4
@@ -45,9 +45,19 @@
:title="$t('ParentName')">{{$t('ParentName')}}</span>
</div>
<a-form-model-item class="itemModel">
<a-input class="box-input"
v-model="formInline.ParentName"
:placeholder="$t('PleaseEnter')+$t('ParentName')"/>
<a-select :placeholder="$t('PleaseSelect')+$t('ParentName')"
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.parentId">
<a-select-option v-for="(item, key) in ParentList"
:key="item.id"
:value="item.id">
<span style="display: inline-block;width: 100%" :title="item.title ">
{{ item.title }}
</span>
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
@@ -68,6 +78,7 @@
confirmLoading: false,
formInline: {},
rules: {},
ParentList: [],
title: '',
url: {
add: '/report/lawsMonthlyReportTitleTemplateEO/add',
@@ -79,9 +90,19 @@
},
methods: {
getParent() {
getAction('/report/lawsMonthlyReportTitleTemplateEO/oneMenu', {}).then((res) => {
if (res.success) {
this.ParentList = res.result
} else {
this.ParentList = []
}
})
},
add() {
this.title = this.$t('newlyAdded')
this.visible = true
this.getParent()
this.$nextTick(() => {
this.formInline = {}
this.$refs.ruleForm.clearValidate()
@@ -90,6 +111,7 @@
edit(row) {
this.title = this.$t('edit')
this.visible = true
this.getParent()
this.$nextTick(() => {
this.formInline = row
this.$refs.ruleForm.clearValidate()