Commit e515b59c authored by 张俊's avatar 张俊

Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev

parents f4edde82 f3fbbb84
...@@ -575,7 +575,7 @@ width: 620px!important; ...@@ -575,7 +575,7 @@ width: 620px!important;
color: #830f53; color: #830f53;
} }
.apass_table .row_action .btn.disabled { .apass_table .row_action .btn.disabled {
color: #dde4ff; color: #999;
cursor: not-allowed; cursor: not-allowed;
} }
.apass_table .row_action .interval_line { .apass_table .row_action .interval_line {
......
...@@ -12,12 +12,20 @@ ...@@ -12,12 +12,20 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="item.type === 'buttons'" class="row_action"> <div v-if="item.type === 'buttons'" class="row_action">
<template v-for="(v, i) in item.actionList"> <template v-for="(v, i) in item.actionList">
<span
v-if="v.disabledRule && v.disabledRule(scope.row)"
class="btn disabled"
:key="'btn_' + index + '_' + i"
v-text="v.label"
>
</span>
<a <a
v-else
class="btn" class="btn"
:class="{ warn: v.label === '删除' }" :class="v.class || ''"
:key="'btn_' + index + '_' + i" :key="'btn_' + index + '_' + i"
@click="v.callback && v.callback(scope.row)" @click="v.callback && v.callback(scope.row)"
v-text="v.label" v-text="v.getLabel ? v.getLabel(scope.row) : v.label"
> >
</a> </a>
<span <span
...@@ -35,7 +43,12 @@ ...@@ -35,7 +43,12 @@
@click="item.callback && item.callback(scope.row)" @click="item.callback && item.callback(scope.row)"
></a> ></a>
</div> </div>
<span v-else v-text="scope.row[item.prop]"></span> <span
v-else
v-text="
item.getText ? item.getText(scope.row) : scope.row[item.prop]
"
></span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<a <a
:class="{ current: isCurrentFilter(item.prop, v) }" :class="{ current: isCurrentFilter(item.prop, v) }"
@click.prevent="selectFilter(item.prop, v)" @click.prevent="selectFilter(item.prop, v)"
v-text="v" v-text="v.name"
></a> ></a>
</li> </li>
......
This diff is collapsed.
...@@ -7,9 +7,9 @@ const store = new Vuex.Store({ ...@@ -7,9 +7,9 @@ const store = new Vuex.Store({
role: 2, // 0:普通用户,1:组织管理员,2:超级管理员 role: 2, // 0:普通用户,1:组织管理员,2:超级管理员
serviceShopMenu: "/shop/data_service_list", // 服务超市侧边栏 serviceShopMenu: "/shop/data_service_list", // 服务超市侧边栏
fwglNav: [ fwglNav: [
["注册发布的服务", "申请的服务", "云资源服务"], // 普通用户 ["注册发布的服务", "申请的服务" /* , "云资源服务" */], // 普通用户
["组织服务管理", "服务审批管理", "云资源管理"], // 组织管理员 ["组织服务管理", "服务审批管理" /* , "云资源管理" */], // 组织管理员
["平台服务管理", "服务审批管理", "云资源管理"], // 超级管理员 ["平台服务管理", "服务审批管理" /* , "云资源管理" */], // 超级管理员
], // 服务管理列表,onlyRead ], // 服务管理列表,onlyRead
yyglNav: [ yyglNav: [
["应用仓库", "我部署的应用", "申请的应用", "审批的应用"], // 普通用户 ["应用仓库", "我部署的应用", "申请的应用", "审批的应用"], // 普通用户
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment