[参数项列表] 发布
This commit is contained in:
@@ -55,9 +55,9 @@
|
||||
<div class="operator-text" v-has="'document:importZip'">
|
||||
<ImportFile :url="url" :isTrue="false" :accept="'.zip'" :paramsTemplateId='this.$route.query.id'/>
|
||||
</div>
|
||||
<div @click="handleModule" class="operator-text" v-has="'document:exportTemplate'">
|
||||
<div @click="releaseVersion" class="operator-text" v-has="'document:exportTemplate'">
|
||||
<a-icon type="rocket"/>
|
||||
{{$t('Version')}}
|
||||
{{$t('releaseVersion')}}
|
||||
</div>
|
||||
<div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'">
|
||||
<a-icon type="delete"/>
|
||||
@@ -199,17 +199,43 @@ export default {
|
||||
paramsTemplateId: this.$route.query.id,
|
||||
...this.queryParam,
|
||||
ids: this.selectedRowKeys.join(','),
|
||||
// exportName: '参数项列表.xlsx'
|
||||
}
|
||||
let _xx = JSON.stringify(_tt)
|
||||
let _yy = {
|
||||
|
||||
}
|
||||
downloadFile('params/paramsInfo/exportParamsInfoZip', '参数项列表.zip', { paramsInfoVO : _xx }, this.Deselect)
|
||||
let _yy = { paramsInfoVO : _xx, exportName: '参数项列表' }
|
||||
downloadFile('params/paramsInfo/exportParamsInfoZip', '参数项列表.zip', { paramsInfoVO : _xx, exportName: '参数项列表' } , this.Deselect)
|
||||
},
|
||||
// 发布版本
|
||||
releaseVersion() {
|
||||
let _this = this
|
||||
axios({
|
||||
url: `/jero-boot/params/paramsInfo/publish?paramsTemplateId=${this.$route.query.id}`,
|
||||
method: 'get',
|
||||
transformRequest: [function (data) {
|
||||
let ret = ''
|
||||
for (let it in data) {
|
||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||
}
|
||||
return ret
|
||||
}],
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'X-Access-Token':_this.token
|
||||
}
|
||||
})
|
||||
.then( (res) =>{
|
||||
if (res.data.success) {
|
||||
_this.$message.success(res.data.result)
|
||||
}else{
|
||||
_this.$message.warning(res.data.result)
|
||||
}
|
||||
})
|
||||
.catch( (error) =>{
|
||||
console.log(error);
|
||||
});
|
||||
},
|
||||
//下载模板
|
||||
handleModule() {
|
||||
downloadFile('params/paramsInfo/exportTemplate', '参数项列表.xls', {})
|
||||
downloadFile('params/paramsInfo/exportTemplate', '参数项列表.xlsx', {})
|
||||
},
|
||||
handleToggleSearch() {
|
||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||
@@ -221,10 +247,6 @@ export default {
|
||||
//添加
|
||||
handleAdd() {
|
||||
this.$refs.addModelRef.addModel()
|
||||
},
|
||||
// 复制
|
||||
handlecody(){
|
||||
|
||||
},
|
||||
//批量删除
|
||||
handleDel() {
|
||||
|
||||
Reference in New Issue
Block a user