上饶市警务平台后台管理前端
zengh
2022-11-25 345ab523c6cc87014e910bc8aa6cc0a1d39c7f5b
样式修改/权限控制
9 files modified
77 ■■■■■ changed files
public/index.html 10 ●●●● patch | view | raw | blame | history
src/config/website.js 8 ●●●● patch | view | raw | blame | history
src/lang/zh.js 4 ●●●● patch | view | raw | blame | history
src/mock/menu.js 2 ●●● patch | view | raw | blame | history
src/page/index/top/top-menu.vue 13 ●●●● patch | view | raw | blame | history
src/page/login/index.vue 6 ●●●● patch | view | raw | blame | history
src/router/page/index.js 2 ●●● patch | view | raw | blame | history
src/router/views/index.js 13 ●●●●● patch | view | raw | blame | history
src/views/system/user.vue 19 ●●●●● patch | view | raw | blame | history
public/index.html
@@ -19,7 +19,7 @@
  <script src="<%= BASE_URL %>cdn/xlsx/FileSaver.min.js"></script>
  <script src="<%= BASE_URL %>cdn/xlsx/xlsx.full.min.js"></script>
  <link rel="icon" href="<%= BASE_URL %>icon.png">
  <title>Saber企业平台</title>
  <title>社区警务平台运维</title>
  <style>
    html,
    body,
@@ -95,10 +95,10 @@
        初次加载资源可能需要较多时间 请耐心等待
      </div>
    </div>
    <div class="avue-home__footer">
      <a href="https://bladex.vip" target="_blank">
        https://bladex.vip </a>
    </div>
<!--    <div class="avue-home__footer">-->
<!--      <a href="https://bladex.vip" target="_blank">-->
<!--        https://bladex.vip </a>-->
<!--    </div>-->
  </div>
</div>
<!-- built files will be auto injected -->
src/config/website.js
@@ -5,7 +5,7 @@
  title: "saber",
  logo: "S",
  key: 'saber',//配置主键,目前用于存储
  indexTitle: '上饶市警务平台后台管理',
  indexTitle: '社区警务平台运维',
  clientId: 'saber', // 客户端id
  clientSecret: 'saber_secret', // 客户端密钥
  tenantMode: false, // 是否开启租户模式
@@ -18,10 +18,10 @@
  //http的status默认放行列表
  statusWhiteList: [],
  //配置首页不可关闭
  isFirstPage: false,
  isFirstPage: true,
  fistPage: {
    label: "首页",
    value: "/wel/index",
    label: "安保活动管理",
    value: "/security/security",
    params: {},
    query: {},
    meta: {
src/lang/zh.js
@@ -1,5 +1,5 @@
export default {
  title: '上饶市警务平台后台管理',
  title: '社区警务平台运维',
  logoutTip: '退出系统, 是否继续?',
  submitText: '确定',
  cancelText: '取消',
@@ -78,7 +78,7 @@
  },
  login: {
    title: '登录 ',
    info: '上饶市警务平台后台管理',
    info: '社区警务平台运维',
    tenantId: '请输入租户ID',
    username: '请输入账号',
    password: '请输入密码',
src/mock/menu.js
@@ -2,7 +2,7 @@
const top = [{
  label: "首页",
  path: "/wel/index",
  path: "/security/security",
  icon: 'el-icon-menu',
  meta: {
    i18n: 'dashboard',
src/page/index/top/top-menu.vue
@@ -3,12 +3,13 @@
    <el-menu :default-active="activeIndex"
             mode="horizontal"
             text-color="#333">
      <el-menu-item index="0" @click.native="openHome(itemHome)" key="0">
        <template slot="title">
          <i :class="itemHome.source"></i>
          <span>{{generateTitle(itemHome)}}</span>
        </template>
      </el-menu-item>
<!--      首页注释-->
<!--      <el-menu-item index="0" @click.native="openHome(itemHome)" key="0">-->
<!--        <template slot="title">-->
<!--          <i :class="itemHome.source"></i>-->
<!--          <span>{{generateTitle(itemHome)}}</span>-->
<!--        </template>-->
<!--      </el-menu-item>-->
      <template v-for="(item,index) in items">
        <el-menu-item :index="item.id+''" @click.native="openMenu(item)" :key="index">
          <template slot="title">
src/page/login/index.vue
@@ -42,12 +42,12 @@
          <userLogin v-if="activeName==='user'"></userLogin>
          <codeLogin v-else-if="activeName==='code'"></codeLogin>
          <thirdLogin v-else-if="activeName==='third'"></thirdLogin>
          <div class="login-menu">
          <!--<div class="login-menu">
            <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a>
            <!--<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>-->
            &lt;!&ndash;<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>&ndash;&gt;
            <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a>
            <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a>
          </div>
          </div>-->
        </div>
      </div>
src/router/page/index.js
@@ -59,7 +59,7 @@
  {
    path: '/',
    name: '主页',
    redirect: '/wel'
    redirect: '/security'
  },
  {
    path: '/myiframe',
src/router/views/index.js
@@ -22,6 +22,19 @@
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  }]
},{
  path: '/security',
  component: Layout,
  redirect: '/security/security',
  children: [{
    path: 'security',
    name: '安保活动管理',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/security/security')
  }]
}, {
  path: '/test',
  component: Layout,
src/views/system/user.vue
@@ -288,7 +288,8 @@
              label: "所属租户",
              prop: "tenantName",
              slot: true,
              display: false
              display: false,
              hide: true
            },
            {
              label: "用户姓名",
@@ -303,7 +304,7 @@
              display: false
            },
            {
              label: "所属部门",
              label: "所属单位",
              prop: "deptName",
              slot: true,
              display: false
@@ -506,7 +507,7 @@
                  }]
                },
                {
                  label: "所属部门",
                  label: "所属单位",
                  prop: "deptId",
                  type: "tree",
                  multiple: true,
@@ -518,11 +519,11 @@
                  slot: true,
                  rules: [{
                    required: true,
                    message: "请选择所属部门",
                    message: "请选择所属单位",
                    trigger: "click"
                  }]
                },
                {
/*                {
                  label: "所属岗位",
                  prop: "postId",
                  type: "tree",
@@ -537,7 +538,7 @@
                    message: "请选择所属岗位",
                    trigger: "click"
                  }],
                },
                },*/
              ]
            },
          ]
@@ -747,7 +748,8 @@
      rowSave(row, done, loading) {
        row.deptId = row.deptId.join(",");
        row.roleId = row.roleId.join(",");
        row.postId = row.postId.join(",");
        // row.postId = row.postId.join(",");
        row.postId = '';
        add(row).then(() => {
          this.initFlag = false;
          this.onLoad(this.page);
@@ -764,7 +766,8 @@
      rowUpdate(row, index, done, loading) {
        row.deptId = row.deptId.join(",");
        row.roleId = row.roleId.join(",");
        row.postId = row.postId.join(",");
        // row.postId = row.postId.join(",");
        row.postId = '';
        update(row).then(() => {
          this.initFlag = false;
          this.onLoad(this.page);