Commit ded5562a authored by wcmoon's avatar wcmoon

fix:修复存证改名后修改,验真无效问题

parent fb546914
...@@ -404,6 +404,13 @@ export default class editTemplate extends Vue { ...@@ -404,6 +404,13 @@ export default class editTemplate extends Vue {
} }
} else if (res.data.detail !== "") { } else if (res.data.detail !== "") {
this.files = []; this.files = [];
let root:any = [];
JSON.parse(res.data.detail).forEach((item:any) => {
if (item.label === 'ext') {
root.push(item);
}
})
this.rootUnitList = formatTemplateApi2Local(root);
let data = JSON.parse(res.data.detail)[0]; let data = JSON.parse(res.data.detail)[0];
for (let i = 0; i < this.allTypes.length; i++) { for (let i = 0; i < this.allTypes.length; i++) {
if (this.allTypes[i][0] === data.label) { if (this.allTypes[i][0] === data.label) {
...@@ -593,6 +600,9 @@ export default class editTemplate extends Vue { ...@@ -593,6 +600,9 @@ export default class editTemplate extends Vue {
} }
newDetail.unshift(this.getSaveParams()); newDetail.unshift(this.getSaveParams());
let note = JSON.parse(this.localData);
note.evidenceName = this.templateName;
this.localData = JSON.stringify(note);
const res = await this.$ajax({ const res = await this.$ajax({
type: "put", type: "put",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment