diff --git a/src/store/index.js b/src/store/index.js index ad00bc57..637acc6f 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -67,8 +67,6 @@ export default createStore({ }, SET_PERMISSION(state, permissions) { state.menus = permissions; - state.menus = [...permissions,'/evaluationupload']; - console.log(state.menus,"state.menus"); } }, diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue index 7cff2bac..11d6ed83 100644 --- a/src/views/evaluation/evaluationUpload.vue +++ b/src/views/evaluation/evaluationUpload.vue @@ -49,6 +49,69 @@ :pagination="false" > +
@@ -234,7 +297,7 @@
@@ -242,7 +305,7 @@
@@ -870,7 +933,7 @@ import {downLoadZip} from "@/utils/zipdownload"; width: "20%", dataIndex: "id", key: "id", - align: "right", + align: "left", slots: { customRender: "operation" }, }; if (!addedOperationColumn && state.isRegularAdministrator == '0') { @@ -1093,7 +1156,7 @@ import {downLoadZip} from "@/utils/zipdownload"; className: "h", ellipsis: true, align: "center", - width: 100, + width: 80, }, { title: "工号", @@ -1102,7 +1165,7 @@ import {downLoadZip} from "@/utils/zipdownload"; className: "h", ellipsis: true, align: "center", - width: 100, + width: 80, }, { title: "组织部门", @@ -1111,18 +1174,18 @@ import {downLoadZip} from "@/utils/zipdownload"; className: "h", ellipsis: true, align: "center", + width: 100, + }, + { + title: "归属组织", + dataIndex: "orgName", + key: "orgName", + className: "h", + ellipsis: true, + align: "center", width: 200, }, // { - // title: "添加时间", - // dataIndex: "createTime", - // key: "createTime", - // className: "h", - // ellipsis: true, - // align: "center", - // width: 100, - // }, - // { // title: "操作", // width: "20%", // fixed: 'right', @@ -1156,11 +1219,67 @@ import {downLoadZip} from "@/utils/zipdownload"; { title: '操作', dataIndex: 'action', - width: '80px', + width: '100px', align: 'center', slots: { customRender: 'uploadAction' }, }, ]); + const handleButtonClick = (record, permissionCode) => { + switch (permissionCode) { + case '1': + bgcheck(record); + break; + case '2': + bgupload1(record); + break; + case '5': + downloadAll(record); + break; + case '4': + openEdit(record); + break; + case '6': + deleteItem(record); + break; + case '3': + emptyItem(record); + break; + + } + } + function getButtonTitle(permissionCode) { + switch (permissionCode) { + case '1': + return '查看'; + case '2': + return '上传'; + case '3': + return '清空'; + case '4': + return '编辑'; + case '5': + return '下载'; + case '6': + return '删除'; + } + } + + function getIconClass(permissionCode) { + switch (permissionCode) { + case '1': + return 'check'; + case '2': + return 'upload'; + case '3': + return 'empty'; + case '4': + return 'release'; + case '5': + return 'download'; + case '6': + return 'delete'; + } + } const textDisabled = async (record) => { await updateStatus({status:1,id:record.id}).then((res)=>{ if(res.code === 200){ @@ -1670,6 +1789,9 @@ import {downLoadZip} from "@/utils/zipdownload"; columns, columnsAdd, columnsUpload, + handleButtonClick, + getIconClass, + getButtonTitle, columns2, bgupload, of_exit, @@ -1719,6 +1841,9 @@ import {downLoadZip} from "@/utils/zipdownload";