Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
20a0bf31
提交
20a0bf31
编写于
9月 13, 2022
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
auto commit
上级
35e10aeb
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
48 行增加
和
13 行删除
+48
-13
gitPush.sh
gitPush.sh
+5
-3
create-shop.vue
src/views/shop/create-shop.vue
+43
-10
未找到文件。
gitPush.sh
浏览文件 @
20a0bf31
...
...
@@ -5,10 +5,12 @@ if [ ! $hasGit ];then
echo
'Please download git first!'
;
exit
1
;
else
git fetch
--all
result
=
`
git symbolic-ref
--short
-q
HEAD
`
# 获取分支名
cur
Branch
=
${
result
}
# 去除多余的*
echo
`
你的当前分支是:
$curBranch
`
cur
rent_id
=
`
git log
-n
1
test
--pretty
=
format:
"%H"
`
git reset
--soft
$current_id
git add
.
git commit
-m
"
$msg
"
git push origin
$curBranch
# 提交代码到github(修改了远程项目名)
echo
"curBranch
$result
"
git push origin
-f
$result
# 提交代码到github(修改了远程项目名)
fi
src/views/shop/create-shop.vue
浏览文件 @
20a0bf31
...
...
@@ -1181,7 +1181,7 @@
<div
class=
"detectionAddress-wrap"
>
<div
class=
"detectionAddress-title"
>
<span
class=
"bold"
>
平台默认
</span>
<el-button
type=
"primary"
size=
"small"
@
click=
"createDetectionAdress(0)"
>
+新增地址
</el-button>
<el-button
v-if=
"!formData.tradeStoreDetectionAddress.receiverMobile"
type=
"primary"
size=
"small"
@
click=
"createDetectionAdress(0)"
>
+新增地址
</el-button>
</div>
<div
class=
"detectionAddress"
v-if=
"formData.tradeStoreDetectionAddress && formData.tradeStoreDetectionAddress.receiverMobile"
>
<div
class=
"warehouseAdress-item"
>
...
...
@@ -1198,7 +1198,7 @@
</div>
<div
class=
"detectionAddress-title dt-border-top"
>
<span
class=
"bold"
>
指定区域
</span>
<el-button
type=
"primary"
size=
"small"
@
click=
"createAreaAddress(0)"
>
+新增地址
</el-button>
<el-button
v-if=
"formData.detectionAreaAddressList.length
<
10
"
type=
"primary"
size=
"small"
@
click=
"createAreaAddress(0)"
>
+新增地址
</el-button>
</div>
<div
class=
"warehouseAdress-list border-none"
v-if=
"formData.detectionAreaAddressList.length > 0"
v-model=
"checkList"
>
<div
class=
"warehouseAdress-item"
v-for=
"(addressItem, index) of formData.detectionAreaAddressList"
:key=
"index"
>
...
...
@@ -1217,7 +1217,7 @@
<span
class=
"warehouseAdress-do"
>
<el-button
class=
"btn-small"
@
click
.
prevent=
"createAreaAddress(1, index)"
>
编辑
</el-button>
<el-button
class=
"btn-small"
@
click
.
prevent=
"delete
Detection
Adress(index)"
>
删除
</el-button>
<el-button
class=
"btn-small"
@
click
.
prevent=
"delete
Area
Adress(index)"
>
删除
</el-button>
</span>
</div>
</div>
...
...
@@ -2727,8 +2727,8 @@ export default {
},
// 创建地址
createAreaAddress(type,index){
if(type && this.formData.detectionAreaAddressList.length >= 10){
this.$
toast
('最多添加50条');
if(
!
type && this.formData.detectionAreaAddressList.length >= 10){
this.$
message
('最多添加50条');
return false;
}
this.isAreaAddress = true;
...
...
@@ -2770,7 +2770,7 @@ export default {
cancelButtonText: '',
type: 'error'
}).then(() => {
this.formData.
detectionAreaAddressList.splice(index,1)
this.formData.
tradeStoreDetectionAddress = {};
this.$message({
type: 'success',
message: '删除成功!'
...
...
@@ -2832,6 +2832,27 @@ export default {
});
});
},
deleteAreaAdress(index) {
this.$confirm('确定要删除这条地址信息么?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '',
type: 'error'
}).then(() => {
if (this.formData.detectionAreaAddressList[index].key == this.formData.selectedKey) {
this.formData.selectedKey = '';
}
this.formData.detectionAreaAddressList.splice(index,1)
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
// 选择省
changeProvince() {
this.warehouseAdressForm.cityId = "";
...
...
@@ -3267,11 +3288,21 @@ export default {
}
},
areaContentPop(array) {
let s = '';
array.forEach( i => {
s = s + ' ' + i.cityName;
let res = {}
array.map(item => {
res[item.provinceId] = res[item.provinceId] || [];
res[item.provinceId].push(item);
})
return s;
let str = '';
Object.keys(res).forEach( i => {
let pri = res[i][0].provinceName + ':';
res[i].forEach( k => {
pri = pri + "
" + k.cityName;
})
str = pri + ' / ' + str;
});
str = str.substr(0, str.length - 2)
return str;
},
addrChange() {
this.warehouseAdressForm.address = this.warehouseAdressForm.addr;
...
...
@@ -3622,5 +3653,7 @@ export default {
font-weight
:
600
;
color
:
#FFFFFF
;
min-width
:
auto
;
max-width
:
1000px
;
word-break
:
break-all
;
}
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录