- {{$t('Version')}}
+ {{$t('releaseVersion')}}
@@ -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() {