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
1d19e9fb
Commit
1d19e9fb
authored
May 15, 2023
by
彭松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c08f11df
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
47 deletions
+65
-47
portal-manager-ui/admin/.env.development
portal-manager-ui/admin/.env.development
+0
-3
portal-manager-ui/admin/src/api/customer.js
portal-manager-ui/admin/src/api/customer.js
+1
-1
portal-manager-ui/admin/src/api/dataAdmin.js
portal-manager-ui/admin/src/api/dataAdmin.js
+10
-0
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/components/addEditAppName.vue
...et/components/productManage/components/addEditAppName.vue
+28
-33
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/productManage.vue
...ePlatformIsSet/components/productManage/productManage.vue
+26
-10
No files found.
portal-manager-ui/admin/.env.development
View file @
1d19e9fb
...
@@ -11,6 +11,3 @@ VUE_APP_API_PHP_URL=http://8.136.255.30:8090
...
@@ -11,6 +11,3 @@ VUE_APP_API_PHP_URL=http://8.136.255.30:8090
#正式
#正式
VUE_APP_API_PRP_RUL=http://112.19.80.237:11007
VUE_APP_API_PRP_RUL=http://112.19.80.237:11007
#易政秀报表
VUE_APP_API_TEST_RUL=http://8.136.255.30
portal-manager-ui/admin/src/api/customer.js
View file @
1d19e9fb
import
http
from
"
../request/http
"
;
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_TEST_RUL
let
baseURL
=
"
http://8.136.255.30
"
let
proURL
=
process
.
env
.
VUE_APP_API_PRP_RUL
;
let
proURL
=
process
.
env
.
VUE_APP_API_PRP_RUL
;
// 查询客户管理列表
// 查询客户管理列表
...
...
portal-manager-ui/admin/src/api/dataAdmin.js
View file @
1d19e9fb
...
@@ -191,3 +191,13 @@ export function getImpossibleInfo(params) {
...
@@ -191,3 +191,13 @@ export function getImpossibleInfo(params) {
export
function
getKqalert
(
params
)
{
export
function
getKqalert
(
params
)
{
return
http
.
get
(
`
${
BASEURL
}
/admin/kqalert/list`
,
params
);
return
http
.
get
(
`
${
BASEURL
}
/admin/kqalert/list`
,
params
);
}
}
// 查询产品信息列表
export
function
getProduct
(
params
)
{
return
http
.
post
(
`
${
baseURL
}
/zwfw/product/list`
,
params
);
}
// 查询产品信息列表
export
function
saveProduct
(
params
)
{
return
http
.
post
(
`
${
baseURL
}
/zwfw/product/save`
,
params
);
}
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/components/addEditAppName.vue
View file @
1d19e9fb
<
template
>
<
template
>
<a-modal
<a-modal
:title=
"VisibleTitle"
:centered=
"true"
:destroyOnClose=
"true"
:visible=
"Visible"
@
cancel=
"Visible = false"
:title=
"VisibleTitle"
width=
"30%"
>
:centered=
"true"
<a-form-model
:label-col=
"
{
:destroyOnClose=
"true"
:visible=
"Visible"
@
cancel=
"Visible = false"
width=
"30%"
>
<a-form-model
:label-col=
"
{
span: 5,
span: 5,
}"
}" :wrapper-col="{
:wrapper-col="{
span: 19,
span: 19,
}"
}" layout="horizontal" ref="appInfoFome" :model="appInfoFome" :rules="appInfoRules">
layout="horizontal"
<a-form-model-item
label=
"产品名称"
prop=
"productName"
>
ref="appInfoFome"
<a-input
placeholder=
"请输入产品名称"
allowClear
v-model=
"appInfoFome.productName"
/>
:model="appInfoFome"
:rules="appInfoRules"
>
<a-form-model-item
label=
"产品名称"
prop=
"appName"
>
<a-input
placeholder=
"请输入产品名称"
allowClear
v-model=
"appInfoFome.appName"
/>
</a-form-model-item>
</a-form-model-item>
</a-form-model>
</a-form-model>
<template
slot=
"footer"
>
<template
slot=
"footer"
>
...
@@ -35,6 +18,7 @@
...
@@ -35,6 +18,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
saveProduct
}
from
"
@/api/dataAdmin.js
"
;
export
default
{
export
default
{
name
:
"
PortalAdminVueAddEditAppName
"
,
name
:
"
PortalAdminVueAddEditAppName
"
,
data
()
{
data
()
{
...
@@ -42,14 +26,15 @@ export default {
...
@@ -42,14 +26,15 @@ export default {
Visible
:
false
,
//模态
Visible
:
false
,
//模态
VisibleTitle
:
"
新增产品
"
,
VisibleTitle
:
"
新增产品
"
,
appInfoFome
:
{
appInfoFome
:
{
appName
:
undefined
,
productName
:
undefined
,
siteId
:
JSON
.
parse
(
localStorage
.
getItem
(
"
siteId
"
))
},
//页面表单信息
},
//页面表单信息
appInfoRules
:
{
appInfoRules
:
{
app
Name
:
[
product
Name
:
[
{
{
required
:
true
,
//是否必选
required
:
true
,
//是否必选
whitespace
:
true
,
//必选时,空格是否会被视为错误
whitespace
:
true
,
//必选时,空格是否会被视为错误
message
:
"
请输入
用户
名称
"
,
message
:
"
请输入
产品
名称
"
,
trigger
:
"
blur
"
,
trigger
:
"
blur
"
,
},
},
// {
// {
...
@@ -61,12 +46,22 @@ export default {
...
@@ -61,12 +46,22 @@ export default {
};
};
},
},
mounted
()
{},
mounted
()
{
},
methods
:
{
methods
:
{
Modal_Ok
()
{
Modal_Ok
()
{
this
.
$refs
.
appInfoFome
.
validate
((
valid
)
=>
{
this
.
$refs
.
appInfoFome
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
console
.
log
(
this
.
appInfoFome
);
saveProduct
(
this
.
appInfoFome
).
then
(
res
=>
{
let
{
code
,
msg
}
=
res
if
(
code
==
1
)
{
this
.
$message
.
success
(
'
保存成功
'
);
this
.
resetForm
();
this
.
Visible
=
false
this
.
$parent
.
getList
()
}
else
{
this
.
$message
.
error
(
msg
);
}
})
}
else
{
}
else
{
this
.
$message
.
error
(
`请完善表单信息!`
);
this
.
$message
.
error
(
`请完善表单信息!`
);
return
false
;
return
false
;
...
@@ -75,7 +70,7 @@ export default {
...
@@ -75,7 +70,7 @@ export default {
},
},
resetForm
()
{
resetForm
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
appInfoFome
.
resetFields
();
this
.
appInfoFome
.
productName
=
''
});
});
},
},
},
},
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/productManage.vue
View file @
1d19e9fb
...
@@ -10,16 +10,16 @@
...
@@ -10,16 +10,16 @@
</h4>
</h4>
</div>
</div>
<div
class=
"main"
>
<div
class=
"main"
>
<a-button
type=
"primary"
class=
"addclass add_btn"
ghost
@
click=
"showModal(
2
)"
>
<a-button
type=
"primary"
class=
"addclass add_btn"
ghost
@
click=
"showModal()"
>
新增产品
新增产品
</a-button>
</a-button>
<ul
class=
"content"
>
<ul
class=
"content"
>
<li
class=
"list"
v-for=
"item
of 5"
:key=
"item
"
>
<li
class=
"list"
v-for=
"item
, index of listData"
:key=
"index
"
>
<a-popover
placement=
"leftBottom"
>
<a-popover
placement=
"leftBottom"
>
<template
slot=
"content"
>
<template
slot=
"content"
>
<div
class=
"popoverContent"
>
<div
class=
"popoverContent"
>
<p>
<p>
<a-button
type=
"link"
size=
"small"
style=
"color: #0595fd"
@
click=
"showModal(
1
)"
>
<a-button
type=
"link"
size=
"small"
style=
"color: #0595fd"
@
click=
"showModal(
item
)"
>
编辑
编辑
</a-button>
</a-button>
</p>
</p>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</a-popover>
</a-popover>
<img
src=
"~@/assets/images/u52.png"
alt=
""
class=
"app-img"
/>
<img
src=
"~@/assets/images/u52.png"
alt=
""
class=
"app-img"
/>
<div
class=
"app-name"
>
排号系统
</div>
<div
class=
"app-name"
>
{{ item.productName }}
</div>
<ul
class=
"app-option"
>
<ul
class=
"app-option"
>
<li
@
click=
"routerpush1"
>
接口管理
<a-icon
type=
"right"
/></li>
<li
@
click=
"routerpush1"
>
接口管理
<a-icon
type=
"right"
/></li>
<li
@
click=
"routerpush2"
>
应用管理
<a-icon
type=
"right"
/></li>
<li
@
click=
"routerpush2"
>
应用管理
<a-icon
type=
"right"
/></li>
...
@@ -48,29 +48,44 @@
...
@@ -48,29 +48,44 @@
</template>
</template>
<
script
>
<
script
>
import
{
getProduct
}
from
"
@/api/dataAdmin.js
"
;
import
AddEditAppName
from
"
./components/addEditAppName.vue
"
;
import
AddEditAppName
from
"
./components/addEditAppName.vue
"
;
export
default
{
export
default
{
name
:
"
PortalAdminVueProductManage
"
,
name
:
"
PortalAdminVueProductManage
"
,
data
()
{
data
()
{
return
{
return
{
searchVal
:
undefined
,
searchVal
:
''
,
listData
:
[]
};
};
},
},
components
:
{
components
:
{
AddEditAppName
,
AddEditAppName
,
},
},
mounted
()
{
},
mounted
()
{
this
.
getList
()
},
methods
:
{
methods
:
{
getList
()
{
getProduct
({
page
:
1
,
size
:
-
1
,
productName
:
this
.
searchVal
}).
then
((
res
)
=>
{
this
.
listData
=
res
.
data
.
data
})
},
pushroeuter
()
{
pushroeuter
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"
/home/thePlatformIsSet/portDocument
"
,
path
:
"
/home/thePlatformIsSet/portDocument
"
,
// query: { testoption: "test001" },
// query: { testoption: "test001" },
});
});
},
},
showModal
(
type
)
{
showModal
(
item
)
{
if
(
type
==
1
)
{
if
(
item
)
{
this
.
$refs
.
AddEditAppName
.
VisibleTitle
=
"
编辑
"
;
this
.
$refs
.
AddEditAppName
.
VisibleTitle
=
"
编辑
"
;
}
else
if
(
type
==
2
)
{
this
.
$refs
.
AddEditAppName
.
appInfoFome
.
id
=
item
.
id
this
.
$refs
.
AddEditAppName
.
appInfoFome
.
appName
=
item
.
productName
}
else
{
this
.
$refs
.
AddEditAppName
.
VisibleTitle
=
"
新增产品
"
;
this
.
$refs
.
AddEditAppName
.
VisibleTitle
=
"
新增产品
"
;
}
}
this
.
$refs
.
AddEditAppName
.
Visible
=
true
;
this
.
$refs
.
AddEditAppName
.
Visible
=
true
;
...
@@ -319,4 +334,5 @@ export default {
...
@@ -319,4 +334,5 @@ export default {
rgba(108, 53, 247, 1) 85%);
rgba(108, 53, 247, 1) 85%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#3b87ff", endColorstr="#6c35f7", GradientType=1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#3b87ff", endColorstr="#6c35f7", GradientType=1);
}
}
}
</
style
>
}
</
style
>
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