no message
This commit is contained in:
parent
24683adc2e
commit
ed079b313b
@ -44,7 +44,7 @@
|
||||
<el-image v-if="_isImg(item[fileProps.url])" :src="item[fileProps.url]" fit="contain" lazy></el-image>
|
||||
<div v-else class="item-file item-file-doc">
|
||||
<i v-if="files[_getExt(item[fileProps.url])]" :class="files[_getExt(item[fileProps.url])].icon" :style="{color:files[_getExt(item[fileProps.url])].color}"></i>
|
||||
<i v-else class="sc-icon-file-list-fill" style="color: #999;"></i>
|
||||
<i v-else class="x-icon-file-list-fill" style="color: #999;"></i>
|
||||
</div>
|
||||
</div>
|
||||
<p :title="item[fileProps.fileName]">{{item[fileProps.fileName]}}</p>
|
||||
|
@ -42,27 +42,27 @@ export default {
|
||||
},
|
||||
files: {
|
||||
doc: {
|
||||
icon: 'sc-icon-file-word-2-fill',
|
||||
icon: 'x-icon-file-word-2-fill',
|
||||
color: '#409eff'
|
||||
},
|
||||
docx: {
|
||||
icon: 'sc-icon-file-word-2-fill',
|
||||
icon: 'x-icon-file-word-2-fill',
|
||||
color: '#409eff'
|
||||
},
|
||||
xls: {
|
||||
icon: 'sc-icon-file-excel-2-fill',
|
||||
icon: 'x-icon-file-excel-2-fill',
|
||||
color: '#67C23A'
|
||||
},
|
||||
xlsx: {
|
||||
icon: 'sc-icon-file-excel-2-fill',
|
||||
icon: 'x-icon-file-excel-2-fill',
|
||||
color: '#67C23A'
|
||||
},
|
||||
ppt: {
|
||||
icon: 'sc-icon-file-ppt-2-fill',
|
||||
icon: 'x-icon-file-ppt-2-fill',
|
||||
color: '#F56C6C'
|
||||
},
|
||||
pptx: {
|
||||
icon: 'sc-icon-file-ppt-2-fill',
|
||||
icon: 'x-icon-file-ppt-2-fill',
|
||||
color: '#F56C6C'
|
||||
}
|
||||
}
|
||||
|
@ -291,17 +291,17 @@ export default {
|
||||
{
|
||||
name: '扩展',
|
||||
icons: [
|
||||
'sc-icon-vue',
|
||||
'sc-icon-code',
|
||||
'sc-icon-wechat',
|
||||
'sc-icon-bug-fill',
|
||||
'sc-icon-bug-line',
|
||||
'sc-icon-file-word',
|
||||
'sc-icon-file-excel',
|
||||
'sc-icon-file-ppt',
|
||||
'sc-icon-organization',
|
||||
'sc-icon-upload',
|
||||
'sc-icon-download'
|
||||
'x-icon-vue',
|
||||
'x-icon-code',
|
||||
'x-icon-wechat',
|
||||
'x-icon-bug-fill',
|
||||
'x-icon-bug-line',
|
||||
'x-icon-file-word',
|
||||
'x-icon-file-excel',
|
||||
'x-icon-file-ppt',
|
||||
'x-icon-organization',
|
||||
'x-icon-upload',
|
||||
'x-icon-download'
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -76,9 +76,9 @@ a,button,input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: bo
|
||||
.right-panel-search {display: flex;align-items: center;}
|
||||
.right-panel-search > * + * {margin-left:10px;}
|
||||
|
||||
.adminui-tags {height:34px;background: #fff;border-bottom: 1px solid #e6e6e6;}
|
||||
.adminui-tags {height:35px;background: #fff;border-bottom: 1px solid #e6e6e6;}
|
||||
.adminui-tags ul {display: flex;overflow: hidden;}
|
||||
.adminui-tags li {cursor: pointer;display: inline-block;float: left;height:34px;line-height: 34px;position: relative;flex-shrink: 0;}
|
||||
.adminui-tags li {cursor: pointer;display: inline-block;float: left;height:35px;line-height: 35px;position: relative;flex-shrink: 0;}
|
||||
.adminui-tags li::after {content: " ";width:1px;height:100%;position: absolute;right:0px;background-image: linear-gradient(#fff, #e6e6e6);}
|
||||
.adminui-tags li a {display: inline-block;padding:0 10px;width:100%;height:100%;color: #999;text-decoration:none;display: flex;align-items: center;}
|
||||
.adminui-tags li i {margin-left:10px;border-radius: 3px;width:18px;height:18px;display: flex;align-items: center;justify-content: center;}
|
||||
|
@ -41,4 +41,5 @@
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
|
@ -43,7 +43,7 @@
|
||||
<template v-if="$config.MY_SHOW_LOGIN_OAUTH">
|
||||
<el-divider>{{ $t('login.signInOther') }}</el-divider>
|
||||
<div class="login-oauth">
|
||||
<el-button type="success" icon="sc-icon-wechat" circle @click="wechatLogin"></el-button>
|
||||
<el-button type="success" icon="x-icon-wechat" circle @click="wechatLogin"></el-button>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
@ -7,30 +7,28 @@
|
||||
</el-input>
|
||||
</el-header>
|
||||
<el-main class="nopadding">
|
||||
<el-tree :data="menuList" :expand-on-click-node="false" :filter-node-method="menuFilterNode" :props="menuProps" @node-click="menuClick" @node-drop="nodeDrop" check-strictly="" class="menu" draggable="" highlight-current="" node-key="id" ref="menu" show-checkbox="">
|
||||
<el-tree :data="menuList" :expand-on-click-node="false" :filter-node-method="menuFilterNode" :props="menuProps" @node-click="menuClick" @node-drop="nodeDrop" check-strictly="" class="menu" draggable="" highlight-current="" node-key="id" ref="menu" :show-checkbox="false">
|
||||
<template #default="{node, data}">
|
||||
<span class="custom-tree-node">
|
||||
<span class="label">
|
||||
<el-icon style="margin-right: 2px;">
|
||||
<component :is="data.meta.icon || 'el-icon-menu'">
|
||||
</component>
|
||||
<component :is="data.meta.icon || 'el-icon-menu'"> </component>
|
||||
</el-icon>
|
||||
{{ node.label }}
|
||||
</span>
|
||||
<span class="do" v-if="!data.parentid">
|
||||
<el-button @click.stop="add(node, data)" icon="el-icon-plus" size="small">
|
||||
</el-button>
|
||||
<!-- <el-button @click.stop="add(node, data)" icon="el-icon-plus" size="small"> </el-button> -->
|
||||
</span>
|
||||
</span>
|
||||
</template>
|
||||
</el-tree>
|
||||
</el-main>
|
||||
<el-footer style="height:51px;">
|
||||
<!-- <el-footer style="height:51px;">
|
||||
<el-button @click="add()" icon="el-icon-plus" size="small" type="primary">
|
||||
</el-button>
|
||||
<el-button @click="delMenu" icon="el-icon-delete" plain="" size="small" type="danger">
|
||||
</el-button>
|
||||
</el-footer>
|
||||
</el-footer> -->
|
||||
</el-container>
|
||||
</el-aside>
|
||||
<el-container>
|
||||
|
@ -180,7 +180,7 @@
|
||||
let obj = Object.assign({}, this.form);
|
||||
delete obj.children;
|
||||
|
||||
var res = await this.$http.post('system/menu/submit',obj)
|
||||
var res = await this.$http.post('menu/submit',obj)
|
||||
this.loading = false
|
||||
if(res.code == 200){
|
||||
this.$message.success("保存成功")
|
||||
|
@ -24,7 +24,7 @@
|
||||
},
|
||||
mounted() {
|
||||
for(let icon in scIcons){
|
||||
this.icons.push('sc-icon'+icon.replace(/[A-Z]/g,(match)=>'-'+match.toLowerCase()))
|
||||
this.icons.push('x-icon'+icon.replace(/[A-Z]/g,(match)=>'-'+match.toLowerCase()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,10 +6,10 @@
|
||||
<sc-file-import :apiObj="$api.common.importFile" templateUrl="http://www.scuiadmin/file.xlsx" @success="success"></sc-file-import>
|
||||
<sc-file-import :apiObj="$api.common.importFile" :data="{otherData:'demo'}" templateUrl="http://www.scuiadmin/file.xlsx" accept=".xls, .xlsx" :maxSize="30" tip="请上传小于或等于 30M 的 .xls, .xlsx 格式文件(自定义TIP)" @success="success">
|
||||
<template #default="{open}">
|
||||
<el-button type="primary" icon="sc-icon-upload" @click="open">导入(全配置)</el-button>
|
||||
<el-button type="primary" icon="x-icon-upload" @click="open">导入(全配置)</el-button>
|
||||
</template>
|
||||
<template #uploader>
|
||||
<el-icon class="el-icon--upload"><sc-icon-file-excel /></el-icon>
|
||||
<el-icon class="el-icon--upload"><x-icon-file-excel /></el-icon>
|
||||
<div class="el-upload__text">
|
||||
将文件拖到此处或 <em>点击选择文件上传</em>
|
||||
</div>
|
||||
@ -42,12 +42,12 @@
|
||||
<sc-file-export :apiObj="$api.common.exportFile"></sc-file-export>
|
||||
<sc-file-export :apiObj="$api.common.exportFile" fileName="人员列表(异步)" async>
|
||||
<template #default="{open}">
|
||||
<el-button type="primary" icon="sc-icon-download" @click="open">导出(异步)</el-button>
|
||||
<el-button type="primary" icon="x-icon-download" @click="open">导出(异步)</el-button>
|
||||
</template>
|
||||
</sc-file-export>
|
||||
<sc-file-export :apiObj="$api.common.exportFile" blob fileName="人员列表" :data="{otherData:'demo'}" showData :column="column" :fileTypes="['xlsx','docx','pdf']">
|
||||
<template #default="{open}">
|
||||
<el-button type="primary" icon="sc-icon-download" @click="open">导出(blob文件流)</el-button>
|
||||
<el-button type="primary" icon="x-icon-download" @click="open">导出(blob文件流)</el-button>
|
||||
</template>
|
||||
<template #form="{formData}">
|
||||
<el-form-item label="导出条数">
|
||||
|
8
src/x.js
8
src/x.js
@ -40,7 +40,7 @@ import time from './directives/time'
|
||||
import copy from './directives/copy'
|
||||
import errorHandler from './utils/errorHandler'
|
||||
import * as elIcons from '@element-plus/icons-vue'
|
||||
import * as scIcons from './assets/icons'
|
||||
import * as xIcons from './assets/icons'
|
||||
export default {
|
||||
install(app) {
|
||||
//挂载全局对象
|
||||
@ -86,9 +86,9 @@ export default {
|
||||
for (let icon in elIcons) {
|
||||
app.component(`ElIcon${icon}`, elIcons[icon])
|
||||
}
|
||||
//统一注册sc-icon图标
|
||||
for (let icon in scIcons) {
|
||||
app.component(`ScIcon${icon}`, scIcons[icon])
|
||||
//统一注册x-icon图标
|
||||
for (let icon in xIcons) {
|
||||
app.component(`xIcon${icon}`, xIcons[icon])
|
||||
}
|
||||
//关闭async-validator全局控制台警告
|
||||
window.ASYNC_VALIDATOR_NO_WARNING = 1
|
||||
|
Loading…
Reference in New Issue
Block a user