潘志宝
2024-12-25 02bbf25456f3a0165313340be277cfa4a2b3b24f
src/views/model/sche/scheme/index.vue
@@ -81,6 +81,14 @@
          </el-button>
          <el-button
            link
            type="primary"
            @click="openRecordList(scope.row.id)"
            v-hasPermi="['sche:record:query']"
          >
            日志
          </el-button>
          <el-button
            link
            type="danger"
            @click="handleDelete(scope.row.id)"
            v-hasPermi="['sche:scheme:delete']"
@@ -102,13 +110,14 @@
  <!-- 表单弹窗:添加/修改 -->
  <ScheduleSchemeForm ref="formRef" @success="getList" />
  <!-- 表单弹窗:添加/修改 -->
  <RecordList ref="recordRef" />
</template>
<script lang="ts" setup>
  import {DICT_TYPE, getIntDictOptions} from '@/utils/dict'
  import {dateFormatter} from '@/utils/formatTime'
  import download from '@/utils/download'
  import * as ScheduleSchemeApi from '@/api/model/sche/scheme'
  import ScheduleSchemeForm from './ScheduleSchemeForm.vue'
  import RecordList from  './record/index.vue'
  defineOptions({name: 'ScheduleScheme'})
@@ -171,6 +180,12 @@
    }
  }
  /** 调用日志查看 */
  const recordRef = ref()
  const openRecordList = (id?: string) => {
    recordRef.value.open(id)
  }
  /** 初始化 **/
  onMounted(async () => {
    await getList()