diff --git a/plugins/gae/index.py b/plugins/gae/index.py index 6485da84d..95240474d 100755 --- a/plugins/gae/index.py +++ b/plugins/gae/index.py @@ -70,6 +70,18 @@ def getAllProjectList(search): return dlist +def checkProjectListIsSet(data): + dlen = len(data) + for x in range(dlen): + path = getServerDir() + data[x]['name'] + '.json' + if os.path.exists(path): + data[x]['isset'] = True + else: + data[x]['isset'] = False + + return data + + def projectList(): args = getArgs() @@ -90,6 +102,7 @@ def projectList(): start = (page - 1) * page_size ret_data = dlist[start:start + page_size] + ret_data = checkProjectListIsSet(ret_data) data = {} data['data'] = ret_data diff --git a/plugins/gae/js/gae.js b/plugins/gae/js/gae.js index 73913a2b8..230e5601f 100755 --- a/plugins/gae/js/gae.js +++ b/plugins/gae/js/gae.js @@ -50,9 +50,10 @@ function projectList(page, search){ ulist = rdata.data; for (i in ulist){ + setName = ulist[i]['isset'] ? '已设置' : '设置'; content += '
| 用户 | 权限 | 操作 |
|---|