diff --git a/app/admin/controller/community/Team.php b/app/admin/controller/community/Team.php
index bd0fb0f..120628b 100644
--- a/app/admin/controller/community/Team.php
+++ b/app/admin/controller/community/Team.php
@@ -116,4 +116,29 @@ class Team extends AdminBase
return JsonServer::success('异常');
}
+
+
+ /**
+ * @notes 审核文章
+ * @return \think\response\Json|\think\response\View
+ * @author 段誉
+ * @date 2022/5/10 17:45
+ */
+ public function audit()
+ {
+ if ($this->request->isAjax()) {
+ $post = $this->request->post();
+ $result = OrganTeamLogic::audit($post);
+ if (false === $result) {
+ return JsonServer::error(OrganTeamLogic::getError() ?: '操作失败');
+ }
+ return JsonServer::success('编辑成功');
+ }
+ $id = $this->request->get('id');
+ return view('', [
+ 'detail' => OrganTeamLogic::detail($id)
+ ]);
+ }
+
+
}
\ No newline at end of file
diff --git a/app/admin/view/community/organ/edit.html b/app/admin/view/community/organ/edit.html
index 699581f..97d1bb2 100644
--- a/app/admin/view/community/organ/edit.html
+++ b/app/admin/view/community/organ/edit.html
@@ -152,6 +152,7 @@
+
+
审核状态:
+
+
+ 全部
+ 未处理
+ 通过
+ 拒绝
+
+
+
+
搜索
@@ -59,10 +71,29 @@
付费{{d.price}}元下载
{{# } }}
+
@@ -86,12 +117,45 @@
,{field:"intro", width:100, align:"center", title:"简介"}
,{field:"visit", width:100, align:"center", title:"浏览量"}
,{field:"sort", width:100, align:"center", title:"排序"}
+ ,{field:"audit_status", width:100, align:"center", title:"审核状态", templet:"#table-audit"}
,{field:"create_time", width:180, align:"center", title:"创建时间"}
,{title:"操作", width:200, align:"center", fixed:"right", toolbar:"#table-operation"}
]);
var active = {
+ audit: function(obj) {
+ layer.open({
+ type: 2
+ ,title: "专家审核"
+ ,content: "{:url('community.Team/audit')}?id=" + obj.data.id
+ ,area: ["90%", "90%"]
+ ,btn: ["确定", "取消"]
+ ,yes: function(index, layero){
+ var iframeWindow = window["layui-layer-iframe" + index];
+ var submit = layero.find("iframe").contents().find("#addSubmit");
+ iframeWindow.layui.form.on("submit(addSubmit)", function(data){
+ data.field['id'] = obj.data.id;
+ like.ajax({
+ url: "{:url('community.Team/audit')}",
+ data: data.field,
+ type: "POST",
+ success:function(res) {
+ if(res.code === 1) {
+ layui.layer.msg(res.msg, {offset: '15px', icon: 1, time: 1000});
+ layer.close(index);
+ table.reload("like-table-lists", {
+ where: {},
+ page: { cur: 1 }
+ });
+ }
+ }
+ });
+ });
+ submit.trigger("click");
+ }
+ });
+ },
add: function() {
layer.open({
type: 2
diff --git a/app/api/controller/User.php b/app/api/controller/User.php
index 5e05068..116e62e 100644
--- a/app/api/controller/User.php
+++ b/app/api/controller/User.php
@@ -311,6 +311,7 @@ class User extends Api
$get = $this->request->get();
$get['page_no'] = $this->page_no;
$get['page_size'] = $this->page_size;
+ $get['type'] = isset($get['type'])?$get['type']:0;
$lists = OrganTeamLogic::getUserOrgan($get, $this->user_id);
return JsonServer::success('获取成功', $lists);
}
@@ -327,4 +328,5 @@ class User extends Api
}
+
}
\ No newline at end of file
diff --git a/app/common/enum/MenuEnum.php b/app/common/enum/MenuEnum.php
index bf45ab8..1b2b238 100644
--- a/app/common/enum/MenuEnum.php
+++ b/app/common/enum/MenuEnum.php
@@ -116,7 +116,7 @@ class MenuEnum{
'is_tab' => 0,
'link_type' => 1,
],
- //新品推荐
+ //新品推荐
[
'index' => 113,
'name' => '新品推荐',
@@ -192,15 +192,15 @@ class MenuEnum{
[
'index' => 123,
'name' => '全国案例',
- 'link' => '/pages/news_list/news_list?type=2',
- 'is_tab' => 0,
+ 'link' => '/pages/resource_list/resource_list?cate_type=1',
+ 'is_tab' => 1,
'link_type' => 1,
],
//资料库
[
'index' => 124,
'name' => '吊篮基础资料',
- 'link' => '/pages/resource_list/resource_list?index=1&cate=12',
+ 'link' => '/pages/resource_list/resource_list',
'is_tab' => 1,
'link_type' => 1
],
@@ -224,15 +224,15 @@ class MenuEnum{
[
'index' => 127,
'name' => '在线培训',
- 'link' => '/bundle/pages/help/detail?id=train',
- 'is_tab' => 0,
+ 'link' => '/pages/resource_list/resource_list?cate_type=1&cate=21',
+ 'is_tab' => 1,
'link_type' => 1,
],
//各地专家库
[
'index' => 128,
'name' => '咨询我们',
- 'link' => '/bundle/pages/help/detail?id=consult',
+ 'link' => '/pages/news_list/news_list?type=1&cate=11',
'is_tab' => 0,
'link_type' => 1,
],
@@ -252,15 +252,32 @@ class MenuEnum{
'is_tab' => 0,
'link_type' => 1,
],
- //资料库
+ //投诉中心
[
- 'index' => 122,
- 'name' => '资料库',
- 'link' => '/pages/resource_list/resource_list?index=1&cate=12',
- 'is_tab' => 1,
- 'link_type' => 1,
+ 'index' => 131,
+ 'name' => '报备要求',
+ // 'link' => '/pages/news_list/news_list?type=2&cate=11',
+ 'link' => '/pages/resource_list/resource_list?cate_type=1&cate=20',
+ 'is_tab' => 1,
+ 'link_type' => 1,
+ ],
+ //资料库
+ [
+ 'index' => 122,
+ 'name' => '资料库',
+ 'link' => '/pages/resource_list/resource_list?index=1&cate=12',
+ 'is_tab' => 1,
+ 'link_type' => 1,
- ]
+ ],
+ //投诉中心
+ [
+ 'index' => 132,
+ 'name' => '专家申请',
+ 'link' => '/bundle/pages/user/team',
+ 'is_tab' => 0,
+ 'link_type' => 1,
+ ],
];
//个人中心菜单
@@ -380,13 +397,21 @@ class MenuEnum{
'menu_type' => 1,
],
[
- 'index' => 1002,
- 'name' => '资料库',
- 'link' => '/pages/resource_list/resource_list',
- 'is_tab' => 1,
+ 'index' => 1002,
+ 'name' => '资料库',
+ 'link' => '/pages/resource_list/resource_list',
+ 'is_tab' => 1,
+ 'link_type' => 1,
+ 'menu_type' => 1,
+ ],//投诉中心
+ [
+ 'index' => 1004,
+ 'name' => '专家申请',
+ 'link' => '/bundle/pages/user/team',
+ 'is_tab' => 0,
'link_type' => 1,
'menu_type' => 1,
- ]
+ ],
];
/**
diff --git a/runtime/admin/temp/1f7b39922686c18d444c5fa822532521.php b/runtime/admin/temp/1f7b39922686c18d444c5fa822532521.php
index 040ec73..35f5a38 100644
--- a/runtime/admin/temp/1f7b39922686c18d444c5fa822532521.php
+++ b/runtime/admin/temp/1f7b39922686c18d444c5fa822532521.php
@@ -1,4 +1,4 @@
-
+
@@ -45,6 +45,18 @@
+
+
审核状态:
+
+
+ 全部
+ 未处理
+ 通过
+ 拒绝
+
+
+
+
搜索
@@ -80,10 +92,29 @@
付费{{d.price}}元下载
{{# } }}
+
@@ -107,12 +138,45 @@
,{field:"intro", width:100, align:"center", title:"简介"}
,{field:"visit", width:100, align:"center", title:"浏览量"}
,{field:"sort", width:100, align:"center", title:"排序"}
+ ,{field:"audit_status", width:100, align:"center", title:"审核状态", templet:"#table-audit"}
,{field:"create_time", width:180, align:"center", title:"创建时间"}
,{title:"操作", width:200, align:"center", fixed:"right", toolbar:"#table-operation"}
]);
var active = {
+ audit: function(obj) {
+ layer.open({
+ type: 2
+ ,title: "专家审核"
+ ,content: "?id=" + obj.data.id
+ ,area: ["90%", "90%"]
+ ,btn: ["确定", "取消"]
+ ,yes: function(index, layero){
+ var iframeWindow = window["layui-layer-iframe" + index];
+ var submit = layero.find("iframe").contents().find("#addSubmit");
+ iframeWindow.layui.form.on("submit(addSubmit)", function(data){
+ data.field['id'] = obj.data.id;
+ like.ajax({
+ url: "",
+ data: data.field,
+ type: "POST",
+ success:function(res) {
+ if(res.code === 1) {
+ layui.layer.msg(res.msg, {offset: '15px', icon: 1, time: 1000});
+ layer.close(index);
+ table.reload("like-table-lists", {
+ where: {},
+ page: { cur: 1 }
+ });
+ }
+ }
+ });
+ });
+ submit.trigger("click");
+ }
+ });
+ },
add: function() {
layer.open({
type: 2