|
|
@@ -36,7 +36,7 @@
|
|
|
// ifShow: record.servicealiasname,
|
|
|
// ifShow: ((action) => action.servicealiasname),
|
|
|
ifShow: record.servicealiasname,
|
|
|
- onClick: see.bind(null, record),
|
|
|
+ onClick: sendApprove.bind(null, record),
|
|
|
},
|
|
|
]" :drop-down-actions="[
|
|
|
{
|
|
|
@@ -97,9 +97,11 @@ import { RoleEnum } from '/@/enums/roleEnum';
|
|
|
import { Authority } from '/@/components/Authority';
|
|
|
import { useBatchDelete } from '/@/hooks/web/useBatchDelete';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
-import { Switch, Popconfirm } from 'ant-design-vue';
|
|
|
+import { Switch, Popconfirm, message } from 'ant-design-vue';
|
|
|
import { list, deleteService } from '/@/api/dataAdmin/assembly';
|
|
|
import Moment from 'moment'
|
|
|
+//提交授权申请
|
|
|
+import { queryFlowInfoPage, submitExamine } from '/@/api/resource/examine';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'RoleManagement',
|
|
|
@@ -219,7 +221,52 @@ export default defineComponent({
|
|
|
|
|
|
})
|
|
|
|
|
|
+ function sendApprove(e) {
|
|
|
+ console.log(e)
|
|
|
+ queryFlowInfoPage({
|
|
|
+ page: 1,
|
|
|
+ rows: 1000000
|
|
|
+ }).then(flowRes => {
|
|
|
+ console.log("flowRes:", flowRes)
|
|
|
+ if (flowRes && flowRes.length) {
|
|
|
+ var flow = flowRes.filter(i => i.FLOWNAME === '组件资源上传');
|
|
|
+ if (flow.length) {
|
|
|
+ // const rowKeys = getSelectRowKeys();
|
|
|
+ // let ids = rowKeys.toString();
|
|
|
+ // // console.log(flowRes);
|
|
|
+ // let flag = 0
|
|
|
+ // flowRes.forEach(item => {
|
|
|
+ // if (item.FLOWNAME === judgeType(ids)) {
|
|
|
+ // flag = 1
|
|
|
+ // let params = {
|
|
|
+ // bussInfo: {
|
|
|
+ // bussname: judgeType(ids),//业务名称
|
|
|
+ // flowid: flow[0].id,//流程id
|
|
|
+ // serverids: ids//资源id
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // submitExamine(params).then(res => {
|
|
|
+ // if (res.resp_code === 0 && res.resp_msg === '新增成功') {
|
|
|
+ // message.success('申请成功')
|
|
|
+ // reload();
|
|
|
+ // } else {
|
|
|
+ // message.error('申请失败')
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // clearSelectedRowKeys();
|
|
|
+ // !flag && message.info('没有对应流程,请联系管理员');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
return {
|
|
|
+ sendApprove,
|
|
|
moment,
|
|
|
createMessage,
|
|
|
registerTable,
|