| | |
| | | <el-table v-loading="loading" :data="equipmentList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> |
| | | <el-table-column type="selection" :reserve-selection="true" width="55" align="center" /> |
| | | <el-table-column fixed label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> |
| | | <el-table-column label="设备名称" prop="name" sortable width="120" /> |
| | | <el-table-column label="设备名称" prop="name" sortable width="150" /> |
| | | |
| | | <el-table-column label="时间" align="happenTime" sortable prop="happenTime" width="150"> |
| | | <el-table-column label="时间" align="happenTime" sortable prop="happenTime" width="140"> |
| | | <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="是否注销" align="center" sortable prop="status" width="120"> |
| | | <el-table-column label="是否注销" align="center" sortable prop="status" width="140"> |
| | | <template slot-scope="scope"> |
| | | {{ getSrc1(scope.row.status) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="购买人" prop="buyer" sortable width="100" /> |
| | | <el-table-column label="购买人" prop="buyer" sortable width="140" /> |
| | | <el-table-column label="事项内容" prop="content" sortable :show-overflow-tooltip="true" width="150" /> |
| | | <el-table-column label="存放地点" prop="location" sortable width="100" /> |
| | | <el-table-column label="存放地点" prop="location" sortable width="120" /> |
| | | |
| | | <el-table-column label="备注" prop="remark" sortable width="100" > |
| | | <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '————'}}</template> |
| | |
| | | :http-request="requestUpload" |
| | | :file-list="fileList" |
| | | > |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | <div slot="file" slot-scope="{file}"> |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | | <el-button type="primary">上传</el-button> |
| | | <el-button type="primary">点击上传</el-button> |
| | | <div v-if="uploading" class="upload-status">正在上传...</div> |
| | | <template #tip> |
| | | <div class="el-upload__tip"> |
| | | </div> |
| | |
| | | ], |
| | | dsb:true, |
| | | btn:false, |
| | | uploading: false, |
| | | formDat: { |
| | | // type: undefined, |
| | | content: undefined, |
| | |
| | | var formData = new FormData(); |
| | | formData.append('uploadFile', file); |
| | | let _this = this |
| | | |
| | | this.uploading = true; |
| | | uploadPic(formData).then(response => { |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | |
| | | this.uploading = false; |
| | | this.$modal.msgSuccess("上传成功"); |
| | | if(_this.fot.includes(pth) === true) |
| | | { |
| | | _this.fileList.push({name:response.data.fileName, "url":response.data.url}) |