Quellcode durchsuchen

服务编辑修改ing

zhongxiaoyu vor 2 Jahren
Ursprung
Commit
1993f04fc7

+ 5 - 1
src/components/dialog/index.vue

@@ -44,7 +44,7 @@
             <div class="content">
               <slot />
             </div>
-            <div class="foot text-right t30">
+            <div v-if="withFooter" class="foot text-right t30">
               <el-button
                 size="default"
                 type="primary"
@@ -119,6 +119,10 @@ const props = defineProps({
     type: String,
     default: "",
   },
+  withFooter: {
+    type: Boolean,
+    default: true
+  }
 });
 const emits = defineEmits([
   "closeDialog",

+ 6 - 6
src/components/minheader/index.vue

@@ -52,7 +52,7 @@
           type="danger"
           size="default"
           class="br L12"
-          @click="addslot()"
+          @click="addslot"
           >1个插槽</el-button
         >
       </template>
@@ -61,12 +61,12 @@
           size="default"
           plain
           class="btn-white P12"
-          @click="addJournal()"
+          @click="addJournal"
           >查看日志</el-button
         >
       </template>
       <template v-if="isMeasure">
-        <el-button size="default" plain class="btn-white br" @click="addBbut()"
+        <el-button size="default" plain class="btn-white br" @click="addBbut"
           >测试</el-button
         >
       </template>
@@ -80,7 +80,7 @@
         >
       </template>
       <template v-if="isAuth">
-        <el-button size="default" plain class="btn-white br" @click="addBbut()"
+        <el-button size="default" plain class="btn-white br" @click="addBbut"
           >新增</el-button
         >
       </template>
@@ -164,7 +164,7 @@ const emits = defineEmits([
   "addForm",
   "preserForm",
   "addJournalForm",
-  "addslotForm",
+  "addSlotForm",
   "showForm",
   "searchForm",
 ]);
@@ -188,7 +188,7 @@ const addJournal = () => {
 };
 //插槽
 const addslot = () => {
-  emits("addslotForm");
+  emits("addSlotForm");
 };
 //列设置
 const show = () => {

+ 15 - 0
src/components/tableTemp/index.vue

@@ -17,7 +17,13 @@
     :cell-class-name="cellClassName"
     @row-click="rowClickHandler"
     @cell-click="cellClickHandler"
+    @select="selectHandler"
   >
+    <el-table-column
+      v-if="selectionEnable"
+      type="selection"
+      width="35"
+    />
     <el-table-column v-if="isStatus" width="55">
       <template #default="scope">
         <div class="tableStatus">
@@ -151,6 +157,10 @@ const props = defineProps({
     type: Boolean,
     default: false,
   },
+  selectionEnable: {
+    type: Boolean,
+    default: false,
+  }
 })
 
 //表格参数
@@ -192,6 +202,7 @@ const emit = defineEmits([
   'cellClass',
   'rowClick',
   'cellClick',
+  'select'
 ])
 
 //按钮点击index为当前行序号 row 为当前行 param按钮类型判断参数由父组件传过来
@@ -242,6 +253,10 @@ const cellClickHandler = (row, column, cell, event) => {
   emit('cellClick', row, column, cell, event)
 }
 
+const selectHandler = (selection, row) => {
+  emit('select', selection, row)
+}
+
 const table = ref<InstanceType<typeof ElTable> | null>(null)
 
 defineExpose({

+ 3 - 3
src/views/systemSettings/serviceManagement/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="airportInfo scroll-y">
+  <div class="serivce-home scroll-y">
     <div class="wrap">
       <MinHeader
         :is-auth="true"
@@ -417,10 +417,10 @@ const tableButtonClickHandler = (rowIndex: number, row: any, param: number) => {
       break
     case 2:
       router.push({
-        path: '/systemSettings/serviceTopology',
+        path: '/systemSettings/serviceEdit',
         query: {
           serviceID: row['serviceID'],
-          serviceName: row['serviceName'],
+          runState: row['runState'],
         },
       })
       break

Datei-Diff unterdrückt, da er zu groß ist
+ 753 - 437
src/views/systemSettings/serviceManagement/serviceEdit.vue


Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.