代码提交

master
sunjianxi 2 years ago
parent 4528a2d677
commit b9a969ef12
  1. 4
      src/main/java/net/mingsoft/cms/biz/IDutyStandbyBiz.java
  2. 2
      src/main/java/net/mingsoft/cms/biz/IPhoneContactsBiz.java
  3. 6
      src/main/java/net/mingsoft/cms/dao/IDutyStandbyDao.java
  4. 30
      src/main/java/net/mingsoft/cms/dao/IDutyStandbyDao.xml
  5. 2
      src/main/java/net/mingsoft/cms/dao/IPhoneContactsDao.java
  6. 28
      src/main/java/net/mingsoft/cms/dao/IPhoneContactsDao.xml
  7. 41
      src/main/java/net/mingsoft/cms/excel/DutyStandbyExcel.java
  8. 3
      src/main/java/net/mingsoft/statistics/dao/IPublishListDao.xml
  9. 849
      src/main/webapp/WEB-INF/manager/index.ftl
  10. 4
      src/main/webapp/WEB-INF/manager/statistics/publish-list/index.ftl
  11. 40
      src/main/webapp/template/1/default/css/index.css
  12. 271
      src/main/webapp/template/1/default/index.htm

@ -26,6 +26,8 @@ import net.mingsoft.base.biz.IBaseBiz;
import net.mingsoft.cms.entity.DutyStandbyEntity;
import net.mingsoft.cms.entity.PhoneContactsEntity;
import java.util.List;
/**
* 分类业务
@ -37,4 +39,6 @@ public interface IDutyStandbyBiz extends IBaseBiz<DutyStandbyEntity> {
void deleteByEntity(DutyStandbyEntity entity);
void deleteByContentIds(List<String> contentIds);
}

@ -37,5 +37,5 @@ import java.util.List;
*/
public interface IPhoneContactsBiz extends IBaseBiz<PhoneContactsEntity> {
List<String> getDept();
}

@ -25,8 +25,11 @@ package net.mingsoft.cms.dao;
import net.mingsoft.base.dao.IBaseDao;
import net.mingsoft.cms.entity.DutyStandbyEntity;
import net.mingsoft.cms.entity.PhoneContactsEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* 分类持久层
* @author 铭飞开发团队
@ -37,4 +40,7 @@ import org.springframework.stereotype.Component;
public interface IDutyStandbyDao extends IBaseDao<DutyStandbyEntity> {
void deleteByEntity(DutyStandbyEntity entity);
void deleteByContentIds(@Param("contentIds") List<String> contentIds);
}

@ -6,9 +6,8 @@
<id column="id" property="id" /><!--编号 -->
<result column="duty_date" property="dutyDate" /><!--值班日期 -->
<result column="monitor" property="monitor" /><!--带班长 -->
<result column="deputy_monitor" property="deputyMonitor" /><!--副带班长 -->
<result column="operator" property="operator" /><!--守机员 -->
<result column="duty_person" property="dutyPerson" /><!--值班人员 -->
<result column="police_duty" property="policeDuty" /><!--民警值班员 -->
<result column="auxiliary_police_duty" property="auxiliaryPoliceDuty" /><!--辅警值班员 -->
<result column="bl_duty_person" property="blDutyPerson" /><!--北岭值班人员 -->
<result column="create_by" property="createBy" /><!--创建人 -->
<result column="create_date" property="createDate" /><!--创建时间 -->
@ -24,9 +23,8 @@
<set>
<if test="dutyDate != null and dutyDate != ''">duty_date=#{dutyDate},</if>
<if test="monitor != null and monitor != ''">monitor=#{monitor},</if>
<if test="deputyMonitor != null and deputyMonitor != ''">deputy_monitor=#{deputyMonitor},</if>
<if test="operator != null and operator != ''">operator=#{operator},</if>
<if test="dutyPerson != null and dutyPerson != ''">duty_person=#{dutyPerson},</if>
<if test="policeDuty != null and policeDuty != ''">police_duty=#{policeDuty},</if>
<if test="auxiliaryPoliceDuty != null and auxiliaryPoliceDuty != ''">auxiliary_police_duty=#{auxiliaryPoliceDuty},</if>
<if test="blDutyPerson != null and blDutyPerson != ''">bl_duty_person=#{blDutyPerson},</if>
<if test="createBy &gt; 0">create_by=#{createBy},</if>
<if test="createDate != null">create_date=#{createDate},</if>
@ -48,9 +46,8 @@
<where>
<if test="dutyDate != null and dutyDate != ''">and duty_date=#{dutyDate}</if>
<if test="monitor != null and monitor != ''">and monitor=#{monitor}</if>
<if test="deputyMonitor != null and deputyMonitor != ''">and deputy_monitor=#{deputyMonitor}</if>
<if test="operator != null and operator != ''">and operator=#{operator}</if>
<if test="dutyPerson != null and dutyPerson != ''">and duty_person=#{dutyPerson}</if>
<if test="policeDuty != null and policeDuty != ''">and police_duty=#{policeDuty}</if>
<if test="auxiliaryPoliceDuty != null and auxiliaryPoliceDuty != ''">and auxiliary_police_duty=#{auxiliaryPoliceDuty}</if>
<if test="blDutyPerson != null and blDutyPerson != ''">and bl_duty_person=#{blDutyPerson}</if>
<if test="createBy &gt; 0"> and create_by=#{createBy} </if>
<if test="createDate != null"> and create_date=#{createDate} </if>
@ -90,10 +87,11 @@
<where>
<if test="dutyDate != null and dutyDate != ''">and duty_date=#{dutyDate}</if>
<if test="monitor != null and monitor != ''">and monitor=#{monitor}</if>
<if test="deputyMonitor != null and deputyMonitor != ''">and deputy_monitor=#{deputyMonitor}</if>
<if test="operator != null and operator != ''">and operator=#{operator}</if>
<if test="dutyPerson != null and dutyPerson != ''">and duty_person=#{dutyPerson}</if>
<if test="policeDuty != null and policeDuty != ''">and police_duty=#{policeDuty}</if>
<if test="auxiliaryPoliceDuty != null and auxiliaryPoliceDuty != ''">and auxiliary_police_duty=#{auxiliaryPoliceDuty}</if>
<if test="blDutyPerson != null and blDutyPerson != ''">and bl_duty_person=#{blDutyPerson}</if>
<if test="contentId != null and contentId != ''">and content_id=#{contentId}</if>
<if test="filePath != null and filePath != ''">and file_path=#{filePath}</if>
<if test="createBy &gt; 0"> and create_by=#{createBy} </if>
<if test="createDate != null"> and create_date=#{createDate} </if>
<if test="updateBy &gt; 0"> and update_by=#{updateBy} </if>
@ -103,4 +101,12 @@
</where>
</select>
<delete id="deleteByContentIds" parameterType="String">
delete from duty_standby
<where>
content_id in <foreach collection="contentIds" item="item" index="index"
open="(" separator="," close=")">#{item}</foreach>
</where>
</delete>
</mapper>

