Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-sensitive-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.foundation.frontend
pica-sensitive-admin
提交
51cf843c
提交
51cf843c
编写于
3月 10, 2021
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
列表点击
上级
8c2ff113
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
70 行增加
和
11 行删除
+70
-11
create-point.vue
src/views/strack-data/create-point.vue
+17
-0
strack-list.vue
src/views/strack-data/strack-list.vue
+53
-11
未找到文件。
src/views/strack-data/create-point.vue
浏览文件 @
51cf843c
...
@@ -349,6 +349,9 @@
...
@@ -349,6 +349,9 @@
<el-form-item
label=
"事件类型"
>
<el-form-item
label=
"事件类型"
>
<span>
{{detailForm.actionTypeValue}}
</span>
<span>
{{detailForm.actionTypeValue}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"投递举例"
>
<span>
{{detailForm.componentTag}}
</span>
</el-form-item>
<div
v-for=
"(item, index) in detailForm.actionTagResqs"
:key=
"index"
style=
"width: 400px;"
>
<div
v-for=
"(item, index) in detailForm.actionTagResqs"
:key=
"index"
style=
"width: 400px;"
>
<el-form-item
:label=
"'额外投递' + parseInt(index + 1)"
>
<el-form-item
:label=
"'额外投递' + parseInt(index + 1)"
>
<div>
投递名称:{{item.tagName}}
</div>
<div>
投递名称:{{item.tagName}}
</div>
...
@@ -392,6 +395,14 @@
...
@@ -392,6 +395,14 @@
</template>
</template>
<
script
>
<
script
>
import
{
isEmptyUtils
,
openLoading
,
closeLoading
}
from
'../../common/utils'
;
import
{
isEmptyUtils
,
openLoading
,
closeLoading
}
from
'../../common/utils'
;
function
isNormalWorld
(
rule
,
value
,
callback
)
{
var
regEn
=
/
[
`~!@#$%^&*()_+<>?:"{},.
\/
;'[
\]]
/im
,
regCn
=
/
[
·!#¥(——):;“”‘、,|《。》?、【】[
\]]
/im
;
if
(
regEn
.
test
(
value
)
||
regCn
.
test
(
value
))
{
return
callback
(
"名称不能包含特殊字符"
)
}
callback
();
}
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -455,6 +466,7 @@ export default {
...
@@ -455,6 +466,7 @@ export default {
rules
:
{
rules
:
{
actionName
:
[
actionName
:
[
{
required
:
true
,
message
:
'请输入事件名'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入事件名'
,
trigger
:
'blur'
},
{
validator
:
isNormalWorld
,
trigger
:
true
}
],
],
actionType
:
[
actionType
:
[
{
required
:
true
,
message
:
'请选择事件类型'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请选择事件类型'
,
trigger
:
'blur'
}
...
@@ -744,6 +756,11 @@ export default {
...
@@ -744,6 +756,11 @@ export default {
if
(
isEmptyUtils
(
file
))
{
if
(
isEmptyUtils
(
file
))
{
return
;
return
;
}
}
const
isLt2M
=
file
.
size
/
1024
/
1024
<
10
;
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'上传图片大小不能超过 10MB!'
);
return
;
}
_this
.
$message
.
info
(
'开始上传'
);
_this
.
$message
.
info
(
'开始上传'
);
doUpload
(
_this
,
file
,
getFilePath
(
file
,
null
),
'preview4'
,
'progress1'
,
1
).
then
(
function
(
path
)
{
doUpload
(
_this
,
file
,
getFilePath
(
file
,
null
),
'preview4'
,
'progress1'
,
1
).
then
(
function
(
path
)
{
_this
.
form
.
location
=
path
.
fullPath
;
_this
.
form
.
location
=
path
.
fullPath
;
...
...
src/views/strack-data/strack-list.vue
浏览文件 @
51cf843c
...
@@ -102,14 +102,37 @@
...
@@ -102,14 +102,37 @@
class=
"search-table"
class=
"search-table"
:data=
"tableData"
:data=
"tableData"
style=
"width: 100%"
style=
"width: 100%"
:empty-text=
"tableText"
:empty-text=
"tableText"
>
@
row-click=
"tableRowClick"
>
<el-table-column
prop=
"pageCode"
label=
"页面编码"
min-width=
"100"
align=
"left"
>
<el-table-column
prop=
"pageCode"
label=
"页面编码"
min-width=
"100"
align=
"left"
></el-table-column>
<template
slot-scope=
"scope"
>
<el-table-column
prop=
"pageName"
label=
"页面名"
min-width=
"120"
align=
"left"
></el-table-column>
<div
@
click=
"tableRowClick(scope.row)"
>
{{
scope
.
row
.
pageCode
}}
</div>
<el-table-column
prop=
"implementMethod"
label=
"实现方式"
min-width=
"80"
align=
"left"
>
</el-table-column>
</
template
>
<el-table-column
prop=
"moduleName2"
label=
"归属模块"
min-width=
"100"
align=
"left"
></el-table-column>
</el-table-column>
<el-table-column
prop=
"releaseTime"
label=
"发布时间"
min-width=
"100"
align=
"left"
></el-table-column>
<el-table-column
prop=
"pageName"
label=
"页面名"
min-width=
"120"
align=
"left"
>
<el-table-column
prop=
"releaseVersion"
label=
"发布版本"
min-width=
"80"
align=
"left"
></el-table-column>
<
template
slot-scope=
"scope"
>
<div
@
click=
"tableRowClick(scope.row)"
>
{{
scope
.
row
.
pageName
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"implementMethod"
label=
"实现方式"
min-width=
"80"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<div
@
click=
"tableRowClick(scope.row)"
>
{{
scope
.
row
.
implementMethod
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"moduleName2"
label=
"归属模块"
min-width=
"100"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<div
@
click=
"tableRowClick(scope.row)"
>
{{
scope
.
row
.
moduleName2
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"releaseTime"
label=
"发布时间"
min-width=
"100"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<div
@
click=
"tableRowClick(scope.row)"
>
{{
scope
.
row
.
releaseTime
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"releaseVersion"
label=
"发布版本"
min-width=
"80"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<div
@
click=
"tableRowClick(scope.row)"
>
{{
scope
.
row
.
releaseVersion
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"图例"
min-width=
"120"
align=
"left"
>
<el-table-column
label=
"图例"
min-width=
"120"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-viewer
>
<span
v-viewer
>
...
@@ -117,8 +140,16 @@
...
@@ -117,8 +140,16 @@
</span>
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"handlerNames"
label=
"处理人"
min-width=
"100"
align=
"left"
></el-table-column>
<el-table-column
prop=
"handlerNames"
label=
"处理人"
min-width=
"100"
align=
"left"
>
<el-table-column
prop=
"statusDesc"
label=
"状态"
min-width=
"80"
align=
"left"
></el-table-column>
<
template
slot-scope=
"scope"
>
<div
@
click=
"tableRowClick(scope.row)"
>
{{
scope
.
row
.
handlerNames
}}
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"statusDesc"
label=
"状态"
min-width=
"80"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<div
@
click=
"tableRowClick(scope.row)"
>
{{
scope
.
row
.
statusDesc
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"200"
>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"200"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
:disabled=
"scope.row.editBtnStatus == 2"
type=
"primary"
size=
"small"
@
click
.
stop=
"createAndEditPage(scope.row)"
>
编辑
</el-button>
<el-button
:disabled=
"scope.row.editBtnStatus == 2"
type=
"primary"
size=
"small"
@
click
.
stop=
"createAndEditPage(scope.row)"
>
编辑
</el-button>
...
@@ -523,6 +554,7 @@ export default {
...
@@ -523,6 +554,7 @@ export default {
rules
:
{
rules
:
{
actionName
:
[
actionName
:
[
{
required
:
true
,
message
:
'请输入事件名'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入事件名'
,
trigger
:
'blur'
},
{
validator
:
isNormalWorld
,
trigger
:
true
}
],
],
actionType
:
[
actionType
:
[
{
required
:
true
,
message
:
'请选择事件类型'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请选择事件类型'
,
trigger
:
'blur'
}
...
@@ -708,7 +740,7 @@ export default {
...
@@ -708,7 +740,7 @@ export default {
);
);
},
},
// 点击表格某一行
// 点击表格某一行
tableRowClick
(
row
,
column
,
event
)
{
tableRowClick
(
row
)
{
this
.
$router
.
push
({
path
:
'create-point'
,
query
:
{
id
:
row
.
pageId
}})
this
.
$router
.
push
({
path
:
'create-point'
,
query
:
{
id
:
row
.
pageId
}})
},
},
// 搜索
// 搜索
...
@@ -906,6 +938,11 @@ export default {
...
@@ -906,6 +938,11 @@ export default {
if
(
isEmptyUtils
(
file
))
{
if
(
isEmptyUtils
(
file
))
{
return
;
return
;
}
}
const
isLt2M
=
file
.
size
/
1024
/
1024
<
10
;
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'上传图片大小不能超过 10MB!'
);
return
;
}
_this
.
$message
.
info
(
'开始上传'
);
_this
.
$message
.
info
(
'开始上传'
);
doUpload
(
_this
,
file
,
getFilePath
(
file
,
null
),
'preview4'
,
'progress1'
,
1
).
then
(
function
(
path
)
{
doUpload
(
_this
,
file
,
getFilePath
(
file
,
null
),
'preview4'
,
'progress1'
,
1
).
then
(
function
(
path
)
{
_this
.
pageForm
.
imageUrl
=
path
.
fullPath
;
_this
.
pageForm
.
imageUrl
=
path
.
fullPath
;
...
@@ -919,6 +956,11 @@ export default {
...
@@ -919,6 +956,11 @@ export default {
if
(
isEmptyUtils
(
file
))
{
if
(
isEmptyUtils
(
file
))
{
return
;
return
;
}
}
const
isLt2M
=
file
.
size
/
1024
/
1024
<
10
;
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'上传图片大小不能超过 10MB!'
);
return
;
}
_this
.
$message
.
info
(
'开始上传'
);
_this
.
$message
.
info
(
'开始上传'
);
doUpload
(
_this
,
file
,
getFilePath
(
file
,
null
),
'preview4'
,
'progress1'
,
1
).
then
(
function
(
path
)
{
doUpload
(
_this
,
file
,
getFilePath
(
file
,
null
),
'preview4'
,
'progress1'
,
1
).
then
(
function
(
path
)
{
_this
.
form
.
actionPath
=
path
.
fullPath
;
_this
.
form
.
actionPath
=
path
.
fullPath
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录