按钮添加(未实现)

This commit is contained in:
Wenchao Gong 2021-09-09 23:42:56 +08:00
parent ec36b7a5c4
commit e04a4526ce
3 changed files with 36 additions and 21 deletions

View File

@ -25,10 +25,7 @@ import com.ruoyi.isc.service.IIscServiceService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;
import java.util.stream.Collectors;
/**
@ -46,7 +43,9 @@ public class IscServiceServiceImpl extends ServicePlusImpl<IscServiceMapper, Isc
@Override
public IscServiceVo queryById(Long serviceId)
{
return getVoById(serviceId);
final IscServiceVo vo = getVoById(serviceId);
genVoInfo(Arrays.asList(vo));
return vo;
}
@Override

View File

@ -123,6 +123,13 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-info"
@click="handleRenewal(scope.row)"
v-hasPermi="['isc:appservice:query']"
>查看</el-button>
<el-button
size="mini"
type="text"

View File

@ -71,6 +71,17 @@
v-hasPermi="['isc:service:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-view"
size="mini"
:disabled="multiple"
@click="handleUpdate"
v-hasPermi="['isc:service:audit']"
>批量审核</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
@ -124,6 +135,20 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-info"
@click="handleUpdate(scope.row)"
v-hasPermi="['isc:service:query']"
>查看</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleUpdate(scope.row)"
v-hasPermi="['isc:service:audit']"
>审核</el-button>
<el-button
size="mini"
type="text"
@ -317,22 +342,6 @@ export default {
this.loading = false;
});
},
//
corsFlagFormat(row, column) {
return this.selectDictLabel(this.corsFlagOptions, row.corsFlag);
},
// 线
onlineStatusFormat(row, column) {
return this.selectDictLabel(this.onlineStatusOptions, row.onlineStatus);
},
//
statusFormat(row, column) {
return this.selectDictLabel(this.statusOptions, row.status);
},
//
enabledFormat(row, column) {
return this.selectDictLabel(this.enabledOptions, row.enabled);
},
//
cancel() {
this.open = false;