|
@@ -21,8 +21,8 @@
|
|
<el-dialog title="附件管理" :visible.sync="dialogFormVisible">
|
|
<el-dialog title="附件管理" :visible.sync="dialogFormVisible">
|
|
<el-form :model="fujianForm">
|
|
<el-form :model="fujianForm">
|
|
<el-form-item label="附件" prop="fjAnnex">
|
|
<el-form-item label="附件" prop="fjAnnex">
|
|
- <file-upload-json @input="handleUploadUpdate" :limit="4" :value="fjAnnex.uploadFiles" :file-size="500"
|
|
|
|
- :file-type="['doc', 'docx', 'xls', 'xlsx', 'ppt', 'txt', 'pdf', 'rar', 'png', 'jpg']" />
|
|
|
|
|
|
+ <file-upload-json @input="handleUploadUpdate" :limit="4" :value="fjAnnex.uploadFiles" :file-size="5"
|
|
|
|
+ :file-type="['pdf', 'png', 'jpg']" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -91,9 +91,28 @@ export default {
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
handleShowFile(type) {
|
|
handleShowFile(type) {
|
|
- this.dialogFormVisible = true
|
|
|
|
- this.fjAnnex.uploadFiles = this.totalFjData[type]
|
|
|
|
- this.fujianForm.type = type
|
|
|
|
|
|
+ if (this.jShState != 0) {
|
|
|
|
+ this.$confirm('修改信息需通过审核,审核期间将暂时无法进行相关业务操作。是否确认提交修改?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ .then(res => {
|
|
|
|
+ this.dialogFormVisible = true
|
|
|
|
+ this.fjAnnex.uploadFiles = this.totalFjData[type]
|
|
|
|
+ this.fujianForm.type = type
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '已取消'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.dialogFormVisible = true
|
|
|
|
+ this.fjAnnex.uploadFiles = this.totalFjData[type]
|
|
|
|
+ this.fujianForm.type = type
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
/** 上传组件数据更新 */
|
|
/** 上传组件数据更新 */
|
|
@@ -110,11 +129,13 @@ export default {
|
|
|
|
|
|
updateExpertInfo({
|
|
updateExpertInfo({
|
|
jid: this.totalFjData.jid,
|
|
jid: this.totalFjData.jid,
|
|
|
|
+ jShState: 0,
|
|
...file
|
|
...file
|
|
})
|
|
})
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success("保存成功!")
|
|
this.$message.success("保存成功!")
|
|
|
|
+ this.$emit('updateInfo')
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.msg)
|
|
this.$message.error(res.msg)
|
|
}
|
|
}
|