From ea1b994ba52fd14635888224624b37934afedcf2 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 24 Oct 2025 14:59:19 +0800
Subject: [PATCH] feat(ai): 新增AI产品依赖管理功能

---
 src/main/resources/templates/febs/views/modules/ai/aiApply/list.html |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/ai/aiApply/list.html b/src/main/resources/templates/febs/views/modules/ai/aiApply/list.html
index 57185fd..a48f671 100644
--- a/src/main/resources/templates/febs/views/modules/ai/aiApply/list.html
+++ b/src/main/resources/templates/febs/views/modules/ai/aiApply/list.html
@@ -50,9 +50,13 @@
 <!--</script>-->
 
 <script type="text/html" id="aiApplyOption">
+    {{#  if(d.state == 0){ }}
     <button class="layui-btn layui-btn-sm layui-btn-success" type="button" shiro:hasPermission="applyList:view" lay-event="aiApplyInfoAgreeEvent">同意</button>
     <button class="layui-btn layui-btn-sm layui-btn-danger" type="button" shiro:hasPermission="applyList:view" lay-event="aiApplyInfoDisagreeEvent">拒绝</button>
+    {{#  } }}
+    {{#  if(d.state == 1){ }}
     <button class="layui-btn layui-btn-sm layui-btn-warm" type="button" shiro:hasPermission="applyList:view" lay-event="aiApplyInfoUnbindEvent">解绑</button>
+    {{#  } }}
 </script>
 
 
@@ -103,18 +107,21 @@
                     }
                 });
             } else if (layEvent === 'aiApplyInfoAgreeEvent') {
+                febs.modal.confirm('删除', '确认删除?', function () {
+                    memberRoleDeleteEvent(data.id);
+                });
                 // 同意操作
-                febs.confirm('确定要同意该申请吗?', function () {
+                febs.modal.confirm('审核','确定要同意该申请吗?', function () {
                     handleApplyAction(data.id, 'agree');
                 });
             } else if (layEvent === 'aiApplyInfoDisagreeEvent') {
                 // 拒绝操作
-                febs.confirm('确定要拒绝该申请吗?', function () {
+                febs.modal.confirm('审核','确定要拒绝该申请吗?', function () {
                     handleApplyAction(data.id, 'disagree');
                 });
             } else if (layEvent === 'aiApplyInfoUnbindEvent') {
                 // 解绑操作
-                febs.confirm('确定要解除绑定吗?此操作不可撤销!', function () {
+                febs.modal.confirm('审核','确定要解除绑定吗?此操作不可撤销!', function () {
                     handleApplyAction(data.id, 'unbind');
                 });
             }
@@ -132,9 +139,6 @@
                 data: JSON.stringify({id: id}),
                 dataType: 'json',
                 headers: {'Content-Type': 'application/json;charset=utf-8'},
-                beforeSend: function() {
-                    febs.loading.show();
-                },
                 success: function(res) {
                     if (res.code === 200) {
                         febs.alert.success(actionName + '成功');
@@ -148,7 +152,6 @@
                     febs.alert.error('服务器错误,请稍后重试');
                 },
                 complete: function() {
-                    febs.loading.hide();
                 }
             });
         }
@@ -167,7 +170,7 @@
                     {field: 'id', title: 'ID', minWidth: 100,align:'center'},
                     {field: 'name', title: '昵称', minWidth: 100,align:'center'},
                     {field: 'realName', title: '姓名', minWidth: 100,align:'center'},
-                    {field: 'companyCode', title: '公司', minWidth: 100,align:'center'},
+                    {field: 'companyName', title: '公司', minWidth: 100,align:'center'},
                     {field: 'createdTime', title: '时间', minWidth: 100,align:'center'},
                 ]]
             });

--
Gitblit v1.9.1