@ -38,5 +38,5 @@ import java.util.List;
@Component("phoneContactsDao")
public interface IPhoneContactsDao extends IBaseDao<PhoneContactsEntity> {
List<String> getDept();
}

@ -5,7 +5,11 @@
<resultMap id="resultMap" type="net.mingsoft.cms.entity.PhoneContactsEntity">
<id column="id" property="id" /><!--编号 -->
<result column="name" property="name" /><!--姓名 -->
<result column="phone" property="phone" /><!--手机号 -->
<result column="post_name" property="postName" /><!--职务 -->
<result column="office_phone" property="officePhone" /><!--办公电话 -->
<result column="mobile_phone" property="mobilePhone" /><!--移动电话 -->
<result column="room_num" property="roomNum" /><!--房号 -->
<result column="dept_name" property="deptName" /><!--部门 -->
<result column="create_by" property="createBy" /><!--创建人 -->
<result column="create_date" property="createDate" /><!--创建时间 -->
<result column="update_by" property="updateBy" /><!--修改人 -->
@ -19,7 +23,11 @@
update phone_contacts
<set>
<if test="name != null and name != ''">name=#{name},</if>
<if test="phone != null and phone != ''">phone=#{phone},</if>
<if test="postName != null and postName != ''">post_name=#{postName},</if>
<if test="officePhone != null and officePhone != ''">office_phone=#{officePhone},</if>
<if test="mobilePhone != null and mobilePhone != ''">mobile_phone=#{mobilePhone},</if>
<if test="roomNum != null and roomNum != ''">room_num=#{roomNum},</if>
<if test="deptName != null and deptName != ''">dept_name=#{deptName},</if>
<if test="createBy &gt; 0">create_by=#{createBy},</if>
<if test="createDate != null">create_date=#{createDate},</if>
<if test="updateBy &gt; 0">update_by=#{updateBy},</if>
@ -39,7 +47,11 @@
select * from phone_contacts
<where>
<if test="name != null and name != ''">and name=#{name}</if>
<if test="phone != null and phone != ''">and phone=#{phone}</if>
<if test="postName != null and postName != ''">and post_name=#{postName}</if>
<if test="officePhone != null and officePhone != ''">and office_phone=#{officePhone}</if>
<if test="mobilePhone != null and mobilePhone != ''">and mobile_phone=#{mobilePhone}</if>
<if test="roomNum != null and roomNum != ''">and room_num=#{roomNum}</if>
<if test="deptName != null and deptName != ''">and dept_name=#{deptName}</if>
<if test="createBy &gt; 0"> and create_by=#{createBy} </if>
<if test="createDate != null"> and create_date=#{createDate} </if>
<if test="updateBy &gt; 0"> and update_by=#{updateBy} </if>
@ -70,7 +82,11 @@
select * from phone_contacts
<where>
<if test="name != null and name != ''"> and name=#{name}</if>
<if test="phone != null and phone != ''">and phone=#{phone}</if>
<if test="postName != null and postName != ''">and post_name=#{postName}</if>
<if test="officePhone != null and officePhone != ''">and office_phone=#{officePhone}</if>
<if test="mobilePhone != null and mobilePhone != ''">and mobile_phone=#{mobilePhone}</if>
<if test="roomNum != null and roomNum != ''">and room_num=#{roomNum}</if>
<if test="deptName != null and deptName != ''">and dept_name=#{deptName}</if>
<if test="createBy &gt; 0"> and create_by=#{createBy} </if>
<if test="createDate != null"> and create_date=#{createDate} </if>
<if test="updateBy &gt; 0"> and update_by=#{updateBy} </if>
@ -80,4 +96,8 @@
</where>
</select>
<select id="getDept" resultType="String">
select distinct dept_name from phone_contacts
</select>
</mapper>

