修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-04 17:50:00 +08:00
parent e43ff1cb3f
commit fccf1cbf6a
9 changed files with 50 additions and 40 deletions
@@ -44,7 +44,7 @@
:columns="columns"
>
<span slot="language" slot-scope="text,record">
<span>{{text == 1?$t('chinese'):$t('English')}}</span>
<span>{{text == 1?$t('simplifiedChinese'):$t('English')}}</span>
</span>
<span slot="RegulationMonthlyName" slot-scope="text,record">
<a @click="preview(record)">{{text}}</a>
@@ -151,7 +151,7 @@
title: this.$t('operation'),
align: 'center',
fixed: 'right',
width: 180,
width: 240,
scopedSlots: { customRender: 'operation' }
}
]
@@ -179,7 +179,7 @@
this.pageNo = page
this.getList()
},
SizeChange(page,pageSize) {
SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize
this.getList()
@@ -220,9 +220,9 @@
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
window.open(url, '_blank')
} else {
if (item.createBy == this.userInfo().username){
if (item.createBy == this.userInfo().username) {
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
}else{
} else {
this.$message.warning(this.$t('theDoesNotSupportPreview'))
}
}
@@ -97,7 +97,7 @@
title: this.$t('operation'),
align: 'center',
fixed: 'right',
width: 180,
width: 280,
scopedSlots: { customRender: 'operation' }
}
]
@@ -51,6 +51,7 @@
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
:disabled="isParentId"
v-model="formInline.parentId">
<a-select-option v-for="(item, key) in ParentList"
:key="item.id"
@@ -110,7 +111,8 @@
url: {
add: '/report/lawsMonthlyReportTitleTemplateEO/add',
edit: '/report/lawsMonthlyReportTitleTemplateEO/edit'
}
},
isParentId: false
}
},
mounted() {
@@ -131,6 +133,7 @@
this.visible = true
this.getParent()
this.$nextTick(() => {
this.isParentId = false
this.formInline = {}
this.$refs.ruleForm.clearValidate()
})
@@ -139,8 +142,13 @@
this.title = this.$t('edit')
this.visible = true
this.getParent()
this.isParentId = false
this.$nextTick(() => {
this.formInline = row
if (!row.parentId) {
this.formInline.parentId = undefined
this.isParentId = true
}
this.$refs.ruleForm.clearValidate()
})
},
@@ -38,7 +38,6 @@
<a-form-model-item class="itemModel" prop="language">
<a-select :placeholder="$t('PleaseSelect')+$t('monthlyLanguage')"
:disabled="disabled"
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.language">
@@ -61,7 +60,8 @@
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
</div>
</a-drawer>
<uploadFile ref="uploadFile" :isMultiple="true" @uploadSuccess="uploadSuccess"></uploadFile>
<uploadFile ref="uploadFile" :restrictUploads="true" :isMultiple="true" :Uploadable="'.docx,.doc,.pdf'"
@uploadSuccess="uploadSuccess"></uploadFile>
</div>
</template>
@@ -95,7 +95,7 @@
visible: false,
languageList: [
{
text: this.$t('chinese'),
text: this.$t('simplifiedChinese'),
value: 1
},
{
@@ -275,7 +275,7 @@
.button-text {
height: 38px;
width: calc(100% - 100px);
width: 100%;
line-height: 38px;
background: #fff;
border: 1px #00B3BE solid;