标准清单传输文件id,修改未符合项新增分页
This commit is contained in:
@@ -261,6 +261,7 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
listForm: {
|
listForm: {
|
||||||
|
fileIds: '',
|
||||||
listType: "", //区分是哪个清单
|
listType: "", //区分是哪个清单
|
||||||
listName: "", //清单名称
|
listName: "", //清单名称
|
||||||
descriptionList: "", //清单说明
|
descriptionList: "", //清单说明
|
||||||
@@ -358,6 +359,11 @@ export default {
|
|||||||
this.listForm.applyUpdUserId = item.applyUpdUserId;
|
this.listForm.applyUpdUserId = item.applyUpdUserId;
|
||||||
this.listForm.jlUserId = item.jlUserId;
|
this.listForm.jlUserId = item.jlUserId;
|
||||||
this.listForm.zrUserId = item.zrUserId;
|
this.listForm.zrUserId = item.zrUserId;
|
||||||
|
let filesId = []
|
||||||
|
item.fileName.forEach(itemIds =>{
|
||||||
|
filesId.push(itemIds.id)
|
||||||
|
})
|
||||||
|
this.listForm.fileId = filesId.join(',')
|
||||||
item.fileName.forEach(itemId => {
|
item.fileName.forEach(itemId => {
|
||||||
this.fileIds = itemId.id
|
this.fileIds = itemId.id
|
||||||
this.getFileInfo();
|
this.getFileInfo();
|
||||||
|
|||||||
@@ -204,7 +204,7 @@
|
|||||||
tooltip-effect="dark"
|
tooltip-effect="dark"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
border
|
border
|
||||||
height="100%"
|
height="150%"
|
||||||
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
||||||
fontWeight: 'bold', height: '48px'}"
|
fontWeight: 'bold', height: '48px'}"
|
||||||
@selection-change="selectedChange"
|
@selection-change="selectedChange"
|
||||||
@@ -233,7 +233,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
style="position: relative;"
|
style="position: relative;"
|
||||||
:page="pageNo"
|
:page="queryUnqualidiedData.pageNo"
|
||||||
:total="total"
|
:total="total"
|
||||||
@pageChange="pageChange"
|
@pageChange="pageChange"
|
||||||
@pageSizeChange="pageSizeChange"/>
|
@pageSizeChange="pageSizeChange"/>
|
||||||
@@ -283,13 +283,10 @@ export default {
|
|||||||
standModel: false,
|
standModel: false,
|
||||||
// 总数
|
// 总数
|
||||||
total: 0,
|
total: 0,
|
||||||
// 当前页数
|
|
||||||
pageNo: 1,
|
|
||||||
// 查询未符合项整改数据库数据
|
// 查询未符合项整改数据库数据
|
||||||
queryUnqualidiedData: {
|
queryUnqualidiedData: {
|
||||||
pageNo: 1,
|
current: 1,
|
||||||
pageSize: 10,
|
size: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
|
||||||
closeState: '1',
|
closeState: '1',
|
||||||
standId: '',
|
standId: '',
|
||||||
standSerialNumber: '', // 标准号/名称
|
standSerialNumber: '', // 标准号/名称
|
||||||
@@ -344,6 +341,12 @@ export default {
|
|||||||
//点击新增事件
|
//点击新增事件
|
||||||
addList() {
|
addList() {
|
||||||
dicTypeData().then(res => {
|
dicTypeData().then(res => {
|
||||||
|
if (this.pageNo !== undefined) {
|
||||||
|
this.queryUnqualidiedData.current = this.pageNo
|
||||||
|
}
|
||||||
|
if (this.size !== undefined) {
|
||||||
|
this.queryUnqualidiedData.size = this.size
|
||||||
|
}
|
||||||
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||||
standUnqualified(this.queryUnqualidiedData).then(res => {
|
standUnqualified(this.queryUnqualidiedData).then(res => {
|
||||||
this.unqualidiedData = res.data.records
|
this.unqualidiedData = res.data.records
|
||||||
@@ -553,8 +556,9 @@ export default {
|
|||||||
this.pageNo = page
|
this.pageNo = page
|
||||||
this.getTableByPage()
|
this.getTableByPage()
|
||||||
},
|
},
|
||||||
pageSizeChange () {
|
pageSizeChange (pageSize) {
|
||||||
this.getTableByPage()
|
this.size = pageSize
|
||||||
|
this.getTableByPage(pageSize)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user