[update] 修改bug80276
This commit is contained in:
@@ -7,11 +7,12 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
:rowKey="(record, index) => {return index}"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 修改前 -->
|
<!-- 修改前 -->
|
||||||
<template v-slot:beforeUpdate="{text, record}">
|
<template v-slot:beforeUpdate="{text, record}">
|
||||||
@@ -57,6 +58,18 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -145,6 +158,9 @@ export default {
|
|||||||
data.dataSource = this.dataSource
|
data.dataSource = this.dataSource
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 修改前按钮点击
|
// 修改前按钮点击
|
||||||
beforeUpdateClick (record) {
|
beforeUpdateClick (record) {
|
||||||
this.$refs.textContentModal.open(record.beforeUpdate)
|
this.$refs.textContentModal.open(record.beforeUpdate)
|
||||||
|
|||||||
@@ -30,11 +30,12 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
:rowKey="(record, index) => { return index }"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 修改前 -->
|
<!-- 修改前 -->
|
||||||
<template v-slot:beforeUpdate="{text, record}">
|
<template v-slot:beforeUpdate="{text, record}">
|
||||||
@@ -268,6 +269,18 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -509,6 +522,9 @@ export default {
|
|||||||
processNameChange (value) {
|
processNameChange (value) {
|
||||||
this.$emit('processNameChange', value)
|
this.$emit('processNameChange', value)
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 新增修改单
|
// 新增修改单
|
||||||
handleAdd () {
|
handleAdd () {
|
||||||
// 不知道左侧要预览哪个文件
|
// 不知道左侧要预览哪个文件
|
||||||
@@ -521,11 +537,19 @@ export default {
|
|||||||
// 不知道左侧要预览哪个文件
|
// 不知道左侧要预览哪个文件
|
||||||
const file = ''
|
const file = ''
|
||||||
this.$refs.updateListModal.title = this.$t('edit')
|
this.$refs.updateListModal.title = this.$t('edit')
|
||||||
this.$refs.updateListModal.edit(file, record, index)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.$refs.updateListModal.edit(file, record, dataIndex)
|
||||||
},
|
},
|
||||||
// 修改单的删除
|
// 修改单的删除
|
||||||
handleDelete (index) {
|
handleDelete (index) {
|
||||||
this.dataSource.splice(index, 1)
|
this.$confirm({
|
||||||
|
title: this.$t('confirmDeletion'),
|
||||||
|
content: this.$t('areYouSure'),
|
||||||
|
onOk: () => {
|
||||||
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.dataSource.splice(dataIndex, 1)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 修改单新增编辑完成
|
// 修改单新增编辑完成
|
||||||
modalFormOk (value, index) {
|
modalFormOk (value, index) {
|
||||||
|
|||||||
+44
-6
@@ -17,12 +17,13 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="espId"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}">
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 企标编号/企标名称 -->
|
<!-- 企标编号/企标名称 -->
|
||||||
<template v-slot:toDetail="{text, record}">
|
<template v-slot:toDetail="{text, record}">
|
||||||
@@ -68,6 +69,18 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -181,6 +194,9 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 表格选中
|
// 表格选中
|
||||||
onSelectChange (selectedRowKeys, selectionRows) {
|
onSelectChange (selectedRowKeys, selectionRows) {
|
||||||
this.selectedRowKeys = selectedRowKeys
|
this.selectedRowKeys = selectedRowKeys
|
||||||
@@ -203,17 +219,39 @@ export default {
|
|||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit (record, index) {
|
handleEdit (record, index) {
|
||||||
this.modalType = 'edit' + index
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.modalType = 'edit' + ',' + dataIndex
|
||||||
this.$refs.changeBaseInfoDrawer.edit(record)
|
this.$refs.changeBaseInfoDrawer.edit(record)
|
||||||
this.$refs.changeBaseInfoDrawer.title = this.$t('edit')
|
this.$refs.changeBaseInfoDrawer.title = this.$t('edit')
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
handleDelete (id, index) {
|
handleDelete (id, index) {
|
||||||
this.dataSource.splice(index, 1)
|
this.$confirm({
|
||||||
|
title: this.$t('confirmDeletion'),
|
||||||
|
content: this.$t('areYouSure'),
|
||||||
|
onOk: () => {
|
||||||
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.dataSource.splice(dataIndex, 1)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 批量删除
|
// 批量删除
|
||||||
batchDel () {
|
batchDel () {
|
||||||
this.dataSource = this.dataSource.filter(item => !this.selectedRowKeys.includes(item.espId))
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
|
this.$message.warning(this.$t('selectARecord'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.$confirm({
|
||||||
|
title: this.$t('confirmBatchDeletion'),
|
||||||
|
content: this.$t('deleteAData'),
|
||||||
|
onOk: () => {
|
||||||
|
for (let i = 0; i < this.selectedRowKeys.length; i++) {
|
||||||
|
this.dataSource.splice(this.selectedRowKeys[i], 1, false)
|
||||||
|
}
|
||||||
|
this.dataSource = this.dataSource.filter(item => !!item)
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,12 +17,13 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="enterpriseStandardPlanId"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}">
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 企标编号/企标名称 -->
|
<!-- 企标编号/企标名称 -->
|
||||||
<template v-slot:toDetail="{text, record}">
|
<template v-slot:toDetail="{text, record}">
|
||||||
@@ -67,6 +68,18 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -145,6 +158,9 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 表格选中
|
// 表格选中
|
||||||
onSelectChange (selectedRowKeys, selectionRows) {
|
onSelectChange (selectedRowKeys, selectionRows) {
|
||||||
this.selectedRowKeys = selectedRowKeys
|
this.selectedRowKeys = selectedRowKeys
|
||||||
@@ -167,17 +183,39 @@ export default {
|
|||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit (record, index) {
|
handleEdit (record, index) {
|
||||||
this.modalType = 'edit' + index
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.modalType = 'edit' + ',' + dataIndex
|
||||||
this.$refs.jobEndBaseInfoDrawer.edit(record)
|
this.$refs.jobEndBaseInfoDrawer.edit(record)
|
||||||
this.$refs.jobEndBaseInfoDrawer.title = this.$t('edit')
|
this.$refs.jobEndBaseInfoDrawer.title = this.$t('edit')
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
handleDelete (id, index) {
|
handleDelete (id, index) {
|
||||||
this.dataSource.splice(index, 1)
|
this.$confirm({
|
||||||
|
title: this.$t('confirmDeletion'),
|
||||||
|
content: this.$t('areYouSure'),
|
||||||
|
onOk: () => {
|
||||||
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.dataSource.splice(dataIndex, 1)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 批量删除
|
// 批量删除
|
||||||
batchDel () {
|
batchDel () {
|
||||||
this.dataSource = this.dataSource.filter(item => !this.selectedRowKeys.includes(item.enterpriseStandardPlanId))
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
|
this.$message.warning(this.$t('selectARecord'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.$confirm({
|
||||||
|
title: this.$t('confirmBatchDeletion'),
|
||||||
|
content: this.$t('deleteAData'),
|
||||||
|
onOk: () => {
|
||||||
|
for (let i = 0; i < this.selectedRowKeys.length; i++) {
|
||||||
|
this.dataSource.splice(this.selectedRowKeys[i], 1, false)
|
||||||
|
}
|
||||||
|
this.dataSource = this.dataSource.filter(item => !!item)
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+23
-5
@@ -29,11 +29,12 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="id"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 操作栏 -->
|
<!-- 操作栏 -->
|
||||||
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
||||||
@@ -66,6 +67,18 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -137,6 +150,9 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 新增征求意见
|
// 新增征求意见
|
||||||
handleAdd () {
|
handleAdd () {
|
||||||
// 不知道左侧要预览哪个文件
|
// 不知道左侧要预览哪个文件
|
||||||
@@ -149,7 +165,8 @@ export default {
|
|||||||
// 不知道左侧要预览哪个文件
|
// 不知道左侧要预览哪个文件
|
||||||
const file = ''
|
const file = ''
|
||||||
this.$refs.commentModal.title = this.$t('edit')
|
this.$refs.commentModal.title = this.$t('edit')
|
||||||
this.$refs.commentModal.edit(file, record, index)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.$refs.commentModal.edit(file, record, dataIndex)
|
||||||
},
|
},
|
||||||
// 征求意见的删除
|
// 征求意见的删除
|
||||||
handleDelete (index) {
|
handleDelete (index) {
|
||||||
@@ -157,7 +174,8 @@ export default {
|
|||||||
title: this.$t('confirmDeletion'),
|
title: this.$t('confirmDeletion'),
|
||||||
content: this.$t('areYouSure'),
|
content: this.$t('areYouSure'),
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
this.dataSource.splice(index, 1)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.dataSource.splice(dataIndex, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
+22
-4
@@ -25,8 +25,9 @@
|
|||||||
rowKey="id"
|
rowKey="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 操作栏 -->
|
<!-- 操作栏 -->
|
||||||
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
||||||
@@ -84,6 +85,18 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -180,12 +193,16 @@ export default {
|
|||||||
})
|
})
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 征求意见的编辑
|
// 征求意见的编辑
|
||||||
handleEdit (record, index) {
|
handleEdit (record, index) {
|
||||||
// 不知道左侧要预览哪个文件
|
// 不知道左侧要预览哪个文件
|
||||||
const file = ''
|
const file = ''
|
||||||
this.$refs.commentModal.title = this.$t('edit')
|
this.$refs.commentModal.title = this.$t('edit')
|
||||||
this.$refs.commentModal.edit(file, record, index)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.$refs.commentModal.edit(file, record, dataIndex)
|
||||||
},
|
},
|
||||||
// 征求意见的删除
|
// 征求意见的删除
|
||||||
handleDelete (index) {
|
handleDelete (index) {
|
||||||
@@ -193,7 +210,8 @@ export default {
|
|||||||
title: this.$t('confirmDeletion'),
|
title: this.$t('confirmDeletion'),
|
||||||
content: this.$t('areYouSure'),
|
content: this.$t('areYouSure'),
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
this.dataSource.splice(index, 1)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.dataSource.splice(dataIndex, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
+23
-5
@@ -29,11 +29,12 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="id"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 操作栏 -->
|
<!-- 操作栏 -->
|
||||||
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
||||||
@@ -66,6 +67,18 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -144,6 +157,9 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 新增征求意见
|
// 新增征求意见
|
||||||
handleAdd () {
|
handleAdd () {
|
||||||
// 不知道左侧要预览哪个文件
|
// 不知道左侧要预览哪个文件
|
||||||
@@ -156,7 +172,8 @@ export default {
|
|||||||
// 不知道左侧要预览哪个文件
|
// 不知道左侧要预览哪个文件
|
||||||
const file = ''
|
const file = ''
|
||||||
this.$refs.commentModal.title = this.$t('edit')
|
this.$refs.commentModal.title = this.$t('edit')
|
||||||
this.$refs.commentModal.edit(file, record, index)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.$refs.commentModal.edit(file, record, dataIndex)
|
||||||
},
|
},
|
||||||
// 征求意见的删除
|
// 征求意见的删除
|
||||||
handleDelete (index) {
|
handleDelete (index) {
|
||||||
@@ -164,7 +181,8 @@ export default {
|
|||||||
title: this.$t('confirmDeletion'),
|
title: this.$t('confirmDeletion'),
|
||||||
content: this.$t('areYouSure'),
|
content: this.$t('areYouSure'),
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
this.dataSource.splice(index, 1)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.dataSource.splice(dataIndex, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
+27
-9
@@ -29,11 +29,12 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="id"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
</j-table>
|
</j-table>
|
||||||
</div>
|
</div>
|
||||||
@@ -61,6 +62,18 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -107,7 +120,7 @@ export default {
|
|||||||
dataIndex: 'handleAdvice',
|
dataIndex: 'handleAdvice',
|
||||||
customRender: (text, row, index) => {
|
customRender: (text, row, index) => {
|
||||||
const obj = {
|
const obj = {
|
||||||
children: <a-select v-model={this.dataSource[index].handleAdvice}
|
children: <a-select v-model={row.handleAdvice}
|
||||||
placeholder={this.$t('pleaseSelect')} class={'handle-suggest-select'}
|
placeholder={this.$t('pleaseSelect')} class={'handle-suggest-select'}
|
||||||
options={this.handlingSuggestionOption}
|
options={this.handlingSuggestionOption}
|
||||||
/>,
|
/>,
|
||||||
@@ -123,11 +136,11 @@ export default {
|
|||||||
dataIndex: 'reason',
|
dataIndex: 'reason',
|
||||||
customRender: (text, row, index) => {
|
customRender: (text, row, index) => {
|
||||||
const obj = {
|
const obj = {
|
||||||
children: <a-input v-model={this.dataSource[index].reason} maxLength={50}
|
children: <a-input v-model={row.reason} maxLength={50}
|
||||||
title={this.dataSource[index].reason} placeholder={this.$t('pleaseEnter')}
|
title={row.reason} placeholder={this.$t('pleaseEnter')}
|
||||||
onChange={ e => {
|
onChange={ e => {
|
||||||
e.target.value = e.target.value.trim()
|
e.target.value = e.target.value.trim()
|
||||||
this.dataSource[index].reason = e.target.value.trim()
|
row.reason = e.target.value.trim()
|
||||||
} }
|
} }
|
||||||
/>,
|
/>,
|
||||||
attrs: {}
|
attrs: {}
|
||||||
@@ -187,6 +200,9 @@ export default {
|
|||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 新增征求意见
|
// 新增征求意见
|
||||||
handleAdd () {
|
handleAdd () {
|
||||||
// 不知道左侧要预览哪个文件
|
// 不知道左侧要预览哪个文件
|
||||||
@@ -199,7 +215,8 @@ export default {
|
|||||||
// 不知道左侧要预览哪个文件
|
// 不知道左侧要预览哪个文件
|
||||||
const file = ''
|
const file = ''
|
||||||
this.$refs.commentModal.title = this.$t('edit')
|
this.$refs.commentModal.title = this.$t('edit')
|
||||||
this.$refs.commentModal.edit(file, record, index)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.$refs.commentModal.edit(file, record, dataIndex)
|
||||||
},
|
},
|
||||||
// 征求意见的删除
|
// 征求意见的删除
|
||||||
handleDelete (index) {
|
handleDelete (index) {
|
||||||
@@ -207,7 +224,8 @@ export default {
|
|||||||
title: this.$t('confirmDeletion'),
|
title: this.$t('confirmDeletion'),
|
||||||
content: this.$t('areYouSure'),
|
content: this.$t('areYouSure'),
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
this.dataSource.splice(index, 1)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.dataSource.splice(dataIndex, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
+48
-9
@@ -6,11 +6,12 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="id"
|
:rowKey="(record, index) => { return (Number(this.draftIpagination.current) - 1) * Number(this.draftIpagination.pageSize) + index }"
|
||||||
:columns="drafterColumns"
|
:columns="drafterColumns"
|
||||||
:dataSource="drafterDataSource"
|
:dataSource="drafterDataSource"
|
||||||
:pagination="false"
|
:pagination="draftIpagination"
|
||||||
:loading="drafterLoading">
|
:loading="drafterLoading"
|
||||||
|
@change="handleDraftTableChange">
|
||||||
|
|
||||||
<!-- 企标文本 -->
|
<!-- 企标文本 -->
|
||||||
<template v-slot:standardFile="{text, record}">
|
<template v-slot:standardFile="{text, record}">
|
||||||
@@ -136,11 +137,12 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="id"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 操作栏 -->
|
<!-- 操作栏 -->
|
||||||
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
||||||
@@ -195,6 +197,18 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
/* 起草人分页参数 */
|
||||||
|
draftIpagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
// 起草人表格列数据
|
// 起草人表格列数据
|
||||||
drafterColumns: [
|
drafterColumns: [
|
||||||
{ // 起草单位
|
{ // 起草单位
|
||||||
@@ -271,6 +285,18 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
// 稽查内容表格列
|
// 稽查内容表格列
|
||||||
columns: [
|
columns: [
|
||||||
{ // 条款
|
{ // 条款
|
||||||
@@ -293,7 +319,7 @@ export default {
|
|||||||
width: 200,
|
width: 200,
|
||||||
dataIndex: 'rectificationDepartment',
|
dataIndex: 'rectificationDepartment',
|
||||||
customRender: (value, row, index) => {
|
customRender: (value, row, index) => {
|
||||||
return <j-select-depart v-model={this.dataSource[index].rectificationDepartment}
|
return <j-select-depart v-model={row.rectificationDepartment}
|
||||||
backDepart={true} />
|
backDepart={true} />
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -360,6 +386,9 @@ export default {
|
|||||||
})
|
})
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
|
handleDraftTableChange (pagination) {
|
||||||
|
this.draftIpagination = pagination
|
||||||
|
},
|
||||||
// 查看企标文本
|
// 查看企标文本
|
||||||
handleLookUploadStandard (record) {
|
handleLookUploadStandard (record) {
|
||||||
// 截取文件后缀名
|
// 截取文件后缀名
|
||||||
@@ -418,6 +447,14 @@ export default {
|
|||||||
this.formInline[this.uploadName] = attIdList.join(',')
|
this.formInline[this.uploadName] = attIdList.join(',')
|
||||||
this.formInline = { ...this.formInline }
|
this.formInline = { ...this.formInline }
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.loading = true
|
||||||
|
this.ipagination = pagination
|
||||||
|
// 定时关闭是为了回显整改部门
|
||||||
|
setTimeout(() => {
|
||||||
|
this.loading = false
|
||||||
|
}, 1000)
|
||||||
|
},
|
||||||
// 稽查内容的添加
|
// 稽查内容的添加
|
||||||
handleAdd () {
|
handleAdd () {
|
||||||
// 新增左侧的预览文件,还不知道要赋值哪个文件 ??
|
// 新增左侧的预览文件,还不知道要赋值哪个文件 ??
|
||||||
@@ -430,7 +467,8 @@ export default {
|
|||||||
// 编辑左侧的预览文件,还不知道要赋值哪个文件 ??
|
// 编辑左侧的预览文件,还不知道要赋值哪个文件 ??
|
||||||
const standardFile = ''
|
const standardFile = ''
|
||||||
this.$refs.checkContentModal.title = this.$t('edit')
|
this.$refs.checkContentModal.title = this.$t('edit')
|
||||||
this.$refs.checkContentModal.edit(standardFile, record, index)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.$refs.checkContentModal.edit(standardFile, record, dataIndex)
|
||||||
},
|
},
|
||||||
// 稽查内容的删除
|
// 稽查内容的删除
|
||||||
handleDelete (index) {
|
handleDelete (index) {
|
||||||
@@ -438,7 +476,8 @@ export default {
|
|||||||
title: this.$t('confirmDeletion'),
|
title: this.$t('confirmDeletion'),
|
||||||
content: this.$t('areYouSure'),
|
content: this.$t('areYouSure'),
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
this.dataSource.splice(index, 1)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.dataSource.splice(dataIndex, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
+23
-6
@@ -32,11 +32,12 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="id"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 操作栏 -->
|
<!-- 操作栏 -->
|
||||||
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
|
||||||
@@ -68,6 +69,18 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{ // 起草单位
|
{ // 起草单位
|
||||||
title: this.$t('workCenter.enStandardRevision.draftingUnit'),
|
title: this.$t('workCenter.enStandardRevision.draftingUnit'),
|
||||||
@@ -145,14 +158,17 @@ export default {
|
|||||||
processNameChange (value) {
|
processNameChange (value) {
|
||||||
this.$emit('processNameChange', value)
|
this.$emit('processNameChange', value)
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
handleAdd () {
|
handleAdd () {
|
||||||
this.modalType = 'add'
|
this.modalType = 'add'
|
||||||
this.$refs.addEditDrafterDrawer.add()
|
this.$refs.addEditDrafterDrawer.add()
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit (record, index) {
|
handleEdit (record, index) {
|
||||||
console.log(index)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
this.modalType = 'edit' + '-' + index
|
this.modalType = 'edit' + '-' + dataIndex
|
||||||
this.$refs.addEditDrafterDrawer.edit(record)
|
this.$refs.addEditDrafterDrawer.edit(record)
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
@@ -161,7 +177,8 @@ export default {
|
|||||||
title: this.$t('confirmDeletion'),
|
title: this.$t('confirmDeletion'),
|
||||||
content: this.$t('areYouSure'),
|
content: this.$t('areYouSure'),
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
this.dataSource.splice(index, 1)
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
|
this.dataSource.splice(dataIndex, 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
+21
-4
@@ -6,11 +6,12 @@
|
|||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="id"
|
:rowKey="(record, index) => { return (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
<!-- 起草人 -->
|
<!-- 起草人 -->
|
||||||
<!--<template slot="user" slot-scope="{record, text}">-->
|
<!--<template slot="user" slot-scope="{record, text}">-->
|
||||||
<!-- <a-tooltip overlay-class-name="tooltip-style">-->
|
<!-- <a-tooltip overlay-class-name="tooltip-style">-->
|
||||||
@@ -58,6 +59,18 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{ // 起草单位
|
{ // 起草单位
|
||||||
title: this.$t('workCenter.enStandardRevision.draftingUnit'),
|
title: this.$t('workCenter.enStandardRevision.draftingUnit'),
|
||||||
@@ -148,10 +161,14 @@ export default {
|
|||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 上传企标
|
// 上传企标
|
||||||
handleUploadStandard (record, index) {
|
handleUploadStandard (record, index) {
|
||||||
|
const dataIndex = (Number(this.ipagination.current) - 1) * Number(this.ipagination.pageSize) + index
|
||||||
this.$refs.uploadFile.open(record.fileId)
|
this.$refs.uploadFile.open(record.fileId)
|
||||||
this.uploadIndex = index
|
this.uploadIndex = dataIndex
|
||||||
},
|
},
|
||||||
// 上传企标后的回调
|
// 上传企标后的回调
|
||||||
uploadFileChange (data) {
|
uploadFileChange (data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user