- 批量驳回
- 批量通过
+ 批量驳回
+ 批量通过
- 标准/译文获取申请
+ 标准/译文获取申请
列表导出
@@ -50,9 +62,10 @@
row-key="id"
border
:loading="tableLoading"
- :data="tableData"
+ :data="StandardApplyForEO"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', fontWeight: 'bold', height: '48px'}"
- @selection-change="handleSelectionChange">
+ @selection-change="handleSelectionChange"
+ >
@@ -76,55 +89,55 @@
label="标准编号"
width="150"
align="center"
- prop="aa"
+ prop="standNum"
/>
查看
- 通过
- 驳回
+ 通过
+ 驳回
@@ -132,6 +145,7 @@
+
@@ -139,68 +153,112 @@
import standardsAndTranslationModal from './components/standardTranslationAcquisitionRequestModal';
import addModal from './components/addModal';
import detailModal from './components/detailModal';
+import exportDialog from './components/exportDialog';
+
export default {
name: 'StandardTranslationAcquisitionRequest',
components: {
standardsAndTranslationModal,
addModal,
- detailModal
+ detailModal,
+ exportDialog
},
data () {
return {
tableLoading: false,
total: 0,
- searchForm: {
+ StandardApplyForEOPage: {
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
},
- tableData: [ { aa: '123' } ],
- selectedList: []
+ StandardApplyForEO: [],
+ selectedList: [],
+ url: {
+ getList: '/lawss/standardApplyFor/queryByPage',
+ updateState: '/lawss/standardApplyFor/batchUpdateStatus'
+ }
}
},
mounted () {
if (this.$route.query && this.$route.query.tag === 'fromSearchCenter') {
- this.standardsAndTranslationRequest()
+ this.standardsAndTranslationRequestShowModal()
this.$router.replace({ query: { ...this.$route.query, tag: undefined } })
}
+ this.getList()
},
methods: {
searchData () {
+ this.page = 1
this.getList()
},
clearSerach () {
- this.searchForm = {}
- },
- batchPass () {
- if (this.selectedList.length === 0) {
- this.$message({
- message: '请选择至少一条数据',
- type: 'warning',
- offset: 20
- })
+ this.StandardApplyForEOPage = {
+ page: 1,
+ pageSize: this.$store.getters.userInfo.configContent
}
- },
- batchOverrule () {
- if (this.selectedList.length === 0) {
- this.$message({
- message: '请选择至少一条数据',
- type: 'warning',
- offset: 20
- })
- }
- },
- exportList () {
+ this.getList()
},
getList () {
+ this.tableLoading = true
+ this.$http.get(this.url.getList, {
+ ...this.StandardApplyForEOPage
+ }, {
+ _this: this
+ }, res => {
+ if (res.ok) {
+ this.StandardApplyForEO = res.data.list
+ this.total = res.data.total
+ }else {
+ this.StandardApplyForEO = []
+ this.total = 0
+ }
+ this.tableLoading = false
+ })
+ },
+
+ // 需要调整
+ batchPass (id) {
+ if (id.length === 0) {
+ this.$message({
+ message: '请选择至少一条数据',
+ type: 'warning',
+ offset: 20
+ })
+ return
+ }
+ const ids = id.join(',')
+ this.$http.postData(this.url.updateState, { status: 'pass', ids }, { _this: this }, res => {
+ if(res.ok) {
+ this.$message.success('操作成功')
+ }
+ })
+ },
+ batchOverrule (id) {
+ if (id.length === 0) {
+ this.$message({
+ message: '请选择至少一条数据',
+ type: 'warning',
+ offset: 20
+ })
+ return
+ }
+ const ids = id.join(',')
+ this.$http.postData(this.url.updateState, { status: 'refuse', ids }, { _this: this }, res => {
+ if(res.ok) {
+ this.$message.success('操作成功')
+ }
+ })
+ },
+
+ exportName(name){
+ },
+ exportList () {
+ this.$refs.exportDialogRef.openModel()
},
toView (id) {
this.$refs.detailModalRef.showModal(id)
},
- pass (id) {
- },
- overrule (id) {
- },
- standardsAndTranslationRequest () {
+ standardsAndTranslationRequestShowModal () {
this.$refs.standardsAndTranslationModalRef.showModal()
},
pageChange (page) {
@@ -211,10 +269,12 @@ export default {
this.questionSerach.pageSize = pageSize
this.getList()
},
- formatClassification () {
- },
handleSelectionChange (value) {
- this.selectedList = value
+ const ids = []
+ value.forEach(item => {
+ ids.push(item.id)
+ })
+ this.selectedList = [ ...ids ]
}
},
}
@@ -233,7 +293,7 @@ export default {
display: flex;
flex-direction: column;
- .drag-table{
+ .drag-table {
flex-grow: 1;
}
@@ -245,15 +305,15 @@ export default {
}
}
- .table-operate-btn{
+ .table-operate-btn {
display: inline-block;
cursor: pointer;
color: #409EFF;
margin: 0 5px;
}
- .stand-date-range-picker{
- /deep/ .el-range-separator{
+ .stand-date-range-picker {
+ /deep/ .el-range-separator {
width: auto;
}
}