测试连接完成修改状态
parent
e2fc9d5ef1
commit
eefc9723bb
|
@ -42,7 +42,8 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['data:source:add']"
|
v-hasPermi="['data:source:add']"
|
||||||
>新增</el-button>
|
>新增
|
||||||
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -53,7 +54,8 @@
|
||||||
:disabled="single"
|
:disabled="single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['data:source:edit']"
|
v-hasPermi="['data:source:edit']"
|
||||||
>修改</el-button>
|
>修改
|
||||||
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -64,7 +66,8 @@
|
||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['data:source:remove']"
|
v-hasPermi="['data:source:remove']"
|
||||||
>删除</el-button>
|
>删除
|
||||||
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -74,7 +77,8 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
v-hasPermi="['data:source:export']"
|
v-hasPermi="['data:source:export']"
|
||||||
>导出</el-button>
|
>导出
|
||||||
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -98,21 +102,24 @@
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['data:source:edit']"
|
v-hasPermi="['data:source:edit']"
|
||||||
>修改</el-button>
|
>修改
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="testConnection(scope.row.id)"
|
@click="testConnection(scope.row.id)"
|
||||||
v-hasPermi="['data:source:testConnection']"
|
v-hasPermi="['data:source:testConnection']"
|
||||||
>测试链接</el-button>
|
>测试链接
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['data:source:remove']"
|
v-hasPermi="['data:source:remove']"
|
||||||
>删除</el-button>
|
>删除
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -206,7 +213,8 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col :md="8" :xs="12" style="margin: 10px 0" v-for="(dataSourceParam, dataSourceParamIndex) in dataSourceParamList">
|
<el-col :md="8" :xs="12" style="margin: 10px 0"
|
||||||
|
v-for="(dataSourceParam, dataSourceParamIndex) in dataSourceParamList">
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-input v-model="dataSourceParam.name" placeholder="请输入参数键" @keyup.native="processParam"/>
|
<el-input v-model="dataSourceParam.name" placeholder="请输入参数键" @keyup.native="processParam"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -375,6 +383,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.$modal.msgError("测试失败");
|
this.$modal.msgError("测试失败");
|
||||||
}
|
}
|
||||||
|
this.getList();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 添加参数
|
// 添加参数
|
||||||
|
@ -410,8 +419,12 @@ export default {
|
||||||
this.sourceList.forEach(item => {
|
this.sourceList.forEach(item => {
|
||||||
if (item.status === 'Y') {
|
if (item.status === 'Y') {
|
||||||
item.status = '启用'
|
item.status = '启用'
|
||||||
} else {
|
} else if (item.status === 'N') {
|
||||||
item.status = '禁用'
|
item.status = '禁用'
|
||||||
|
} else if (item.status === 'S') {
|
||||||
|
item.status = '成功'
|
||||||
|
} else if (item.status === 'E') {
|
||||||
|
item.status = '失败'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.total = response.data.total;
|
this.total = response.data.total;
|
||||||
|
@ -516,7 +529,8 @@ export default {
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
}).catch(() => {});
|
}).catch(() => {
|
||||||
|
});
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
|
|
Loading…
Reference in New Issue