Browse Source

v1.0 第一版

master
DESKTOP-00SUCB6\Administrator 4 years ago
parent
commit
f892a8f159
  1. 6
      public/config.js
  2. BIN
      public/favicon.ico
  3. 84
      src/router/index.ts
  4. 2
      src/views/login/index.vue
  5. 1
      src/views/systemManage/company/companyDetail.vue
  6. 12
      src/views/systemManage/notice/notice.vue
  7. 58
      src/views/systemManage/notice/noticeDetail.vue

6
public/config.js

@ -5,9 +5,9 @@
// SHOW_URL: "http://www.fatoaniic.com/ftpfile/",
// }
config = {
API_URL: 'http://172.119.51.140:8082',
UPLOAD_URL: "http://172.119.51.140:8082/attachment/uploadOne",
DOWNLOAD_URL: "http://172.119.51.140:8082/api-ftp/ftp/download?filename=",
API_URL: 'http://61.135.192.42:8082',
UPLOAD_URL: "http://61.135.192.42:8082/attachment/uploadOne",
DOWNLOAD_URL: "http://61.135.192.42:8082/api-ftp/ftp/download?filename=",
SHOW_URL: "http://www.fatoaniic.com/ftpfile/",
}

BIN
public/favicon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

84
src/router/index.ts

