[参数项列表] 发布
This commit is contained in:
@@ -55,9 +55,9 @@
|
|||||||
<div class="operator-text" v-has="'document:importZip'">
|
<div class="operator-text" v-has="'document:importZip'">
|
||||||
<ImportFile :url="url" :isTrue="false" :accept="'.zip'" :paramsTemplateId='this.$route.query.id'/>
|
<ImportFile :url="url" :isTrue="false" :accept="'.zip'" :paramsTemplateId='this.$route.query.id'/>
|
||||||
</div>
|
</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"/>
|
<a-icon type="rocket"/>
|
||||||
{{$t('Version')}}
|
{{$t('releaseVersion')}}
|
||||||
</div>
|
</div>
|
||||||
<div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'">
|
<div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'">
|
||||||
<a-icon type="delete"/>
|
<a-icon type="delete"/>
|
||||||
@@ -199,17 +199,43 @@ export default {
|
|||||||
paramsTemplateId: this.$route.query.id,
|
paramsTemplateId: this.$route.query.id,
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
ids: this.selectedRowKeys.join(','),
|
ids: this.selectedRowKeys.join(','),
|
||||||
// exportName: '参数项列表.xlsx'
|
|
||||||
}
|
}
|
||||||
let _xx = JSON.stringify(_tt)
|
let _xx = JSON.stringify(_tt)
|
||||||
let _yy = {
|
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]) + '&'
|
||||||
}
|
}
|
||||||
downloadFile('params/paramsInfo/exportParamsInfoZip', '参数项列表.zip', { paramsInfoVO : _xx }, this.Deselect)
|
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() {
|
handleModule() {
|
||||||
downloadFile('params/paramsInfo/exportTemplate', '参数项列表.xls', {})
|
downloadFile('params/paramsInfo/exportTemplate', '参数项列表.xlsx', {})
|
||||||
},
|
},
|
||||||
handleToggleSearch() {
|
handleToggleSearch() {
|
||||||
this.toggleSearchStatus = !this.toggleSearchStatus
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||||
@@ -221,10 +247,6 @@ export default {
|
|||||||
//添加
|
//添加
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.$refs.addModelRef.addModel()
|
this.$refs.addModelRef.addModel()
|
||||||
},
|
|
||||||
// 复制
|
|
||||||
handlecody(){
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//批量删除
|
//批量删除
|
||||||
handleDel() {
|
handleDel() {
|
||||||
|
|||||||
Reference in New Issue
Block a user