|
@@ -1,5 +1,4 @@
|
|
<!--
|
|
<!--
|
|
- * @Author: Badguy
|
|
|
|
* @Date: 2022-04-12 17:49:47
|
|
* @Date: 2022-04-12 17:49:47
|
|
* @LastEditTime: 2022-04-13 16:17:37
|
|
* @LastEditTime: 2022-04-13 16:17:37
|
|
* @LastEditors: your name
|
|
* @LastEditors: your name
|
|
@@ -24,13 +23,13 @@
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
<el-col
|
|
<el-col
|
|
v-for="item in dataList"
|
|
v-for="item in dataList"
|
|
- :key="item.protocolId"
|
|
|
|
|
|
+ :key="item.serviceID"
|
|
:span="4"
|
|
:span="4"
|
|
>
|
|
>
|
|
<div class="grid-content">
|
|
<div class="grid-content">
|
|
<div class="grid-content-hand flex">
|
|
<div class="grid-content-hand flex">
|
|
<div class="title flex-wrap">
|
|
<div class="title flex-wrap">
|
|
- <div class="name">{{ item.protocolName }}</div>
|
|
|
|
|
|
+ <div class="name">{{ item.serviceName }}</div>
|
|
<i
|
|
<i
|
|
class="loger"
|
|
class="loger"
|
|
@click="showEditDialog(item)"
|
|
@click="showEditDialog(item)"
|
|
@@ -48,10 +47,10 @@
|
|
<!--删除弹框-->
|
|
<!--删除弹框-->
|
|
<Dialog :flag="removeDialogVisible">
|
|
<Dialog :flag="removeDialogVisible">
|
|
<div class="airportInfoDialog">
|
|
<div class="airportInfoDialog">
|
|
- <div class="Deltitle">删除协议</div>
|
|
|
|
|
|
+ <div class="Deltitle">删除服务</div>
|
|
<div class="content er">
|
|
<div class="content er">
|
|
<div class="log">
|
|
<div class="log">
|
|
- 是否确认删除{{ rmObj.protocolName }}?
|
|
|
|
|
|
+ 你是否确认删除{{ rmObj.serviceName }}?
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="DelFoot right t30">
|
|
<div class="DelFoot right t30">
|
|
@@ -74,7 +73,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import Dialog from '@/layout/components/Dialog/index.vue'
|
|
|
|
|
|
+import Dialog from '@/layout/components/Dialog/index.vue';
|
|
|
|
+import { Query } from '@/api/dataIntegration';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'ProtocolHome',
|
|
name: 'ProtocolHome',
|
|
@@ -87,14 +87,24 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- for (let index = 0; index < 20; index++) {
|
|
|
|
- this.dataList.push({
|
|
|
|
- protocolId: index,
|
|
|
|
- protocolName: '服务-' + (Math.floor(Math.random() * 20) + 1)
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ async getList() {
|
|
|
|
+ try {
|
|
|
|
+ const res = await Query({
|
|
|
|
+ id: 3,
|
|
|
|
+ dataContent: []
|
|
|
|
+ });
|
|
|
|
+ if (res.code === "0") {
|
|
|
|
+ this.dataList = res.returnData
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.message ?? "失败");
|
|
|
|
+ }
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.log("错误", error);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 新增-弹框
|
|
// 新增-弹框
|
|
showAddDialog() {
|
|
showAddDialog() {
|
|
this.$router.push('/systemSettings/serviceEdit')
|
|
this.$router.push('/systemSettings/serviceEdit')
|