Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
7b10c512
Commit
7b10c512
authored
Oct 30, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'reg' of
http://gitlab.scsmile.cn/zxf/smart_gov_platform
into reg
parents
4a167a50
9c4e527a
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
162 additions
and
100 deletions
+162
-100
base-manager-ui/admin/src/pages/basicset/appmarket/components/DataUpdate.vue
...in/src/pages/basicset/appmarket/components/DataUpdate.vue
+14
-23
base-manager-ui/admin/src/pages/basicset/system/parameter/Parameter.vue
...i/admin/src/pages/basicset/system/parameter/Parameter.vue
+0
-7
portal-manager-ui/admin/src/main.js
portal-manager-ui/admin/src/main.js
+2
-2
portal-manager-ui/admin/src/request/request.js
portal-manager-ui/admin/src/request/request.js
+1
-0
portal-manager-ui/admin/src/utils/commin.js
portal-manager-ui/admin/src/utils/commin.js
+37
-41
portal-manager-ui/admin/src/utils/js/cookie.js
portal-manager-ui/admin/src/utils/js/cookie.js
+74
-0
portal-manager-ui/admin/src/utils/js/exportExcel.js
portal-manager-ui/admin/src/utils/js/exportExcel.js
+24
-15
portal-manager-ui/admin/src/views/home/home.vue
portal-manager-ui/admin/src/views/home/home.vue
+1
-0
portal-manager-ui/admin/src/views/signIn/signIn.vue
portal-manager-ui/admin/src/views/signIn/signIn.vue
+1
-2
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
...al-manager-ui/admin/src/views/siteArrange/siteArrange.vue
+3
-6
portal-manager-ui/admin/vue.config.js
portal-manager-ui/admin/vue.config.js
+5
-4
No files found.
base-manager-ui/admin/src/pages/basicset/appmarket/components/DataUpdate.vue
View file @
7b10c512
...
@@ -255,32 +255,23 @@ export default {
...
@@ -255,32 +255,23 @@ export default {
// 获取数据列表
// 获取数据列表
async
getDatasetList
()
{
async
getDatasetList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
let
orConditionList
=
[
let
obj
=
{};
{
let
orConditionList
=
[];
fieldCode
:
this
.
fieldCode
,
let
form
=
{
fieldValue
:
`%
${
this
.
searchVal
}
%`
,
},
...
this
.
sortSearch
,
];
let
res
=
await
getDatasetList
({
page
:
this
.
current
,
page
:
this
.
current
,
size
:
this
.
size
,
size
:
this
.
size
,
appId
:
this
.
appId
,
appId
:
this
.
appId
,
orConditionList
,
};
// fieldCode: this.fieldCode,
if
(
this
.
fieldCode
)
{
// fieldValue: `%${this.searchVal}%`,
obj
.
fieldCode
=
this
.
fieldCode
;
// orConditionList: [
obj
.
fieldValue
=
`%
${
this
.
searchVal
}
%`
;
// {
orConditionList
.
push
(
obj
);
// fieldCode: this.fieldCode,
}
// fieldValue: `%${this.searchVal}%`,
orConditionList
=
[...
orConditionList
,
...
this
.
sortSearch
];
// },
if
(
orConditionList
.
length
)
{
// {
form
.
orConditionList
=
orConditionList
;
// fieldCode: "top",
}
// fieldValue: `%%`,
let
res
=
await
getDatasetList
(
form
);
// },
// ],
});
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
code
===
1
)
{
if
(
res
.
data
.
code
===
1
)
{
let
{
data
,
total
}
=
res
.
data
.
data
;
let
{
data
,
total
}
=
res
.
data
.
data
;
...
...
base-manager-ui/admin/src/pages/basicset/system/parameter/Parameter.vue
View file @
7b10c512
...
@@ -14,11 +14,6 @@
...
@@ -14,11 +14,6 @@
v-model=
"searchForm.name"
v-model=
"searchForm.name"
allowClear
allowClear
/>
/>
<a-input
placeholder=
"请输入二级组织搜索"
v-model=
"searchForm.secondOrganize"
allowClear
/>
<a-button
type=
"primary"
@
click=
"onSearch"
>
搜索
</a-button>
<a-button
type=
"primary"
@
click=
"onSearch"
>
搜索
</a-button>
<a-button
@
click=
"resetSearch"
>
重置
</a-button>
<a-button
@
click=
"resetSearch"
>
重置
</a-button>
</a-space>
</a-space>
...
@@ -185,7 +180,6 @@ export default {
...
@@ -185,7 +180,6 @@ export default {
searchValue
:
""
,
// 搜索
searchValue
:
""
,
// 搜索
searchForm
:
{
searchForm
:
{
name
:
""
,
name
:
""
,
secondOrganize
:
""
,
},
},
tableData
:
[],
tableData
:
[],
selectedRowKeys
:
[],
selectedRowKeys
:
[],
...
@@ -205,7 +199,6 @@ export default {
...
@@ -205,7 +199,6 @@ export default {
page
:
this
.
current
,
page
:
this
.
current
,
size
:
this
.
size
,
size
:
this
.
size
,
name
:
`%
${
this
.
searchForm
.
name
}
%`
,
name
:
`%
${
this
.
searchForm
.
name
}
%`
,
secondOrganize
:
`%
${
this
.
searchForm
.
secondOrganize
}
%`
,
});
});
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
code
==
1
)
{
if
(
res
.
data
.
code
==
1
)
{
...
...
portal-manager-ui/admin/src/main.js
View file @
7b10c512
...
@@ -16,8 +16,8 @@ Vue.use(Antd);
...
@@ -16,8 +16,8 @@ Vue.use(Antd);
import
GlobalComponents
from
"
./utils/js/globalComponents
"
;
import
GlobalComponents
from
"
./utils/js/globalComponents
"
;
Vue
.
use
(
GlobalComponents
);
Vue
.
use
(
GlobalComponents
);
import
common
from
"
./utils/commin
"
;
//
import common from "./utils/commin";
Vue
.
use
(
common
);
//
Vue.use(common);
// 公共样式
// 公共样式
import
"
@/assets/css/normalize.css
"
;
import
"
@/assets/css/normalize.css
"
;
...
...
portal-manager-ui/admin/src/request/request.js
View file @
7b10c512
...
@@ -11,6 +11,7 @@ import storage from "@/utils/js/Storage";
...
@@ -11,6 +11,7 @@ import storage from "@/utils/js/Storage";
// 请求超时时间
// 请求超时时间
axios
.
defaults
.
timeout
=
60
*
1000
;
axios
.
defaults
.
timeout
=
60
*
1000
;
axios
.
defaults
.
withCredentials
=
true
;
// 设置统一服务器地址
// 设置统一服务器地址
// axios.defaults.baseURL = process.env.VUE_APP_API_BASE_URL;
// axios.defaults.baseURL = process.env.VUE_APP_API_BASE_URL;
...
...
portal-manager-ui/admin/src/utils/commin.js
View file @
7b10c512
// import moment from 'moment';
import
moment
from
'
moment
'
;
// import 'moment/locale/zh-cn'; // 获取中国标准时间,避免出现utc时间
import
'
moment/locale/zh-cn
'
;
// 获取中国标准时间,避免出现utc时间
// moment.locale('zh-cn')
moment
.
locale
(
'
zh-cn
'
)
// import * as echarts from 'echarts'
import
*
as
echarts
from
'
echarts
'
// import ExportJsonExcel from "js-export-excel";
// import Storage from './js/Storage.js';
import
ExportJsonExcel
from
"
js-export-excel
"
;
// import '@/utils/css/animate.min.css'
import
Storage
from
'
./js/Storage.js
'
;
// import 'font-awesome/css/font-awesome.css'
// import './css/index.less' //css 公共库
import
'
@/utils/css/animate.min.css
'
import
'
font-awesome/css/font-awesome.css
'
// function setLoading(props) {
import
'
./css/index.less
'
//css 公共库
// if (typeof props === 'boolean') props = {
// spinning: props
// }
function
setLoading
(
props
)
{
// if (Object.prototype.toString.call(props) !== '[object Object]') props = {}
if
(
typeof
props
===
'
boolean
'
)
props
=
{
// this.$app.loadingProps = {
spinning
:
props
// tip: '加载中...',
}
// ...props
if
(
Object
.
prototype
.
toString
.
call
(
props
)
!==
'
[object Object]
'
)
props
=
{}
// }
this
.
$app
.
loadingProps
=
{
// }
tip
:
'
加载中...
'
,
...
props
// const common = {
}
// install: function (Vue) {
}
// Vue.prototype.$echarts = echarts;
// Vue.prototype.$moment = moment;
const
common
=
{
// Vue.prototype.$Storage = Storage;
install
:
function
(
Vue
)
{
// Vue.prototype.$setLoading = setLoading;
Vue
.
prototype
.
$echarts
=
echarts
;
// Vue.prototype.$ExportJsonExcel = ExportJsonExcel;
Vue
.
prototype
.
$moment
=
moment
;
Vue
.
prototype
.
$Storage
=
Storage
;
// }
Vue
.
prototype
.
$setLoading
=
setLoading
;
// }
Vue
.
prototype
.
$ExportJsonExcel
=
ExportJsonExcel
;
// export default common
}
}
export
default
common
\ No newline at end of file
portal-manager-ui/admin/src/utils/js/cookie.js
0 → 100644
View file @
7b10c512
export
default
{
getItem
:
function
(
sKey
)
{
return
(
decodeURIComponent
(
document
.
cookie
.
replace
(
new
RegExp
(
"
(?:(?:^|.*;)
\\
s*
"
+
encodeURIComponent
(
sKey
).
replace
(
/
[\-\.\+\*]
/g
,
"
\\
$&
"
)
+
"
\\
s*
\\
=
\\
s*([^;]*).*$)|^.*$
"
),
"
$1
"
)
)
||
null
);
},
setItem
:
function
(
sKey
,
sValue
,
vEnd
,
sPath
,
sDomain
,
bSecure
)
{
if
(
!
sKey
||
/^
(?:
expires|max
\-
age|path|domain|secure
)
$/i
.
test
(
sKey
))
{
return
false
;
}
var
sExpires
=
""
;
if
(
vEnd
)
{
switch
(
vEnd
.
constructor
)
{
case
Number
:
sExpires
=
vEnd
===
Infinity
?
"
; expires=Fri, 31 Dec 9999 23:59:59 GMT
"
:
"
; max-age=
"
+
vEnd
;
break
;
case
String
:
sExpires
=
"
; expires=
"
+
vEnd
;
break
;
case
Date
:
sExpires
=
"
; expires=
"
+
vEnd
.
toUTCString
();
break
;
}
}
document
.
cookie
=
encodeURIComponent
(
sKey
)
+
"
=
"
+
encodeURIComponent
(
sValue
)
+
sExpires
+
(
sDomain
?
"
; domain=
"
+
sDomain
:
""
)
+
(
sPath
?
"
; path=
"
+
sPath
:
""
)
+
(
bSecure
?
"
; secure
"
:
""
);
return
true
;
},
removeItem
:
function
(
sKey
,
sPath
,
sDomain
)
{
if
(
!
sKey
||
!
this
.
hasItem
(
sKey
))
{
return
false
;
}
document
.
cookie
=
encodeURIComponent
(
sKey
)
+
"
=; expires=Thu, 01 Jan 1970 00:00:00 GMT
"
+
(
sDomain
?
"
; domain=
"
+
sDomain
:
""
)
+
(
sPath
?
"
; path=
"
+
sPath
:
""
);
return
true
;
},
hasItem
:
function
(
sKey
)
{
return
new
RegExp
(
"
(?:^|;
\\
s*)
"
+
encodeURIComponent
(
sKey
).
replace
(
/
[\-\.\+\*]
/g
,
"
\\
$&
"
)
+
"
\\
s*
\\
=
"
).
test
(
document
.
cookie
);
},
keys
:
/* optional method: you can safely remove it! */
function
()
{
var
aKeys
=
document
.
cookie
.
replace
(
/
((?:
^|
\s
*;
)[^\=]
+
)(?=
;|$
)
|^
\s
*|
\s
*
(?:\=[^
;
]
*
)?(?:\1
|$
)
/g
,
""
)
.
split
(
/
\s
*
(?:\=[^
;
]
*
)?
;
\s
*/
);
for
(
var
nIdx
=
0
;
nIdx
<
aKeys
.
length
;
nIdx
++
)
{
aKeys
[
nIdx
]
=
decodeURIComponent
(
aKeys
[
nIdx
]);
}
return
aKeys
;
},
};
portal-manager-ui/admin/src/utils/js/exportExcel.js
View file @
7b10c512
// 导出表格数据
// 导出表格数据
const
ExportJsonExcel
=
require
(
"
js-export-excel
"
);
// const ExportJsonExcel = require("js-export-excel");
import
{
message
}
from
"
ant-design-vue
"
;
import
Vue
from
"
vue
"
;
/**
/**
* 导出excel
* 导出excel
* @param {导出的表头名信息} tHeader
* @param {导出的表头名信息} tHeader
...
@@ -8,18 +10,25 @@ const ExportJsonExcel = require("js-export-excel");
...
@@ -8,18 +10,25 @@ const ExportJsonExcel = require("js-export-excel");
* @param {导出文件名称} fileName
* @param {导出文件名称} fileName
*/
*/
export
const
export2Excel
=
(
tHeader
,
filterVal
,
list
,
fileName
)
=>
{
export
const
export2Excel
=
(
tHeader
,
filterVal
,
list
,
fileName
)
=>
{
let
option
=
{
message
.
warning
({
fileName
,
content
:
"
功能维护中
"
,
datas
:
[
maxCount
:
1
,
{
duration
:
2
,
sheetData
:
list
,
});
sheetName
:
"
sheet
"
,
Vue
.
prototype
.
$app
.
progressFile
.
show
=
false
;
sheetFilter
:
filterVal
,
Vue
.
prototype
.
$app
.
progressFile
.
percent
=
1
;
sheetHeader
:
tHeader
,
// let option = {
// columnWidths: columnWidths, // 列宽
// fileName,
},
// datas: [
],
// {
};
// sheetData: list,
let
toExcel
=
new
ExportJsonExcel
(
option
);
// sheetName: "sheet",
toExcel
.
saveExcel
();
//保存
// sheetFilter: filterVal,
// sheetHeader: tHeader,
// // columnWidths: columnWidths, // 列宽
// },
// ],
// };
// let toExcel = new ExportJsonExcel(option);
// toExcel.saveExcel(); //保存
};
};
portal-manager-ui/admin/src/views/home/home.vue
View file @
7b10c512
...
@@ -199,6 +199,7 @@ export default {
...
@@ -199,6 +199,7 @@ export default {
.header {
.header {
height: @headerHeight;
height: @headerHeight;
padding: 0px 60px;
padding: 0px 60px;
font-size: 16px;
color: #fff;
color: #fff;
position: absolute;
position: absolute;
top: 0px;
top: 0px;
...
...
portal-manager-ui/admin/src/views/signIn/signIn.vue
View file @
7b10c512
...
@@ -394,8 +394,7 @@ export default {
...
@@ -394,8 +394,7 @@ export default {
// 加时间戳印记用于刷新gif
// 加时间戳印记用于刷新gif
let
mark
=
new
Date
().
getTime
();
let
mark
=
new
Date
().
getTime
();
this
.
form
.
mark
=
mark
;
this
.
form
.
mark
=
mark
;
this
.
imgCode
=
this
.
imgCode
=
this
.
api
+
"
/zwfw/securitycode/createCode
"
+
`?t=
${
mark
}
`
;
this
.
api
+
"
/zwfw/securitycode/createCode
"
+
`?mark=
${
mark
}
`
;
},
},
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
async
(
valid
)
=>
{
this
.
$refs
.
form
.
validate
(
async
(
valid
)
=>
{
...
...
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
View file @
7b10c512
...
@@ -332,6 +332,7 @@ export default {
...
@@ -332,6 +332,7 @@ export default {
background: url("@/assets/images/siteArrange/bg_4.jpg") no-repeat;
background: url("@/assets/images/siteArrange/bg_4.jpg") no-repeat;
background-size: 100% 100%;
background-size: 100% 100%;
overflow: hidden;
overflow: hidden;
font-size: 16px;
.del-box {
.del-box {
width: 100%;
width: 100%;
...
@@ -457,12 +458,6 @@ export default {
...
@@ -457,12 +458,6 @@ export default {
// }
// }
}
}
&:nth-child(1) {
&:nth-child(1) {
.type-list {
border-style: solid;
border-right-width: 2px;
border-image: linear-gradient(180deg, #0000 0%, #fff 30%, #0000 90%) 1;
// border-image-slice: 2;
}
.item-logo {
.item-logo {
background: linear-gradient(180deg, #c7e1f6 0%, #ffffff 85%);
background: linear-gradient(180deg, #c7e1f6 0%, #ffffff 85%);
}
}
...
@@ -470,6 +465,8 @@ export default {
...
@@ -470,6 +465,8 @@ export default {
&:nth-child(2) {
&:nth-child(2) {
.type-list {
.type-list {
border-style: solid;
border-style: solid;
border-width: 0px;
border-left-width: 2px;
border-right-width: 2px;
border-right-width: 2px;
border-image: linear-gradient(180deg, #0000 0%, #fff 30%, #0000 90%) 1;
border-image: linear-gradient(180deg, #0000 0%, #fff 30%, #0000 90%) 1;
// border-image-slice: 2;
// border-image-slice: 2;
...
...
portal-manager-ui/admin/vue.config.js
View file @
7b10c512
...
@@ -9,12 +9,13 @@ module.exports = defineConfig({
...
@@ -9,12 +9,13 @@ module.exports = defineConfig({
},
},
devServer
:
{
devServer
:
{
proxy
:
{
proxy
:
{
"
/
api
"
:
{
"
/
zwfw
"
:
{
target
:
process
.
env
.
VUE_APP_API_BASE_URL
,
target
:
process
.
env
.
VUE_APP_API_BASE_URL
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
// pathRewrite: {
"
^/api
"
:
""
,
// "^/api": "",
},
// },
cookieDomainRewrite
:
"
localhost
"
,
},
},
"
/file
"
:
{
"
/file
"
:
{
target
:
process
.
env
.
VUE_APP_API_BASE_URL
,
target
:
process
.
env
.
VUE_APP_API_BASE_URL
,
...
...
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