|
|
@@ -77,6 +77,11 @@ a {
|
|
|
.w-e-text{
|
|
|
min-height: 500px;
|
|
|
}
|
|
|
+.fu-dialog{
|
|
|
+ .el-dialog{
|
|
|
+ width:60%;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|
|
|
<template>
|
|
|
<section>
|
|
|
@@ -168,6 +173,7 @@ a {
|
|
|
</div>
|
|
|
|
|
|
<el-dialog
|
|
|
+ class='fu-dialog'
|
|
|
:title="dialogTitle"
|
|
|
:close-on-click-modal="false"
|
|
|
:visible.sync="dialogVisible"
|
|
|
@@ -183,7 +189,7 @@ a {
|
|
|
:rules="rules"
|
|
|
>
|
|
|
<el-form-item label="标题" prop="name">
|
|
|
- <el-input v-model="form1.name" placeholder="请输入标题"></el-input>
|
|
|
+ <el-input v-model="form1.name" placeholder="请输入标题" maxlength="30" show-word-limit></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="接收人" prop="receiver_id">
|
|
|
<el-cascader
|
|
|
@@ -204,9 +210,13 @@ a {
|
|
|
</el-form-item>
|
|
|
<el-form-item label="附件">
|
|
|
<input @change="upload('fileurl')" id="fileurl" type="file" />
|
|
|
- <a :href="form1.fileurl" target="_blank"
|
|
|
+ <span>
|
|
|
+ <a :href="form1.fileurl" target="_blank"
|
|
|
><span>{{ form1.filename }}</span></a
|
|
|
>
|
|
|
+ <i class="el-icon-circle-close" style='margin-left:10px;color: #409eff;' @click='clearFilename' v-show='form1.filename'></i>
|
|
|
+ </span>
|
|
|
+
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
@@ -341,6 +351,10 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ clearFilename(){
|
|
|
+ this.form1.filename = '';
|
|
|
+ document.getElementById("fileurl").value = '';
|
|
|
+ },
|
|
|
changeEditor(val) {
|
|
|
this.form1.content = val;
|
|
|
},
|