Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
document-management
Project
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
ry-istanbul-web
document-management
Commits
fb636d31
Commit
fb636d31
authored
Nov 21, 2022
by
lxyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:界面编写完成
parent
af2a94a2
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
57 additions
and
126 deletions
+57
-126
.env.development
.env.development
+2
-2
.env.staging
.env.staging
+2
-2
.env.test2
.env.test2
+2
-2
index.js
build/index.js
+1
-1
customer.js
src/api/system/customer.js
+5
-87
white.svg
src/assets/icons/svg/white.svg
+6
-0
logo.png
src/assets/image/logo.png
+0
-0
Navbar.vue
src/layout/components/Navbar.vue
+2
-2
Logo.vue
src/layout/components/Sidebar/Logo.vue
+3
-5
index.js
src/router/index.js
+1
-1
index.scss
src/views/index.scss
+5
-2
index.vue
src/views/index.vue
+4
-2
index.vue
src/views/system/customer/index.vue
+22
-18
vue.config.js
vue.config.js
+2
-2
No files found.
.env.development
View file @
fb636d31
# 本地环境配置
ENV = 'development'
VUE_APP_TITLE='dev'
VUE_APP_BASE_API = '//
admin-test1.adsdesk.cn/admin
'
VUE_APP_BASE_API_bat = '//
admin-test1.adsdesk.cn/admin
'
VUE_APP_BASE_API = '//
office.eks-test.trackingio.com
'
VUE_APP_BASE_API_bat = '//
office.eks-test.trackingio.com
'
.env.staging
View file @
fb636d31
# 测试环境1配置
ENV = 'production'
VUE_APP_TITLE='test'
VUE_APP_BASE_API_bat = '//
admin-test1.adsdesk.cn/admin
'
VUE_APP_BASE_API = '//
admin-test1.adsdesk.cn/admin
'
VUE_APP_BASE_API_bat = '//
office.eks-test.trackingio.com
'
VUE_APP_BASE_API = '//
office.eks-test.trackingio.com
'
.env.test2
View file @
fb636d31
# 测试环境2配置
ENV = 'production'
VUE_APP_TITLE='test2'
VUE_APP_BASE_API = '//
admin-test2.adsdesk.cn/admin
'
VUE_APP_BASE_API_bat = '//
admin-test2.adsdesk.cn/admin
'
VUE_APP_BASE_API = '//
office.eks-test.trackingio.com
'
VUE_APP_BASE_API_bat = '//
office.eks-test.trackingio.com
'
build/index.js
View file @
fb636d31
...
...
@@ -18,7 +18,7 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
app
.
use
(
publicPath
,
serveStatic
(
'
./dist
'
,
{
serveStatic
(
'
/dist/
'
,
{
index
:
[
'index.html'
,
'/'
]
})
)
...
...
src/api/system/customer.js
View file @
fb636d31
...
...
@@ -14,7 +14,7 @@ import request from '@/utils/request'
export
function
addCustomer
({
customerName
,
customerEmail
,
customerContact
,
customerPhone
,
customerAddress
,
status
,
customerOperator
,
customerArea
,
contractTime
,
type
})
{
return
request
({
url
:
'/system/customer/'
,
method
:
'
POS
T'
,
method
:
'
GE
T'
,
data
:
{
customerName
,
customerEmail
,
customerContact
,
customerPhone
,
customerAddress
,
customerOperator
,
customerArea
,
status
,
contractTime
,
type
}
})
}
...
...
@@ -30,92 +30,10 @@ export function addCustomer({ customerName, customerEmail, customerContact, cust
* @param status 状态
* @param contractTime 合同时间
*/
export
function
editCustomer
({
customerId
,
customerName
,
customerEmail
,
customerContact
,
customerPhone
,
customerAddress
,
customerOperator
,
customerArea
,
status
,
contractTime
,
type
}
)
{
export
function
doctaskList
(
data
)
{
return
request
({
url
:
'/system/customer/'
+
customerId
,
method
:
'PUT'
,
data
:
{
customerId
,
customerName
,
customerEmail
,
customerContact
,
customerPhone
,
customerAddress
,
status
,
contractTime
,
customerOperator
,
customerArea
,
type
}
})
}
/**
* 获取客户列表
* @param current 当前页
* @param size 每页记录数
* @param customerName 客户名称
* @param status 客户状态
* @param startTime
* @param endTime
* @returns {Promise<void> | * | AxiosPromise<any> | ClientHttp2Stream | http.ClientRequest}
*/
export
function
listCustomer
({
current
,
size
,
customerName
,
customerArea
,
customerOperator
,
status
,
startTime
,
endTime
,
type
})
{
return
request
({
url
:
'/system/customer/list'
,
method
:
'POST'
,
data
:
{
current
,
size
,
customerName
,
status
,
startTime
,
endTime
,
customerArea
,
customerOperator
,
type
}
})
}
/**
* 获取客户
* @param customerId 客户ID
*/
export
function
getCustomer
(
customerId
)
{
return
request
({
url
:
'/system/customer/'
+
customerId
,
method
:
'GET'
})
}
/**
* 删除客户
* @param customerId 客户ID
*/
export
function
deleteCustomer
(
customerId
)
{
return
request
({
url
:
'/system/customer/'
+
customerId
,
method
:
'DELETE'
})
}
export
function
editStatus
(
customerId
,
status
)
{
return
request
({
url
:
'/system/customer/'
+
customerId
+
'/'
+
status
,
method
:
'PUT'
})
}
export
function
resetPassword
(
customerId
)
{
return
request
({
url
:
`/system/customer/
${
customerId
}
/password/reset`
,
method
:
'POST'
})
}
/**
* 客户产品List - 导出数据接口
* @param customerName 客户名称
* @param status 客户状态
* @param startTime
* @param endTime
* **/
export
function
productExport
(
data
)
{
return
request
({
url
:
'/system/customer/export'
,
method
:
'POST'
,
data
,
responseType
:
'arraybuffer'
url
:
'/api/doc/doctask/list'
,
method
:
'post'
,
params
:
data
})
}
src/assets/icons/svg/white.svg
0 → 100644
View file @
fb636d31
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"20px"
height=
"20px"
viewBox=
"0 0 20 20"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<title>
1.Bace基础/3.Icon图标/其他/server/white
</title>
<path
d=
"M17.5003052,2.5 C17.8454173,2.5 18.1252122,2.77971875 18.1253052,3.1248305 L18.1264925,8.74985218 C18.1266618,9.09509659 17.8467369,9.37502205 17.5014925,9.37502205 L2.50149243,9.37502205 C2.15638068,9.37502205 1.87658564,9.09530342 1.87649202,8.75019133 L1.87530518,3.1251698 C1.87530518,2.77992561 2.15506099,2.5 2.50030518,2.5 L17.5003052,2.5 Z M16.8754745,3.75 L3.12547475,3.75 L3.12632248,8.12502205 L16.8763232,8.12502205 L16.8754745,3.75 Z M8.75,5.3125 L8.75,6.5625 L5,6.5625 L5,5.3125 L8.75,5.3125 Z M17.5016618,10.6250173 C17.8468394,10.6250173 18.1266618,10.9048396 18.1266618,11.2500173 L18.1266618,16.875 C18.1266618,17.2201777 17.8468394,17.5 17.5016618,17.5 L2.50166193,17.5 C2.15648398,17.5 1.87666151,17.2201777 1.87666151,16.875 L1.87666151,11.2500173 C1.87666151,10.904839 2.15648357,10.6250173 2.50166148,10.6250173 L17.5016618,10.6250173 Z M16.8766618,11.8750173 L3.12666148,11.8750173 L3.12666148,16.25 L16.8766618,16.25 L16.8766618,11.8750173 Z M8.7501353,13.4375 L8.7501353,14.6875 L5.0001356,14.6875 L5.0001356,13.4375 L8.7501353,13.4375 Z"
id=
"Combined-Shape"
></path>
</svg>
\ No newline at end of file
src/assets/image/logo.png
0 → 100644
View file @
fb636d31
17.1 KB
src/layout/components/Navbar.vue
View file @
fb636d31
<
template
>
<div
class=
"navbar"
>
<div
class=
"menu-item active"
>
智能文档监测
</div>
<div
class=
"menu-item"
@
click=
"hint('探真')"
>
探真
</div>
<div
class=
"menu-item"
@
click=
"hint('微舆情')"
>
微舆情
</div>
<div
class=
"menu-item"
@
click=
"hint('探真')"
>
探真
尽情期待
</div>
<div
class=
"menu-item"
@
click=
"hint('微舆情')"
>
微舆情
尽情期待
</div>
<div
class=
"icon"
><img
class=
"icon-img"
src=
"../../assets/image/user-circle.png"
alt=
""
></div>
<div
class=
"icon"
><img
class=
"icon-img"
src=
"../../assets/image/phone.png"
alt=
""
></div>
<div
class=
"icon"
><img
class=
"icon-img"
src=
"../../assets/image/message.png"
alt=
""
></div>
...
...
src/layout/components/Sidebar/Logo.vue
View file @
fb636d31
...
...
@@ -3,18 +3,16 @@
<transition
name=
"sidebarLogoFade"
>
<router-link
v-if=
"collapse"
key=
"collapse"
class=
"sidebar-logo-link"
to=
"/"
>
<img
v-if=
"logo"
:src=
"logo"
class=
"sidebar-logo"
>
<h1
v-else
class=
"sidebar-title"
>
{{
title
}}
</h1>
</router-link>
<router-link
v-else
key=
"expand"
class=
"sidebar-logo-link"
to=
"/"
>
<img
v-if=
"logo"
:src=
"logo"
class=
"sidebar-logo"
>
<h1
class=
"sidebar-title"
>
{{
title
}}
</h1>
</router-link>
</transition>
</div>
</
template
>
<
script
>
import
logoImg
from
'@/assets/
logo
/logo.png'
import
logoImg
from
'@/assets/
image
/logo.png'
export
default
{
name
:
'SidebarLogo'
,
...
...
@@ -57,8 +55,8 @@ export default {
width
:
100%
;
&
.sidebar-logo
{
width
:
32
px
;
height
:
32
px
;
width
:
208
px
;
height
:
64
px
;
vertical-align
:
middle
;
margin-right
:
12px
;
}
...
...
src/router/index.js
View file @
fb636d31
...
...
@@ -113,7 +113,7 @@ export const constantRoutes = [
component
:
Layout
,
name
:
'文档管理'
,
meta
:
{
icon
:
'
server-new
'
,
icon
:
'
white
'
,
title
:
'文档管理'
},
path
:
'/documentManagement'
,
...
...
src/views/index.scss
View file @
fb636d31
...
...
@@ -21,14 +21,17 @@
z-index
:
1
;
.seach-logo
{
width
:
190px
;
height
:
45
px
;
height
:
60
px
;
line-height
:
45px
;
background
:
#fff
;
color
:
#222
;
font-size
:
40px
;
font-weight
:
600
;
text-align
:
center
;
margin
:
0
auto
20px
auto
;
img
{
width
:
190px
;
height
:
60px
;
}
}
.common-url
{
margin-top
:
80px
;
...
...
src/views/index.vue
View file @
fb636d31
<
template
>
<div
class=
"dashboard-editor-container"
>
<div
class=
"seach-center"
>
<div
class=
"seach-logo"
>
logo
</div>
<div
class=
"seach-logo"
>
<img
:src=
"logo"
alt=
""
>
</div>
<el-input
prefix-icon=
"el-icon-search"
placeholder=
"请输入你需要搜索的内容"
@
keyup
.
enter
.
native=
"searchDocument"
v-model=
"search"
class=
"input-with-select"
>
<el-button
slot=
"append"
@
click=
"searchDocument"
>
搜索文档
</el-button>
</el-input>
...
...
@@ -17,12 +17,14 @@
</
template
>
<
script
>
import
logoImg
from
'@/assets/image/logo.png'
export
default
{
name
:
"Index"
,
data
()
{
return
{
loading
:
false
,
search
:
''
search
:
''
,
logo
:
logoImg
};
},
watch
:
{},
...
...
src/views/system/customer/index.vue
View file @
fb636d31
...
...
@@ -6,7 +6,7 @@
跟踪文档列表
</div>
<div
class=
"seachData-right"
>
<el-input
v-model=
"queryParams.
taskN
ame"
<el-input
v-model=
"queryParams.
n
ame"
placeholder=
"请输入任务名称"
suffix-icon=
"el-icon-search"
clearable
...
...
@@ -99,8 +99,8 @@
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.
current
"
:limit
.
sync=
"queryParams.size"
:page
.
sync=
"queryParams.
pageindex
"
:limit
.
sync=
"queryParams.
page
size"
layout=
"total, prev, pager, next"
@
pagination=
"searchCustomer"
/>
</div>
...
...
@@ -132,17 +132,17 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
class=
"second-level"
v-if=
"form.document === '1'"
label=
"文档链接"
prop=
"link"
>
<el-input
v-model
.
trim=
"form.link"
placeholder=
"请输入文档链接"
/>
</el-form-item>
<el-form-item
label=
"邮箱通知"
prop=
"email"
>
<el-input
v-model
.
trim=
"form.email"
placeholder=
"请输入要订阅和通知的邮箱"
:disabled=
"editFlag"
/>
</el-form-item>
<el-form-item
v-if=
"form.document === '1'"
label=
"文档链接"
prop=
"link"
>
<el-input
v-model
.
trim=
"form.link"
placeholder=
"请输入文档链接"
/>
</el-form-item>
<el-form-item
label=
"任务说明"
>
<el-input
v-model
.
trim=
"form.explain"
type=
"textarea"
...
...
@@ -174,7 +174,7 @@
<
script
>
import
{
listCustomer
,
doctaskList
,
}
from
"@/api/system/customer"
;
export
default
{
data
()
{
...
...
@@ -206,9 +206,9 @@ export default {
],
// 查询参数
queryParams
:
{
current
:
1
,
size
:
10
,
taskN
ame
:
""
pageindex
:
1
,
page
size
:
10
,
n
ame
:
""
},
queryParamsStatus
:
true
,
// 表单参数
...
...
@@ -339,8 +339,9 @@ export default {
},
searchCustomer
()
{
this
.
loading
=
true
;
// listCustomer(this.queryParams)
// .then(response => {
doctaskList
(
this
.
queryParams
)
.
then
(
response
=>
{
console
.
log
(
response
,
'response'
)
let
data
=
[
{
id
:
1
,
...
...
@@ -388,10 +389,10 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
customerListHeights
=
this
.
$refs
.
customerListHeight
.
offsetHeight
})
//
})
//
.catch(error => {
//
this.loading = false;
//
});
})
.
catch
(
error
=>
{
this
.
loading
=
false
;
});
this
.
$nextTick
(()
=>
{
this
.
customerListHeights
=
this
.
$refs
.
customerListHeight
.
offsetHeight
})
...
...
@@ -663,4 +664,7 @@ export default {
margin-left
:
8px
;
}
}
.second-level
{
margin-left
:
20px
;
}
</
style
>
vue.config.js
View file @
fb636d31
...
...
@@ -27,9 +27,9 @@ module.exports = {
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
productionSourceMap
:
false
,
devServer
:
{
proxy
:
'http://172.21.6.245:9090/admin'
proxy
:
'https://office.eks-test.trackingio.com'
,
// proxy: 'http://54.222.213.124:9090/admin',
//
https: true
https
:
true
},
configureWebpack
:
{
name
:
name
,
...
...
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