@ -38,13 +38,7 @@ const routes = [
//一级菜单的路由
{
path: '/',
components: {
default: () => import('@/views/home/home.vue'),
// banner: () => import('@/views/layout/components/banner.vue')
},
name: 'home',
meta: {title: '首页', icon: 'eye', noCache: true},
redirect: '/system/company',
},
{
path: 'editPassword',
@ -60,20 +54,20 @@ const routes = [
hidden: true,
meta: {title: '个人中心', icon: 'eye', noCache: true},
},
{
path: 'register',
component: () => import('@/views/login/register.vue'),
name: 'register',
hidden: true,
meta: {title: '注册', icon: 'eye', noCache: true},
},
{
path: 'retrievePassword',
component: () => import('@/views/login/retrievePassword.vue'),
name: 'retrievePassword',
hidden: true,
meta: {title: '找回密码', icon: 'eye', noCache: true},
},
// {
// path: 'register',
// component: () => import('@/views/login/register.vue'),
// name: 'register',
// hidden: true,
// meta: {title: '注册', icon: 'eye', noCache: true},
// },
// {
// path: 'retrievePassword',
// component: () => import('@/views/login/retrievePassword.vue'),
// name: 'retrievePassword',
// hidden: true,
// meta: {title: '找回密码', icon: 'eye', noCache: true},
// },
//系统管理
{
path: 'system',
@ -82,42 +76,42 @@ const routes = [
redirect: 'noredirect',
meta: {title: '系统管理'},
children: [
{
path: 'menu',
component: () => import('@/views/systemManage/menu.vue'),
name: 'menuManage',
meta: {title: '菜单管理', icon: 'register', noCache: true},
},
// {
// path: 'menu',
// component: () => import('@/views/systemManage/menu.vue'),
// name: 'menuManage',
// meta: {title: '菜单管理', icon: 'register', noCache: true},
// },
{
path: 'user',
component: () => import('@/views/systemManage/user.vue'),
name: 'userManage',
meta: {title: '用户管理', icon: 'register', noCache: true},
},
{
path: 'role',
component: () => import('@/views/systemManage/role.vue'),
name: 'roleManage',
meta: {title: '角色管理', icon: 'register', noCache: true},
},
{
path: 'permission',
component: () => import('@/views/systemManage/permission.vue'),
name: 'permissionManage',
meta: {title: '权限管理', icon: 'register', noCache: true},
},
// {
// path: 'role',
// component: () => import('@/views/systemManage/role.vue'),
// name: 'roleManage',
// meta: {title: '角色管理', icon: 'register', noCache: true},
// },
// {
// path: 'permission',
// component: () => import('@/views/systemManage/permission.vue'),
// name: 'permissionManage',
// meta: {title: '权限管理', icon: 'register', noCache: true},
// },
{
path: 'company',
component: () => import('@/views/systemManage/company/company.vue'),
name: 'companyManage',
meta: {title: '公司管理', icon: 'register', noCache: true},
},
{
path: 'companyExamine',//公司审核新增
component: () => import('@/views/systemManage/company/companyExamine.vue'),
name: 'companyExamine',
meta: {title: '公司审核', icon: 'register', noCache: true},
},
// {
// path: 'companyExamine',//公司审核新增
// component: () => import('@/views/systemManage/company/companyExamine.vue'),
// name: 'companyExamine',
// meta: {title: '公司审核', icon: 'register', noCache: true},
// },
//企业信息的添加or修改
{
path: 'company/companyDetail',

2
src/views/login/index.vue

@ -91,7 +91,7 @@
</el-button>
</el-form>
<div class="login_copyright">
Copyright 2014 顺鑫农业 All Rights Reserved 北京顺鑫农业股份有限公司 版权所有 京ICP备12039862号 京公网安备110113000279号
京ICP备09014127号-2 中国食品工业互联网产业联盟版权所有 技术支持<a target="_bank" href="http://www.fatoan.com/">福通互联</a>
</div>
</div>
</template>

1
src/views/systemManage/company/companyDetail.vue

@ -197,6 +197,7 @@
</template>
<script>
import {getToken} from "@/utils/auth"
import VDistpicker from "v-distpicker";
import {
//

12
src/views/systemManage/notice/notice.vue

@ -82,7 +82,7 @@ export default {
}
},
mounted() {
// this.getNoticeType()
this.getNoticeType()
this.initData()
},
methods: {
@ -109,11 +109,11 @@ export default {
}
})
},
// getNoticeType(){
// getNoticeTypeList().then(res => {
// this.sortType = res.data
// })
// },
getNoticeType(){
getNoticeTypeList().then(res => {
this.sortType = res.data
})
},
//ID
deleteNotice(id) {
this.$confirm('此操作将删除该文章, 是否继续?', '提示', {

58
src/views/systemManage/notice/noticeDetail.vue

@ -51,6 +51,8 @@
:active-value="1"
:inactive-value="0">
</el-switch>
&nbsp;
<span>(如果开启请上传标题图片)</span>
</el-form-item>
<el-form-item label="生效时间:" :label-width="formLabelWidth" prop="issueStartTime">
<el-date-picker
@ -62,13 +64,13 @@
</el-form-item>
<el-form-item label="文章来源:" :label-width="formLabelWidth" prop="source">
<el-input v-model="form.source" autocomplete="off" placeholder="请输入文章来源"></el-input>
<el-input v-model="form.source" autocomplete="off" placeholder="请输入文章来源"></el-input><br><span></span>如需页面显示发布时间与来源信息请输入文章来源
</el-form-item>
<el-form-item label="作者:" :label-width="formLabelWidth" prop="author">
<el-input v-model="form.author" autocomplete="off" placeholder="请输入作者"></el-input>
</el-form-item>
<el-form-item label="文章摘要:" :label-width="formLabelWidth" prop="description">
<el-input type="textarea" v-model="form.description" autocomplete="off" placeholder="请输入文章摘要"></el-input>
<el-input type="textarea" style="width:500px" v-model="form.description" autocomplete="off" placeholder="请输入文章摘要" rows="4" maxlength="125"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -108,7 +110,10 @@ import {ImageDrop} from 'quill-image-drop-module'; //编辑器拖拽
import ImageResize from 'quill-image-resize-module'; //
Quill.register('modules/imageDrop', ImageDrop);
Quill.register('modules/imageResize', ImageResize);
const Font = Quill.import('formats/font');
// We do not add Aref Ruqaa since it is the default
Font.whitelist =['Arial', 'serif', 'sans-serif', '宋体', '黑体', '微软雅黑'];
Quill.register(Font, true);
import {addNoticeInfo, getNoticeInfo, editNoticeInfo,getNoticeTypeList} from "@/api/notice"
import { getToken } from '@/utils/auth'
export default {
@ -187,10 +192,10 @@ export default {
[{'size': ['small', false, 'large', 'huge']}], //
[{'header': [1, 2, 3, 4, 5, 6, false]}], //
[{'color': []}, {'background': []}], //
[{'font': []}], //
[{'font': ['Arial', 'serif', 'sans-serif', '宋体', '黑体', '微软雅黑']}], //
[{'align': []}], //
['clean'], //
['image', 'video'] //
['link','image', 'video','upload'] //
],
handlers: {
//image
@ -257,8 +262,8 @@ export default {
//
let length = quill.getSelection().index;
// res
let picUrl = 'http://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg'
quill.insertEmbed(length, 'image', picUrl)
// let picUrl = 'http://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg'
quill.insertEmbed(length, 'image', res.data)
//
quill.setSelection(length + 1)
} else {
@ -376,4 +381,43 @@ export default {
.edui-default .edui-toolbar {
line-height: 20px;
}
.ql-container.ql-snow {
height: 700px;
}
</style>
<style lang="scss">
.quill-editor {
/*工具栏内用*/
.ql-font {
span[data-value="Arial"]::before {
content: "Arial" !important;
font-family: "Arial";
}
span[data-value="宋体"]::before {
content: "宋体" !important;
font-family: "宋体";
}
span[data-value="黑体"]::before {
content: "黑体" !important;
font-family: "黑体";
}
span[data-value="微软雅黑"]::before {
content: "微软雅黑" !important;
font-family: "微软雅黑";
}
}
/*编辑器内容用*/
.ql-font-Arial {
font-family: "Arial";
}
.ql-font-宋体 {
font-family: "宋体";
}
.ql-font-黑体 {
font-family: "黑体";
}
.ql-font-微软雅黑 {
font-family: "微软雅黑";
}
}
</style>

Loading…
Cancel
Save