|
@@ -96,7 +96,7 @@
|
|
|
|
|
|
<script>
|
|
|
import Dialog from '@/layout/components/Dialog/index.vue'
|
|
|
-import { GeneralDataReception } from '@/api/dataIntegration'
|
|
|
+import { GeneralDataReception,Query } from '@/api/dataIntegration'
|
|
|
|
|
|
export default {
|
|
|
name: 'ProtocolHome',
|
|
@@ -135,8 +135,8 @@ export default {
|
|
|
id: 1,
|
|
|
dataContent: []
|
|
|
});
|
|
|
- if (res.code === 0) {
|
|
|
- console.log(res)
|
|
|
+ if (res.code === "0") {
|
|
|
+ this.dataList = res.returnData;
|
|
|
} else {
|
|
|
this.$message.error(res.message ?? "失败");
|
|
|
}
|
|
@@ -170,6 +170,7 @@ export default {
|
|
|
},
|
|
|
// 重置
|
|
|
resetForm (formName) {
|
|
|
+ this.ruleForm={};
|
|
|
this.$refs[formName].resetFields()
|
|
|
this.editDialogVisible = false
|
|
|
},
|
|
@@ -186,7 +187,7 @@ export default {
|
|
|
serviceId: "1",
|
|
|
dataContent: JSON.stringify(this.ruleForm),
|
|
|
});
|
|
|
- if (res.code === 0) {
|
|
|
+ if (res.code === "0") {
|
|
|
this.removeDialogVisible = false;
|
|
|
this.$message.success("删除成功");
|
|
|
} else {
|
|
@@ -203,7 +204,7 @@ export default {
|
|
|
serviceId: '1',
|
|
|
dataContent: JSON.stringify(this.ruleForm)
|
|
|
})
|
|
|
- if (res.code === 0) {
|
|
|
+ if (res.code === "0") {
|
|
|
this.$message.success(res.message ?? '成功')
|
|
|
} else {
|
|
|
this.$message.error(res.message ?? '失败')
|
|
@@ -219,7 +220,7 @@ export default {
|
|
|
serviceId: '1',
|
|
|
dataContent: JSON.stringify(this.ruleForm)
|
|
|
})
|
|
|
- if (res.code === 0) {
|
|
|
+ if (res.code === "0") {
|
|
|
this.$message.success(res.message ?? '成功')
|
|
|
} else {
|
|
|
this.$message.error(res.message ?? '失败')
|