@ -51,22 +51,17 @@ public class DutyStandbyExcel implements Serializable {
private String monitor;
/**
* 副带班长
* 民警值班员
*/
@ExcelProperty("副带班长")
private String deputyMonitor;
@ExcelProperty("民警值班员")
private String policeDuty;
/**
* 守机
* 辅警值班
*/
@ExcelProperty("守机员")
private String operator;
@ExcelProperty("辅警值班员")
private String auxiliaryPoliceDuty;
/**
* 值班人员
*/
@ExcelProperty("值班人员")
private String dutyPerson;
/**
* 北岭值班人员
@ -90,28 +85,20 @@ public class DutyStandbyExcel implements Serializable {
this.monitor = monitor;
}
public String getDeputyMonitor() {
return deputyMonitor;
}
public void setDeputyMonitor(String deputyMonitor) {
this.deputyMonitor = deputyMonitor;
}
public String getOperator() {
return operator;
public String getPoliceDuty() {
return policeDuty;
}
public void setOperator(String operator) {
this.operator = operator;
public void setPoliceDuty(String policeDuty) {
this.policeDuty = policeDuty;
}
public String getDutyPerson() {
return dutyPerson;
public String getAuxiliaryPoliceDuty() {
return auxiliaryPoliceDuty;
}
public void setDutyPerson(String dutyPerson) {
this.dutyPerson = dutyPerson;
public void setAuxiliaryPoliceDuty(String auxiliaryPoliceDuty) {
this.auxiliaryPoliceDuty = auxiliaryPoliceDuty;
}
public String getBlDutyPerson() {

@ -17,7 +17,7 @@
FROM
cms_content
<where>
<if test="createDate != null">
<if test="year != null">
AND YEAR(create_date) = #{year}
</if>
<if test="startDate != null and startDate !=''">
@ -31,6 +31,7 @@
CREATE_BY
) b ON a.id = b.create_by
<where>
a.manager_name != 'msopen'
<if test="type != null and type !=''">
AND a.type = #{type}
</if>

@ -0,0 +1,849 @@
<!-- 主页 -->
<!DOCTYPE html>
<html>
<head>
<title>${app.appName}</title>
<#include '/include/head-file.ftl'/>
<script src="${base}/static/plugins/ms/2.0/ms-manager.umd.js"></script>
<script src="${base}/static/plugins/sockjs/1.4.0/sockjs.min.js"></script>
<script src="${base}/static/plugins/stomp/2.3.3/stomp.min.js"></script>
<!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
<#--<script src="${base}/static/plugins/platform/ms-store.umd.min.js"></script>-->
<style>
.to-ele {
font-size: 18px;
margin: -2px 9px 0px 3px
}
</style>
</head>
<body>
<#include 'reset-password.ftl'/>
<div id="app" class="index" :class="theme">
<el-container>
<!--左侧菜单-->
<el-aside class="ms-admin-menu-aside" v-cloak>
<el-scrollbar style="height:100%">
<el-menu :default-active="asideMenuActive" class="el-menu-vertical-demo"
text-color="rgba(255,255,255,1)" active-text-color="rgba(255,255,255,1)"
:collapse="collapseMenu" :unique-opened='true' ref='menu'>
<div class="ms-admin-logo" :style="{display: 'flex','padding-left': (collapseMenu?'5px':'22px')}">
<div class="class-1" v-show="!collapseMenu" style="font-style:normal;font-size:16px;">
车辆管理所
</div>
</div>
<template v-for="(menu,i) in asideMenuList" :key='i'>
<el-submenu v-if="!menu.isSingle" :popper-class="['ms-admin-menu-aside-submenu',theme]" :index="menu.id+''"
:data-index="menu.id+''">
<template slot="title">
<i class='ms-admin-icon iconfont' :class="menu.modelIcon"></i>
<span>{{menu.modelTitle}}</span>
</template>
<!-- 子菜单 -->
<el-menu-item :index="sub.id+''" :data-index="sub.id"
v-for="(sub,index) in getSubMenu(menu.id)"
:key='sub.modelId' v-text="sub.modelTitle"
@click.self='open(sub)'></el-menu-item>
</el-submenu>
<!-- 子菜单 -->
<el-menu-item v-else :index="menu.id+''" :data-index="menu.id" style="margin-left: 2px"
:key='menu.modelId'
@click.self='open(menu)'>
<i class='ms-admin-icon iconfont' :class="menu.modelIcon"></i>
<span>{{menu.modelTitle}}</span>
</el-menu-item>
</template>
<!-- 当没有菜单显示时显示提示图片 -->
<img v-if="asideMenuList.length==0" src="${base}/static/images/tip.png" class="ms-admin-tip" />
<!-- 收缩按钮 -->
</el-menu>
</el-scrollbar>
</el-aside>
<!--右侧内容-->
<el-container class="ms-admin-container" v-cloak>
<!--头部-->
<el-header class="ms-admin-header" v-cloak>
<!--展示合并菜单-->
<div class="ms-admin-header-menu-shrink" @click="collapseMenu = !collapseMenu">
<i class="iconfont"
:class="collapseMenu?'icon-liebiaoxiangyou':'icon-shousuo'"></i>
</div>
<!--头部menu-->
<el-menu menu-trigger="hover" class="ms-admin-header-menu" :default-active="headMenuActive"
mode="horizontal">
<el-submenu style="height: 100%;">
<template slot="title">
<i class="iconfont icon-gezi" style="font-size: 17px;margin-right:8PX"></i>
<span>功能大全</span>
</template>
<div class="ms-admin-header-menu-all">
<li class="ms-admin-header-menu-all-item" v-for="(item,index) of parentMenuList"
:key='index'>
<div style="display:flex;" @click='openMenu(item,index)'>
<i class="iconfont" :class="item.modelIcon" style="padding-right: 4px"></i>
<div style="width:80px">{{item.modelTitle}}</div>
</div>
<div style="float: right;width: 18px;">
<i @click="item.isMark=!item.isMark"
:class="item.isMark?'el-icon-star-on ':'el-icon-star-off'"></i>
</div>
</li>
</div>
</el-submenu>
</el-menu>
<!--头部右侧-->
<div class="ms-admin-header-right">
<!-- 主题切换 -->
<ms-switch-theme :theme.sync="theme"></ms-switch-theme>
<!-- 设置 -->
<ms-manager-icon :manager="managerInfo">
<template slot="reset-password">
<el-menu-item
style="display: flex;align-items: center" @click.native='openModal'>
<i class="el-icon-key"></i>
<span slot="title">修改密码</span>
</el-menu-item>
</template>
</ms-manager-icon>
<!--mstore按钮-->
<ms-store ref="storec" client="${client}"></ms-store>
</div>
</el-header>
<!--内容-->
<el-main class="ms-admin-main">
<!--选项卡-->
<el-tabs class="ms-admin-tabs" v-model="currentTab" type="card" closable @tab-remove="closeTab"
@tab-click='tabClick'>
<el-tab-pane v-for="(item, index) in editableTabs" :key="index" :label="item.modelTitle"
:name="item.id"
:data-id='item.id' :data-modelId='item.modelId'>
<keep-alive>
<iframe :src='item.modelUrl.startsWith("http")||item.modelUrl.startsWith("https")||item.isStore?item.modelUrl:ms.manager+"/"+encodeURI(item.modelUrl)+(item.modelUrl.indexOf("?")==-1?"?":"&")'
:ref="item.id" :style="{background:'url('+ms.base+'/static/images/loading.gif) no-repeat center'}"></iframe>
</keep-alive>
</el-tab-pane>
</el-tabs>
</el-main>
</el-container>
</el-container>
</div>
</body>
</html>
<script>
var indexVue = new Vue({
el: "#app",
data: function () {
return {
menuList: [], //菜单接口数据
asideMenuList: [], //侧边菜单
parentMenuList: [], //一级菜单
subMenuList: [], //二级菜单 所有
asideMenuActive: "", //左侧选中菜单
headMenuActive: '', //头部菜单激活
editableTabs: [], //当前打开的tab页面
collapseMenu: false, //菜单折叠,false不折叠
currentTab: '0', //当前激活tab的name,初始值为工作台id
//登录用户信息
managerInfo: {
managerName: '', //账号
managerNickName: '',
},
mstore: {},
//主题
theme: localStorage.getItem("theme") || 'ms-theme-light',
}
},
computed: {
},
watch: {
parentMenuList: {
handler: function (n, o) {
localStorage.setItem(this.managerInfo.managerName + "parent-menu-list", JSON.stringify(n))
},
deep: true
},
editableTabs: {
handler: function (n, o) {
if (n.length) {
var that = this;
if (!document.querySelector('.el-icon-refresh')) {
var i = document.createElement('i');
i.className = "el-icon-refresh ms-admin-refresh"
i.title = "点击刷新当前页"
i.addEventListener('click', function () {
var index = null
Object.keys(that.$refs).forEach(function (item, i) {
item.indexOf(that.currentTab) > -1 ? index = i : ''
}, that)
if(that.$refs[Object.keys(that.$refs)[index]][0].contentDocument!=null) {
that.$refs[Object.keys(that.$refs)[index]][0].contentDocument.location.reload(true)
}
})
document.querySelector('.el-tabs__header').insertBefore(i, document.querySelector('.el-tabs__nav-wrap'))
}
} else {
if (document.querySelector('.ms-admin-refresh')) {
document.querySelector('.el-tabs__header').removeChild(document.querySelector('.ms-admin-refresh'))
}
}
},
deep: true
}
},
methods: {
/**
* 打开修改密码模态框
*/
openModal: function () {
var that = this
if(event.target.innerText.indexOf('修改密码') > -1 ){
resetPasswordVue.resetPasswordForm.managerName = that.managerInfo.managerName
resetPasswordVue.isShow = true
} else {
this.exitSystem();
}
},
/**
* 获取菜单列表
*/
list: function () {
var that = this;
ms.http.get(ms.manager + "/basic/model/list.do")
.then(function (res) {
that.menuList = res.data.rows;
//获取收藏
var markList = localStorage.getItem(that.managerInfo.managerName + "parent-menu-list");
//组织顶部功能大全显示菜单
that.menuList.forEach(function (item, index) {
//如果没有收藏,默认全部显示
if(markList == null) {
item.isMark = true;
} else {
item.isMark = false;
}
//判断是否是一级菜单,简单判断通过url,如果菜单有地址就表示为一级菜单
if(item.modelUrl) {
item.isSingle = true;
}
//如果是顶级菜单增加
item.modelId ? that.subMenuList.push(item) : that.parentMenuList.push(item);
})
//如果收藏就优先显示收藏
if(markList) {
var markMenuList = JSON.parse(markList);
// 遍历最新的菜单覆盖缓存的菜单,避免菜单变化导致缓存菜单没更新
that.parentMenuList.forEach(function (item){
markMenuList.forEach(function (markItem){
if (item.id === markItem.id){
item.isMark = markItem.isMark;
//更新缓存中的菜单数据
markItem = item;
}
})
})
//更新缓存
localStorage.setItem(that.managerInfo.managerName + "parent-menu-list", JSON.stringify(markMenuList))
}
//简单深度复制一下,否则数据无法双向绑定
that.parentMenuList = JSON.parse(JSON.stringify(that.parentMenuList));
//左侧菜单也显示收藏的菜单
that.parentMenuList.forEach(function (item) {
if(item.isMark) {
that.asideMenuList.push(item);
}
})
}, function (err) {
that.$notify({
title: '错误',
message: err,
type: 'error'
});
})
},
/**
* 左侧菜单打开页面
* @param sub
*/
open: function (sub) {
var that = this
var result = '';
result = this.editableTabs.some(function (item, index) {
return item.id == sub.id
})
if (sub.syncStoreUrl) {
//sub.modelUrl = "http://store.web.i.mingsoft.net/#/?client=localhost:8080//ms";
sub.modelUrl = sub.syncStoreUrl;
sub.modelTitle = 'MStore';
sub.id = 'MStore';
sub.isStore = true;
!result ? this.editableTabs.push(sub) : ""
} else {
!result ? this.editableTabs.push(sub) : ""
}
this.currentTab = sub.id;
this.headMenuActive = sub.modelId
this.$nextTick(function () {
that.asideMenuActive = sub.id;
})
// 处理其他逻辑
setTimeout(function () {
if (document.querySelector('.el-tabs__nav-prev')) {
document.querySelector('.el-tabs__nav-wrap').style.padding = '0 40px'
} else {
document.querySelector('.el-tabs__nav-wrap').style.padding = '0'
}
}, 16)
},
/**
* 点击选项卡切换左侧菜单
* @param tab tab页
*/
tabClick: function (tab) {
this.asideMenuActive = tab.$el.dataset.id
this.headMenuActive = tab.$el.dataset.modelId
},
/**
* 获取当前菜单的子菜单
* @param id 父菜单
* @returns {*[]}
*/
getSubMenu: function (id) {
var result = [];
var that = this;
that.subMenuList && that.subMenuList.forEach(function (item) {
item.modelId == id ? result.push(item) : ''
})
return result;
},
/**
* 关闭tab
* @param targetName 菜单
*/
closeTab: function (targetName) {
var that = this;
// 关闭的面板是当前激活面板
if (that.currentTab == targetName) {
var modelId = null
that.editableTabs.forEach(function (tab, index, arr) {
if (tab.id == targetName) {
modelId = arr[index].modelId
var nextTab = arr[index + 1] || arr[index - 1];
if (nextTab) {
that.currentTab = nextTab.id
that.asideMenuActive = nextTab.id
that.headMenuActive = nextTab.modelId
}
}
})
}
// 去掉关闭的tab
that.editableTabs = that.editableTabs.filter(function (tab) {
return tab.id !== targetName
})
// 关闭左侧父菜单
if (that.editableTabs.length) {
var result = that.editableTabs.every(function (item) {
return item.modelId !== modelId
})
if (result) {
that.asideMenuList.forEach(function (menu, index, arr) {
if (menu.id == modelId) {
var flag = false;
that.markList.forEach(function (item, index, array) {
if (item.title == menu.modelTitle) {
flag = true;
}
})
if (!flag) {
arr.splice(index, 1);
}
}
})
}
} else {
that.asideMenuList = []
}
// 判断是否出现左右箭头
setTimeout(function () {
if (document.querySelector('.el-tabs__nav-prev')) {
document.querySelector('.el-tabs__nav-wrap').style.padding = '0 40px'
} else {
document.querySelector('.el-tabs__nav-wrap').style.padding = '0'
}
}, 16)
},
/**
* 功能大全打开菜单
* @param menu 菜单
*/
openMenu: function (menu) {
var that = this;
this.asideMenuList.some(function (item, index) {
return item.id == menu.id
}) || this.asideMenuList.push(menu)
var children = [];
this.menuList.forEach(function (tab) {
if (tab.modelId == menu.id) {
children.push(tab)
}
})
// 若子菜单不是功能导航
if(children.length>0 && children[0].modelIsMenu) {
//默认打开第一个子菜单
this.currentTab = children[0] && children[0].id;
this.open(children[0]);
menu.isSingle = false;
that.$nextTick(function () {
that.$refs.menu.open(String(menu.id))
})
} else if(menu.modelUrl) {
this.open(menu);
menu.isSingle = true;
that.$nextTick(function () {
that.$refs.menu.open(String(menu.id))
})
}
},
/**
* 获取管理员信息
*/
getManagerInfo: function () {
var that = this;
ms.http.get(ms.manager + "/basic/manager/info.do")
.then(function (res) {
that.managerInfo = res.data;
// 请求菜单数据
that.list();
}, function (err) {
that.$notify({
title: '错误',
message: err,
type: 'error'
});
}).catch( function(err){
that.$notify({
title: '错误',
message: err,
type: 'error'
});
});
},
/**
* 主界面常用菜单,点击打开左侧菜单
* main.ftl 里面使用
* @param id 菜单编号
*/
openParentMenuInId: function (id) {
var data = this.parentMenuList.find(function (menu) {
return menu.id == id
})
data && this.openMenu(data)
},
},
created: function () {
},
mounted: function () {
//获取登录用户信息,成功后获取菜单信息
this.getManagerInfo();
},
})
</script>
<style>
.ms-admin-logo {
display: flex;
align-items: center;
overflow: hidden;
}
.ms-admin-logo img {
padding: 14px 0;
width: 45%;
}
.ms-admin-logo > div {
display: flex;
align-items: center;
}
.ms-admin-logo > div span {
margin-top: -6px;
position: absolute;
margin-left: 10px;
font-size: 12px;
}
.ms-admin-logo .iconfont {
color: #fff;
margin-left: auto;
margin-right: 20px;
cursor: pointer;
}
.ms-admin-header-right {
margin-left: auto;
min-width: 200px;
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0;
line-height: 1;
}
.ms-admin-header-menu-shrink {
width: 64px;
display: flex;
justify-content: center;
align-items: center;
line-height: 50px;
border-right: 1px solid rgba(238, 238, 238, 1);
cursor: pointer;
}
.ms-admin-header-menu-shrink:hover {
background: rgba(250, 250, 250, 0.2);
}
.el-menu-vertical-demo:not(.el-menu--collapse) {
width: 180px;
height: 100vh;
}
.el-menu--collapse {
height: 100vh;
}
.ms-admin-menu-aside {
width: auto !important;
height: 100vh;
position: relative;
overflow: visible;
}
.ms-admin-menu-aside .ms-admin-menu .el-menu--inline .is-active {
border-left: 2px solid #0099ff;
}
.ms-admin-menu-aside .ms-menu-expand i {
font-weight: bolder;
font-size: 14px;
color: #333;
position: absolute;
transform: rotate(90deg);
right: 40%;
}
.ms-admin-menu-aside .ms-menu-expand::before {
border-color: transparent transparent #eee;
border-style: none solid solid;
border-width: 0 30px 22px;
content: "";
display: block;
height: 0;
left: -10px;
width: 30px;
}
.ms-admin-menu-aside .el-submenu__title,
.ms-admin-menu-aside .el-menu-item {
color: rgba(255, 255, 255, 1);
height: 40px;
line-height: 40px;
}
.ms-admin-menu-aside .el-submenu__title i {
color: inherit;
}
.ms-admin-menu-aside .el-submenu__title .iconfont {
font-size: 19px !important;
}
.ms-admin-menu-aside .el-submenu.is-active .el-submenu__title {
color: rgba(255, 255, 255, 1) !important;
}
.ms-admin-header {
display: flex;
padding: 0;
background-color: rgba(255, 255, 255, 1);
height: 50px !important;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
z-index: 1;
}
.ms-admin-header .ms-admin-header-menu {
border-bottom: none;
position: relative;
}
.ms-admin-header .ms-admin-header-menu > .ms-admin-menu-item > * {
height: 50px !important;
line-height: 50px !important;
border-bottom: none !important;
font-size: 1em;
}
.ms-admin-header .ms-admin-header-menu .ms-admin-shortcut-menu > li {
margin: 0;
padding: 0 20px;
text-align: left;
display: -webkit-inline-box;
display: inline-block;
height: 50px;
line-height: 50px;
font-weight: normal;
font-size: 14px;
color: #333;
}
.ms-admin-header .ms-admin-header-menu .ms-admin-shortcut-menu > li:hover {
cursor: pointer;
color: #0099ff;
}
.ms-admin-header-menu .el-submenu__title {
height: 50px !important;
line-height: 50px !important;
display: flex;
align-items: center;
}
.ms-admin-header-menu .el-submenu__title:hover {
background-color: #F2F6FC !important;
color: #409EFF !important;
}
.ms-admin-header-menu .el-submenu__title:hover i {
color: #409EFF !important;
}
.ms-admin-header-menu .el-submenu__icon-arrow {
margin-top: 4px !important;
}
.ms-admin-header-menu-item .el-menu-item:hover {
background-color: #F2F6FC !important;
color: #409EFF !important;
}
.ms-admin-header-menu-item .el-menu-item:hover i {
color: #409EFF !important;
}
.ms-admin-menu-aside .el-menu-item:focus, .el-menu-item:hover {
background-color: rgba(255,255,255,0.3) !important;
}
.ms-admin-menu-aside .el-menu-item i{
color: white;
}
.ms-admin-header-menu-all {
width: 560px;
height: auto;
background: rgba(255, 255, 255, 1);
border-radius: 2px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
line-height: 40px;
}
.ms-admin-header-menu-all .iconfont {
font-size: 17px;
}
.ms-admin-header-menu-all .ms-admin-header-menu-all-item {
display: flex;
width: 25%;
justify-content: center;
align-items: center;
cursor: pointer;
}
.ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-on {
color: #ccc;
font-size: 17px;
margin-left: -1px;
margin-top: 1px;
}
.ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-on:hover {
color: rgba(64, 158, 255, 1);
}
.ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-off {
color: #ccc;
}
.ms-admin-header-menu-all .ms-admin-header-menu-all-item .el-icon-star-off:hover {
color: rgba(64, 158, 255, 1);
}
.ms-admin-header-menu-all .ms-admin-header-menu-all-item:hover {
color: rgba(64, 158, 255, 1);
}
.ms-admin-menu-aside-submenu .el-menu-item {
line-height: 40px;
height: 40px;
}
.el-submenu__title * {
vertical-align: top;
}
.ms-admin-login-theme .el-dropdown-menu__item {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
/**去掉第一个tab的关闭按钮,脚手架是 i标签**/
.el-tabs__nav .el-tabs__item:nth-child(1) span{
display: none;
}
.el-tabs__item.is-active {
background-color: rgba(255, 255, 255, 1);
}
.el-menu {
border-right: 0px;
}
.ms-admin-logo .class-1 {
color: white;
padding-top: 8px;
color: #FFFFFF;
word-wrap: break-word;
font-family: MicrosoftYaHei-Bold;
font-weight: bold;
font-style: italic;
}
.ms-admin-logo .class-2 {
font-size: 12px;
font-weight: normal;
}
.top-operate-select .el-menu--popup {
width: 162px;
min-width: 162px;
}
.ms-admin-container {
height: auto;
}
.ms-admin-container > .ms-admin-main {
padding: 0;
background-color: #fff;
z-index: 0;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs {
height: calc(100vh - 50px);
display: flex;
flex-direction: column;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs .el-tabs__content {
height: 100%;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs .el-tabs__content .el-tab-pane {
height: 100%;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs .el-tabs__header {
background: #fafafa;
margin-bottom: 0;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs .el-tabs__header .el-tabs__nav-scroll .el-tabs__nav {
border-left: none;
border-radius: 0;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs .ms-admin-refresh {
float: right;
width: 40px;
height: 40px;
text-align: center;
border-left: 1px solid #e6e6e6;
cursor: pointer;
position: relative;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs .ms-admin-refresh::before {
position: absolute;
left: 34%;
top: 50%;
transform: translateY(-50%);
color: #999;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs .el-tabs__nav-next,
.ms-admin-container > .ms-admin-main .ms-admin-tabs .el-tabs__nav-prev {
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs .el-tabs__nav-next {
border-left: 1px solid #e6e6e6;
}
.ms-admin-container > .ms-admin-main .ms-admin-tabs .el-tabs__nav-prev {
border-right: 1px solid #e6e6e6;
}
.ms-admin-container > .ms-admin-main iframe {
width: 100%;
height: 100%;
border: none !important;
}
</style>

@ -77,8 +77,8 @@
handleClick(){
this.form = {}
this.timeRange = []
this.pageSize = 1
this.currentPage = 10
this.pageSize = 10
this.currentPage = 1
this.list()
},
list() {

@ -949,7 +949,7 @@ html body {
}
.dt_search .left_star {
width: 24%;
width: 329px;
}
.dt_search .left_star .left_top_star {
@ -976,19 +976,20 @@ html body {
.dt_search .left_star .left_bot_star {
width: 100%;
height: 356px;
background: green;
}
.swiper-star {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
display: none;
position: absolute;
left:9999px
}
.dt_search .left_star .left_bot_star .dis {
display: block;
position: relative;
left:0px
}
.dt_search .swiper-button-prev {
@ -1093,13 +1094,14 @@ html body {
}
.right_top_bottom_td {
width: 172.6px;
min-width: 172.6px;
height: 110px;
text-align: center;
flex:1
}
.right_top_bottom_td_t {
margin-bottom:4px;
width: 100%;
height: 60px;
font-size: 18px;
@ -1154,32 +1156,6 @@ html body {
line-height: 82px;
text-align: center;
cursor: pointer;
color: #2C5A9E;
}
.search_bot_div_img1 {
background: url(../images/333.png);
color: #2C5A9E;
}
.search_bot_div_img2 {
background: url(../images/444.png);
color: #1E74E5;
}
.search_bot_div_img3 {
background: url(../images/555.png);
color: #2941BE;
}
.search_bot_div_img4 {
background: url(../images/666.png);
color: #1657B9;
}
.search_bot_div_img5 {
background: url(../images/777.png);
color: #1064AE;
}
.slider_star {

@ -29,12 +29,11 @@
<div class="index-contentbox">
<div style="margin: 50px 0; width: 100%;">
<a>
<img src="/{ms:global.style/}images/hf.png" width="100%" class="oimg">
<img src="/{ms:global.style/}images/hf.png" width="1440px" height="140px" class="oimg">
</a>
</div>
<div class="cgtitbox titfont">
<a href="/ms/cms/dutyStandby/importTmplate.do" download="">aaaaa</a>
车管要闻
</div>
<div class="cg_news">
@ -46,7 +45,6 @@
</a>
<div class="swiper-news" style="width:86%;overflow:hidden;margin-bottom: 30px;">
<div class="swiper-wrapper news-wrapper">
{ms:arclist typeid=1765306882908344322 flag="h"}
<div class="swiper-slide" style="display: block;">
<!--<a href="http://192.168.1.104:8080/html/webdongtaiyaowen/1769971821543133186.html" target="_blank">
@ -63,7 +61,6 @@
</div>
</a>
</div>
{/ms:arclist}
<!-- <div class="swiper-slide" style="justify-content: flex-start;">
<div class="new_tag">头条</div>
@ -89,13 +86,13 @@
<div class="swiper-container">
<div id="news_wrap" class="swiper-wrapper">
{ms:arclist typeid=1765306882908344322 size=3 noflag="h"}
<div class="swiper-slide">
<div class="swiper-slide" style="position:relative">
<a href="{ms:global.html/}${field.link}" style=" width: 100%;
height: 100%;
cursor: pointer;">
<img src='{@ms:file field.litpic/}' alt="">
<span>${field.title}</span>
<div style="width:82px;height:82px;background:red;position:absolute;top:30px;left:30px;display:flex;flex-direction:column;align-items:center;color:#fff"><div style="font-size:30px;margin-top:12px">${field.date?string("dd")}</div><div style="font-size:14px">${field.date?string("yyyy-MM")}</div> </div>
<span><div style="width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">${field.title}</div></span>
</a>
</div>
{/ms:arclist}
@ -130,8 +127,11 @@
<div>
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
${field.title}
<div class=" nwest titlelong" data-time="${field.date?string('yyyy-MM-dd')}">
{@ms:len field.title 26 /}
</div>
<div class=" nwest titleshort" data-time="${field.date?string('yyyy-MM-dd')}">
{@ms:len field.title 23 /}
</div>
</div>
<span class="fr">${field.date?string("yyyy-MM-dd")}</span>
@ -171,8 +171,9 @@
<div>
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
${field.title}
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" title="${field.title}">{@ms:len field.title 12 /}</div>
<div class="newc font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" title="${field.title}">
{@ms:len field.title 16 /}
</div>
</div>
<span class="fr">${field.date?string("MM-dd")}</span>
@ -203,8 +204,9 @@
<div>
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
${field.title}
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}" >
{@ms:len field.title 16 /}
</div>
</div>
<span class="fr">${field.date?string("MM-dd")}</span>
@ -233,8 +235,9 @@
<div>
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
${field.title}
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}" >
{@ms:len field.title 16 /}
</div>
</div>
<span class="fr">${field.date?string("MM-dd")}</span>
@ -262,8 +265,9 @@
<div>
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
${field.title}
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}" >
{@ms:len field.title 16 /}
</div>
</div>
<span class="fr">${field.date?string("MM-dd")}</span>
@ -291,8 +295,9 @@
<div>
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
${field.title}
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}">
{@ms:len field.title 16 /}
</div>
</div>
<span class="fr">${field.date?string("MM-dd")}</span>
@ -321,8 +326,9 @@
<div>
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
${field.title}
<div class="newe font-overflow-one nwest" data-time="${field.date?string('yyyy-MM-dd')}" style>{@ms:len field.title 12 /}</div>
<div class="font-overflow-one nwest newc" data-time="${field.date?string('yyyy-MM-dd')}" >
{@ms:len field.title 16 /}
</div>
</div>
<span class="fr">${field.date?string("MM-dd")}</span>
@ -338,10 +344,40 @@
<div class="index-contentbox">
<div style="margin: 50px 0; width: 100%;">
<a>
<img src="/{ms:global.style/}images/hf2.png" width="100%" class="oimg">
</a>
<div class="swiper swiperCgdt">
<!--自定义新增class:swiperOne js代码中使用类名-->
<div class="swiper-wrapper wrapper_star">
{ms:arclist typeid=1779824029474848769 }
<div class="swiper-slide slider_star blue-slide">
<a href="{ms:global.html/}${field.link}">
<div style="width:100%;height:100%;">
<img style="width:100%;" src="{@ms:file field.litpic/}" class="oimg">
</div>
</a>
</div>
{/ms:arclist}
</div>
<!-- 如果需要导航按钮 -->
<!-- <div class="swiper-button-prev pre-btn">
</div>
<div class="swiper-button-next next-btn">
</div> -->
</div>
</div>
<script>
var swiper4 = new Swiper('.swiperCgdt', {
autoplay: true,
loop: true,
slidesPerView: 1,
spaceBetween:9999,
navigation: {
nextEl: '.pre-btn-two',
prevEl: '.next-btn-two',
},
})
</script>
<!--车管动态-->
<div class="dt_search">
<div class="dt_left">
@ -359,7 +395,7 @@
<li>
<a href="{ms:global.html/}${field.link}" >
<img src="{@ms:file field.litpic/}" alt="">
<div class="img_txt font-overflow-two ">${field.title}</div>
<div class="img_txt font-overflow-two " style="height:50px">${field.title}</div>
<div class="dt_con_time">${field.date?string("yyyy-MM-dd")}</div>
</a>
</li>
@ -416,10 +452,10 @@
{/ms:arclist}
</div>
<!-- 如果需要导航按钮 -->
<div class="swiper-button-prev pre-btn">
<div class="swiper-button-prev pre-btn-jdgw">
<img src="/{ms:global.style/}images/l.png" style=" width: 44px;margin: -40px 0 0 -10px;" />
</div>
<div class="swiper-button-next next-btn">
<div class="swiper-button-next next-btn-jdgw">
<img src="/{ms:global.style/}images/r.png" style=" width: 44px;margin: -40px -10px 0 0;" />
</div>
</div>
@ -448,8 +484,7 @@
<li class="bot_arti_li">
<div style="width: 74%;">
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
<div class="nwest font-overflow-one" style="display: inline-block;;width:88%">
${field.title}
</div>
</div>
@ -460,24 +495,23 @@
</ul>
</div>
</li>
<li class="article_con article_con2 zgtg">
<li class="article_con article_con2" >
<div class="top_arti">
<div style="display: flex;align-items: center;">
<div class="top_arti-t">政工通告 </div>
</div>
<a href="/html/web/article/zhenggongtonggao/index.html">
<a href="/html/web/article/zhenggongtonggao/index.html" class="logCheck">
<div class="top_arti-gd">更多>></div>
</a>
</div>
<div class="bottom_arti">
<ul class="bot_arti_ul">
{ms:arclist typeid=1773221125271859201 size=5}
<a href="{ms:global.html/}${field.link}">
<a href="{ms:global.html/}${field.link}" class="logCheck">
<li class="bot_arti_li">
<div style="width: 74%;">
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
<div class="nwest font-overflow-one" style="display: inline-block;;width:88%">
${field.title}
</div>
</div>
@ -504,8 +538,7 @@
<li class="bot_arti_li">
<div style="width: 74%;">
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
<div class="nwest font-overflow-one" style="display: inline-block;;width:88%">
${field.title}
</div>
</div>
@ -532,8 +565,7 @@
<li class="bot_arti_li">
<div style="width: 74%;">
<div class="newd"></div>
<div class="newb" data-time="${field.date?string('yyyy-MM-dd')}">NEW</div>
<div class="font-overflow-one nwest" style="display: inline-block;width: 75%;">
<div class="nwest font-overflow-one" style="display: inline-block;width:88%">
${field.title}
</div>
</div>
@ -549,7 +581,7 @@
</div>
<div class="index-contentbox">
<div class="star_box">
<div class="star_box" style="margin-bottom:40px">
<div class="right_star">
<div class="right_star_top">
@ -575,18 +607,16 @@
</div>
<div class="right_top_con">
<div class="right_top_con_h">
<div>带班长</div>
<div>副带班长</div>
<div>守机员</div>
<div>值班人员</div>
<div>北岭值班员</div>
<div style="width:16%">带班长</div>
<div style="width:28%">民警值班员</div>
<div style="width:28%">辅警值班员</div>
<div style="width:28%">北岭值班员</div>
</div>
<div class="right_top_con_tr">
<div class="right_top_con_tr_monitor"></div>
<div class="right_top_con_tr_deputyMonitor"></div>
<div class="right_top_con_tr_operator"></div>
<div class="right_top_con_tr_dutyPerson"></div>
<div class="right_top_con_tr_blDutyPerson"></div>
<div class="right_top_con_tr_monitor" style="width:16%"></div>
<div class="right_top_con_tr_deputyMonitor" style="width:28%"></div>
<div class="right_top_con_tr_operator" style="width:28%"></div>
<div class="right_top_con_tr_dutyPerson" style="width:28%"></div>
</div>
</div>
</div>
@ -597,8 +627,8 @@
<div class="fbl" style="color: #C8C8C8;font-size:18px;line-height: 50px;">数据统计截止2024年3月12日</div>
</div>
<div class="qgs">
<div class="qgselected" data-type='1'>区市车管所</div>
<div data-type='2'>市车管所</div>
<div data-type='2'>区市车管所</div>
<div class="qgselected" data-type='1'>市车管所</div>
</div>
</div>
<div class="right_top_con">
@ -610,11 +640,11 @@
</div>
</div>
</div>
<div class="search_right">
<div class="search_right" style="height:590px">
<div class="search_tit titfont">信息查询与应用</div>
<div class="search_bot">
{ms:arclist typeid=1773246465625042946 orderby="sort" order="asc"}
<a href="${field.outlink}" target="_blank">
<a href="${field.outlink}" target="_blank" class="switchColor">
<div style="background-image:url({@ms:file field.litpic/})">${field.title}</div>
</a>
{/ms:arclist}
@ -635,31 +665,56 @@
.addClass('dis')
.siblings()
.removeClass('dis');
swiper.autoplay.start()
swiper2.autoplay.start()
});
});
var swiper = new Swiper('.swiperOne', {
autoplay: true,
loop: true,
observer: true, observeParents: true,
autoplay: {
delay: 3000,
disableOnInteraction: false,
},
observer: true,
observeParents: true,
navigation: {
nextEl: '.pre-btn',
prevEl: '.next-btn',
},
});
var swiper2 = new Swiper('.swiperTwo', {
autoplay: true,
loop: true,
observer: true, observeParents: true,
autoplay: {
delay: 3000,
disableOnInteraction: false,
},
observer: true,
observeParents: true,
navigation: {
nextEl: '.pre-btn-two',
prevEl: '.next-btn-two',
nextEl: '.pre-btn-jdgw',
prevEl: '.next-btn-jdgw',
},
})
$('.switchColor').each(function (i, p) {
if(i == 0){
$(p).css('color','#2C5A9E')
}else if(i == 1){
$(p).css('color','#1E74E5 ')
}else if(i == 2){
$(p).css('color','#2941BE ')
}else if(i == 3){
$(p).css('color','#1657B9 ')
}else {
$(p).css('color','#1064AE ')
}
});
</script>
<div class="cgfc_box">
<div class="top_cgfc">
<div class="titfont">车管所风采</div>
<div class="titfont">车管风采</div>
</div>
<div class="bot_cgfc">
<div class="swiper swiperCgfc">
@ -670,9 +725,6 @@
<a href="{ms:global.html/}${field.link}">
<div style="width:100%;height:100%;">
<img style="width:100%;height:100%;" src="{@ms:file field.litpic/}">
</div>
</a>
</div>
@ -702,9 +754,8 @@
</script>
</div>
{ms:data dataid=1773227655471837185}
{ms:arclist size=1 typeid="1779682837839847426"}
<div id="flow" onmouseover="stop()" onmouseout="start()" style="top: 0; left: 0;">
<a href="{ms:global.html/}zhongyaotongzhi/index.html">
<div id="flow-content">
<img src="/{ms:global.style/}images/z2.png" style="width: 100%;">
@ -718,7 +769,8 @@
关闭
</div>
</div>
{/ms:data}
{/ms:arclist}
<#include "footer.htm" />
<script src="/{ms:global.style/}js/moment.js"></script>
<script language="javascript" src="/{ms:global.style/}js/foot.js"></script><!--尾部end-->
@ -775,11 +827,35 @@
start();
}
var currentTime = window.moment().format('YYYY-MM-DD');
$('.newe').each(function (i, p) {
if ($(p).data('time') == currentTime) {
$(p).show()
}else{
$(p).hide()
}
});
$('.newb').each(function (i, p) {
if ($(p).data('time') == currentTime) {
$(p).show()
}
});
$('.newc').each(function (i, p) {
if ($(p).data('time') == currentTime) {
$(p).hide()
}
});
$('.titlelong').each(function (i, p) {
if ($(p).data('time') == currentTime) {
$(p).hide()
}
});
$('.titleshort').each(function (i, p) {
if ($(p).data('time') != currentTime) {
$(p).hide()
}
});
var fbl = '数据统计截止' + currentTime
$(".fbl").text(fbl);
//年
@ -856,28 +932,49 @@
axios.get('/ms/checkLogin.do').then(res=>{
if(res.data.code == 200 && res.data.result){
$('.login_dl').hide()
$('.login_grzx').show()
$('.zgtg').show()
}
})
axios.get('/cms/phoneContacts/list.do').then(res=>{
}else{
})
//值班备勤
let dutyDate = moment().format('yyyy/M/D')
$('.logCheck').each(function (i, p) {
$(p).on('click', function(event) {
event.preventDefault(); // 阻止默认行为,例如导航到href指定的链接
// 你的代码逻辑
alert('请登录后查看');
});
})
}
})
//值班备勤
let dutyDate = moment().format('yyyy/M/D')
axios.get(`/ms/cms/dutyStandby/list.do
`,{params:{dutyDate}}).then(res=>{
const { rows } = res.data.data
if(rows.length){
$('.right_top_con_tr_monitor').text(rows[0].monitor)
$('.right_top_con_tr_deputyMonitor').text(rows[0].deputyMonitor)
$('.right_top_con_tr_operator').text(rows[0].operator)
$('.right_top_con_tr_dutyPerson').text(rows[0].dutyPerson)
$('.right_top_con_tr_blDutyPerson').text(rows[0].blDutyPerson)
}
})
axios.get(`/cms/dutyStandby/list.do`,{params:{dutyDate}}).then(res=>{
const { rows } = res.data.data
if(rows.length){
$('.right_top_con_tr_monitor').text(rows[0].monitor)
$('.right_top_con_tr_deputyMonitor').text(rows[0].policeDuty)
$('.right_top_con_tr_operator').text(rows[0].auxiliaryPoliceDuty)
$('.right_top_con_tr_dutyPerson').text(rows[0].blDutyPerson)
}
if($('.right_top_con_tr_monitor').text() == ''){
$('.right_top_con_tr_monitor').text('/')
$('.right_top_con_tr_monitor').css("color", "#999999")
}
if($('.right_top_con_tr_deputyMonitor').text() == ''){
$('.right_top_con_tr_deputyMonitor').text('/')
$('.right_top_con_tr_deputyMonitor').css("color", "#999999")
}
if($('.right_top_con_tr_operator').text() == ''){
$('.right_top_con_tr_operator').text('/')
$('.right_top_con_tr_operator').css("color", "#999999")
}
if($('.right_top_con_tr_dutyPerson').text() == ''){
$('.right_top_con_tr_dutyPerson').text('/')
$('.right_top_con_tr_dutyPerson').css("color", "#999999")
}
})
</script>
</body>
</html>

Loading…
Cancel
Save