Commit e27d5869 by liuchenxi

update: 权限埋点

parent 4a5e0bf8
......@@ -28,7 +28,9 @@ Vue.config.devtools = process.env.NODE_ENV !== 'production';
// 全局引入filter
Object.keys(filters).forEach(item => Vue.filter(item, filters[item]));
new Vue({
router,
render: h => h(App)
}).$mount('#app');
window.getLimit(router, 'gic-marketing-operation').then(() => {
new Vue({
router,
render: h => h(App)
}).$mount('#app');
});
......@@ -45,7 +45,7 @@
<span class="tip">短信AppID由系统自动匹配</span>
</el-form-item>
<el-form-item label="">
<el-button type="primary" style="margin-top: 30px" @click="submit">保存</el-button>
<el-button v-if="$getButtonLimit($buttonCode.saveTemplate)" :limit-code="$buttonCode.saveTemplate" type="primary" style="margin-top: 30px" @click="submit">保存</el-button>
</el-form-item>
</el-form>
<more-tip-dialog title="提示详情" :type="form.smsSignId" :visible.sync="dialogVisible"/>
......
......@@ -17,7 +17,7 @@
</el-select>
</div>
<div class="right">
<el-button type="primary" @click="submitExamine" :disabled="!tableData.data.length">全量提交审核</el-button>
<el-button v-if="$getButtonLimit($buttonCode.submitVerify)" :limit-code="$buttonCode.submitVerify" type="primary" @click="submitExamine" :disabled="!tableData.data.length">全量提交审核</el-button>
</div>
</div>
<div class="content mt20">
......
......@@ -16,7 +16,7 @@
</el-table-column>
<el-table-column label="操作">
<template slot-scope="{ row }">
<el-button type="text" @click="toDetail(row)">详情</el-button>
<el-button v-if="$getButtonLimit($buttonCode.templateDetail)" :limit-code="$buttonCode.templateDetail" type="text" @click="toDetail(row)">详情</el-button>
</template>
</el-table-column>
</el-table>
......
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