| | |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | /> |
| | | </el-form-item> --> |
| | | <el-form-item > |
| | | <el-input |
| | | <el-input |
| | | type="textarea" |
| | | v-model="formInline.fileName" |
| | | |
| | | class="nm-skin-pretty" |
| | | show-word-limit |
| | | :rows="2" resize='none' |
| | | style="width: 600px;" |
| | | ></el-input> |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <input id="uploadfile" @change= "handleFileChange" type="file" name="file" multiple="multiple" style="display: none"></input> |
| | | <!-- <el-button icon="el-icon-document-add" @click="fileSelect" class="primary">{{ |
| | | $t('common.file') |
| | | }}</el-button> --> |
| | | |
| | | <el-input v-model="formInline.fileName" disabled> |
| | | <template slot="append"> |
| | | |
| | | |
| | | |
| | | <el-button v-if="formInline.fileName == '未选择文件'" |
| | | type="info" |
| | | @click="fileSelect"> |
| | |
| | | > |
| | | 重置 |
| | | </el-button> |
| | | </template> |
| | | </el-input> |
| | | |
| | | </el-form-item> |
| | | <br /> |
| | |
| | | $("#uploadfile").click(); |
| | | }, |
| | | handleFileChange(event) { |
| | | var f = event.currentTarget.files[0] |
| | | this.formInline.fileName = f.name; |
| | | var std =[]; |
| | | var len = event.currentTarget.files.length; |
| | | for(var i = 0;i<len;i++){ |
| | | var f = event.currentTarget.files[i]; |
| | | std.push(f.name) |
| | | } |
| | | |
| | | this.formInline.fileName =std.toString() ; |
| | | |
| | | }, |
| | | clearFileSelect(){ |