diff --git a/src/views/data/source/index.vue b/src/views/data/source/index.vue
index de51e9f..f198002 100644
--- a/src/views/data/source/index.vue
+++ b/src/views/data/source/index.vue
@@ -2,14 +2,14 @@
-
-
-
+
+
+
新增
+ >新增
+
修改
+ >修改
+
删除
+ >删除
+
导出
+ >导出
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
修改
+ >修改
+
测试链接
+ >测试链接
+
删除
+ >删除
+
@@ -135,24 +142,24 @@
-
+
-
+
-
+
-
+
@@ -171,7 +178,7 @@
-
+
@@ -183,18 +190,18 @@
-
+
-
+
-
+
@@ -206,7 +213,8 @@
-
+
@@ -228,22 +236,22 @@
-
+
-
+
-
+
-
+
@@ -262,7 +270,7 @@
-
+
@@ -370,31 +378,32 @@ export default {
testConnection(id) {
testConnection(id).then(response => {
console.log(response)
- if (response.data){
+ if (response.data) {
this.$modal.msgSuccess("测试成功");
- }else {
+ } else {
this.$modal.msgError("测试失败");
}
+ this.getList();
})
},
// 添加参数
- addParam(){
+ addParam() {
this.dataSourceParamList.push({
name: null,
val: null
})
},
// 删除参数
- deleteParam(index){
- if (index != null){
+ deleteParam(index) {
+ if (index != null) {
this.dataSourceParamList.splice(index, 1);
- }else {
+ } else {
this.dataSourceParamList = []
}
this.processParam();
},
// 处理参数
- processParam(){
+ processParam() {
this.form.additionalConfiguration = this.dataSourceParamList
.filter(item => item.name != null || item.val != null)
.map(item => {
@@ -410,8 +419,12 @@ export default {
this.sourceList.forEach(item => {
if (item.status === 'Y') {
item.status = '启用'
- } else {
+ } else if (item.status === 'N') {
item.status = '禁用'
+ } else if (item.status === 'S') {
+ item.status = '成功'
+ } else if (item.status === 'E') {
+ item.status = '失败'
}
})
this.total = response.data.total;
@@ -469,7 +482,7 @@ export default {
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
- this.single = selection.length!==1
+ this.single = selection.length !== 1
this.multiple = !selection.length
},
/** 新增按钮操作 */
@@ -511,12 +524,13 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
- this.$modal.confirm('是否确认删除数据源信息编号为"' + ids + '"的数据项?').then(function() {
+ this.$modal.confirm('是否确认删除数据源信息编号为"' + ids + '"的数据项?').then(function () {
return delSource(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
- }).catch(() => {});
+ }).catch(() => {
+ });
},
/** 导出按钮操作 */
handleExport() {