Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
d2d6269c
Commit
d2d6269c
authored
Sep 26, 2023
by
yuhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改运控
parent
637941be
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
154 additions
and
163 deletions
+154
-163
src/components/ptCxForm_components.vue
+49
-49
src/utils/params.js
+45
-45
src/utils/sscx.js
+34
-34
src/views/login.vue
+23
-32
src/views/rzcx/ldfwrz.vue
+3
-3
No files found.
src/components/ptCxForm_components.vue
View file @
d2d6269c
...
@@ -759,57 +759,57 @@ export default {
...
@@ -759,57 +759,57 @@ export default {
let
self
=
this
,
let
self
=
this
,
tHeader
=
[],
tHeader
=
[],
filterVal
=
[];
filterVal
=
[];
// if (self.tableDataLength > 5000) {
if
(
self
.
tableDataLength
>
5000
)
{
// self.$message({
self
.
$message
({
// type: "error",
type
:
"error"
,
// message: "最多只能导出5000条",
message
:
"最多只能导出5000条,请重新选择查询条件,进行导出!"
,
// });
});
// } else {
}
else
{
self
.
formData
.
limit
=
5000
;
self
.
formData
.
limit
=
5000
;
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
"正在导出..."
,
text
:
"正在导出..."
,
spinner
:
"el-icon-loading"
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
});
let
json
=
{};
let
json
=
{};
for
(
let
i
in
self
.
formData
)
{
for
(
let
i
in
self
.
formData
)
{
if
(
i
!=
"cxSj"
)
{
if
(
i
!=
"cxSj"
)
{
json
[
i
]
=
self
.
formData
[
i
];
json
[
i
]
=
self
.
formData
[
i
];
}
else
{
}
else
{
json
[
i
]
=
json
[
i
]
=
self
.
formData
[
i
]
!=
""
&&
self
.
formData
[
i
]
!=
null
self
.
formData
[
i
]
!=
""
&&
self
.
formData
[
i
]
!=
null
?
self
.
formData
[
i
].
join
(
" - "
)
?
self
.
formData
[
i
].
join
(
" - "
)
:
""
;
:
""
;
}
}
}
tHeader
=
[];
filterVal
=
[];
self
.
propdefaultFormThead
.
forEach
((
val
)
=>
{
tHeader
.
push
(
val
.
label
);
filterVal
.
push
(
val
.
prop
);
});
self
.
doQueryRequest
(
JSON
.
stringify
(
json
)).
then
((
res
)
=>
{
if
(
res
.
success
===
true
)
{
require
.
ensure
([],
()
=>
{
const
{
export_json_to_excel
,
}
=
require
(
"../vendor/Export2Excel"
);
const
list
=
res
.
data
.
rows
;
const
data
=
self
.
formatJson
(
filterVal
,
list
);
export_json_to_excel
(
tHeader
,
data
,
self
.
excelHeader
);
});
loading
.
close
();
}
else
{
loading
.
close
();
self
.
$message
({
type
:
"error"
,
message
:
"查询失败"
,
});
}
self
.
tableLoadingEmit
=
false
;
});
}
}
tHeader
=
[];
filterVal
=
[];
self
.
propdefaultFormThead
.
forEach
((
val
)
=>
{
tHeader
.
push
(
val
.
label
);
filterVal
.
push
(
val
.
prop
);
});
self
.
doQueryRequest
(
JSON
.
stringify
(
json
)).
then
((
res
)
=>
{
if
(
res
.
success
===
true
)
{
require
.
ensure
([],
()
=>
{
const
{
export_json_to_excel
,
}
=
require
(
"../vendor/Export2Excel"
);
const
list
=
res
.
data
.
rows
;
const
data
=
self
.
formatJson
(
filterVal
,
list
);
export_json_to_excel
(
tHeader
,
data
,
self
.
excelHeader
);
});
loading
.
close
();
}
else
{
loading
.
close
();
self
.
$message
({
type
:
"error"
,
message
:
"查询失败"
,
});
}
self
.
tableLoadingEmit
=
false
;
});
// }
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
currentPage1
=
val
;
this
.
currentPage1
=
val
;
...
...
src/utils/params.js
View file @
d2d6269c
...
@@ -12232,7 +12232,7 @@ let rzcxPropLeftMenu2 = [
...
@@ -12232,7 +12232,7 @@ let rzcxPropLeftMenu2 = [
let
rzcxcxHeader
=
'登录日志'
let
rzcxcxHeader
=
'登录日志'
let
rzcxcxFormData
=
{
let
rzcxcxFormData
=
{
cxSj
:
[
`
${
get3month
.
last
}
00:00:00`
,
`
${
get3month
.
now
}
00:00:00`
],
cxSj
:
[
`
${
get3month
.
last
}
00:00:00`
,
`
${
get3month
.
now
}
00:00:00`
],
unitcode
:
''
,
//
unitcode: '',
userName
:
''
,
userName
:
''
,
limit
:
10
,
limit
:
10
,
page
:
1
page
:
1
...
@@ -12349,17 +12349,17 @@ let rzcxCxQueryField = [
...
@@ -12349,17 +12349,17 @@ let rzcxCxQueryField = [
]
]
}
}
},
},
{
//
{
name
:
'单位代码'
,
//
name: '单位代码',
id
:
'unitcode'
,
//
id: 'unitcode',
type
:
'codeTreeDialog'
,
//字典弹框
//
type: 'codeTreeDialog', //字典弹框
props
:
[],
//字典弹框需要的字段
//
props: [], //字典弹框需要的字段
value
:
''
,
//
value: '',
placeholder
:
''
,
//
placeholder: '',
codeOptions
:
[],
//
codeOptions: [],
codeTree
:
'CODE_UNIT'
,
//
codeTree: 'CODE_UNIT',
col
:
'3'
//
col: '3'
}
//
}
]
]
let
rzcxCxDefaultFormThead
=
[
let
rzcxCxDefaultFormThead
=
[
{
{
...
@@ -12526,17 +12526,17 @@ let rzcxGnCxQueryField = [
...
@@ -12526,17 +12526,17 @@ let rzcxGnCxQueryField = [
]
]
}
}
},
},
{
//
{
name
:
'单位代码'
,
//
name: '单位代码',
id
:
'unitcode'
,
//
id: 'unitcode',
type
:
'codeTreeDialog'
,
//字典弹框
//
type: 'codeTreeDialog', //字典弹框
props
:
[],
//字典弹框需要的字段
//
props: [], //字典弹框需要的字段
value
:
''
,
//
value: '',
placeholder
:
''
,
//
placeholder: '',
codeOptions
:
[],
//
codeOptions: [],
codeTree
:
'CODE_UNIT'
,
//
codeTree: 'CODE_UNIT',
col
:
'3'
//
col: '3'
},
//
},
{
{
name
:
'姓名'
,
name
:
'姓名'
,
id
:
'userName'
,
id
:
'userName'
,
...
@@ -12711,17 +12711,17 @@ let rzcxSyqkCxQueryField = [
...
@@ -12711,17 +12711,17 @@ let rzcxSyqkCxQueryField = [
col
:
'3'
,
col
:
'3'
,
hidden
:
'YH'
hidden
:
'YH'
},
},
{
//
{
name
:
'单位代码'
,
//
name: '单位代码',
id
:
'unitCode'
,
//
id: 'unitCode',
type
:
'codeTreeDialog'
,
//字典弹框
//
type: 'codeTreeDialog', //字典弹框
props
:
[],
//字典弹框需要的字段
//
props: [], //字典弹框需要的字段
value
:
''
,
//
value: '',
placeholder
:
''
,
//
placeholder: '',
codeOptions
:
[],
//
codeOptions: [],
codeTree
:
'CODE_UNIT'
,
//
codeTree: 'CODE_UNIT',
col
:
'3'
//
col: '3'
},
//
},
{
{
name
:
'警号'
,
name
:
'警号'
,
id
:
'policeId'
,
id
:
'policeId'
,
...
@@ -13665,17 +13665,17 @@ let gnfwcxQueryField = [
...
@@ -13665,17 +13665,17 @@ let gnfwcxQueryField = [
]
]
}
}
},
},
{
//
{
name
:
'单位代码'
,
//
name: '单位代码',
id
:
'unitcode'
,
//
id: 'unitcode',
type
:
'codeTreeDialog'
,
//字典弹框
//
type: 'codeTreeDialog', //字典弹框
props
:
[],
//字典弹框需要的字段
//
props: [], //字典弹框需要的字段
value
:
''
,
//
value: '',
placeholder
:
''
,
//
placeholder: '',
codeOptions
:
[],
//
codeOptions: [],
codeTree
:
'CODE_UNIT'
,
//
codeTree: 'CODE_UNIT',
col
:
'3'
//
col: '3'
},
//
},
{
{
name
:
'用户姓名'
,
name
:
'用户姓名'
,
id
:
'username'
,
id
:
'username'
,
...
...
src/utils/sscx.js
View file @
d2d6269c
...
@@ -6116,7 +6116,7 @@ let rzcxPropLeftMenu = [
...
@@ -6116,7 +6116,7 @@ let rzcxPropLeftMenu = [
id
:
'ydsbgl'
,
id
:
'ydsbgl'
,
label
:
'移动设备管理'
,
label
:
'移动设备管理'
,
index
:
'9-1'
index
:
'9-1'
},{
},
{
id
:
'yyrzgl'
,
id
:
'yyrzgl'
,
label
:
'应用日志管理'
,
label
:
'应用日志管理'
,
index
:
'9-2'
index
:
'9-2'
...
@@ -6250,17 +6250,17 @@ let rzcxCxQueryField = [
...
@@ -6250,17 +6250,17 @@ let rzcxCxQueryField = [
]
]
}
}
},
},
{
//
{
name
:
'单位代码'
,
//
name: '单位代码',
id
:
'unitcode'
,
//
id: 'unitcode',
type
:
'codeTreeDialog'
,
//字典弹框
//
type: 'codeTreeDialog', //字典弹框
props
:
[],
//字典弹框需要的字段
//
props: [], //字典弹框需要的字段
value
:
''
,
//
value: '',
placeholder
:
''
,
//
placeholder: '',
codeOptions
:
[],
//
codeOptions: [],
codeTree
:
'CODE_UNIT'
,
//
codeTree: 'CODE_UNIT',
col
:
'3'
//
col: '3'
}
//
}
]
]
let
rzcxCxDefaultFormThead
=
[
let
rzcxCxDefaultFormThead
=
[
{
{
...
@@ -6427,17 +6427,17 @@ let rzcxGnCxQueryField = [
...
@@ -6427,17 +6427,17 @@ let rzcxGnCxQueryField = [
]
]
}
}
},
},
{
//
{
name
:
'单位代码'
,
//
name: '单位代码',
id
:
'unitcode'
,
//
id: 'unitcode',
type
:
'codeTreeDialog'
,
//字典弹框
//
type: 'codeTreeDialog', //字典弹框
props
:
[],
//字典弹框需要的字段
//
props: [], //字典弹框需要的字段
value
:
''
,
//
value: '',
placeholder
:
''
,
//
placeholder: '',
codeOptions
:
[],
//
codeOptions: [],
codeTree
:
'CODE_UNIT'
,
//
codeTree: 'CODE_UNIT',
col
:
'3'
//
col: '3'
},
//
},
{
{
name
:
'姓名'
,
name
:
'姓名'
,
id
:
'userName'
,
id
:
'userName'
,
...
@@ -7562,17 +7562,17 @@ let gnfwcxQueryField = [
...
@@ -7562,17 +7562,17 @@ let gnfwcxQueryField = [
]
]
}
}
},
},
{
//
{
name
:
'单位代码'
,
//
name: '单位代码',
id
:
'unitcode'
,
//
id: 'unitcode',
type
:
'codeTreeDialog'
,
//字典弹框
//
type: 'codeTreeDialog', //字典弹框
props
:
[],
//字典弹框需要的字段
//
props: [], //字典弹框需要的字段
value
:
''
,
//
value: '',
placeholder
:
''
,
//
placeholder: '',
codeOptions
:
[],
//
codeOptions: [],
codeTree
:
'CODE_UNIT'
,
//
codeTree: 'CODE_UNIT',
col
:
'3'
//
col: '3'
},
//
},
{
{
name
:
'用户姓名'
,
name
:
'用户姓名'
,
id
:
'username'
,
id
:
'username'
,
...
...
src/views/login.vue
View file @
d2d6269c
<
template
>
<
template
>
<div
class=
"login-container"
>
<div
class=
"login-container"
>
<el-form
<el-form
:model=
"ruleForm2"
:model=
"ruleForm2"
:rules=
"rules2"
:rules=
"rules2"
status-icon
status-icon
ref=
"ruleForm2"
ref=
"ruleForm2"
label-position=
"left"
label-position=
"left"
label-width=
"0px"
label-width=
"0px"
class=
"demo-ruleForm login-page"
>
class=
"demo-ruleForm login-page"
>
<h3
class=
"title"
>
系统登录
</h3>
<h3
class=
"title"
>
系统登录
</h3>
<el-form-item
prop=
"username"
>
<el-form-item
prop=
"username"
>
<el-input
<el-input
type=
"text"
type=
"text"
v-model=
"ruleForm2.username"
v-model=
"ruleForm2.username"
auto-complete=
"off"
auto-complete=
"off"
placeholder=
"用户名"
></el-input>
placeholder=
"用户名"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"password"
>
<el-form-item
prop=
"password"
>
<el-input
<el-input
type=
"password"
type=
"password"
v-model=
"ruleForm2.password"
v-model=
"ruleForm2.password"
auto-complete=
"off"
auto-complete=
"off"
placeholder=
"密码"
></el-input>
placeholder=
"密码"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
style=
"width:100%;"
>
<el-form-item
style=
"width:100%;"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
style=
"width:100%;"
style=
"width:100%;"
@
click=
"handleSubmit"
@
click=
"handleSubmit"
:loading=
"logining"
>
登录
</el-button>
:loading=
"logining"
>
登录
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -42,7 +33,7 @@
...
@@ -42,7 +33,7 @@
<
script
>
<
script
>
import
request
from
"@/api/interface/dictionaryCode.js"
;
import
request
from
"@/api/interface/dictionaryCode.js"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
logining
:
false
,
logining
:
false
,
ruleForm2
:
{
ruleForm2
:
{
...
@@ -57,13 +48,13 @@ export default {
...
@@ -57,13 +48,13 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
handleSubmit
()
{
handleSubmit
()
{
let
self
=
this
;
let
self
=
this
;
self
.
$refs
.
ruleForm2
.
validate
(
valid
=>
{
self
.
$refs
.
ruleForm2
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
self
.
logining
=
true
;
self
.
logining
=
true
;
request
.
login
(
self
.
ruleForm2
.
username
,
self
.
ruleForm2
.
password
).
then
(
res
=>
{
request
.
login
(
self
.
ruleForm2
.
username
,
self
.
ruleForm2
.
password
).
then
(
res
=>
{
if
(
res
.
code
==
200
00
)
{
if
(
res
.
code
==
200
)
{
sessionStorage
.
setItem
(
"user"
,
self
.
ruleForm2
.
username
);
sessionStorage
.
setItem
(
"user"
,
self
.
ruleForm2
.
username
);
sessionStorage
.
setItem
(
"password"
,
self
.
ruleForm2
.
password
);
sessionStorage
.
setItem
(
"password"
,
self
.
ruleForm2
.
password
);
self
.
$router
.
push
({
path
:
"/home"
});
self
.
$router
.
push
({
path
:
"/home"
});
...
...
src/views/rzcx/ldfwrz.vue
View file @
d2d6269c
...
@@ -491,7 +491,7 @@ export default {
...
@@ -491,7 +491,7 @@ export default {
if
(
self
.
tableDataLength
>
5000
)
{
if
(
self
.
tableDataLength
>
5000
)
{
self
.
$message
({
self
.
$message
({
type
:
"error"
,
type
:
"error"
,
message
:
"最多只能导出5000条"
message
:
"最多只能导出5000条
,请重新选择查询条件,进行导出!
"
});
});
loading
.
close
();
loading
.
close
();
}
else
{
}
else
{
...
@@ -526,7 +526,7 @@ export default {
...
@@ -526,7 +526,7 @@ export default {
if
(
self
.
tableDataLengthDw
>
5000
)
{
if
(
self
.
tableDataLengthDw
>
5000
)
{
self
.
$message
({
self
.
$message
({
type
:
"error"
,
type
:
"error"
,
message
:
"最多只能导出5000条"
message
:
"最多只能导出5000条
,请重新选择查询条件,进行导出!
"
});
});
loading
.
close
();
loading
.
close
();
}
else
{
}
else
{
...
@@ -562,7 +562,7 @@ export default {
...
@@ -562,7 +562,7 @@ export default {
if
(
self
.
tableDataLengthDwXz
>
5000
)
{
if
(
self
.
tableDataLengthDwXz
>
5000
)
{
self
.
$message
({
self
.
$message
({
type
:
"error"
,
type
:
"error"
,
message
:
"最多只能导出5000条"
message
:
"最多只能导出5000条
,请重新选择查询条件,进行导出!
"
});
});
loading
.
close
();
loading
.
close
();
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment