From 2148328ba1aefed554fb007af23548480119a6d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com>
Date: Fri, 7 Jul 2023 15:03:52 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../resources/static/js/jlw/resourcesQuestion/index.js | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js b/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js
index 9f3d5f00..4ae3b7a3 100644
--- a/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js
+++ b/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js
@@ -66,13 +66,21 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
{
field: 'userId', title: '操作', align: "center", width: 220, style:"text-align: left", templet: function (d) {
let htm = "";
- if((d.sourceType == '2' && isAdmin) || (d.sourceType == '1' && !isAdmin)){
+ /*if((d.sourceType == '2' && isAdmin) || (d.sourceType == '1' && !isAdmin)){
htm +='上架\n'
+'下架'
+'编辑\n'
+'删除';
}else{
htm += '查看';
+ }*/
+ if((d.addType == 'ADMIN_ADD' && isAdmin)){
+ htm +='上架\n'
+ +'下架'
+ +'编辑\n'
+ +'删除';
+ }else if((d.addType == 'ADMIN_ADD' && !isAdmin)){
+ htm += '查看';
}
// TODO 上下架前端逻辑待开发