|
@@ -53,7 +53,7 @@
|
|
</el-icon>
|
|
</el-icon>
|
|
新增告警
|
|
新增告警
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button size="default" type="primary" class="ml10" @click="onOpenAdd">
|
|
|
|
|
|
+ <el-button size="default" type="primary" class="ml10" @click="onOpenLevel">
|
|
<el-icon>
|
|
<el-icon>
|
|
<ele-Setting />
|
|
<ele-Setting />
|
|
</el-icon>
|
|
</el-icon>
|
|
@@ -175,6 +175,7 @@
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
<EditDic ref="editDicRef" @dataList="dataList" />
|
|
<EditDic ref="editDicRef" @dataList="dataList" />
|
|
|
|
+ <LevelDic ref="levelDicRef" @dataList="dataList" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -182,6 +183,7 @@
|
|
import { toRefs, reactive, onMounted, ref, defineComponent } from 'vue';
|
|
import { toRefs, reactive, onMounted, ref, defineComponent } from 'vue';
|
|
import { ElMessageBox, ElMessage, FormInstance } from 'element-plus';
|
|
import { ElMessageBox, ElMessage, FormInstance } from 'element-plus';
|
|
import EditDic from './component/edit.vue';
|
|
import EditDic from './component/edit.vue';
|
|
|
|
+import LevelDic from './component/level.vue';
|
|
|
|
|
|
import alarm from '/@/api/alarm';
|
|
import alarm from '/@/api/alarm';
|
|
|
|
|
|
@@ -210,10 +212,11 @@ interface TableDataState {
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'setlist',
|
|
name: 'setlist',
|
|
- components: { EditDic },
|
|
|
|
|
|
+ components: { EditDic,LevelDic },
|
|
|
|
|
|
setup() {
|
|
setup() {
|
|
const addDicRef = ref();
|
|
const addDicRef = ref();
|
|
|
|
+ const levelDicRef=ref();
|
|
const editDicRef = ref();
|
|
const editDicRef = ref();
|
|
const detailRef = ref();
|
|
const detailRef = ref();
|
|
const queryRef = ref();
|
|
const queryRef = ref();
|
|
@@ -249,6 +252,9 @@ export default defineComponent({
|
|
const onOpenAdd = (row?: TableDataRow) => {
|
|
const onOpenAdd = (row?: TableDataRow) => {
|
|
editDicRef.value.openDialog();
|
|
editDicRef.value.openDialog();
|
|
};
|
|
};
|
|
|
|
+ const onOpenLevel = (row?: TableDataRow) => {
|
|
|
|
+ levelDicRef.value.openDialog();
|
|
|
|
+ };
|
|
// 打开修改模型弹窗
|
|
// 打开修改模型弹窗
|
|
const onOpenEdit = (row: TableDataRow) => {
|
|
const onOpenEdit = (row: TableDataRow) => {
|
|
editDicRef.value.openDialog({ ...row });
|
|
editDicRef.value.openDialog({ ...row });
|
|
@@ -314,7 +320,9 @@ export default defineComponent({
|
|
editDicRef,
|
|
editDicRef,
|
|
detailRef,
|
|
detailRef,
|
|
queryRef,
|
|
queryRef,
|
|
|
|
+ levelDicRef,
|
|
onOpenRecord,
|
|
onOpenRecord,
|
|
|
|
+ onOpenLevel,
|
|
onOpenAdd,
|
|
onOpenAdd,
|
|
onOpenEdit,
|
|
onOpenEdit,
|
|
onRowDel,
|
|
onRowDel,
|