Skip to content

Commit

Permalink
style:格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Air-Cooled committed Jul 29, 2021
1 parent 0e85735 commit 51c1e77
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 119 deletions.
1 change: 1 addition & 0 deletions src/components/FlatTree/index.vue
Expand Up @@ -242,6 +242,7 @@ export default {
// setData is required for draggable to work in FireFox
// the content has to be '' so dragging a node out of the tree won't open a new tab in FireFox
event.dataTransfer.setData('text/plain', '')
// eslint-disable-next-line no-empty
} catch (e) { }
dragState.draggingNode = treeNode
this.$emit('node-drag-start', treeNode.node, event)
Expand Down
24 changes: 12 additions & 12 deletions src/components/diboot/components/richText/RichRender.vue
@@ -1,18 +1,18 @@
<template>
<div v-html="content"></div>
<div v-html="content" />
</template>
<script>
export default {
name: 'RichRender',
model: {
prop: 'content',
event: 'change'
},
props: {
content: {
type: String,
default: ''
}
export default {
name: 'RichRender',
model: {
prop: 'content',
event: 'change'
},
props: {
content: {
type: String,
default: ''
}
}
}
</script>
4 changes: 2 additions & 2 deletions src/views/dashboard/index.vue
Expand Up @@ -7,8 +7,8 @@
<div class="title">
<a :href="item.titleUrl" target="_blank" style="color: #1585ff">{{ index + 1 + '.' + item.title }}</a>
</div>
<div class="description" v-if="item.description">
<p>{{item.description}}</p>
<div v-if="item.description" class="description">
<p>{{ item.description }}</p>
</div>
</li>
</ul>
Expand Down
Expand Up @@ -2,7 +2,7 @@
<div class="correct-permission">
<span> {{ permissionItem.displayName }}</span>
<ul class="ul-wrapper">
<li v-for="(api, index) in permissionItem.apiSetList" :key="`${_uid}_${index}`">
<li v-for="(api, index) in permissionItem.apiSetList" :key="`${_uid}_${index}`">
<template v-if="permissionItem.invalidApiSetList.includes(api)">
<error-api
:api="api"
Expand Down
Expand Up @@ -2,7 +2,7 @@
<div class="errorApi">
<div class="error-container">
<span class="error-api">{{ api }}</span>
<i v-if="!isOperate" class="el-icon-edit edit" title="选取替换" @click="() => isOperate = !isOperate"></i>
<i v-if="!isOperate" class="el-icon-edit edit" title="选取替换" @click="() => isOperate = !isOperate" />
<span v-if="isOperate" class="edit finished" @click="handleUpdate">完成</span>
<span v-if="isOperate" class="edit" @click="handleCancel">取消</span>
</div>
Expand Down
44 changes: 22 additions & 22 deletions src/views/system/iamResourcePermission/correct/index.vue
@@ -1,28 +1,28 @@
<template>
<el-dialog
title="权限纠错"
:visible.sync="visible"
v-loading="loading"
:fullscreen="fullscreen"
class="frontend-permission-form"
:custom-class="!fullscreen ? 'custom-height': 'custom-fullscreen'"
:show-close="true"
@close="close"
>
<div v-if="diffDataIdList.length > 0" :key="refresh">
<div class="color-tip">仅检索已配置的无效权限接口。<span class="red" />表示权限接口不存在,需要调整;<span class="blue" />表示权限接口存在</div>
<div class="operate">
<el-button type="danger" size="mini" @click="handleBatchDelete">全部删除</el-button>
</div>
<div v-for="(item, index) in diffDataList" :key="`${_uid}_${index}`">
<h4>{{ item.parentDisplayName }}</h4>
<correct-permission-item :permission-item="item" :api-tree-list="apiTreeList" @refresh="handleRefresh" />
</div>
<el-dialog
v-loading="loading"
title="权限纠错"
:visible.sync="visible"
:fullscreen="fullscreen"
class="frontend-permission-form"
:custom-class="!fullscreen ? 'custom-height': 'custom-fullscreen'"
:show-close="true"
@close="close"
>
<div v-if="diffDataIdList.length > 0" :key="refresh">
<div class="color-tip">仅检索已配置的无效权限接口。<span class="red" />表示权限接口不存在,需要调整;<span class="blue" />表示权限接口存在</div>
<div class="operate">
<el-button type="danger" size="mini" @click="handleBatchDelete">全部删除</el-button>
</div>
<div v-else class="empty">
已配置的权限接口均有效,无需调整。
<div v-for="(item, index) in diffDataList" :key="`${_uid}_${index}`">
<h4>{{ item.parentDisplayName }}</h4>
<correct-permission-item :permission-item="item" :api-tree-list="apiTreeList" @refresh="handleRefresh" />
</div>
</el-dialog>
</div>
<div v-else class="empty">
已配置的权限接口均有效,无需调整。
</div>
</el-dialog>
</template>

<script>
Expand Down
162 changes: 81 additions & 81 deletions src/views/system/messageTemplate/form.vue
@@ -1,86 +1,86 @@
<template>
<el-dialog
:visible.sync="state.visible"
:fullscreen="fullscreen"
:custom-class="!fullscreen ? 'custom-height': 'custom-fullscreen'"
:show-close="false"
>
<el-row slot="title" type="flex">
<el-col :span="20">{{ title }}</el-col>
<el-col :span="4" style="text-align: right">
<svg-icon
:icon-class="!fullscreen ? 'fullscreen': 'exit-fullscreen'"
style="cursor: pointer; margin-right: 10px"
@click="() => {fullscreen = !fullscreen}"
/>
<i class="el-icon-close" style="cursor: pointer" @click="close" />
</el-col>
</el-row>
<el-dialog
:visible.sync="state.visible"
:fullscreen="fullscreen"
:custom-class="!fullscreen ? 'custom-height': 'custom-fullscreen'"
:show-close="false"
>
<el-row slot="title" type="flex">
<el-col :span="20">{{ title }}</el-col>
<el-col :span="4" style="text-align: right">
<svg-icon
:icon-class="!fullscreen ? 'fullscreen': 'exit-fullscreen'"
style="cursor: pointer; margin-right: 10px"
@click="() => {fullscreen = !fullscreen}"
/>
<i class="el-icon-close" style="cursor: pointer" @click="close" />
</el-col>
</el-row>

<el-form ref="dataForm" :model="form" label-position="top" label-width="100px" :rules="rules">
<el-row :gutter="18">
<el-col :span="24">
<el-form-item
label="模版编码"
prop="code"
>
<el-input
placeholder="请输入模版编码"
v-model="form.code"
/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="模版标题"
prop="title"
>
<el-input
placeholder="请输入模版标题"
v-model="form.title"
/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="模版内容"
prop="content"
>
<template slot="label">
<span>模版内容
<el-tooltip class="item" effect="dark" placement="right-start">
<template slot="content">
变量语法:${变量名称}<br>
例:<br>
你好:${用户名},<br>
你的手机号是:${手机号},<br>
你的邮箱是:${邮箱}!<br>
注:<br>
变量表示该值会根据场景动态变化!
</template>
<i class="el-icon-question" style="cursor: pointer"></i>
</el-tooltip>
</span>
<div class="variable-container">
<el-tag @click="handleInsertIntoContent(item)" class="variable-tag" v-for="(item, index) in more.templateTemplateVariableList" :key="index">
{{item}}
</el-tag>
</div>
<el-form ref="dataForm" :model="form" label-position="top" label-width="100px" :rules="rules">
<el-row :gutter="18">
<el-col :span="24">
<el-form-item
label="模版编码"
prop="code"
>
<el-input
v-model="form.code"
placeholder="请输入模版编码"
/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="模版标题"
prop="title"
>
<el-input
v-model="form.title"
placeholder="请输入模版标题"
/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="模版内容"
prop="content"
>
<template slot="label">
<span>模版内容
<el-tooltip class="item" effect="dark" placement="right-start">
<template slot="content">
变量语法:${变量名称}<br>
例:<br>
你好:${用户名},<br>
你的手机号是:${手机号},<br>
你的邮箱是:${邮箱}!<br>
注:<br>
变量表示该值会根据场景动态变化!
</template>
<el-input type="textarea" placeholder="请输入模版内容" v-model="form.content" id="content"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="close">
取消
</el-button>
<el-button type="primary" :loading="state.confirmSubmit" :disabled="state.confirmSubmit" @click="onSubmit">
确定
</el-button>
</div>
</el-dialog>
<i class="el-icon-question" style="cursor: pointer" />
</el-tooltip>
</span>
<div class="variable-container">
<el-tag v-for="(item, index) in more.templateTemplateVariableList" :key="index" class="variable-tag" @click="handleInsertIntoContent(item)">
{{ item }}
</el-tag>
</div>
</template>
<el-input id="content" v-model="form.content" type="textarea" placeholder="请输入模版内容" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="close">
取消
</el-button>
<el-button type="primary" :loading="state.confirmSubmit" :disabled="state.confirmSubmit" @click="onSubmit">
确定
</el-button>
</div>
</el-dialog>
</template>

<script>
Expand All @@ -103,7 +103,7 @@ export default {
],
title: [
{
required: true, message: '模版标题不能为空', trigger: 'blur', whitespace: true,
required: true, message: '模版标题不能为空', trigger: 'blur', whitespace: true
}
],
code: [
Expand Down

0 comments on commit 51c1e77

Please sign in to comment.