Commit 8d076be3 by xue_wengang

app修改

parent b2e8ddb3
......@@ -9,8 +9,8 @@ let base = {
// ztptURL: "http://26.120.5.129:8006", //通辽
ztptURL: "http://26.3.13.120:8088",
codeUrl: "",
BaseURL: "/apiAjzbGaw", //基础查询页得ip
rzURL: "/apiXzxtGaw", //刑专二期得(日志)ip
BaseURL: "/apiXzxt", //基础查询页得ip
rzURL: "/apiXzxt", //刑专二期得(日志)ip
gzzmURL: "/apiWoker", //工作桌面
ydjwURL: "/apiYdjw", //移动警务终端版本管理
qgcxURL: '/apiQgCx', // 全国查询
......
......@@ -54,11 +54,11 @@ body {
/*input框 字典图标hover 删除图标hover end*/
/*分页显示多少条自定义位置 formWrap必须是父级容器 start*/
.formWrap{position: relative;}
/deep/ .el-pagination__sizes{
/* /deep/ .el-pagination__sizes{
position:absolute;
top:20px;
right:251px;
}
} */
/deep/ .el-input__inner{transition: none !important;}
/deep/ .el-pagination__sizes /deep/ .el-input__inner{height:32px;line-height: 32px;border: 1px solid #CFCFCF;}
/deep/ .el-date-editor /deep/ .el-range__icon {
......
......@@ -33,11 +33,27 @@
<template v-if="column.type=='basic'">
<span v-for="(operations, index) in column.operation"
:key="index">
<el-button :icon="operations.icon"
:type="operations.type"
@click="rowOperation(row,index,operations.option)"
:style="{color:operations.color}"
size="mini"
v-if="operations.label == '挂失'"
>{{ row.sbzt=='0' ? operations.label : '' }}</el-button>
<el-button :icon="operations.icon"
:type="operations.type"
@click="rowOperation(row,index,operations.option)"
:style="{color:operations.color}"
size="mini">{{ operations.label }}</el-button>
size="mini"
v-if="operations.label == '设备远程控制'"
>{{ row.sbzt=='2' ? '取消设备远程控制' : operations.label }}</el-button>
<el-button :icon="operations.icon"
:type="operations.type"
@click="rowOperation(row,index,operations.option)"
:style="{color:operations.color}"
size="mini"
v-else
>{{ operations.label }}</el-button>
</span>
</template>
<!-- 操作 -->
......@@ -101,6 +117,8 @@
class="s_runn"> {{ ( '开启') || '--' }}</span>
<span v-if="row.sbzt=='1'"
class="s_stop"> {{ ( '关闭') || '--' }}</span>
<span v-if="row.sbzt=='2'"
class="s_running"> {{ ( '远程中') || '--' }}</span>
</template>
</span>
<!-- 状态对象展示 -->
......@@ -262,4 +280,11 @@ export default {
color: #fff;
background: green;
}
.s_running{
display: inline-block;
padding: 2px 4px;
border-radius: 5px;
color: #fff;
background: red;
}
</style>
\ No newline at end of file
......@@ -1251,11 +1251,12 @@ export default {
}
}
if (flag) {
if(self.pageBs == "jsj" || self.pageBs == "ydyxjk"){
/* if(self.pageBs == "jsj" || self.pageBs == "ydyxjk"){
self.tableData = self.jsjTableDate;
self.tableDataLength = self.jsjTableDataLength;
self.closeLoading();
}else if (self.pageBs == "ydjwZdbbgl") {
}else */
if (self.pageBs == "ydjwZdbbgl") {
let params = new FormData();
debugger;
params.append("page", json.page);
......
......@@ -28,6 +28,7 @@
:visible.sync="dialogCodeVisible"
style="z-index: 2020 !important;"
:close-on-click-modal="false"
append-to-body
center>
<div slot="title"
class="header-title"
......
......@@ -41,7 +41,7 @@ service.interceptors.response.use(
// }else{
// window.open(url.eqMhUrl,'_self');
// }
sessionStorage.clear()
/* sessionStorage.clear()
MessageBox.confirm("系统登录超时,请重新登录", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
......@@ -53,7 +53,7 @@ service.interceptors.response.use(
} else {
window.location.href = 'http://zhyy.xzxt.an:8080/index'
}
})
}) */
// }
}
......
......@@ -104,22 +104,22 @@ export default {
).unitcode;
if (this.$route.query.xxzjbh) {
this.form.xxzjbh = this.$route.query.xxzjbh;
this.doQueryRequest(this.form, "/ypzc/updateYpzccgyj").then(
this.doQueryRequest(this.form, "/aapydgl/updateYyByXxzjbh").then(
(res) => {
if (res.code == 200) {
this.$message.success("保存成功");
this.$router.push({
path: "/rzcxIndex/jszcyygl",
path: "/rzcxIndex/ydyyzc",
});
}
}
);
} else {
this.doQueryRequest(this.form, "/ypzc/saveYpzccgyj").then((res) => {
this.doQueryRequest(this.form, "/aapydgl/insertYy").then((res) => {
if (res.code == 200) {
this.$message.success("保存成功");
this.$router.push({
path: "/rzcxIndex/jszcyygl",
path: "/rzcxIndex/ydyyzc",
});
}
});
......@@ -137,25 +137,17 @@ export default {
});
},
getShuju() {
let res = JSON.parse(sessionStorage.getItem("jsj"));
for (const key in this.form) {
this.$set(this.form, key, res[key]);
}
/* this.doQueryRequest(
this.doQueryRequest(
{ xxzjbh: this.$route.query.xxzjbh },
"/ypzc/getYpyjzcxq"
"/aapydgl/queryYyByXxzjbh"
).then((res) => {
if (res.code == 200) {
for (const key in this.form) {
if (key == "yynr") {
this.$set(this.form, key, res.data.yjzc["yjsj"]);
} else {
this.$set(this.form, key, res.data.yjzc[key]);
}
this.$set(this.form, key, res.data.appyy[key]);
}
this.loading = false;
}
}); */
});
},
doQueryRequest(form, cxUrl) {
/*post方法*/
......
......@@ -37,7 +37,7 @@
</div>
<el-dialog title="设备安全审计" :visible.sync="dialog" width="1000px">
<div style="padding: 10px">
<span>是否安全:<span style="color: green">安全</span></span>
<span>是否安全:<span style="color: green">{{pageObjDia.total <= 10 ? '安全' : '不安全'}}</span></span>
</div>
<Mytable
v-loading="downLoading"
......@@ -57,7 +57,9 @@
import myForm from "@/components/myForm.vue";
import Mytable from "@/components/Mytable.vue";
import request from "@/api/interface/dictionaryCode.js";
import url from "@/api/base";
import requestQuery from "@/utils/axiosHttp.js";
import qs from "qs";
import base from "@/api/base";
import { mapGetters } from "vuex";
......@@ -256,11 +258,12 @@ export default {
align: "center",
},
{
text: true,
textarea: true,
prop: "czxxJyqk",
editRow: undefined,
label: "操作内容",
align: "center",
width:"200"
},
],
},
......@@ -269,26 +272,10 @@ export default {
total: 10,
pageData: {
page: 1,
size: 10,
limit: 10,
},
},
tableDataDia: [
{
xxczryXm: "王志强",
czxxJyqk:
"执行[查询]动作,参数为:,cxSj:2023-10-01 00:00:00 - 2023-10-31 00:00:00,page:1,limit:10",
fwsj: "2023-11-07 15:13:33",
rzlsh: "460000202311071000000233487505",
xxdjdwGajgjgdm: "460000000000",
xxdjdwGajgmc: "海南省公安厅",
xxdjryLxdh: "19585699956",
yhGmsfhm: "123452123401X1000X",
yhIp: "172.26.252.82",
yymcJyqk: "查询登陆日志",
yymcdm: "0602",
yymcdmStr: "运控管理",
},
],
tableDataDia: [],
};
},
......@@ -348,12 +335,41 @@ export default {
},
// 操作按钮
rowOperation(row, index, item) {
console.log(row, index, item, 22);
let self = this;
if (index == 0) {
this.dialog = true;
self.columObjDia.loading = true;
let { page, limit } = self.pageObjDia.pageData;
self
.doQueryRequest(
{ sfzh: row.bdidcard, page, limit },
"/aapydgl/yyjkrz"
)
.then((res) => {
if (res.code == 200) {
res.data.rows.forEach((item) => {
item.expandContent = false;
});
self.tableDataDia = res.data.rows;
self.pageObjDia.total = res.data.total;
self.columObjDia.loading = false;
}
});
}
},
doQueryRequest(form, cxUrl) {
/*post方法*/
return requestQuery({
url: url.rzURL + cxUrl,
data: qs.stringify(form),
method: "post",
headers: {
"content-type": "application/x-www-form-urlencoded",
},
});
},
//页码变化
handleCurrentChange(e) {
this.pageObj.pageData.page = e;
......
......@@ -7,6 +7,7 @@
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
:pageBs="pageBs"
:isPost="true"
:jsjTableDate="jsjTableDate"
:jsjTableDataLength="jsjTableDataLength"
@yypz="yypz"
......@@ -18,14 +19,14 @@
:visible.sync="dialogVisible"
width="30%"
>
<span>{{content}}</span>
<span>{{ content }}</span>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogVisible = false"
>确 定</el-button
>
</span>
</el-dialog>
<el-dialog title="日志情况" :visible.sync="dialog" width="1000px">
<el-dialog title="日志情况" :visible.sync="dialog" width="1000px">
<div style="padding: 10px">
<span>是否安全:<span style="color: green">安全</span></span>
</div>
......@@ -46,11 +47,14 @@
<script>
import rightContent from "@c/ptCxForm_components.vue";
import Mytable from "@/components/Mytable.vue";
import url from "@/api/base";
import requestQuery from "@/utils/axiosHttp.js";
import qs from "qs";
export default {
name: "ydyxjk",
components: {
rightContent,
Mytable
Mytable,
},
data() {
return {
......@@ -100,10 +104,10 @@ export default {
label: "应用内容",
prop: "yynr",
},
// {
// label: "应用配置",
// prop: "yypz",
// },
{
label: "应用配置",
prop: "yypz",
},
{
label: "备注",
prop: "bz",
......@@ -117,110 +121,20 @@ export default {
prop: "xxdjryXm",
},
],
cxUrl: "/getFunctionService/getYkglSjzcMessage",
cxUrl: "/aapydgl/queryYyList",
header: "应用运行监控",
pageBs: "ydyxjk",
jsjTableDataLength: 12,
jsjTableDate: [
{
yydm: "0701",
yymc: "证件核查",
yynr: "证件核查",
yypz: "身份证号码必须符合身份证规则",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
{
yydm: "0702",
yymc: "人像核查",
yynr: "人像核查",
yypz: "必须有人员照片",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
{
yydm: "0703",
yymc: "车辆核查",
yynr: "车辆核查",
yypz: "必须有正确的车牌号码",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
{
yydm: "0704",
yymc: "协同工作",
yynr: "协同工作",
yypz: "必须有正确的案件编号",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
{
yydm: "0705",
yymc: "案件侦办",
yynr: "案件侦办",
yypz: "必须有正确案件号码",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
{
yydm: "0706",
yymc: "智能检索",
yynr: "智能检索",
yypz: "必须有正确的检索信息",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
{
yydm: "0707",
yymc: "周边信息",
yynr: "周边信息",
yypz: "必须有正确的周边信息",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
{
yydm: "0708",
yymc: "现场采集",
yynr: "现场采集",
yypz: "必须有正确的勘验编号",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
{
yydm: "0709",
yymc: "人员一体化采集",
yynr: "人员一体化采集",
yypz: "必须有正确的身份证号码",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
{
yydm: "0710",
yymc: "电子笔录",
yynr: "电子笔录",
yypz: "必须有正确的案件编号",
bz: "无",
djsj: "2022-5-10",
xxdjryXm: "超级管理员",
},
],
dialogVisible:false,
columObjDia: {
dialogVisible: false,
columObjDia: {
visble: false,
loading: false,
columnData: [
{
text: true,
prop: "xxczryXm",
prop: "yhXm",
editRow: undefined,
label: "用户姓名",
align: "center",
......@@ -268,11 +182,12 @@ export default {
align: "center",
},
{
text: true,
textarea: true,
prop: "czxxJyqk",
editRow: undefined,
label: "操作内容",
align: "center",
width:"200"
},
],
},
......@@ -281,37 +196,47 @@ export default {
total: 10,
pageData: {
page: 1,
size: 10,
limit: 10,
},
},
tableDataDia: [
{
xxczryXm: "王志强",
czxxJyqk:
"执行[查询]动作,参数为:,cxSj:2023-10-01 00:00:00 - 2023-10-31 00:00:00,page:1,limit:10",
fwsj: "2023-11-07 15:13:33",
rzlsh: "460000202311071000000233487505",
xxdjdwGajgjgdm: "460000000000",
xxdjdwGajgmc: "海南省公安厅",
xxdjryLxdh: "19585699956",
yhGmsfhm: "123452123401X1000X",
yhIp: "172.26.252.82",
yymcJyqk: "查询登陆日志",
yymcdm: "0602",
yymcdmStr: "运控管理",
},
],
tableDataDia: [],
dialog: false,
content:"",
content: "",
};
},
methods: {
yypz({yypz}) {
this.content = yypz
yypz({ yypz }) {
this.content = yypz;
this.dialogVisible = true;
},
rzqk(){
this.dialog = true
rzqk({yydm}) {
let self = this;
this.dialog = true;
self.columObjDia.loading = true;
let { page, limit } = self.pageObjDia.pageData;
self
.doQueryRequest({ yydm, page, limit }, "/aapydgl/yyjkrz")
.then((res) => {
if (res.code == 200) {
res.data.rows.forEach((item) => {
item.expandContent = false;
});
self.tableDataDia = res.data.rows;
self.pageObjDia.total = res.data.total;
self.columObjDia.loading = false;
}
});
},
doQueryRequest(form, cxUrl) {
/*post方法*/
return requestQuery({
url: url.rzURL + cxUrl,
data: qs.stringify(form),
method: "post",
headers: {
"content-type": "application/x-www-form-urlencoded",
},
});
},
},
};
......
......@@ -72,28 +72,17 @@ export default {
},
methods: {
getShuju() {
debugger
let res = JSON.parse(sessionStorage.getItem("jsj"));
this.infoList.forEach((item) => {
this.$set(item, "content", res[item.id]);
});
this.loading = false;
/* this.doQueryRequest(
this.doQueryRequest(
{ xxzjbh: this.$route.query.xxzjbh },
"/ypzc/getYpyjzcxq"
"/aapydgl/queryYyByXxzjbh"
).then((res) => {
if (res.code == 200) {
this.infoList.forEach((item) => {
if (item.id == "yjsjStr") {
this.$set(item, "content", res.data.yjzc["yjsj"]);
} else {
this.$set(item, "content", res.data.yjzc[item.id]);
}
this.$set(item, "content", res.data.appyy[item.id]);
});
console.log(this.infoList);
this.loading = false;
}
}); */
});
},
doQueryRequest(form, cxUrl) {
/*post方法*/
......@@ -110,7 +99,7 @@ export default {
created() {
if (this.$route.query.xxzjbh) {
this.getShuju();
// this.loading = true;
this.loading = true;
}
},
};
......@@ -155,9 +144,11 @@ export default {
}
.infoWrap1 {
width: 50%;
margin-top: 10px;
}
.infoWrap2 {
width: 100%;
margin-top: 10px;
}
.name {
font-size: 16px;
......
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