浏览代码

小修改

sujunling 2 年之前
父节点
当前提交
6ce21cb9ac
共有 2 个文件被更改,包括 52 次插入3 次删除
  1. 3 1
      README.md
  2. 49 2
      src/views/dataAdmin/assembly/index.vue

+ 3 - 1
README.md

@@ -179,4 +179,6 @@ yarn build
 备份:
 路由:/resource/library
 权限:resource:library
-组件:/resource/library/index
+组件:/resource/library/index
+
+git remote set-url origin <http://192.168.2.241:3000/sujunling/xld-gis-admin.git>

+ 49 - 2
src/views/dataAdmin/assembly/index.vue

@@ -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,