Commit 09a94d26 authored by zenglun's avatar zenglun

提交部分代码

parent 6391c09c
...@@ -61,4 +61,4 @@ ...@@ -61,4 +61,4 @@
"last 2 versions", "last 2 versions",
"not dead" "not dead"
] ]
} }
\ No newline at end of file
...@@ -19,9 +19,10 @@ export default { ...@@ -19,9 +19,10 @@ export default {
data() { data() {
return { return {
name: "", name: "",
isactive: false
}; };
}, },
created() {},
computed: { computed: {
// //
}, },
...@@ -32,6 +33,11 @@ export default { ...@@ -32,6 +33,11 @@ export default {
this.$message("请输入名称"); this.$message("请输入名称");
return false; return false;
} }
if (this.isactive) {
return;
}
this.isactive = true;
const res = await this.$ajax({ const res = await this.$ajax({
type: "post", type: "post",
url: GO_URLS.add, url: GO_URLS.add,
...@@ -43,7 +49,7 @@ export default { ...@@ -43,7 +49,7 @@ export default {
userIcon: this.$store.state.userInfos.icon || "", userIcon: this.$store.state.userInfos.icon || "",
evidenceName: this.name, evidenceName: this.name,
stepName: "", stepName: "",
banners: [], banners: []
}), }),
detail: JSON.stringify([ detail: JSON.stringify([
{ {
...@@ -55,62 +61,63 @@ export default { ...@@ -55,62 +61,63 @@ export default {
data: { data: {
type: "text", type: "text",
format: "string", format: "string",
value: this.name, value: this.name
}, },
type: 0, type: 0,
key: "存证名称", key: "存证名称",
label: "存证名称", label: "存证名称"
}, },
{ {
data: { data: {
type: "text", type: "text",
format: "hash", format: "hash",
value: "null", value: "null"
}, },
type: 0, type: 0,
key: "basehash", key: "basehash",
label: "basehash", label: "basehash"
}, },
{ {
data: { data: {
type: "text", type: "text",
format: "hash", format: "hash",
value: "null", value: "null"
}, },
type: 0, type: 0,
key: "prehash", key: "prehash",
label: "prehash", label: "prehash"
}, },
{ {
data: { data: {
type: "text", type: "text",
format: "string", format: "string",
value: null, value: null
}, },
type: 0, type: 0,
key: "存证类型", key: "存证类型",
label: "存证类型", label: "存证类型"
}, }
], ]
}, },
{}, {}
]), ])
}, }
}); });
if (res) { if (res) {
this.$message({ this.$message({
message: "添加成功", message: "添加成功",
type: "success", type: "success"
}); });
this.isactive = false;
this.$router.push({ this.$router.push({
path: "/editTemplate", path: "/editTemplate",
query: { query: {
personalTemplateId: res.data.id, personalTemplateId: res.data.id
}, }
}); });
} }
}, }
}, }
}; };
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
......
...@@ -148,8 +148,8 @@ const configModules = { ...@@ -148,8 +148,8 @@ const configModules = {
}, },
// 甘肃>测试环境 // 甘肃>测试环境
"gs_test": { "gs_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9032/', CHAIN_BROWSER_URL_PREFIX: 'http://121.41.198.216:9010/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789', INERFACE_URL_PREFIX: 'http://121.41.198.216:46789',
INDEX: { INDEX: {
entry: './src/entry/gs/main.ts', entry: './src/entry/gs/main.ts',
template: './public/gs/index.html', template: './public/gs/index.html',
......
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