diff --git a/public/static/css/main.css b/public/static/css/main.css index 915d0507..8194be3a 100644 --- a/public/static/css/main.css +++ b/public/static/css/main.css @@ -3666,6 +3666,7 @@ button:focus { bottom: 10px; font-size: 12px; background-color: #fff; + color: #000; } .listUpdateBtn .webuploader-pick{ width: 80px; diff --git a/src/services/project.js b/src/services/project.js new file mode 100644 index 00000000..ceb65429 --- /dev/null +++ b/src/services/project.js @@ -0,0 +1,25 @@ +import { fetchApi , wrapErrorHint} from '@/utils/request'; +/** + * 用户拥有的项目 + * @param {string} id + */ +export async function queryProjectsByUserId(userId){ + const res = await fetchApi('project/queryProjectListByUserId',{userId:userId}) + return wrapErrorHint(res); +} + +/** + * 项目详情 +*/ +export async function QueryProjectInfoByProjId(projId){ + const res = await fetchApi('project/QueryProjectInfoByProjId',{projId:projId}) + return wrapErrorHint(res); +} + +/** + * 编辑项目 +*/ +export async function EditProject(proj){ + const res = await fetchApi('project/EditProject',proj) + return wrapErrorHint(res); +} \ No newline at end of file diff --git a/src/utils/request.js b/src/utils/request.js index da465289..b62bd874 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -88,7 +88,7 @@ export default axios; function mapApiPathToFullPath(path) { const [service] = path.split('/'); - const fullpath = `api/${service === 'template' ? 'pms' : 'cms'}/${service === 'authentication' ? '' : 'v1/'}${path}`; + const fullpath = `api/${(service === 'template' || service ==='project') ? 'pms' : 'cms'}/${service === 'authentication' ? '' : 'v1/'}${path}`; let method = 'GET'; switch (path) { @@ -109,6 +109,7 @@ function mapApiPathToFullPath(path) { case 'template/addTemplateNodeModelFile': case 'template/createNestedRelevance': case 'template/deleteNestedRelevance': + case 'project/EditProject': // case 'template/deleteTemplateNodeModelFile': method = 'POST'; break; diff --git a/src/views/components_web/newProj/newProj.vue b/src/views/components_web/newProj/newProj.vue index d8e595d3..86af934f 100644 --- a/src/views/components_web/newProj/newProj.vue +++ b/src/views/components_web/newProj/newProj.vue @@ -108,19 +108,6 @@
- -
- {{ nowProject.userCnName }} + {{nowProject.ProjCreateUserName}}
- {{ nowProject.strCreateTime }} + {{ nowProject.ProjCreateTime }}
-
+
- - - {{ prop.propValue }} + + + {{ prop.PropValue }}
-
- - - +
+ + + 编辑 + 使用随机封面
@@ -518,7 +523,14 @@ diff --git a/src/views/main_web/index/index.vue b/src/views/main_web/index/index.vue index f79eeb1b..b32e5689 100644 --- a/src/views/main_web/index/index.vue +++ b/src/views/main_web/index/index.vue @@ -35,14 +35,6 @@
- -
@@ -107,7 +99,7 @@ - + 项目概况