Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
c8d0ab6e
提交
c8d0ab6e
编写于
12月 07, 2021
作者:
changdi.hao
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'release' into testing/3.23
上级
73ad95bc
c306d24a
变更
4
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
604 行增加
和
284 行删除
+604
-284
educationApi.js
src/utils/education/educationApi.js
+11
-0
item-shield.vue
src/views/education/item-shield.vue
+120
-0
create-shop.vue
src/views/shop/create-shop.vue
+386
-271
shop-list.vue
src/views/shop/shop-list.vue
+87
-13
未找到文件。
src/utils/education/educationApi.js
浏览文件 @
c8d0ab6e
...
@@ -46,4 +46,15 @@ export const uploadPersonExcel = (data, projectId) => {
...
@@ -46,4 +46,15 @@ export const uploadPersonExcel = (data, projectId) => {
description
:
'上传excel文件'
,
description
:
'上传excel文件'
,
})
})
// })
// })
}
export
const
uploadShieldExcel
=
(
data
,
projectId
)
=>
{
return
fetch
({
headers
:
{
token
:
localStorage
.
getItem
(
'storageToken'
),
},
url
:
getBaseUrl
(
'aggregate/black/setPeopleBlackStatus/batch/'
+
projectId
),
method
:
'post'
,
data
:
data
,
description
:
'上传excel文件'
,
})
}
}
\ No newline at end of file
src/views/education/item-shield.vue
浏览文件 @
c8d0ab6e
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
</el-col>
</el-col>
<el-col
:span=
"6"
style=
"padding:0;text-align:right;padding-right:10px;"
>
<el-col
:span=
"6"
style=
"padding:0;text-align:right;padding-right:10px;"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"searchList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"searchList()"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"importOrder()"
v-if=
"shieldType == 1"
>
批量导入
</el-button>
</el-col>
</el-col>
</el-form>
</el-form>
</el-row>
</el-row>
...
@@ -103,12 +104,60 @@
...
@@ -103,12 +104,60 @@
</span>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
<!-- 导入屏蔽人员名单 -->
<el-dialog
class=
"exportlogistics-dialog"
title=
"批量导入"
:visible=
"isShowImport"
@
close=
"isShowImport = false"
width=
"600px"
>
<el-form
label-width=
"120px"
>
<el-form-item
label=
"导入文档:"
>
<el-upload
class=
"upload-excel"
action=
"#"
accept=
".xlsx"
multiple
:limit=
"1"
:show-file-list=
"true"
:before-upload=
"uploadfile"
>
<div
class=
"upload-container"
>
<el-input
class=
"file-name"
v-model=
"fileData.fileName"
size=
"mini"
readonly
></el-input
>
<el-button
type=
"primary"
size=
"mini"
>
选择文件
</el-button>
</div>
</el-upload>
</el-form-item>
<el-form-item
label=
"模板:"
>
<a
class=
"import-url"
:href=
"logisticsUrl"
style=
"color: #449284"
>
批量导入模板.xlxs
</a>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"cancelImport"
>
取消
</el-button>
<el-button
size=
"small"
:loading=
"isLoading"
type=
"primary"
@
click=
"confirmImport"
>
确认
</el-button
>
</div>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
BreadCrumb
from
"../../components/breadcrumb.vue"
;
import
BreadCrumb
from
"../../components/breadcrumb.vue"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
uploadShieldExcel
}
from
"@/utils/education/educationApi"
;
import
*
as
commonUtil
from
"../../utils/utils"
;
import
*
as
commonUtil
from
"../../utils/utils"
;
import
*
as
operationData
from
"../../utils/operation"
;
import
*
as
operationData
from
"../../utils/operation"
;
let
vm
=
null
;
let
vm
=
null
;
...
@@ -118,6 +167,14 @@ export default {
...
@@ -118,6 +167,14 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isShowImport
:
false
,
isLoading
:
false
,
logisticsUrl
:
'https://files.yunqueyi.com/template/portal_template.xlsx'
,
fileData
:
{
ext
:
''
,
file
:
""
,
fileName
:
""
,
},
curmbFirst
:
"教培项目"
,
curmbFirst
:
"教培项目"
,
curmbSecond
:
"屏蔽"
,
curmbSecond
:
"屏蔽"
,
projectId
:
""
,
projectId
:
""
,
...
@@ -232,6 +289,69 @@ export default {
...
@@ -232,6 +289,69 @@ export default {
// }
// }
// },
// },
methods
:
{
methods
:
{
// 批量导入
importOrder
()
{
this
.
isShowImport
=
true
;
},
uploadfile
(
file
)
{
console
.
log
(
file
,
'导入file'
);
let
_this
=
this
;
let
arr
=
file
.
name
.
split
(
"."
);
let
ext
=
"."
+
arr
[
1
];
let
name
=
file
.
name
;
let
reader
=
new
FileReader
();
reader
.
onload
=
function
(
e
)
{
_this
.
fileData
.
fileName
=
name
;
_this
.
fileData
.
file
=
e
.
target
.
result
.
substr
(
e
.
target
.
result
.
indexOf
(
"base64,"
)
+
7
);
_this
.
fileData
.
ext
=
ext
;
console
.
log
(
"fileJson"
,
_this
.
fileData
);
};
reader
.
readAsDataURL
(
file
);
},
// 确认导入
confirmImport
()
{
this
.
isLoading
=
true
;
let
parmas
=
{
base64
:
this
.
fileData
,
type
:
''
}
uploadShieldExcel
(
parmas
,
this
.
projectId
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
data
==
''
)
{
this
.
isLoading
=
false
;
this
.
isShowImport
=
false
;
this
.
$message
({
message
:
'导入成功'
,
type
:
'success'
});
}
else
{
let
a
=
document
.
createElement
(
'a'
);
let
href
=
res
.
data
;
a
.
setAttribute
(
'href'
,
href
);
a
.
click
();
this
.
isLoading
=
false
;
this
.
$message
.
error
(
'导入失败'
);
}
}
else
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
}
}).
catch
(
error
=>
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
error
.
message
);
})
},
// 取消导入
cancelImport
()
{
this
.
fileData
=
{
file
:
""
,
fileName
:
""
,
};
this
.
isShowImport
=
false
;
},
handleChange
(
value
)
{
handleChange
(
value
)
{
let
areaId
=
"000"
;
let
areaId
=
"000"
;
for
(
let
i
=
0
;
i
<
value
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
value
.
length
;
i
++
)
{
...
...
src/views/shop/create-shop.vue
浏览文件 @
c8d0ab6e
此差异已折叠。
点击以展开。
src/views/shop/shop-list.vue
浏览文件 @
c8d0ab6e
...
@@ -162,16 +162,40 @@
...
@@ -162,16 +162,40 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
min-width=
"230"
align=
"center"
fixed=
"right"
>
<el-table-column
label=
"操作"
min-width=
"230"
align=
"center"
fixed=
"right"
>
<!-- <template slot-scope="scope">-->
<!-- <div>-->
<!-- <el-button v-if="scope.row.tradeStore.storeType == 1 && scope.row.tradeStore.certifyStatus == 3" @click="setPrice(scope.row, false)" type="text" size="small">设置分佣</el-button>-->
<!-- <el-button @click="editShop(scope.row, 'true')" type="text" size="small">查看</el-button>-->
<!-- <el-button v-if="scope.row.tradeStore.storeType == 1 && scope.row.tradeStore.certifyStatus > 2" @click="editShop(scope.row, 'false')" type="text" size="small">编辑</el-button>-->
<!-- <el-button v-if="checkIsEdit(scope.row)" @click="shopManage(scope.row)" type="text" size="small">商品管理</el-button>-->
<!-- <el-button v-if="checkIsEdit(scope.row)" @click="orderManage(scope.row)" type="text" size="small">订单管理</el-button>-->
<!-- <el-button v-if="scope.row.tradeStore.storeType == 1 && scope.row.tradeStore.certifyStatus == 3"@click="setFreight(scope.row)" type="text" size="small">运费配置</el-button>-->
<!-- <el-button v-if="scope.row.tradeStore.storeType == 3" @click="closeShopAction(scope.row)" type="text" size="small">关闭店铺</el-button>-->
<!-- </div>-->
<!-- </template>-->
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div>
<div>
<el-button
v-if=
"scope.row.tradeStore.commissionFlag == 2"
@
click=
"setPrice(scope.row, false)"
type=
"text"
size=
"small"
>
设置分佣
</el-button>
<el-button
v-if=
"scope.row.tradeStore.storeStatus
<
=
2
"
@
click=
"editShop(scope.row, 'true')"
type=
"text"
size=
"small"
>
{{
scope
.
row
.
tradeStore
.
storeStatus
<=
2
?
'查看'
:
''
}}
</el-button>
<el-button
v-if=
"checkIsEdit(scope.row)"
@
click=
"editShop(scope.row, 'false')"
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
@
click=
"editShop(scope.row, 'true')"
type=
"text"
size=
"small"
>
查看
</el-button>
<el-button
@
click=
"shopManage(scope.row)"
type=
"text"
size=
"small"
>
商品管理
</el-button>
<el-button
@
click=
"orderManage(scope.row)"
type=
"text"
size=
"small"
>
订单管理
</el-button>
<el-button
v-if=
"checkIsEdit(scope.row)"
checkIsEdit
@
click=
"editShop(scope.row, 'false')"
type=
"text"
size=
"small"
>
编辑
</el-button>
<el-button
v-if=
"scope.row.tradeStore.commissionFlag == 2"
@
click=
"setFreight(scope.row)"
type=
"text"
size=
"small"
>
运费配置
</el-button>
<el-button
v-if=
"storageIdType == 1 && (scope.row.tradeStore.storeType == 3 && scope.row.tradeStore.storeStatus == 1)"
@
click=
"closeShopAction(scope.row)"
type=
"text"
size=
"small"
>
关闭店铺
</el-button>
<el-button
v-if=
"checkGoods(scope.row)"
@
click=
"shopManage(scope.row)"
type=
"text"
size=
"small"
>
商品管理
</el-button>
<el-button
v-if=
"checkBills(scope.row)"
@
click=
"orderManage(scope.row)"
type=
"text"
size=
"small"
>
订单管理
</el-button>
<el-button
v-if=
"checkSpe(scope.row)"
@
click=
"setPrice(scope.row, false)"
type=
"text"
size=
"small"
>
设置分佣
</el-button>
<el-button
v-if=
"checkSpe(scope.row)"
@
click=
"setFreight(scope.row)"
type=
"text"
size=
"small"
>
运费配置
</el-button>
<el-button
v-if=
"scope.row.tradeStore.storeType == 3 && isOutsideGetted == 'no'"
@
click=
"closeShopAction(scope.row)"
type=
"text"
size=
"small"
>
关闭店铺
</el-button>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -249,12 +273,14 @@
...
@@ -249,12 +273,14 @@
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
queryStore
,
queryShopAuth
,
closeShop
}
from
'@/utils/shop'
;
import
{
queryStore
,
queryShopAuth
,
closeShop
}
from
'@/utils/shop'
;
import
{
getUserTypeReq
}
from
"@/utils/cme/cmeApi"
;
export
default
{
export
default
{
components
:
{
components
:
{
BreadCrumb
BreadCrumb
},
},
data
(){
data
(){
return
{
return
{
isOutsideGetted
:
'no'
,
curmbFirst
:
'云鹊店铺'
,
curmbFirst
:
'云鹊店铺'
,
showAllFlag
:
false
,
showAllFlag
:
false
,
showNewFlag
:
false
,
showNewFlag
:
false
,
...
@@ -302,13 +328,17 @@
...
@@ -302,13 +328,17 @@
}],
}],
storeTypeList
:
[
storeTypeList
:
[
{
value
:
1
,
label
:
"待完善"
},
{
{
value
:
2
,
value
:
2
,
label
:
"
认证提交中
"
label
:
"
待审核
"
},
},
{
{
value
:
3
,
value
:
3
,
label
:
"
认证
通过"
label
:
"
审核
通过"
},
},
{
{
value
:
4
,
value
:
4
,
...
@@ -348,6 +378,7 @@
...
@@ -348,6 +378,7 @@
// this.idType = localStorage.getItem("storageIdType");
// this.idType = localStorage.getItem("storageIdType");
this
.
storageIdType
=
localStorage
.
getItem
(
"storageIdType"
)
-
0
;
this
.
storageIdType
=
localStorage
.
getItem
(
"storageIdType"
)
-
0
;
console
.
log
(
this
.
storageIdType
);
console
.
log
(
this
.
storageIdType
);
this
.
getUserTypeReq
();
this
.
getAddAuth
();
this
.
getAddAuth
();
this
.
searchList
();
this
.
searchList
();
},
},
...
@@ -360,6 +391,15 @@
...
@@ -360,6 +391,15 @@
}
}
})
})
},
},
getUserTypeReq
()
{
getUserTypeReq
().
then
(
res
=>
{
console
.
log
(
'--res'
,
res
);
if
(
res
.
code
==
'000000'
){
this
.
isOutsideGetted
=
res
.
data
.
code
;
}
});
},
searchList
()
{
searchList
()
{
openLoading
(
this
);
openLoading
(
this
);
let
params
=
this
.
searchForm
;
let
params
=
this
.
searchForm
;
...
@@ -669,14 +709,48 @@
...
@@ -669,14 +709,48 @@
},
},
checkIsEdit
(
row
){
checkIsEdit
(
row
){
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
if
(
storeType
==
3
&&
certifyStatus
==
1
){
if
(
storeType
==
1
&&
Number
(
certifyStatus
)
>
2
){
return
true
;
}
else
if
(
storeType
==
2
){
return
true
;
}
else
{
return
false
;
}
},
checkGoods
(
row
)
{
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
if
(
storeType
==
1
&&
Number
(
certifyStatus
)
===
3
){
return
true
return
true
}
else
if
(
storeType
!=
3
&&
certifyStatus
>
2
){
}
else
if
(
storeType
==
2
){
return
true
return
true
}
else
{
}
else
if
(
storeType
==
3
){
if
(
Number
(
certifyStatus
)
==
1
||
Number
(
certifyStatus
)
==
3
){
return
true
;
}
else
{
return
false
;
}
}
else
{
return
false
;
}
},
checkBills
(
row
)
{
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
if
(
storeType
==
1
&&
Number
(
certifyStatus
)
!==
3
){
return
false
;
return
false
;
}
else
{
return
true
;
}
}
}
},
checkSpe
(
row
)
{
const
{
storeType
,
certifyStatus
}
=
row
.
tradeStore
;
if
(
storeType
==
1
&&
Number
(
certifyStatus
)
==
3
){
return
true
;
}
else
if
(
storeType
==
2
){
return
true
;
}
else
{
return
false
;
}
},
},
},
filters
:
{
filters
:
{
storeTypeFormat
:
function
(
value
){
storeTypeFormat
:
function
(
value
){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录