导入导出、模板下载
This commit is contained in:
@@ -149,7 +149,7 @@ export default {
|
|||||||
relateEvent () {
|
relateEvent () {
|
||||||
const query = {
|
const query = {
|
||||||
sarId: this.$route.params.id,
|
sarId: this.$route.params.id,
|
||||||
sarType: 'MEETING'
|
sarType: 'INSIDE_OUTSIDE_MEETING'
|
||||||
}
|
}
|
||||||
this.$http._getData(this.url.getLogList, query).then(res => {
|
this.$http._getData(this.url.getLogList, query).then(res => {
|
||||||
if (res.ok && res.data.length > 0) {
|
if (res.ok && res.data.length > 0) {
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ export default {
|
|||||||
relateEvent () {
|
relateEvent () {
|
||||||
const query = {
|
const query = {
|
||||||
sarId: this.$route.params.id,
|
sarId: this.$route.params.id,
|
||||||
sarType: 'POLICYTOPICS'
|
sarType: 'LAWS_TOPIC'
|
||||||
}
|
}
|
||||||
this.$http._getData(this.url.getLogList, query).then(res => {
|
this.$http._getData(this.url.getLogList, query).then(res => {
|
||||||
if (res.ok && res.data.length > 0) {
|
if (res.ok && res.data.length > 0) {
|
||||||
|
|||||||
@@ -305,11 +305,9 @@ export default {
|
|||||||
this.$refs.exportDialogRef.openModel()
|
this.$refs.exportDialogRef.openModel()
|
||||||
},
|
},
|
||||||
handleExport (exportName) {
|
handleExport (exportName) {
|
||||||
alert('导出' + exportName)
|
|
||||||
const params = {
|
const params = {
|
||||||
...this.form,
|
...this.form,
|
||||||
exportName: exportName,
|
exportName: exportName,
|
||||||
userId: this.$store.getters.userInfo.userId,
|
|
||||||
exportIds: this.ids.join(',')
|
exportIds: this.ids.join(',')
|
||||||
}
|
}
|
||||||
let query = '?'
|
let query = '?'
|
||||||
@@ -319,20 +317,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
query = query.slice(0,-1)
|
query = query.slice(0,-1)
|
||||||
window.open('/api/esRevisePlan/es-revise-plan/exportEsRevisePlanInfoExcel' + query)
|
window.open('/api/lawss/sarLawsTopic/exportLawsTopicInfo' + query)
|
||||||
this.$refs.exportDialogRef.cancel()
|
this.$refs.exportDialogRef.cancel()
|
||||||
this.$message.success('导出信息成功')
|
this.$message.success('导出信息成功')
|
||||||
},
|
},
|
||||||
// 导入
|
// 导入
|
||||||
addImportModal() {
|
addImportModal() {
|
||||||
alert('导入')
|
|
||||||
this.importModalShowFlag = true
|
this.importModalShowFlag = true
|
||||||
this.importExcelUrl = '/api/lawss/sarBussionessStand/importSarBussionessStandFile?'+ 'userId=' + this.$store.getters.userInfo.userId
|
this.importExcelUrl = '/api/lawss/sarLawsTopic/importLawsTopicInfo'
|
||||||
},
|
},
|
||||||
// 模板下载
|
// 模板下载
|
||||||
handleMoudel(){
|
handleMoudel(){
|
||||||
alert('模板下载')
|
window.open('/api/lawss/sarLawsTopic/exportTemplateFile?fileName=政策课题导入模板')
|
||||||
window.open('/api/lawss/sarBussionessStand/exportTemplateFile?fileName=企业标准导入模板')
|
|
||||||
},
|
},
|
||||||
// 新增编辑
|
// 新增编辑
|
||||||
openDrawer (type, row) {
|
openDrawer (type, row) {
|
||||||
|
|||||||
+3
-6
@@ -328,7 +328,6 @@ export default {
|
|||||||
this.$refs.exportDialogRef.openModel()
|
this.$refs.exportDialogRef.openModel()
|
||||||
},
|
},
|
||||||
handleExport (exportName) {
|
handleExport (exportName) {
|
||||||
alert('导出' + exportName)
|
|
||||||
const params = {
|
const params = {
|
||||||
...this.form,
|
...this.form,
|
||||||
exportName: exportName,
|
exportName: exportName,
|
||||||
@@ -342,20 +341,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
query = query.slice(0,-1)
|
query = query.slice(0,-1)
|
||||||
window.open('/api/esRevisePlan/es-revise-plan/exportEsRevisePlanInfoExcel' + query)
|
window.open('/api/lawss/sarLawsInformation/exportLawsInformationInfo' + query)
|
||||||
this.$refs.exportDialogRef.cancel()
|
this.$refs.exportDialogRef.cancel()
|
||||||
this.$message.success('导出信息成功')
|
this.$message.success('导出信息成功')
|
||||||
},
|
},
|
||||||
// 导入
|
// 导入
|
||||||
addImportModal() {
|
addImportModal() {
|
||||||
alert('导入')
|
|
||||||
this.importModalShowFlag = true
|
this.importModalShowFlag = true
|
||||||
this.importExcelUrl = '/api/lawss/sarBussionessStand/importSarBussionessStandFile?'+ 'userId=' + this.$store.getters.userInfo.userId
|
this.importExcelUrl = '/api/lawss/sarLawsInformation/importLawsInformationInfo'
|
||||||
},
|
},
|
||||||
// 模板下载
|
// 模板下载
|
||||||
handleMoudel(){
|
handleMoudel(){
|
||||||
alert('模板下载')
|
window.open('/api/lawss/sarLawsInformation/exportTemplateFile?fileName=政策法规资料导入模板')
|
||||||
window.open('/api/lawss/sarBussionessStand/exportTemplateFile?fileName=企业标准导入模板')
|
|
||||||
},
|
},
|
||||||
// 新增编辑
|
// 新增编辑
|
||||||
openDrawer (type, row) {
|
openDrawer (type, row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user