|
|
@@ -1,5 +1,9 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
+ <div style="margin-bottom: 10px; display: flex">
|
|
|
+ <div style="line-height: 33px">预审后生效模式:</div>
|
|
|
+ <el-switch :model-value="devMode" @change="switchDevMode" />
|
|
|
+ </div>
|
|
|
<el-form :model="queryForm" label-width="auto" :inline="true" ref="formRef">
|
|
|
<div class="select-group">
|
|
|
<el-form-item label="问题来源:" prop="source">
|
|
|
@@ -76,6 +80,17 @@
|
|
|
import type { FormInstance } from 'element-plus';
|
|
|
import { reactive, ref } from 'vue';
|
|
|
import { sourceOptions, issueStateOptions } from './constant.question';
|
|
|
+ import { getDevMode, switchDevMode as SDM } from '@/api/datamanagement/getDevMode';
|
|
|
+
|
|
|
+ const devMode = ref(false);
|
|
|
+ getDevMode().then((res) => {
|
|
|
+ devMode.value = res;
|
|
|
+ });
|
|
|
+
|
|
|
+ const switchDevMode = () => {
|
|
|
+ SDM();
|
|
|
+ devMode.value = !devMode.value;
|
|
|
+ };
|
|
|
|
|
|
interface Props {
|
|
|
// isShowTab: boolean // true展示数据,false默认数据
|