This commit is contained in:
zhutianqi
2021-06-04 18:01:50 +08:00
parent a9da09f095
commit 7cc0300099
6 changed files with 371 additions and 4138 deletions
+18 -14
View File
@@ -28,20 +28,24 @@ export default {
this.$emit('pageChange', page) this.$emit('pageChange', page)
}, },
pageSizeChange (pageSize) { pageSizeChange (pageSize) {
if (this.getTypeFlag === 'CloudRepository') { this.userInfo.configContent = pageSize
this.userInfo.configContent = pageSize this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo))))
this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo)))) this.$emit('pageSizeChange', pageSize)
this.$emit('pageSizeChange', pageSize)
} else { // if (this.getTypeFlag === 'CloudRepository') {
this.pageConfig(pageSize).then((res) => { // this.userInfo.configContent = pageSize
if (res.ok) { // this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo))))
this.userInfo.configContent = pageSize // this.$emit('pageSizeChange', pageSize)
this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo)))) // } else {
this.$emit('pageSizeChange', pageSize) // this.pageConfig(pageSize).then((res) => {
} // if (res.ok) {
}, e => { // this.userInfo.configContent = pageSize
}) // this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo))))
} // this.$emit('pageSizeChange', pageSize)
// }
// }, e => {
// })
// }
}, },
/** /**
* @description: 每页条数配置 * @description: 每页条数配置
@@ -4,6 +4,14 @@
<div class="search-area"> <div class="search-area">
<div class="left"> <div class="left">
<el-form inline :model="localProTableSearch" class="label-input-form" @keyup.enter.native="getLocalProductTableBtn"> <el-form inline :model="localProTableSearch" class="label-input-form" @keyup.enter.native="getLocalProductTableBtn">
<el-form-item label="项目编号" class="search-item">
<el-input
v-model="localProTableSearch.productName"
placeholder="根据项目编号查找"
:maxlength="100"
clearable
></el-input>
</el-form-item>
<el-form-item label="项目名称" class="search-item"> <el-form-item label="项目名称" class="search-item">
<el-input <el-input
v-model="localProTableSearch.productName" v-model="localProTableSearch.productName"
@@ -12,7 +20,7 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目类别" class="search-item"> <el-form-item label="项目分类" class="search-item">
<el-select <el-select
v-model="localProTableSearch.productType" v-model="localProTableSearch.productType"
placeholder="请选择项目类别" placeholder="请选择项目类别"
@@ -82,7 +90,7 @@
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="flatform" prop="flatform"
label="平台"> label="产品平台">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="productNo" prop="productNo"
@@ -99,7 +107,7 @@
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="productTypeShow" prop="productTypeShow"
label="项目类别" label="项目分类"
min-width="120" min-width="120"
sortable sortable
> >
@@ -112,9 +120,25 @@
sortable sortable
> >
</el-table-column> </el-table-column>
<el-table-column
show-overflow-tooltip
prop="productBrandShow"
label="项目群"
min-width="120"
sortable
>
</el-table-column>
<el-table-column <el-table-column
prop="sopTime" prop="sopTime"
label="SOP时间" label="项目计划开始日期"
min-width="120"
sortable
>
<template slot-scope="scope">{{(scope.row.sopTime ? scope.row.sopTime.substring(0, 11): '')}}</template>
</el-table-column>
<el-table-column
prop="sopTime"
label="项目计划完成日期"
min-width="120" min-width="120"
sortable sortable
> >
@@ -123,31 +147,18 @@
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="targetMarketShow" prop="targetMarketShow"
label="目标市场"> label="当前节点">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="leftRight" prop="leftRight"
label="左驾右驾"> label="项目级别">
<template slot-scope="scope" v-if="scope.row.leftRight">{{(scope.row.leftRight === '1' ? '左驾': '右驾')}}</template> <template slot-scope="scope" v-if="scope.row.leftRight">{{(scope.row.leftRight === '1' ? '左驾': '右驾')}}</template>
</el-table-column> </el-table-column>
<el-table-column
show-overflow-tooltip
prop="carModel"
min-width="120"
label="公告车型号">
</el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="productManagerShow" prop="productManagerShow"
label="项目经理"> label="项目经理">
</el-table-column> </el-table-column>
<el-table-column
prop="eopTime"
sortable
min-width="120"
label="EOP信息">
<template slot-scope="scope">{{(scope.row.eopTime ? scope.row.eopTime.substring(0, 11): '')}}</template>
</el-table-column>
<el-table-column label="" fixed="right" width="50" :resizable="false"> <el-table-column label="" fixed="right" width="50" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
<div @click.stop style="display: inline-block"> <div @click.stop style="display: inline-block">
File diff suppressed because it is too large Load Diff
@@ -7,19 +7,19 @@
<table-tools-bar> <table-tools-bar>
<div slot="left"> <div slot="left">
<div class="search-area"> <div class="search-area">
<el-form :modal="standCommonlySearch" inline class="label-input-form" @keyup.enter.native="sarStandCompareHis"> <el-form :model="standCommonlySearch" inline class="label-input-form">
<el-formItem label="类别" class="search-item"> <el-formItem label="类别" class="search-item">
<el-input v-model="oldNumOrName" class="s-c-input" placeholder="标准/政策" clearable :maxlength="100" @keyup.enter.native="sarStandCompareHis()"></el-input> <el-input v-model="standCommonlySearch.categorg" class="s-c-input" placeholder="标准/政策" clearable :maxlength="100"></el-input>
</el-formItem> </el-formItem>
<el-formItem label="关键字" class="search-item"> <el-formItem label="关键字" class="search-item">
<el-input v-model="newNumOrName" class="s-c-input" placeholder="请输入关键字" clearable :maxlength="100" @keyup.enter.native="sarStandCompareHis()"></el-input> <el-input v-model="standCommonlySearch.cname" class="s-c-input" placeholder="请输入关键字" clearable :maxlength="100"></el-input>
</el-formItem> </el-formItem>
<el-formItem label="开始日期" class="search-item"> <el-formItem label="开始日期" class="search-item">
<el-datePicker v-model="newNumOrName1" :editable="false" <el-datePicker v-model="standCommonlySearch.start" :editable="false"
placeholder="请选择开始日期"></el-datePicker> placeholder="请选择开始日期"></el-datePicker>
</el-formItem> </el-formItem>
<el-formItem label="结束日期" class="search-item"> <el-formItem label="结束日期" class="search-item">
<el-datePicker v-model="newNumOrName2" :editable="false" <el-datePicker v-model="standCommonlySearch.end" :editable="false"
placeholder="请选择结束日期"></el-datePicker> placeholder="请选择结束日期"></el-datePicker>
</el-formItem> </el-formItem>
<el-formItem class="search-item btn-box"> <el-formItem class="search-item btn-box">
@@ -38,8 +38,6 @@
</div> </div>
</table-tools-bar> </table-tools-bar>
<div class="content"> <div class="content">
<div class="action-bar">
</div>
<div class="table-wrap"> <div class="table-wrap">
<div style="position: absolute;height: calc(100% - 10px);width: 100%;"> <div style="position: absolute;height: calc(100% - 10px);width: 100%;">
<el-table <el-table
@@ -49,65 +47,39 @@
style="width: 100%;padding:0 0 20px 0;" style="width: 100%;padding:0 0 20px 0;"
height="100%" height="100%"
border border
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
@selection-change="standSelectChange">
<el-table-column <el-table-column
type="selection" prop="categorg"
width="55" label="标准"
align="center">
</el-table-column>
<el-table-column
prop="oldStandNum"
label="类别"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="table-jump" @click.stop="oldPreview(scope.row)">{{ scope.row.oldStandNum }}</a> <a class="table-jump" @click.stop="handlePreview(scope.row)">{{ scope.row.categorg }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="oldStandName" prop="cname"
label="标准名称/政策名称" label="标准名称/政策名称"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.oldStandName }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.cname }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="征求意见周期" label="征求意见周期"
sortable
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="createTime" prop="createTime"
label="上传时间" label="上传时间"
sortable
align="center"> align="center">
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
</div> </div>
<pagination :page="splitInfoPage" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination> <pagination :page="standCommonlySearch.page" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>
<loading :loading="spinShow">{{$t('m.dataLoading')}}……</loading> <loading :loading="spinShow">数据加载中……</loading>
<!-- 分享 -->
<el-drawer :title="$t('m.sharingStandard')" :visible.sync="drawerModal" width="300" :styles="drawerModalstyles" @on-close="treeCancel">
<div class="demo-drawer-content">
<dept-tree treeDivId="drawerModalTree"
ref="drawerModalTree"
@treeClick="selcetTree"
allDept
showUser
:editable="false"
style="padding: 0 15px">
</dept-tree>
</div>
<div class="demo-drawer-footer">
<el-button size="mini" type="primary" @click="shareStandardBt" icon="el-icon-check">确定</el-button>
<el-button size="mini" style="margin-right: 8px" @click="treeCancel" icon="el-icon-close">取消</el-button>
</div>
</el-drawer>
</div> </div>
</template> </template>
@@ -118,56 +90,18 @@ export default {
}, },
data () { data () {
return { return {
visibleOrgTable: false, standCommonlySearch: {
orgTableVal: '', categorg: '',
orgTableValName: '', cname: '',
spinShow: false, start: '',
collect: '收藏', end: '',
cancelCollect: false, page: 1,
standCommonlySearch: {}, size: this.$store.getters.userInfo.configContent
oldNumOrName: '', },
newNumOrName: '', spinShow: false,
newNumOrName1: '', standInfoList: [],
newNumOrName2: '', tableHeight: null,
standInfoList: [], total: 0
tableHeight: null,
total: 0,
splitInfoPage: 1,
splitInfoPageSize: this.$store.getters.userInfo.configContent,
selectedList: [],
drawerModalstyles: {
height: 'calc(100% - 55px)',
overflow: 'auto',
paddingBottom: '53px',
position: 'static'
},
// end 分享相关的
shareStandardModal: false,
shareStandardSelect: [],
// 分享数据
resType: '',
// 消息推送保存对象
personShareEO: {
id: '',
recipientId: '',
shareUserId: '',
resType: '',
resId: '',
resUri: '',
resTitle: '',
readFlag: '',
validFlag: '',
modifyTime: '',
creationTime: '',
oldStandName: '',
},
// 收藏标准
personCollect: {
collectResId: '',
collectTitle: '',
collectType: ''
},
drawerModal: false // 分享
} }
}, },
props: { props: {
@@ -175,334 +109,53 @@ export default {
watch: { watch: {
}, },
methods: { methods: {
handleCommand (command) { // 点击查看
switch (command[1]) { handlePreview (item) {
case '查看': this.$store.commit('setDetailMap',this.$router.path)
this.handlePreview(command[0]) this.$router.push({
break name: 'consultationDetails',
case '查看类别': query: {
this.oldPreview(command[0]) item: item
break }
case '收藏':
this.collectInfo(command[0])
break
case '取消收藏':
this.cancelCollectInfo(command[0])
break
case '分享':
this.enjoyInfo(command[0])
break
case '删除':
this.delFileEditInfo(command[0].id)
break
}
},
// 树点击
isTreeOk (checkedList) {
this.shareStandardSelect = []
checkedList.map((item, index) => {
if (!item.isParent) {
this.shareStandardSelect.push(item.userId)
}
})
if (this.shareStandardSelect.length === 0) {
this.$message({
message: '请选择要分享的人!',
type: 'warning'
})
} else {
this.personShareEO.resType = 'COMPARISON'
this.personShareEO.resTitle = '【标准比对】 ' + (this.resPk.oldStandNum ? this.resPk.oldStandNum:'') + ' - ' + (this.resPk.newStandNum ? this.resPk.newStandNum:'')
/*if (this.resPk.standYear != null && this.resPk.standYear !== '') {
this.personShareEO.resTitle = this.resPk.oldStandName + ' ( 编号:' + this.resPk.oldFileType + ' ' + this.resPk.oldStandNum + '-' + this.resPk.standYear + ' )'
} else {
}*/
this.personShareEO.resId = this.resPk.id
this.personShareEO.resUri = JSON.stringify(this.resPk)
this.personShareEO.recipientId = this.shareStandardSelect
this.$http.post('/person/personShare/savePersonShare', this.personShareEO, {
_this: this
}, res => {
this.$message({
message: '标准分享成功!',
type: 'success'
}) })
this.shareStandardModal = false },
this.visibleOrgTable = false // 清空
// this.drawerModal = false clearSearchStand () {
this.shareStandardSelect = [] this.standCommonlySearch.page = 1
// this.$refs.drawerModalTree.treeReload() this.standCommonlySearch.start = ''
}, e => { this.standCommonlySearch.end = ''
this.$message.error('标准分享失败!') this.standCommonlySearch.categorg = ''
}) this.standCommonlySearch.cname = ''
} this.sarStandCompareHis()
}, },
// 消息推送 // 搜索
shareStandardBt () { sarStandCompareHisInfo() {
if (this.shareStandardSelect.length === 0) { this.splitInfoPage = 1
this.$message({ this.sarStandCompareHis()
message: '请选择要分享的人!', },
type: 'warning' // 查询表格
}) sarStandCompareHis () {
} else { this.spinShow = true
this.personShareEO.resType = 'COMPARISON' var form = this.standCommonlySearch
this.personShareEO.resTitle = '【标准比对】 ' + (this.resPk.oldStandNum ? this.resPk.oldStandNum:'') + ' - ' + (this.resPk.newStandNum ? this.resPk.newStandNum:'') this.$http.get('sys/sar-public-idea/SelectAllP', form, {
/*if (this.resPk.standYear != null && this.resPk.standYear !== '') { _this: this
this.personShareEO.resTitle = this.resPk.oldStandName + ' ( 编号:' + this.resPk.oldFileType + ' ' + this.resPk.oldStandNum + '-' + this.resPk.standYear + ' )'
} else {
}*/
this.personShareEO.resId = this.resPk.id
this.personShareEO.resUri = JSON.stringify(this.resPk)
this.personShareEO.recipientId = this.shareStandardSelect
this.$http.post('/person/personShare/savePersonShare', this.personShareEO, {
_this: this
}, res => {
this.$message({
message: '标准分享成功!',
type: 'success'
})
this.shareStandardModal = false
this.drawerModal = false
this.shareStandardSelect = []
this.$refs.drawerModalTree.treeReload()
}, e => {
this.$message.error('标准分享失败!')
})
}
},
// 树点击
selcetTree (treeId, treeNode) {
this.shareStandardSelect = treeNode.id
},
// 取消
treeCancel () {
this.drawerModal = false
this.$refs.drawerModalTree.treeReload()
},
// 点击查看
handlePreview (item) {
sessionStorage.setItem('accessRow',JSON.stringify(item))
this.$store.commit('setDetailMap',this.$router.path)
this.$router.push({
name: 'consultationDetails',
params: {
id: item.id
}
})
},
oldPreview (item) {
sessionStorage.setItem('accessRow', JSON.stringify(item))
this.$store.commit('setDetailMap', this.$route.path)
this.$router.push({
name: 'categoryDetails',
params: {
id: item.id
}
})
},
// oldPreview (item) {
// let routeUrl = this.$router.resolve({
// name: 'categoryDetails',
// params: {
// id: item.id,
// pageType: 'INLAND_STAND'
// }
// })
// window.open(routeUrl.href, '_self')
// },
// handlePreview (params) {
// if (params.compareType === '条款比对') {
// this.$store.commit('setDetailMap', this.$route.path)
// this.$router.push({
// name: 'SeeDatalis',
// query: {
// row: JSON.stringify(params)
// }
// })
// } else {
// let rowDataLeft = {}
// let rowDataRight = {}
// rowDataLeft.showNumber = params.oldStandNum
// rowDataLeft.standName = params.oldStandName
// rowDataLeft.standNameSplit = null
// rowDataLeft.standNumSplit = null
// rowDataRight.showNumber = params.newStandNum
// rowDataRight.standName = params.newStandName
// rowDataRight.standNameSplit = null
// rowDataRight.standNumSplit = null
// this.$store.commit('setDetailMap', this.$route.path)
// this.$router.push({
// name: 'TextComparison',
// query: {
// id: params.id,
// flag: '查看',
// rowDataLeft: JSON.stringify(rowDataLeft),
// rowDataRight: JSON.stringify(rowDataRight)
// }
// })
// }
// },
// 删除
delFileEditInfo (id) {
this.$confirm('是否删除?', '提示', {
confirmButtonText: this.$t('m.determine'),
cancelButtonText: this.$t('m.cancel'),
type: 'warning',
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
this.$http.post('lawss/sarStandCompareHis/deleteByIds', {
deleteByIdList: id
}, {
_this: this
}, res => {
if (res.ok) {
this.sarStandCompareHis()
}
})
}).catch(() => {
// 取消删除,清空选择
// this.$refs.selections.clearSelection()
})
},
enjoyInfo (item) {
// this.$message({
// message: '此功能正在开发中……',
// type: 'warning'
// })
// this.drawerModal = true
// this.$nextTick(() => {
// this.$refs.drawerModalTree.clearSearch()
// })
this.visibleOrgTable = true
this.resPk = JSON.parse(JSON.stringify(item))
},
// scope.$index 获取当前行下标
collectInfo (item) {
// 点击收藏
this.spinShow = true
item.isSubmit = true
this.personCollect.collectResId = item.id
if (item.standYear != null && item.standYear !== '') {
this.personCollect.collectTitle = item.newStandName + ' ( 编号:' + item.newStandNum + ' )'
} else {
this.personCollect.collectTitle = item.newStandName + ' ( 编号:' + item.newStandNum + ' )'
}
this.personCollect.collectType = 'INLAND_STAND'
this.$http.postData('person/personCollect', this.personCollect, {
_this: this
}, res => {
this.spinShow = false
item.isSubmit = false
item.collectBtn = !item.collectBtn
console.log(item.collectBtn, '点击收藏后')
item.collectId = res.data.id
this.cancelCollect = !this.cancelCollect
}, e => {
item.isSubmit = false
})
},
cancelCollectInfo (item) {
this.$http.put('person/personCollect/updateByUserId', {
id: item.collectId
}, {
_this: this
}, res => {
if (res.ok) {
item.collectBtn = !item.collectBtn
this.cancelCollect = !this.cancelCollect
item.collectId = ''
}
})
},
clearSearchStand () {
this.oldNumOrName = ''
this.newNumOrName = ''
this.splitInfoPage = 1
this.sarStandCompareHis()
},
sarStandCompareHisInfo() {
this.splitInfoPage = 1
this.sarStandCompareHis()
},
// 表格
sarStandCompareHis () {
this.spinShow = true
this.$http.get('lawss/sarStandCompareHis/page', {
page: this.splitInfoPage,
pageSize: this.splitInfoPageSize,
oldNumOrName: this.oldNumOrName,
newNumOrName: this.newNumOrName
}, {
_this: this
}, res => {
for (let i = 0; i < res.data.list.length; i++) {
res.data.list[i].checked = false
if (res.data.list[i].collectId != null && res.data.list[i].collectId !== '') {
res.data.list[i].collectBtn = false
res.data.list[i].cancelCollectBtn = true
} else {
res.data.list[i].collectBtn = true
res.data.list[i].cancelCollectBtn = false
}
res.data.list[i].isSubmit = false
}
this.standInfoList = res.data.list
this.total = res.data.count
this.spinShow = false
}, e => {
})
},
pageChange (page) {
this.splitInfoPage = page
this.sarStandCompareHis()
},
// 分页每页显示数改变后方法
pageSizeChange (pageSize) {
this.splitInfoPageSize = pageSize
this.sarStandCompareHis()
},
standSelectChange (data) {
this.selectedList = []
for (let i = 0; i < data.length; i++) {
this.selectedList.push(data[i].id)
}
},
contrastStandFile () {
this.$store.commit('setDetailMap', this.$route.path)
this.$router.push({
name: 'ContrastDetails'
})
},
batchDelete () {
if (this.selectedList.length === 0) {
this.$message({
message: '请选择要删除的数据',
type: 'warning'
})
} else {
this.$confirm('确认删除这些数据?', '提示', {
confirmButtonText: this.$t('m.determine'),
cancelButtonText: this.$t('m.cancel'),
type: 'warning',
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
this.$http.post('lawss/sarStandCompareHis/deleteByIds', {
deleteByIdList: this.selectedList.join(',')
}, {
_this: this
}, res => { }, res => {
this.sarStandCompareHis() this.standInfoList = res.data.records
this.total = res.data.total
this.spinShow = false
}, e => { }, e => {
}) })
}).catch(() => { },
// 取消删除,清空选择 pageChange (page) {
// this.$refs.multipleTable.clearSelection() this.standCommonlySearch.page = page
}) this.sarStandCompareHis()
} },
} // 分页每页显示数改变后方法
pageSizeChange (pageSize) {
this.$store.getters.userInfo.configContent = pageSize
this.standCommonlySearch.size = pageSize
this.sarStandCompareHis()
},
}, },
computed: { computed: {
}, },
@@ -551,18 +204,5 @@ export default {
padding: 0; padding: 0;
} }
} }
.s-c-input {
/deep/ .el-input__inner {
width: 190px;
}
}
}
::v-deep .el-drawer__header{
&>span:first-child{
outline:0 !important;
}
}
::v-deep .el-drawer{
outline:0 !important;
} }
</style> </style>
@@ -11,18 +11,18 @@
<div v-show="heightShow" class="transition-box"> <div v-show="heightShow" class="transition-box">
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">标准号:</label> <label class="transition-box-label">标准号:</label>
<span class="transition-box-span">{{ opinionList.standardNumber }}</span> <span class="transition-box-span">{{ this.$route.query.item.categorg }}</span>
</p> </p>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">标准名称:</label> <label class="transition-box-label">标准名称:</label>
<span class="transition-box-span">{{ opinionList.standardName || '-' }}</span> <span class="transition-box-span">{{ this.$route.query.item.cname || '-' }}</span>
</p> </p>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">上传时间:</label> <label class="transition-box-label">上传时间:</label>
<span class="transition-box-span">{{ opinionList.uploadTime || '-' }}</span> <span class="transition-box-span">{{ this.$route.query.item.starttime || '-' }}</span>
</p> <p class="transition-box-p"> </p> <p class="transition-box-p">
<label class="transition-box-label">征求意见周期:</label> <label class="transition-box-label">征求意见周期:</label>
<span class="transition-box-span">{{ opinionList.opinionCycle || '-' }}</span> <span class="transition-box-span">{{ this.$route.query.item.endtime || '-' }}</span>
</p> </p>
</div> </div>
</transition> </transition>
@@ -39,23 +39,33 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column <el-table-column
prop="date" prop="partCode"
label="章节编号" label="章节编号"
width="180"> width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="name" prop="countent"
label="修改意见内容(包括理由或依据)" label="修改意见内容(包括理由或依据)"
> >
</el-table-column> </el-table-column>
<el-table-column
prop="department"
label="提出部门"
>
</el-table-column>
<el-table-column
prop="user"
label="提出人"
>
</el-table-column>
<el-table-column label="操作" align="center" width="50" fixed="right"> <el-table-column label="操作" align="center" width="50" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<div @click.stop style="display: inline-block"> <div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</i> <i v-if="scope.row.user === $store.getters.userInfo.userId" class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'9K6ANCMBZ9'">编辑</el-dropdown-item> <el-dropdown-item v-if="scope.row.user === $store.getters.userInfo.userId" :command="[scope.row, '编辑']">编辑</el-dropdown-item>
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'UH6NV867E7'">删除</el-dropdown-item> <el-dropdown-item v-if="" :command="[scope.row, '删除']">删除</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
@@ -64,14 +74,13 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<!-- <pagination :page="splitInfoPage" :total="total" @pageChange="pageChange" @pageSizeChange="pageSizeChange"></pagination>-->
<div> <div>
<pagination <pagination
style="position: static;" style="position: static;"
:page="newModelPageConfig.page" :page="form.page"
:total="newModelPageConfig.total" :total="total"
@pageChange="page => handlePageChange('newModel', page)" @pageChange="handlePageChange"
@pageSizeChange="pageSize => handlePageSizeChange('newModel', pageSize)"></pagination> @pageSizeChange="handlePageSizeChange"></pagination>
</div> </div>
<el-drawer <el-drawer
:title=opiniontitle :title=opiniontitle
@@ -98,6 +107,7 @@
</div> </div>
</div> </div>
</el-drawer> </el-drawer>
<loading :loading="spinShow">数据加载中……</loading>
</div> </div>
</template> </template>
@@ -106,59 +116,45 @@ export default {
name: 'consultationDetails', name: 'consultationDetails',
data () { data () {
return { return {
spinShow: false,
total: 0,
opiniontitle: '新增意见', opiniontitle: '新增意见',
isDialog: false, //新增抽屉状态 isDialog: false, //新增抽屉状态
heightShow: true, heightShow: true,
isSubmit: false, isSubmit: false,
opinionList: {
standardNumber: 'GB 121-12',
standardName: '机动车安全运行条件',
uploadTime: '2002-11-23',
opinionCycle: '2001-02-21到 2012-02-02'
},
opinionContent: { opinionContent: {
number:'', number:'',
content: '', content: '',
}, },
standinfoList: [{ standinfoList: [],
date: '1.1.2', form: {
name: '文章内容不清晰', cid: this.$route.query.item.cid,
}, {
date: '1.2.3.1',
name: '标准有错误',
}, {
date: '1.21.1',
name: '标准延时',
}, {
date: '1.21.1',
name: '实用性不高',
}, {
date: '1.2.31',
name: '不贴合国家标准',
}, ],
newModelPageConfig: {
page: 1, page: 1,
total: 0 size: this.$store.getters.userInfo.configContent
} }
} }
}, },
methods: { methods: {
//分页数据改变 getList() {
handlePageChange(field, page) { this.spinShow = true
switch (field) { this.$http.get('sys/sar-public-idea-all/getallStand', this.form, {
case "newModel": _this: this
break; }, res => {
case "": this.standinfoList = res.data.records
break; this.total = res.data.total
} this.spinShow = false
}, e => {
})
}, },
handlePageSizeChange(field, pageSize) { //分页数据改变
switch (field) { handlePageChange(page) {
case "newModel": this.form.page = page
break; this.getList()
case "": },
break; handlePageSizeChange(pageSize) {
} this.$store.getters.userInfo.configContent = pageSize
this.form.size = pageSize
this.getList()
}, },
back (){ back (){
this.$router.push({ this.$router.push({
@@ -214,7 +210,9 @@ export default {
}, },
}, },
mounted () {} mounted () {
this.getList()
}
} }
</script> </script>
+2 -2
View File
@@ -6,8 +6,8 @@
// 服务器地址 // 服务器地址
// const devIp = '192.168.10.211' // const devIp = '192.168.10.211'
// const devInterfacePORT = '8888' // const devInterfacePORT = '8888'
const devIp = '39.98.140.126' const devIp = '192.168.10.145'
const devInterfacePORT = '10005' const devInterfacePORT = '9999'
// 云端端口号 // 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
const simpleFilePath = 'att/attFile/upload' const simpleFilePath = 'att/attFile/upload'