Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhanglw
sensorConsult
Commits
e1ffa92a
Commit
e1ffa92a
authored
Aug 23, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前台我要供应权限
parent
53f94f4b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
7 deletions
+32
-7
.env.development
.env.development
+5
-2
routers.js
src/router/routers.js
+1
-0
add.vue
src/views/homepage/console/add.vue
+1
-1
index.vue
src/views/homepage/index.vue
+6
-1
supplyInfo.vue
src/views/homepage/publish/supplyInfo.vue
+14
-2
index.vue
src/views/homepage/supplier/index.vue
+5
-1
No files found.
.env.development
View file @
e1ffa92a
ENV = 'development'
ENV = 'development'
# 接口地址
# 接口地址
VUE_APP_BASE_API = 'http://192.168.3.23:7001'
#VUE_APP_BASE_API = 'http://192.168.3.23:7001'
VUE_APP_WS_API = 'ws://192.168.3.23:7001'
#VUE_APP_WS_API = 'ws://192.168.3.23:7001'
VUE_APP_BASE_API = 'http://60.217.78.224:7001'
VUE_APP_WS_API = 'ws://60.217.78.224:7001'
# 是否启用 babel-plugin-dynamic-import-node插件
# 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true
VUE_CLI_BABEL_TRANSPILE_MODULES = true
src/router/routers.js
View file @
e1ffa92a
...
@@ -72,6 +72,7 @@ export const constantRouterMap = [
...
@@ -72,6 +72,7 @@ export const constantRouterMap = [
},
},
{
{
path
:
'
/supplier
'
,
path
:
'
/supplier
'
,
name
:
'
supplier
'
,
meta
:
{
title
:
'
优质供应商
'
,
noCache
:
true
},
meta
:
{
title
:
'
优质供应商
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/supplier/index
'
],
resolve
)
return
require
([
'
@/views/homepage/supplier/index
'
],
resolve
)
...
...
src/views/homepage/console/add.vue
View file @
e1ffa92a
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center"
>
<el-button
@
click=
"cancelView"
>
取消
</el-button>
<el-button
@
click=
"cancelView"
>
取消
</el-button>
<el-button
type=
"success"
@
click=
"submitForm()"
>
保存
</el-button
>
<!--
<el-button
type=
"success"
@
click=
"submitForm()"
>
保存
</el-button>
--
>
<el-button
type=
"primary"
@
click=
"submitForm()"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm()"
>
提交
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/views/homepage/index.vue
View file @
e1ffa92a
...
@@ -304,7 +304,12 @@ export default {
...
@@ -304,7 +304,12 @@ export default {
},
},
// 点击地区top
// 点击地区top
areaTopClick
(
text
)
{
areaTopClick
(
text
)
{
console
.
log
(
text
)
this
.
$router
.
push
({
name
:
'
supplier
'
,
params
:
{
areaText
:
text
}
})
},
},
// 点击更多
// 点击更多
moreTo
(
type
)
{
moreTo
(
type
)
{
...
...
src/views/homepage/publish/supplyInfo.vue
View file @
e1ffa92a
...
@@ -218,7 +218,7 @@
...
@@ -218,7 +218,7 @@
</el-form>
</el-form>
<div
style=
"width: 100%;text-align: center"
>
<div
style=
"width: 100%;text-align: center"
>
<el-button
@
click=
"cancelView"
>
返回
</el-button>
<el-button
@
click=
"cancelView"
>
返回
</el-button>
<el-button
type=
"success"
@
click=
"submitForm()"
>
保存
</el-button
>
<!--
<el-button
type=
"success"
@
click=
"submitForm()"
>
保存
</el-button>
--
>
<el-button
type=
"primary"
@
click=
"submitForm()"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm()"
>
提交
</el-button>
</div>
</div>
</div>
</div>
...
@@ -329,7 +329,19 @@ export default {
...
@@ -329,7 +329,19 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
HttpReq
.
webClientApi
.
personalCenterInfo
().
then
((
res
)
=>
{
if
(
res
.
data
.
supplierStatus
>
1
)
{
this
.
$confirm
(
`您的供应商信息暂未审核,请待审核完成后再操作。`
,
'
提示
'
,
{
confirmButtonText
:
'
去完善信息
'
,
cancelButtonText
:
'
返回
'
,
type
:
'
warning
'
}).
then
(()
=>
{
this
.
$router
.
push
({
path
:
`/console/userInfo`
})
}).
catch
(()
=>
{
this
.
$router
.
go
(
-
1
)
})
}
})
})
})
},
},
methods
:
{
methods
:
{
...
...
src/views/homepage/supplier/index.vue
View file @
e1ffa92a
...
@@ -189,7 +189,6 @@ export default {
...
@@ -189,7 +189,6 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
query
=
Object
.
assign
(
this
.
query
,
this
.
$route
.
params
)
HttpReq
.
webClientApi
.
homePageGetSearch
({
HttpReq
.
webClientApi
.
homePageGetSearch
({
preview
:
false
preview
:
false
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
...
@@ -200,6 +199,11 @@ export default {
...
@@ -200,6 +199,11 @@ export default {
methods
:
{
methods
:
{
onDictReady
(
dict
)
{
onDictReady
(
dict
)
{
this
.
areaOpts
=
[{
value
:
undefined
,
label
:
'
全部
'
},
...
dict
.
area_province
]
this
.
areaOpts
=
[{
value
:
undefined
,
label
:
'
全部
'
},
...
dict
.
area_province
]
if
(
this
.
$route
.
params
.
areaText
)
{
this
.
query
.
area
=
this
.
areaOpts
.
filter
(
item
=>
{
return
item
.
label
===
this
.
$route
.
params
.
areaText
})[
0
].
value
}
this
.
search
()
this
.
search
()
},
},
search
()
{
search
()
{
...
...
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