| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.dataUpObj.entryTime')"> |
| | | <!-- <el-form-item :label="$t('dataManage.dataUpObj.entryTime')"> |
| | | <el-date-picker |
| | | v-model.trim="formInline.gather" |
| | | :picker-options="pickerOptions" |
| | |
| | | placeholder="请选择" |
| | | 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-button v-if="formInline.fileName == '未选择文件'" |
| | | type="info" |
| | | @click="fileSelect"> |
| | | 选择文件 |
| | | </el-button> |
| | | <el-button |
| | | v-else |
| | | type="info" |
| | | @click="clearFileSelect" |
| | | > |
| | | 重置 |
| | | </el-button> |
| | | |
| | | </el-form-item> |
| | | <br /> |
| | | <el-form-item :label="$t('dataManage.dataUpObj.describe')"> |
| | |
| | | fixed |
| | | :formatter="changeSizeFile" |
| | | /> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | align="center" |
| | | prop="guid" |
| | | :label="$t('common.md5')" |
| | | fixed |
| | | /> |
| | | /> --> |
| | | </el-table> |
| | | </div> |
| | | |
| | |
| | | formInline: { |
| | | verid: '', |
| | | gather: '', |
| | | fileName:'未选择文件' |
| | | }, |
| | | formWarehousing: { |
| | | name:'' |
| | |
| | | message: '上传成功', |
| | | type: 'success' |
| | | }); |
| | | |
| | | this.clearFileSelect(); |
| | | }, |
| | | error: (rs) => { |
| | | alert("上传文件失败!"); |
| | | this.clearFileSelect(); |
| | | } |
| | | }); |
| | | document.getElementById("uploadfile").value = ""; |
| | | |
| | | this.handlerLoading(false); |
| | | }, |
| | | //获取文件上传数据 |
| | |
| | | fileSelect() { |
| | | $("#uploadfile").click(); |
| | | }, |
| | | handleFileChange() { |
| | | var fs = document.getElementById("uploadfile"); |
| | | handleFileChange(event) { |
| | | 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(){ |
| | | this.formInline.fileName="未选择文件"; |
| | | document.getElementById("uploadfile").value = ""; |
| | | }, |
| | | //当前时间获取 |
| | | timeDefault() { |