Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
487ffca2
提交
487ffca2
编写于
7月 06, 2020
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
上传图片组件修改
上级
5b72929e
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
19 行增加
和
9 行删除
+19
-9
app-image-upload.vue
src/components/app-image-upload/app-image-upload.vue
+19
-9
未找到文件。
src/components/app-image-upload/app-image-upload.vue
浏览文件 @
487ffca2
...
@@ -135,6 +135,7 @@ export default class AppImageUpload extends Vue {
...
@@ -135,6 +135,7 @@ export default class AppImageUpload extends Vue {
if
(
this
.
ignorefieldvaluechange
)
{
if
(
this
.
ignorefieldvaluechange
)
{
return
;
return
;
}
}
this
.
getParams
();
this
.
setFiles
(
newval
)
this
.
setFiles
(
newval
)
this
.
dataProcess
();
this
.
dataProcess
();
}
}
...
@@ -294,6 +295,7 @@ export default class AppImageUpload extends Vue {
...
@@ -294,6 +295,7 @@ export default class AppImageUpload extends Vue {
this
.
formStateEvent
=
this
.
formState
.
subscribe
((
$event
:
any
)
=>
{
this
.
formStateEvent
=
this
.
formState
.
subscribe
((
$event
:
any
)
=>
{
// 表单加载完成
// 表单加载完成
if
(
Object
.
is
(
$event
.
type
,
'load'
))
{
if
(
Object
.
is
(
$event
.
type
,
'load'
))
{
this
.
getParams
();
this
.
setFiles
(
this
.
value
);
this
.
setFiles
(
this
.
value
);
this
.
dataProcess
();
this
.
dataProcess
();
}
}
...
@@ -308,26 +310,37 @@ export default class AppImageUpload extends Vue {
...
@@ -308,26 +310,37 @@ export default class AppImageUpload extends Vue {
*/
*/
public
mounted
()
{
public
mounted
()
{
this
.
appData
=
this
.
$store
.
getters
.
getAppData
();
this
.
appData
=
this
.
$store
.
getters
.
getAppData
();
this
.
getParams
();
this
.
setFiles
(
this
.
value
);
this
.
dataProcess
();
}
let
uploadparams
:
any
=
{};
/**
let
exportparams
:
any
=
{};
*获取上传,导出参数
*
*@memberof AppImageUpload
*/
public
getParams
(){
let
uploadparams
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
uploadparams
));
let
exportparams
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
exportparams
));
let
upload_params
:
Array
<
string
>
=
[];
let
upload_params
:
Array
<
string
>
=
[];
let
export_params
:
Array
<
string
>
=
[];
let
export_params
:
Array
<
string
>
=
[];
let
custom_arr
:
Array
<
string
>
=
[];
let
param
:
any
=
this
.
viewparams
;
let
param
:
any
=
this
.
viewparams
;
let
context
:
any
=
this
.
context
;
let
context
:
any
=
this
.
context
;
let
_data
:
any
=
JSON
.
parse
(
this
.
data
);
let
_data
:
any
=
JSON
.
parse
(
this
.
data
);
if
(
this
.
uploadparams
&&
!
Object
.
is
(
this
.
uploadparams
,
''
))
{
if
(
this
.
uploadparams
&&
!
Object
.
is
(
this
.
uploadparams
,
''
))
{
uploadparams
=
this
.
uploadparams
;
upload_params
=
this
.
$util
.
computedNavData
(
_data
,
param
,
context
,
uploadparams
);
upload_params
=
this
.
$util
.
computedNavData
(
_data
,
param
,
context
,
uploadparams
);
}
}
if
(
this
.
exportparams
&&
!
Object
.
is
(
this
.
exportparams
,
''
))
{
if
(
this
.
exportparams
&&
!
Object
.
is
(
this
.
exportparams
,
''
))
{
exportparams
=
this
.
exportparams
;
export_params
=
this
.
$util
.
computedNavData
(
_data
,
param
,
context
,
exportparams
);
export_params
=
this
.
$util
.
computedNavData
(
_data
,
param
,
context
,
exportparams
);
}
}
this
.
upload_params
=
[];
this
.
export_params
=
[];
for
(
const
item
in
upload_params
)
{
for
(
const
item
in
upload_params
)
{
this
.
upload_params
.
push
({
this
.
upload_params
.
push
({
[
item
]:
upload_params
[
item
]
[
item
]:
upload_params
[
item
]
...
@@ -338,9 +351,6 @@ export default class AppImageUpload extends Vue {
...
@@ -338,9 +351,6 @@ export default class AppImageUpload extends Vue {
[
item
]:
export_params
[
item
]
[
item
]:
export_params
[
item
]
})
})
}
}
this
.
setFiles
(
this
.
value
);
this
.
dataProcess
();
}
}
/**
/**
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录