Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
a2b86b9e
Commit
a2b86b9e
authored
Jul 07, 2021
by
wcmoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 存证 id 类型修改回 number
parent
4c32ff8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
editTemplate.vue
src/views/template/editTemplate.vue
+13
-13
No files found.
src/views/template/editTemplate.vue
View file @
a2b86b9e
...
@@ -285,7 +285,7 @@ export default class editTemplate extends Vue {
...
@@ -285,7 +285,7 @@ export default class editTemplate extends Vue {
public
isShowBar
:
boolean
=
false
;
// 展开右栏
public
isShowBar
:
boolean
=
false
;
// 展开右栏
public
isShowBanner
=
false
;
//banner图组件显示or隐藏
public
isShowBanner
=
false
;
//banner图组件显示or隐藏
public
SelectTemplateShow
:
Boolean
=
false
;
// 选择模板显示or隐藏
public
SelectTemplateShow
:
Boolean
=
false
;
// 选择模板显示or隐藏
public
personalTemplateId
:
string
=
''
;
//个人存证id
public
personalTemplateId
:
number
=
0
;
//个人存证id
public
saveState
:
Number
=
0
;
// 保存存证需要的状态
public
saveState
:
Number
=
0
;
// 保存存证需要的状态
public
ShowPastData
:
Boolean
=
false
;
// 显示过往数据
public
ShowPastData
:
Boolean
=
false
;
// 显示过往数据
public
isShowToChainDialog
:
Boolean
=
false
;
//控制上链弹窗显示or隐藏
public
isShowToChainDialog
:
Boolean
=
false
;
//控制上链弹窗显示or隐藏
...
@@ -296,8 +296,8 @@ export default class editTemplate extends Vue {
...
@@ -296,8 +296,8 @@ export default class editTemplate extends Vue {
public
isModifyTitleShow
:
Boolean
=
false
;
//修改标题
public
isModifyTitleShow
:
Boolean
=
false
;
//修改标题
public
modifyFormsShow
:
Boolean
=
false
;
// 改变表现形式
public
modifyFormsShow
:
Boolean
=
false
;
// 改变表现形式
public
existingEvidenceList
:
any
=
[];
//增量数据列表
public
existingEvidenceList
:
any
=
[];
//增量数据列表
public
checkId
:
string
=
''
;
public
checkId
:
number
=
-
1
;
public
incrementId
:
string
=
''
;
public
incrementId
:
number
=
0
;
public
isShowAddRootDialog
:
boolean
=
false
;
public
isShowAddRootDialog
:
boolean
=
false
;
public
displayData
:
any
=
[];
public
displayData
:
any
=
[];
public
TemplateType
:
number
=
0
;
public
TemplateType
:
number
=
0
;
...
@@ -332,8 +332,8 @@ export default class editTemplate extends Vue {
...
@@ -332,8 +332,8 @@ export default class editTemplate extends Vue {
this
.
gettemplate
(
query
.
systemTemplateId
);
this
.
gettemplate
(
query
.
systemTemplateId
);
}
else
if
(
query
.
personalTemplateId
&&
!
query
.
childId
)
{
}
else
if
(
query
.
personalTemplateId
&&
!
query
.
childId
)
{
// 个人存证进入
// 个人存证进入
this
.
personalTemplateId
=
String
(
query
.
personalTemplateId
);
this
.
personalTemplateId
=
Number
(
query
.
personalTemplateId
);
this
.
checkId
=
String
(
query
.
personalTemplateId
);
this
.
checkId
=
Number
(
query
.
personalTemplateId
);
this
.
information
(
3
);
this
.
information
(
3
);
this
.
saveState
=
1
;
this
.
saveState
=
1
;
// 父存证>进入页面>获取数据>根据参数决定是否调用增量列表接口
// 父存证>进入页面>获取数据>根据参数决定是否调用增量列表接口
...
@@ -342,9 +342,9 @@ export default class editTemplate extends Vue {
...
@@ -342,9 +342,9 @@ export default class editTemplate extends Vue {
query
.
childId
&&
query
.
childId
&&
query
.
personalTemplateName
query
.
personalTemplateName
)
{
)
{
this
.
personalTemplateId
=
String
(
query
.
personalTemplateId
);
this
.
personalTemplateId
=
Number
(
query
.
personalTemplateId
);
this
.
checkId
=
String
(
query
.
childId
);
this
.
checkId
=
Number
(
query
.
childId
);
this
.
incrementId
=
String
(
query
.
childId
);
this
.
incrementId
=
Number
(
query
.
childId
);
this
.
saveState
=
2
;
this
.
saveState
=
2
;
this
.
information
(
1
);
this
.
information
(
1
);
}
}
...
@@ -469,7 +469,7 @@ export default class editTemplate extends Vue {
...
@@ -469,7 +469,7 @@ export default class editTemplate extends Vue {
}
}
}
}
// 获取增量的数据
// 获取增量的数据
public
async
getincrement
(
id
:
string
)
{
public
async
getincrement
(
id
:
number
)
{
const
res
=
await
this
.
$ajax
({
const
res
=
await
this
.
$ajax
({
type
:
"get"
,
type
:
"get"
,
url
:
GO_URLS
.
incrementId
+
`/`
+
id
,
url
:
GO_URLS
.
incrementId
+
`/`
+
id
,
...
@@ -638,7 +638,7 @@ export default class editTemplate extends Vue {
...
@@ -638,7 +638,7 @@ export default class editTemplate extends Vue {
type
:
"put"
,
type
:
"put"
,
url
:
GO_URLS
.
update
,
url
:
GO_URLS
.
update
,
params
:
{
params
:
{
id
:
this
.
$route
.
query
.
personalTemplateId
,
id
:
Number
(
this
.
$route
.
query
.
personalTemplateId
)
,
name
:
this
.
templateName
,
name
:
this
.
templateName
,
detail
:
JSON
.
stringify
(
newDetail
),
detail
:
JSON
.
stringify
(
newDetail
),
note
:
this
.
localData
,
note
:
this
.
localData
,
...
@@ -775,13 +775,13 @@ export default class editTemplate extends Vue {
...
@@ -775,13 +775,13 @@ export default class editTemplate extends Vue {
child
.
startEdit
();
child
.
startEdit
();
this
.
displayData
=
[];
this
.
displayData
=
[];
this
.
incrementId
=
item
.
id
;
this
.
incrementId
=
item
.
id
;
this
.
personalTemplateId
=
''
;
this
.
personalTemplateId
=
0
;
this
.
getincrement
(
item
.
id
);
this
.
getincrement
(
item
.
id
);
this
.
saveState
=
2
;
this
.
saveState
=
2
;
}
else
{
}
else
{
// 切换至第一条数据
// 切换至第一条数据
this
.
personalTemplateId
=
item
.
id
;
this
.
personalTemplateId
=
item
.
id
;
this
.
incrementId
=
''
;
this
.
incrementId
=
0
;
this
.
ShowPastData
=
true
;
this
.
ShowPastData
=
true
;
this
.
saveState
=
1
;
this
.
saveState
=
1
;
this
.
information
(
2
);
this
.
information
(
2
);
...
@@ -824,7 +824,7 @@ export default class editTemplate extends Vue {
...
@@ -824,7 +824,7 @@ export default class editTemplate extends Vue {
}
}
// 上链请求
// 上链请求
async
uploadConfirm
()
{
async
uploadConfirm
()
{
this
.
incrementId
===
''
this
.
incrementId
===
0
?
this
.
witnessTheChain
()
?
this
.
witnessTheChain
()
:
this
.
incrementWitnessTheChain
();
:
this
.
incrementWitnessTheChain
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment