Browse Source

菜单管理

duy 1 year ago
parent
commit
707ee49965
4 changed files with 18 additions and 22 deletions
  1. 10 10
      src/views/anomaly/index.vue
  2. 1 1
      src/views/system/menu.vue
  3. 2 2
      src/views/system/role.vue
  4. 5 9
      src/views/system/user.vue

+ 10 - 10
src/views/anomaly/index.vue

@@ -101,22 +101,22 @@ const typeOptions = ref([
 const levelOptions = ref([
 const levelOptions = ref([
     {
     {
         value: '1',
         value: '1',
-        label: '三级异常',
+        label: '三级',
     },
     },
     {
     {
         value: '2',
         value: '2',
-        label: '二级异常',
+        label: '二级',
     },
     },
 ])
 ])
 const tableColumn = [
 const tableColumn = [
-       { key: 'key1', name: '项目名称' },
-       { key: 'key2', name: '异常类型' },
-       { key: 'key3', name: '季度' },
-       { key: 'key4', name: '异常时间' },
-       { key: 'key5', name: '异常等级' },
-       { key: 'key6', name: '是否撤销' },
-       { key: 'key7', name: '撤销开始时间' },
-       { key: 'key8', name: '撤销结束时间' },
+       { key: 'key1', name: '项目名称', align:'center' },
+       { key: 'key2', name: '异常类型', align:'center' },
+       { key: 'key3', name: '季度', align:'center' },
+       { key: 'key4', name: '异常时间', align:'center' },
+       { key: 'key5', name: '异常等级', width:80, align:'center' },
+       { key: 'key6', name: '是否撤销', align:'center' },
+       { key: 'key7', name: '撤销开始时间', align:'center' },
+       { key: 'key8', name: '撤销结束时间', align:'center' },
        { key: 'action', name: '操作' },
        { key: 'action', name: '操作' },
    ]
    ]
 const tableData = ref([
 const tableData = ref([

+ 1 - 1
src/views/system/menu.vue

@@ -108,7 +108,7 @@
     { key: 'category', name: '菜单类型', width: 90, align: 'center' },
     { key: 'category', name: '菜单类型', width: 90, align: 'center' },
     { key: 'sort', name: '排序', width: 80, align: 'center' },
     { key: 'sort', name: '排序', width: 80, align: 'center' },
     { key: 'remark', name: '备注', minWidth: 200 },
     { key: 'remark', name: '备注', minWidth: 200 },
-    { key: 'action', name: '操作', width: 100, fixed:'right', align: 'center' },
+    { key: 'action', name: '操作', width: 180, fixed:'right', align: 'center' },
    ]
    ]
    const tableData = ref([
    const tableData = ref([
        { name: 'admin', code: 'xxx', key3: '超级管理员' },
        { name: 'admin', code: 'xxx', key3: '超级管理员' },

+ 2 - 2
src/views/system/role.vue

@@ -62,9 +62,9 @@
    import { ref, watch } from 'vue'
    import { ref, watch } from 'vue'
    import { HcDelMsg } from 'hc-vue3-ui'
    import { HcDelMsg } from 'hc-vue3-ui'
    const tableColumn = [
    const tableColumn = [
-       { key: 'key1', name: '角色名称' },
+       { key: 'key1', name: '角色名称', align:'center' },
     
     
-       { key: 'action', name: '操作' },
+       { key: 'action', name: '操作', align:'center' },
    ]
    ]
    const tableData = ref([
    const tableData = ref([
        { key1: 'admin', key2: 'xxx', key3: '超级管理员' },
        { key1: 'admin', key2: 'xxx', key3: '超级管理员' },

+ 5 - 9
src/views/system/user.vue

@@ -85,20 +85,16 @@
    import { ref, watch } from 'vue'
    import { ref, watch } from 'vue'
    import { HcDelMsg } from 'hc-vue3-ui'
    import { HcDelMsg } from 'hc-vue3-ui'
    const tableColumn = [
    const tableColumn = [
-       { key: 'key1', name: '登陆账户' },
-       { key: 'key2', name: '用户名' },
-       { key: 'key3', name: '角色' },
-       { key: 'action', name: '操作' },
+       { key: 'key1', name: '登陆账户', align:'center' },
+       { key: 'key2', name: '用户名', align:'center' },
+       { key: 'key3', name: '角色', align:'center' },
+       { key: 'action', name: '操作', align:'center' },
    ]
    ]
    const tableData = ref([
    const tableData = ref([
        { key1: 'admin', key2: 'xxx', key3: '超级管理员' },
        { key1: 'admin', key2: 'xxx', key3: '超级管理员' },
        { key1: '13028304756', key2: 'aaa', key3: '角色' },
        { key1: '13028304756', key2: 'aaa', key3: '角色' },
    ])
    ])
-   //设置表头行的样式
-   const tableHeaderRowStyle = ({ row, rowIndex }) => {
-       // --el-table-header-bg-color 是表格,表头行的背景色
-       return '--el-table-header-bg-color: #4b4b4b;  color: white;'
-   }
+
    const addModal = ref(false)
    const addModal = ref(false)
    const addClick = ()=>{
    const addClick = ()=>{
        addModal.value = true
        addModal.value = true