|
@@ -48,7 +48,9 @@
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column prop="check" label="详情" width="">
|
|
<el-table-column prop="check" label="详情" width="">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <span @click="checkItem_addItem(scope.row)">查看</span>
|
|
|
|
|
|
+ <span v-if="scope.row.handlingStatus!=1&&store.state.authorities.indexOf('修改')==-1" style="cursor:default"></span>
|
|
|
|
+ <span @click="checkItem_addItem(scope.row)" v-else>查看</span>
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="eddl" label="状态" width="">
|
|
<el-table-column prop="eddl" label="状态" width="">
|
|
@@ -108,7 +110,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import dialogComponent from './dialogComponent'
|
|
import dialogComponent from './dialogComponent'
|
|
-// import { useStore } from 'vuex'
|
|
|
|
|
|
+import { useStore } from 'vuex'
|
|
import { defineComponent, onMounted, ref } from 'vue'
|
|
import { defineComponent, onMounted, ref } from 'vue'
|
|
import * as api from '@/api/alarmManage/index'
|
|
import * as api from '@/api/alarmManage/index'
|
|
import { ElMessage } from 'element-plus'
|
|
import { ElMessage } from 'element-plus'
|
|
@@ -121,7 +123,7 @@ export default defineComponent({
|
|
},
|
|
},
|
|
components: { dialogComponent },
|
|
components: { dialogComponent },
|
|
setup(props, { emit }) {
|
|
setup(props, { emit }) {
|
|
- // const store = useStore()
|
|
|
|
|
|
+ const store = useStore()
|
|
|
|
|
|
const total = ref(0)
|
|
const total = ref(0)
|
|
const pageSize = ref(15)
|
|
const pageSize = ref(15)
|
|
@@ -156,6 +158,11 @@ export default defineComponent({
|
|
|
|
|
|
// 查看操作
|
|
// 查看操作
|
|
const checkItem_addItem = (row) => {
|
|
const checkItem_addItem = (row) => {
|
|
|
|
+ //如果没有修改权限,并且不是已处理
|
|
|
|
+ if(row.handlingStatus!=1&&store.state.authorities.indexOf('修改')==-1){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
tableItem.value = row
|
|
tableItem.value = row
|
|
dialogTitle.value = '告警详情'
|
|
dialogTitle.value = '告警详情'
|
|
showDialog.value = true
|
|
showDialog.value = true
|
|
@@ -214,6 +221,7 @@ export default defineComponent({
|
|
handleClick,
|
|
handleClick,
|
|
listSelect,
|
|
listSelect,
|
|
closeDialog,
|
|
closeDialog,
|
|
|
|
+ store,
|
|
|
|
|
|
showDialog,
|
|
showDialog,
|
|
input: '请输入发生时间',
|
|
input: '请输入发生时间',
|