| | |
| | | v-bind="$attrs" |
| | | v-on="$listeners" |
| | | :highlight-current-row="true" |
| | | :row-key=" |
| | | (row) => { |
| | | return row.id |
| | | } |
| | | " |
| | | :row-key="rowKey" |
| | | @row-dblclick="dbClickRow" |
| | | @row-contextmenu="contextMenu" |
| | | @header-click="headClick" |
| | |
| | | @size-change="sizeChangeHandle" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="pagination.pageSize" |
| | | :page-count="pagination.size" |
| | | :layout=" |
| | | size |
| | | ? 'total, prev, pager, next' |
| | |
| | | > |
| | | <i class="el-icon-upload"></i> |
| | | <div class="el-upload__text"><em>点击导入数据</em></div> |
| | | <div class="el-upload__tip" slot="tip"> |
| | | <div class="el-upload__tip" slot="tip" > |
| | | 只能上传xlsx/xls文件,且不超过10M<el-button |
| | | type="text" |
| | | style="font-size:12px;" |
| | | @click="downDataTemplate" |
| | | @click="downDataTemplate" v-if="uploadInfo.Download" |
| | | >下载模板</el-button |
| | | > |
| | | </div> |
| | |
| | | name: 'TTable', |
| | | components: { exSlot, advancedSearchDialog, zttdraggable }, |
| | | props: { |
| | | rowKey: { |
| | | type: String, |
| | | default: ()=>{ |
| | | return 'id' |
| | | } |
| | | }, |
| | | // 表格型号:mini,medium,small |
| | | tableSize: { type: String, default: 'small' }, |
| | | // 数据请求方法 |
| | |
| | | currentPage: |
| | | this.table.currentPage == null ? 1 : this.table.currentPage, |
| | | pageSize: this.table.pageSize == null ? 20 : this.table.pageSize, |
| | | size: this.table.size == null ? 7 : this.table.size, |
| | | total: this.table.total == null ? 0 : this.table.total |
| | | }, // 分页信息 |
| | | inMemoryColWidth: {}, // 记忆中列宽,默认列宽 |
| | |
| | | this.isCleanInfo = true |
| | | } |
| | | } |
| | | this.$emit("queryParam",this.queryParam) |
| | | }, |
| | | deep: true |
| | | }, |
| | |
| | | } |
| | | }, |
| | | getDataList(selectedId) { |
| | | this.dataListLoading = true |
| | | // this.dataListLoading = true |
| | | this.dataListLoading = false |
| | | var criteria = {} |
| | | criteria.dateTimeFilters = this.dateTimeFilters |
| | | criteria.multiSearchFilter = this.multiSearchFilter |
| | |
| | | arr.push(this.paramArr[i]) |
| | | } |
| | | } |
| | | |
| | | return this.doCallback(this.ajaxFun, arr, selectedId) |
| | | this.dataListLoading = false |
| | | }, |
| | | doCallback(fn, args, selectedId) { |
| | | return fn |
| | |
| | | this.clickTable(selectObj) |
| | | } |
| | | } |
| | | this.$emit('change',resultData); |
| | | }) |
| | | .catch((error) => { |
| | | this.dataListLoading = false |
| | |
| | | } |
| | | } |
| | | } |
| | | console.log(this.multipleSelection) |
| | | this.$emit('handleSelectionChange', this.multipleSelection) |
| | | } else { |
| | | this.multipleSelection = val |
| | |
| | | if (response.code != '0') { |
| | | this.$message.warning(response.msg) |
| | | } else { |
| | | if(response.data!=""&&response.data!=[]&&response.data!=null){ |
| | | this.$message({ |
| | | message: response.data, |
| | | type: 'success' |
| | | }) |
| | | }else{ |
| | | this.$message({ |
| | | message: '上传成功', |
| | | type: 'success' |
| | | }) |
| | | } |
| | | this.importDialogVisible=false |
| | | this.getDataList() |
| | | } |
| | | this.$refs.uploadScan.clearFiles() |