diff --git a/screenshots/main.png b/screenshots/main.png
index 0f1a6ad..93001e9 100644
Binary files a/screenshots/main.png and b/screenshots/main.png differ
diff --git a/src/components/InsertDataToRedis.vue b/src/components/InsertDataToRedis.vue
index 247fe01..c8eae36 100644
--- a/src/components/InsertDataToRedis.vue
+++ b/src/components/InsertDataToRedis.vue
@@ -10,7 +10,7 @@
@@ -45,7 +45,7 @@
\ No newline at end of file
diff --git a/src/components/SubContentHash.vue b/src/components/SubContentHash.vue
index 190282d..ddc8133 100644
--- a/src/components/SubContentHash.vue
+++ b/src/components/SubContentHash.vue
@@ -98,6 +98,9 @@
this.$Modal.confirm({
title: this.lang.delete,
content: this.lang.delete_notice,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true,
onOk: () => {
self.redis.del(key).then(function (result) {
if (result === 1) {
@@ -138,7 +141,11 @@
show (index) {
this.$Modal.info({
title: this.lang.content_detail,
- content: `${this.content[index].context}`
+ content: `${this.content[index].context}`,
+ width: 600,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true
})
},
remove (index) {
@@ -146,6 +153,9 @@
this.$Modal.confirm({
title: this.lang.delete,
content: this.lang.delete_notice,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true,
onOk: () => {
self.redis.hdel(self.$route.params.key, self.content[index].key).then(function (result) {
console.log(result);
@@ -171,11 +181,7 @@
'$route': 'doGetContent'
},
mounted:function(){
- let self = this;
- // self.codemirror = CodeMirror('stringContent', {
- // mode: 'javascript',
- // lineNumbers: true
- // })
+
}
}
diff --git a/src/components/SubContentList.vue b/src/components/SubContentList.vue
index ac0467c..2fc3d7d 100644
--- a/src/components/SubContentList.vue
+++ b/src/components/SubContentList.vue
@@ -97,14 +97,12 @@
*/
deleteKey(key) {
let self = this;
- console.log(global.lang);
- console.log(self.$root);
- console.log(self.$root.$data);
- console.log(self.$parent.$data);
- console.log(self.$parent.lang);
this.$Modal.confirm({
title: this.lang.delete,
content: this.lang.delete_notice,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true,
onOk: () => {
self.redis.del(key).then(function (result) {
if (result === 1) {
@@ -142,13 +140,20 @@
show (index) {
this.$Modal.info({
title: this.lang.content_detail,
- content: `${this.content[index].context}`
+ content: `${this.content[index].context}`,
+ width: 600,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true
})
},
remove (index) {
this.$Modal.confirm({
title: this.lang.delete,
content: this.lang.delete_notice,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true,
onOk: () => {
self.redis.hdel(self.$route.params.key, self.content[index].key).then(function (result) {
console.log(result);
@@ -174,11 +179,7 @@
'$route': 'doGetContent'
},
mounted:function(){
- let self = this;
- // self.codemirror = CodeMirror('stringContent', {
- // mode: 'javascript',
- // lineNumbers: true
- // })
+
}
}
diff --git a/src/components/SubContentSet.vue b/src/components/SubContentSet.vue
index 683fe7f..a161cc6 100644
--- a/src/components/SubContentSet.vue
+++ b/src/components/SubContentSet.vue
@@ -91,6 +91,9 @@
this.$Modal.confirm({
title: this.lang.delete,
content: this.lang.delete_notice,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true,
onOk: () => {
self.redis.del(key).then(function (result) {
if (result === 1) {
@@ -128,13 +131,20 @@
show (index) {
this.$Modal.info({
title: this.lang.content_detail,
- content: `${this.content[index].context}`
+ content: `${this.content[index].context}`,
+ width: 600,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true
})
},
remove (index) {
this.$Modal.confirm({
title: this.lang.delete,
content: this.lang.delete_notice,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true,
onOk: () => {
self.redis.hdel(self.$route.params.key, self.content[index].key).then(function (result) {
console.log(result);
@@ -160,11 +170,7 @@
'$route': 'doGetContent'
},
mounted:function(){
- let self = this;
- // self.codemirror = CodeMirror('stringContent', {
- // mode: 'javascript',
- // lineNumbers: true
- // })
+
}
}
diff --git a/src/components/SubContentString.vue b/src/components/SubContentString.vue
index a0295b7..de5f574 100644
--- a/src/components/SubContentString.vue
+++ b/src/components/SubContentString.vue
@@ -89,8 +89,11 @@
deleteKey(key) {
let self = this;
this.$Modal.confirm({
- title: '删除提示',
- content: '确认删除该键值吗?',
+ title: this.lang.delete,
+ content: this.lang.delete_notice,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true,
onOk: () => {
self.redis.del(key).then(function (result) {
if (result === 1) {
diff --git a/src/components/SubContentZSet.vue b/src/components/SubContentZSet.vue
index 14f9720..ff7996d 100644
--- a/src/components/SubContentZSet.vue
+++ b/src/components/SubContentZSet.vue
@@ -97,6 +97,9 @@
this.$Modal.confirm({
title: this.lang.delete,
content: this.lang.delete_notice,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true,
onOk: () => {
self.redis.del(key).then(function (result) {
if (result === 1) {
@@ -137,7 +140,11 @@
show (index) {
this.$Modal.info({
title: this.lang.content_detail,
- content: `${this.content[index].context}`
+ content: `${this.content[index].context}`,
+ width: 600,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true
})
},
remove (index) {
@@ -145,6 +152,9 @@
this.$Modal.confirm({
title: self.lang.delete,
content: self.lang.delete_notice,
+ okText: this.lang.ok,
+ cancelText: this.lang.cancel,
+ scrollable: true,
onOk: () => {
self.redis.zrem(self.$route.params.key, self.content[index].context).then(function (result) {
console.log(result);
@@ -170,11 +180,7 @@
'$route': 'doGetContent'
},
mounted:function(){
- let self = this;
- // self.codemirror = CodeMirror('stringContent', {
- // mode: 'javascript',
- // lineNumbers: true
- // })
+
}
}