Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
d90f80d8
提交
d90f80d8
authored
1月 08, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(bi/store): 旺店通店铺_修复完成
同上
上级
ad7b8a83
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
26 行增加
和
17 行删除
+26
-17
element-ui.scss
src/assets/styles/element-ui.scss
+3
-0
index.scss
src/assets/styles/index.scss
+2
-1
index.js
src/utils/index.js
+19
-9
index.vue
src/views/bi/prd_tag/index.vue
+2
-7
index.vue
src/views/bi/store/index.vue
+0
-0
没有找到文件。
src/assets/styles/element-ui.scss
浏览文件 @
d90f80d8
...
...
@@ -60,11 +60,14 @@
display
:
flex
;
flex-direction
:
column
;
height
:
50vh
;
padding
:
20px
;
.el-dialog__header
{
padding-top
:
10px
;
height
:
40px
;
}
.el-dialog__body
{
margin-top
:
20px
;
height
:
calc
(
50vh
-
40px
-
32px
);
}
}
...
...
src/assets/styles/index.scss
浏览文件 @
d90f80d8
...
...
@@ -129,7 +129,8 @@ aside {
flex-direction
:
column
;
align-items
:
center
;
padding
:
20px
;
>
div
{
>
div
{
width
:
100%
;
padding
:
20px
;
}
...
...
src/utils/index.js
浏览文件 @
d90f80d8
...
...
@@ -20,12 +20,12 @@ import { parseTime } from './date'
*/
export
function
formatDate
(
cellValue
)
{
if
(
cellValue
==
null
||
cellValue
==
""
)
return
""
;
var
date
=
new
Date
(
cellValue
)
var
date
=
new
Date
(
cellValue
)
var
year
=
date
.
getFullYear
()
var
month
=
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
var
day
=
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
()
var
hours
=
date
.
getHours
()
<
10
?
'0'
+
date
.
getHours
()
:
date
.
getHours
()
var
minutes
=
date
.
getMinutes
()
<
10
?
'0'
+
date
.
getMinutes
()
:
date
.
getMinutes
()
var
day
=
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
()
var
hours
=
date
.
getHours
()
<
10
?
'0'
+
date
.
getHours
()
:
date
.
getHours
()
var
minutes
=
date
.
getMinutes
()
<
10
?
'0'
+
date
.
getMinutes
()
:
date
.
getMinutes
()
var
seconds
=
date
.
getSeconds
()
<
10
?
'0'
+
date
.
getSeconds
()
:
date
.
getSeconds
()
return
year
+
'-'
+
month
+
'-'
+
day
+
' '
+
hours
+
':'
+
minutes
+
':'
+
seconds
}
...
...
@@ -233,7 +233,7 @@ export function getTime(type) {
export
function
debounce
(
func
,
wait
,
immediate
)
{
let
timeout
,
args
,
context
,
timestamp
,
result
const
later
=
function
()
{
const
later
=
function
()
{
// 据上一次触发时间间隔
const
last
=
+
new
Date
()
-
timestamp
...
...
@@ -250,7 +250,7 @@ export function debounce(func, wait, immediate) {
}
}
return
function
(...
args
)
{
return
function
(...
args
)
{
context
=
this
timestamp
=
+
new
Date
()
const
callNow
=
immediate
&&
!
timeout
...
...
@@ -345,7 +345,7 @@ export function makeMap(str, expectsLowerCase) {
?
val
=>
map
[
val
.
toLowerCase
()]
:
val
=>
map
[
val
]
}
export
const
exportDefault
=
'export default '
export
const
beautifierConf
=
{
...
...
@@ -402,17 +402,27 @@ export function camelCase(str) {
export
function
isNumberStr
(
str
)
{
return
/^
[
+-
]?(
0|
([
1-9
]\d
*
))(\.\d
+
)?
$/g
.
test
(
str
)
}
// 清除对象里属性的非响应式的值
/**
* 深度重置对象的属性值
* @param {Object} obj - 需要重置的对象
* @param {Array} props - 需要重置的属性数组
*/
export
function
resetObjValue
(
obj
,
props
)
{
for
(
let
prop
in
obj
)
{
if
(
obj
.
hasOwnProperty
(
prop
))
{
// 判断属性值是否为数组或对象
if
(
Array
.
isArray
(
obj
[
prop
]))
{
obj
[
prop
]
=
[];
obj
[
prop
].
forEach
((
item
,
index
)
=>
{
if
(
typeof
item
===
'object'
&&
item
!==
null
)
{
resetObjValue
(
obj
[
prop
],
Object
.
keys
(
item
));
}
});
}
else
if
(
typeof
obj
[
prop
]
===
'object'
&&
obj
[
prop
]
!==
null
)
{
obj
[
prop
]
=
{};
resetObjValue
(
obj
[
prop
],
Object
.
keys
(
obj
[
prop
]));
}
else
{
obj
[
prop
]
=
undefined
;
// 基础类型重置为 undefined
}
...
...
src/views/bi/prd_tag/index.vue
浏览文件 @
d90f80d8
...
...
@@ -68,12 +68,11 @@
popper-class=
"my_popper"
></el-cascader>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<
template
#
footer
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</
div
>
</
template
>
</el-dialog>
</div>
</template>
...
...
@@ -341,10 +340,6 @@ getSeriesGoodsTagList()
}
}
}
.dialog-footer
{
align-self
:
flex-end
;
}
}
}
...
...
src/views/bi/store/index.vue
浏览文件 @
d90f80d8
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论