Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
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
xulili
ybf
Commits
9cba91ed
Commit
9cba91ed
authored
Feb 03, 2020
by
Z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Z: Dot: store's single del done.
parent
dffe03fd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
160 additions
and
159 deletions
+160
-159
store.js
ybf_admin/src/api/in/store.js
+9
-2
addStore.vue
ybf_admin/src/pages/in/contact/components/addStore.vue
+143
-145
store.vue
ybf_admin/src/pages/in/contact/store.vue
+2
-11
.eslintrc.js
ybf_admin/tests/unit/.eslintrc.js
+1
-1
yarn.lock
ybf_admin/yarn.lock
+5
-0
No files found.
ybf_admin/src/api/in/store.js
View file @
9cba91ed
...
@@ -17,11 +17,18 @@ export function ApiStoreGetStoreDetail(inData) {
...
@@ -17,11 +17,18 @@ export function ApiStoreGetStoreDetail(inData) {
})
})
}
}
export
function
ApiStoreAddStore
(
inData
)
{
return
request
({
url
:
'/admin/auth/stall/save'
,
method
:
'post'
,
data
:
qs
.
stringify
(
inData
)
})
}
export
function
ApiStoreDelStore
(
inData
)
{
export
function
ApiStoreDelStore
(
inData
)
{
return
request
({
return
request
({
url
:
'/admin/auth/stall/delete'
,
url
:
`/admin/auth/stall/delete?stallId=
${
inData
}
`
,
method
:
'delete'
,
method
:
'delete'
,
params
:
inData
})
})
}
}
...
...
ybf_admin/src/pages/in/contact/components/addStore.vue
View file @
9cba91ed
This diff is collapsed.
Click to expand it.
ybf_admin/src/pages/in/contact/store.vue
View file @
9cba91ed
...
@@ -35,9 +35,9 @@
...
@@ -35,9 +35,9 @@
<el-table-column
prop=
"name"
label=
"门店名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"门店名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"type"
label=
"门店类型"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"type"
label=
"门店类型"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"principal"
label=
"门店负责人"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"principal"
label=
"门店负责人"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"s
ignNum
"
label=
"所属柜组"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"s
hopId
"
label=
"所属柜组"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"location"
label=
"位置"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"location"
label=
"位置"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"s
hopId
"
label=
"门牌号"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"s
ignNum
"
label=
"门牌号"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"200"
>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"200"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"storeGetStoreDetail(scope.row.id)"
class=
"btn"
>
详情
</el-button>
<el-button
type=
"text"
@
click=
"storeGetStoreDetail(scope.row.id)"
class=
"btn"
>
详情
</el-button>
...
@@ -213,14 +213,8 @@ export default {
...
@@ -213,14 +213,8 @@ export default {
let
name
=
""
;
let
name
=
""
;
for
(
let
i
=
0
;
i
<
mainList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
mainList
.
length
;
i
++
)
{
console
.
log
(
"--->list: Num ="
,
i
);
id
=
this
.
list
.
main
[
i
].
principal
;
id
=
this
.
list
.
main
[
i
].
principal
;
console
.
log
(
"id ="
,
id
);
name
=
this
.
matchManIdAndManName
(
id
);
name
=
this
.
matchManIdAndManName
(
id
);
console
.
log
(
"name ="
,
name
);
this
.
list
.
main
[
i
].
principal
=
name
;
this
.
list
.
main
[
i
].
principal
=
name
;
}
}
},
},
...
@@ -232,11 +226,8 @@ export default {
...
@@ -232,11 +226,8 @@ export default {
};
};
ApiStoreGetMainList
(
postData
).
then
(
res
=>
{
ApiStoreGetMainList
(
postData
).
then
(
res
=>
{
// this.list.mainV = res.data.adminStalls;
this
.
list
.
main
=
res
.
data
.
pageInfo_adminStalls
.
list
[
0
];
this
.
list
.
main
=
res
.
data
.
pageInfo_adminStalls
.
list
[
0
];
this
.
list
.
man
=
res
.
data
.
pageInfo_principals
.
list
[
0
];
this
.
list
.
man
=
res
.
data
.
pageInfo_principals
.
list
[
0
];
console
.
log
(
"===>Main: Length ="
,
this
.
list
.
main
.
length
);
console
.
log
(
"===>Man: Length ="
,
this
.
list
.
man
.
length
);
this
.
transManIdToManName
();
this
.
transManIdToManName
();
});
});
},
},
...
...
ybf_admin/tests/unit/.eslintrc.js
View file @
9cba91ed
...
@@ -3,6 +3,6 @@ module.exports = {
...
@@ -3,6 +3,6 @@ module.exports = {
jest
:
true
jest
:
true
},
},
rules
:
{
rules
:
{
'import/no-extraneous-dependencies'
:
'off'
//
'import/no-extraneous-dependencies': 'off'
}
}
}
}
\ No newline at end of file
ybf_admin/yarn.lock
View file @
9cba91ed
...
@@ -3684,6 +3684,11 @@ ejs@^2.6.1:
...
@@ -3684,6 +3684,11 @@ ejs@^2.6.1:
resolved "https://registry.npm.taobao.org/ejs/download/ejs-2.7.4.tgz?cache=0&sync_timestamp=1574560175968&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fejs%2Fdownload%2Fejs-2.7.4.tgz#48661287573dcc53e366c7a1ae52c3a120eec9ba"
resolved "https://registry.npm.taobao.org/ejs/download/ejs-2.7.4.tgz?cache=0&sync_timestamp=1574560175968&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fejs%2Fdownload%2Fejs-2.7.4.tgz#48661287573dcc53e366c7a1ae52c3a120eec9ba"
integrity sha1-SGYSh1c9zFPjZsehrlLDoSDuybo=
integrity sha1-SGYSh1c9zFPjZsehrlLDoSDuybo=
el-tree-transfer@^2.2.6:
version "2.2.6"
resolved "https://registry.yarnpkg.com/el-tree-transfer/-/el-tree-transfer-2.2.6.tgz#5115d49c13f15772a354fe250c6a63be412ef575"
integrity sha512-2vBex7F5uPiueP8e+5BpU1bad0A47DeS7DqlG/TA6DzXL4l3stHc5wTls6J0UQwKcUZO43eytebySKfrE58+uw==
electron-to-chromium@^1.3.322:
electron-to-chromium@^1.3.322:
version "1.3.322"
version "1.3.322"
resolved "https://registry.npm.taobao.org/electron-to-chromium/download/electron-to-chromium-1.3.322.tgz#a6f7e1c79025c2b05838e8e344f6e89eb83213a8"
resolved "https://registry.npm.taobao.org/electron-to-chromium/download/electron-to-chromium-1.3.322.tgz#a6f7e1c79025c2b05838e8e344f6e89eb83213a8"
...
...
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