Commit ec29bbee authored by 赵啸非's avatar 赵啸非

修改附件显示

parent c37dae4a
......@@ -4,7 +4,7 @@
:action="uploadFileUrl + '?prePath=' + prePath"
:before-upload="handleBeforeUpload"
:file-list="fileList"
:limit="1"
:limit="3"
:on-error="handleUploadError"
:on-exceed="handleExceed"
:on-success="handleUploadSuccess"
......
......@@ -133,7 +133,7 @@
<Field :span="22" label="是否置顶" prop="top" v-model="form.top" type="radio" :enumData="dict.top" placeholder="请选择是否置顶"/>
<Field :span="22" label="已读要求" prop="readRequest" v-model="form.readRequest" type="radio" :enumData="dict.readRequest" placeholder="请选择已读要求"/>
<Field :span="22" label="公告内容"><editor v-model="form.noticeContent" :min-height="512"/></Field>
<Field :span="22" label="公告文件路径"><fileUpload v-model="form.filePath" prePath="/file/fileupload"/></Field>
<Field :span="22" label="公告文件路径"><fileUpload v-model="form.filePath" @getFileName="getNoticeFileName" prePath="/file/fileupload"/></Field>
</el-row>
......@@ -210,6 +210,9 @@
},
methods: {
getNoticeFileName(fileName) {
this.form.fileName = fileName;
},
searchConfirm() {
this.getPersonList({'userType': 2});
},
......
......@@ -133,7 +133,7 @@
<editor v-model="form.studyContent" :min-height="256"/>
</Field>
<Field :span="22" label="项目附件">
<fileUpload v-model="form.filePath" prePath="/file/fileupload"/>
<fileUpload v-model="form.filePath" @getFileName="getProjectFileName" prePath="/file/fileupload"/>
</Field>
</el-row>
......@@ -217,6 +217,9 @@ export default {
},
methods: {
getProjectFileName(fileName) {
this.form.fileName = fileName;
},
searchConfirm() {
this.getPersonList({'userType': 2});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment