Commit 2bb2628f by yuhao

修改阵地和线索

parent 1cbeacb5
......@@ -2,18 +2,17 @@
<!--左侧导航-->
<div>
<div class="headerTitle">
<img src="../assets/img/login/jinhui.png" alt="" /><span>{{
<img src="../assets/img/login/jinhui.png"
alt="" /><span>{{
topHeader
}}</span>
</div>
<div style="display: flex" class="queryContent">
<div
class="leftMenu"
:style="{ width: isCollapse == true ? '72px' : '240px' }"
>
<div style="display: flex"
class="queryContent">
<div class="leftMenu"
:style="{ width: isCollapse == true ? '72px' : '240px' }">
<el-scrollbar style="height: 100%">
<el-menu
@select="changeSidebar"
<el-menu @select="changeSidebar"
:default-active="activeIndex"
@open="handleMenuOpen"
@close="handleMenuClose"
......@@ -22,39 +21,31 @@
active-text-color="#007AFF"
background-color="#ffffff"
text-color="rgba(90, 93, 103, 1)"
ref="menu"
>
<div
class="menu_wrap"
ref="menu">
<div class="menu_wrap"
v-for="item in leftMenus"
:key="item.index"
v-permission="item.roles"
>
<el-menu-item
:index="item.index"
v-permission="item.roles">
<el-menu-item :index="item.index"
v-if="item.hasChildren == false"
@click="goDetail(item)"
><i :class="item.className"></i>{{ item.label }}
@click="goDetail(item)"><i :class="item.className"></i>{{ item.label }}
</el-menu-item>
<el-submenu :index="item.index" v-if="item.hasChildren == true">
<el-submenu :index="item.index"
v-if="item.hasChildren == true">
<template slot="title">
<i :class="item.className"></i>
<span slot="title" style="color: #343a3f !important">{{
<span slot="title"
style="color: #343a3f !important">{{
item.label
}}</span>
</template>
<el-menu-item
:index="subitem.index"
<el-menu-item :index="subitem.index"
v-for="(subitem, index) in item.children"
:key="index"
@click="goDetail(subitem)"
v-permission="subitem.roles"
>
<i
class="iconfont iconquanxianjiesuo"
v-show="subitem.disabled"
></i
>{{ subitem.label }}
v-permission="subitem.roles">
<i class="iconfont iconquanxianjiesuo"
v-show="subitem.disabled"></i>{{ subitem.label }}
</el-menu-item>
</el-submenu>
</div>
......@@ -63,17 +54,13 @@
</div>
<div class="rightContent">
<div v-if="!$route.meta.isAdd">
<el-tabs
v-model="activeName"
<el-tabs v-model="activeName"
@tab-click="handleClick"
class="topMenu"
>
<el-tab-pane
:label="item.label"
class="topMenu">
<el-tab-pane :label="item.label"
:name="item.id"
v-for="item in topMenus"
:key="item.id"
>
:key="item.id">
</el-tab-pane>
</el-tabs>
</div>
......@@ -93,7 +80,7 @@ export default {
props: {
isCollapseP: Boolean,
},
data() {
data () {
return {
isOpenOnly: true,
isCollapse: this.isCollapseP,
......@@ -109,7 +96,7 @@ export default {
computed: {
...mapGetters(["topMenu", "Breadcrumbs", "leftMenu", "header"]),
},
created() {
created () {
this.navList = JSON.parse(sessionStorage.getItem("navList"));
this.topMenus = this.topMenu;
this.breadcrumbList = this.Breadcrumbs;
......@@ -121,24 +108,24 @@ export default {
});
},
watch: {
isCollapseP(val) {
isCollapseP (val) {
this.isCollapse = val;
},
topMenu(val) {
topMenu (val) {
this.topMenus = val;
this.activeName = val[0].id;
},
breadcrumbList(val) {
breadcrumbList (val) {
this.breadcrumbList = val;
},
leftMenu(val) {
leftMenu (val) {
this.leftMenus = val;
},
header(val) {
header (val) {
this.topHeader = val;
// this.header = val;
},
$route(val) {
$route (val) {
this.activeIndex = this.$route.name;
debugger;
let index = this.topMenus.findIndex((i) => i.id == val.name);
......@@ -148,7 +135,7 @@ export default {
},
},
methods: {
goDetail(item) {
goDetail (item) {
let Base64 = require("js-base64").Base64;
debugger;
if (item.id == "dwcx") {
......@@ -159,10 +146,8 @@ export default {
JSON.stringify(JSON.parse(sessionStorage.getItem("userInfo")))
)
);
let path = `${
this.$baseUrl.alyIP14
}/#/jump?token=${base}&path=/jccxIndex&zjhm=${
JSON.parse(sessionStorage.getItem("userInfo")).identitycard
let path = `${this.$baseUrl.alyIP14
}/#/jump?token=${base}&path=/jccxIndex&zjhm=${JSON.parse(sessionStorage.getItem("userInfo")).identitycard
}`;
console.log(path);
window.open(path, "_blank");
......@@ -254,6 +239,10 @@ export default {
this.$router.pushToTab({
path: "/intelligentInformationServiceModel",
});
} else if (item.id == "queryGwqt") {
this.$router.pushToTab({
path: "/queryGwqt",
});
} else if (item.id == "xxdxlzcl") {
this.$router.pushToTab({
path: "/xsbk",
......@@ -262,7 +251,7 @@ export default {
this.$router.push(item.index);
}
},
navAuth() {
navAuth () {
var self = this;
if (self.navList.length > 0) {
self.leftMenu.forEach((item) => {
......@@ -292,21 +281,21 @@ export default {
});
}
},
handleClick(tab) {
handleClick (tab) {
this.activeName = tab.name;
this.$router.push(tab.name);
},
handleMenuOpen(key, keyPath) {
handleMenuOpen (key, keyPath) {
// if(key!=this.$route.name&&key.indexOf("basicServer")==0){
// this.$router.push("/"+key)
// }
},
handleMenuClose(key, keyPath) {
handleMenuClose (key, keyPath) {
// if(key!=this.$route.name&&key.indexOf("basicServer")==0){
// this.$router.push("/"+key)
// }
},
changeSidebar(index) {
changeSidebar (index) {
sessionStorage.setItem("routerPath", index);
},
},
......
......@@ -5,33 +5,29 @@
<span class="flTtitle">查询条件</span>
</el-col>
<el-form>
<el-form-item label="时间:" label-width="140px">
<el-date-picker
v-model="form.djsjStart"
<el-form-item label="时间:"
label-width="140px">
<el-date-picker v-model="form.djsjStart"
type="date"
align="right"
unlink-panels
value-format="yyyy-MM-dd HH:mm:ss"
>
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
<div class="zhi"></div>
<el-date-picker
v-model="form.djsjEnd"
<el-date-picker v-model="form.djsjEnd"
type="date"
align="right"
unlink-panels
value-format="yyyy-MM-dd HH:mm:ss"
>
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-form-item>
</el-form>
<div class="btn">
<div @click="clearData" class="zdybtn">重置</div>
<div
@click="doQuery()"
<div @click="clearData"
class="zdybtn">重置</div>
<div @click="doQuery()"
style="background: #007aff; color: #ffffff"
class="zdybtn"
>
class="zdybtn">
查询
</div>
</div>
......@@ -41,33 +37,31 @@
<span class="flTtitle">信息列表</span>
<span class="info">{{ tableDataLength }}条信息</span>
<!-- <div >-->
<!-- <el-checkbox-group v-model="tableHeadList">-->
<!-- <span class="flTtitle">表头模板</span>-->
<!-- <el-checkbox v-for="item in checkedList" :label="item.label"-->
<!-- :key="item.index"></el-checkbox>-->
<!-- </el-checkbox-group>-->
<!-- </div>-->
<!-- <div >-->
<!-- <el-checkbox-group v-model="tableHeadList">-->
<!-- <span class="flTtitle">表头模板</span>-->
<!-- <el-checkbox v-for="item in checkedList" :label="item.label"-->
<!-- :key="item.index"></el-checkbox>-->
<!-- </el-checkbox-group>-->
<!-- </div>-->
</el-col>
<el-table
:header-cell-style="headStyle"
<el-table :header-cell-style="headStyle"
v-loading="tableLoading"
:data="tableData"
style="width: 100%">
<el-table-column
prop=""
<el-table-column prop=""
label="单位名称"
width="200">
<template slot-scope="scope">
<el-button
@click.native.prevent="resetQuery(tableData[scope.$index].dwdm)"
<el-button @click.native.prevent="resetQuery(tableData[scope.$index].dwdm)"
type="text">
{{tableData[scope.$index].dwmc}}
</el-button>
</template>
</el-table-column>
<el-table-column label="线索数量">
<el-table-column v-if="tableHeadList.indexOf('线索总数') >= 0"
prop="xss"
label="线索总数"
......@@ -78,21 +72,26 @@
label="侦办数"
width="200">
</el-table-column>
<el-table-column v-if="tableHeadList.indexOf('侦办占比') >= 0"
prop="xdzll"
label="侦办占比"
width="200">
</el-table-column>
<el-table-column v-if="tableHeadList.indexOf('办结数') >= 0"
prop="bjxss"
label="办结数"
width="200">
</el-table-column>
</el-table-column>
<el-table-column label="线索占比">
<el-table-column v-if="tableHeadList.indexOf('侦办占比') >= 0"
prop="xdzll"
label="侦办占比"
width="200">
</el-table-column>
<el-table-column v-if="tableHeadList.indexOf('办结占比') >= 0"
prop="bjxsl"
label="办结占比"
width="200">
</el-table-column>
</el-table-column>
<el-table-column label="工作完成情况">
<el-table-column v-if="tableHeadList.indexOf('按期签收') >= 0"
prop="aqqss"
label="按期签收"
......@@ -123,6 +122,7 @@
label="超期未反馈"
width="200">
</el-table-column>
</el-table-column>
</el-table>
</div>
</div>
......@@ -136,20 +136,20 @@ export default {
name: "queryWcqk",
components: {
},
data() {
data () {
return {
tableHeadList: ['线索总数', '侦办数', '侦办占比', '办结数', '办结占比', '按期签收', '超期签收', '超期未签收','按期反馈','超期反馈','超期未反馈'],
tableHeadList: ['线索总数', '侦办数', '侦办占比', '办结数', '办结占比', '按期签收', '超期签收', '超期未签收', '按期反馈', '超期反馈', '超期未反馈'],
checkedList: [
{label: '线索总数', index: 0, checked: 0},
{label: '侦办数', index: 1, checked: 0},
{label: '侦办占比', index: 2, checked: 0},
{label: '办结数', index: 3, checked: 0},
{label: '办结占比', index: 4, checked: 0},
{label: '按期签收', index: 5, checked: 0},
{label: '超期签收', index: 6, checked: 0},
{label: '按期反馈', index: 7, checked: 0},
{label: '超期反馈', index: 8, checked: 0},
{label: '超期未反馈', index: 9, checked: 0},
{ label: '线索总数', index: 0, checked: 0 },
{ label: '侦办数', index: 1, checked: 0 },
{ label: '侦办占比', index: 2, checked: 0 },
{ label: '办结数', index: 3, checked: 0 },
{ label: '办结占比', index: 4, checked: 0 },
{ label: '按期签收', index: 5, checked: 0 },
{ label: '超期签收', index: 6, checked: 0 },
{ label: '按期反馈', index: 7, checked: 0 },
{ label: '超期反馈', index: 8, checked: 0 },
{ label: '超期未反馈', index: 9, checked: 0 },
],
header: "汇集线索的完整性",
pageBs: "queryWcqk",
......@@ -178,14 +178,14 @@ export default {
},
computed: {
},
created() {
created () {
this.$store.commit("user/SET_Menu", this.Menu);
},
mounted() {
mounted () {
this.doQuery()
},
methods: {
doQuery() {
doQuery () {
this.showLoading()
let self = this
post(`${url.alyIP}${this.cxUrl}`, this.form).then(
......@@ -193,7 +193,7 @@ export default {
if (response.success === true) {
self.tableData = response.data.rows;
self.tableDataLength = response.data.rows.length
console.log('self.tableData', typeof(self.tableDataLength))
console.log('self.tableData', typeof (self.tableDataLength))
self.closeLoading();
} else {
self.closeLoading();
......@@ -201,45 +201,46 @@ export default {
}
);
},
handleCurrentChange(val) {
handleCurrentChange (val) {
this.form.page = val
this.doQuery()
},
closeLoading() {
closeLoading () {
this.tableLoading = false;
},
showLoading() {
showLoading () {
this.tableLoading = true;
},
clearData() {
clearData () {
this.form.djsjStart = ""
this.form.djsjEnd = ""
this.form.unitcode = ''
this.doQuery()
},
resetQuery(dwdm) {
resetQuery (dwdm) {
this.form.unitcode = dwdm
this.doQuery()
},
headStyle() {
headStyle () {
return "text-align: center"
}
}
};
</script>
<style scoped lang="scss">
.Content{
.Content {
padding: 20px;
.top, .bottom{
.top,
.bottom {
margin-bottom: 25px;
padding: 0 20px;
background: #fff;
overflow: hidden;
border-radius: 4px;
border: 1px solid #EAEAEA;
border: 1px solid #eaeaea;
box-shadow: none;
opacity: 1;
.flTtitle{
.flTtitle {
font-size: 15px;
font-weight: bold;
line-height: 21px;
......@@ -248,17 +249,17 @@ export default {
display: inline-block;
}
}
.top{
.zhi{
.top {
.zhi {
display: inline-block;
vertical-align: top;
margin: 0 8px;
}
.zdybtn{
.zdybtn {
width: 76px;
height: 32px;
background: #FFFFFF;
border: 1px solid #D9D9D9;
background: #ffffff;
border: 1px solid #d9d9d9;
opacity: 1;
border-radius: 4px;
line-height: 32px;
......@@ -267,15 +268,15 @@ export default {
cursor: pointer;
display: inline-block;
}
.btn{
.btn {
text-align: right;
margin-right: 30px;
margin-bottom: 15px;
}
}
.bottom{
.bottom {
padding-bottom: 15px;
.info{
.info {
font-size: 12px;
font-family: Source Han Sans CN;
font-weight: 400;
......@@ -283,19 +284,19 @@ export default {
color: #999999;
}
}
::v-deep .el-input{
::v-deep .el-input {
width: auto !important;
.el-input__inner{
.el-input__inner {
width: auto !important;
height: 32px;
line-height: 32px;
}
}
}
::v-deep .el-table .cell{
::v-deep .el-table .cell {
text-align: center;
}
::v-deep .el-table th{
background: #F5F7FA;
::v-deep .el-table th {
background: #f5f7fa;
}
</style>
<template>
<div class="Content">
<right-content
:pageBs="pageBs"
<right-content :pageBs="pageBs"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
@toInfor="toInfor"
:cxUrl="cxUrl"
ref="rightContent"
>
ref="rightContent">
<template #listOperation="scope">
<span class="hbyps" @click="add(scope.scope)">
<i class="el-icon-plus"></i>新增</span
>
<span class="hbyps"
@click="add(scope.scope)">
<i class="el-icon-plus"></i>新增</span>
</template>
<template #btnGroup="scope">
<span class="hbyp" @click="edit(scope.scope)">修改</span>
<span class="hbyp" @click="dele(scope.scope)">删除</span>
<span class="hbyp"
@click="edit(scope.scope)">修改</span>
<span class="hbyp"
@click="dele(scope.scope)">删除</span>
</template>
</right-content>
</div>
......@@ -31,7 +31,7 @@ export default {
components: {
rightContent,
},
data() {
data () {
return {
header: "阵地线索布控",
pageBs: "queryZdXsbk",
......@@ -41,7 +41,7 @@ export default {
bkmxName: "",
bkmxMxCode: [],
bkmxSyfw: [],
bkmxLydm:'0003'
bkmxLydm: '0003'
},
cxQueryField: [
{
......@@ -98,6 +98,14 @@ export default {
label: "适用范围",
prop: "bkmxSyfwTxt",
},
{
label: "是否处置完成",
prop: "czwc",
},
{
label: "是否忽略预警信息",
prop: "hlyjxx",
},
],
cxUrl: "/xsbkmx/list",
Menu: [
......@@ -112,12 +120,12 @@ export default {
],
};
},
created() {
created () {
this.$store.commit("user/SET_Menu", this.Menu);
},
methods: {
// 获取列表查询条件 模型的code
getAllMxxxTypeList() {
getAllMxxxTypeList () {
getAllMxxxType().then((res) => {
if (res.code == 200) {
let selectlist = [];
......@@ -129,7 +137,7 @@ export default {
});
this.cxQueryField.forEach((itemType) => {
if (itemType.type == "codeTreeDialog" && itemType.id == 'bkmxMxCode') {
this.$set(itemType, "codeOptions", selectlist );
this.$set(itemType, "codeOptions", selectlist);
}
});
}
......@@ -138,13 +146,13 @@ export default {
/**
* @description 新增
*/
add() {
add () {
this.$router.pushToTab("addZdXsbk");
},
/**
* @description 详情
*/
toInfor(row) {
toInfor (row) {
this.$router.pushToTab({
path: "/zdXsbkDetail",
query: {
......@@ -155,7 +163,7 @@ export default {
/**
* @description 修改
*/
edit(scope) {
edit (scope) {
debugger;
this.$router.pushToTab({
path: "/addZdXsbk",
......@@ -165,7 +173,7 @@ export default {
});
},
// 删除
dele(scope) {
dele (scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
......@@ -174,7 +182,7 @@ export default {
.then(() => {
deleteMx({
xxzjbh: scope.row.xxzjbh,
bkmxLydm:'0003',
bkmxLydm: '0003',
}).then((res) => {
if (res.code == 200) {
this.$message({
......@@ -199,7 +207,7 @@ export default {
},
},
watch: {},
mounted() {
mounted () {
this.getAllMxxxTypeList(); // 获取查询条件的 模型code
},
};
......
......@@ -419,14 +419,14 @@ export default {
className: "iconfont iconrizhi",
disabled: false,
},
// {
// id: "queryZdxxs34",
// label: "阵地监测预警信息研判",
// index: "queryZdxxs34",
// auth: "M0101",
// className: "iconfont iconrizhi",
// disabled: false,
// },
{
id: "queryGwqt",
label: "阵地监测预警信息研判",
index: "queryGwqt",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
},
// {
......
......@@ -58,7 +58,7 @@ module.exports = {
},
proxy: {
"/apialy": {
target: "http://192.168.1.110:8762", //西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
target: "http://192.168.1.111:8762", //西藏: https://155.1.33.10:20010/ 阿里云:http://39.99.155.173:9022
// ws: true,
changeOrigin: true,
secure: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment