diff --git a/src/api/mdp/arc/archive.js b/src/api/mdp/arc/archive.js
index adcc383d..4e7c9e45 100644
--- a/src/api/mdp/arc/archive.js
+++ b/src/api/mdp/arc/archive.js
@@ -1,6 +1,7 @@
import axios from '@/utils/request'
-import config from '@/common/config'
+import config from '@/common/config'
+import { getDicts,initSimpleDicts,initComplexDicts } from '@/api/mdp/meta/item';//字典表
let base=config.getArcBasePath();
@@ -43,4 +44,20 @@ export const publish = params => { return axios.post(`${base}/mdp/arc/archive/pu
export const unPublish = params => { return axios.post(`${base}/mdp/arc/archive/unpublish`, params); };
//新增一个
-export const addWorkflowArchive = params => { return axios.post(`${base}/mdp/arc/archive/add/workflow`, params); };
\ No newline at end of file
+export const addWorkflowArchive = params => { return axios.post(`${base}/mdp/arc/archive/add/workflow`, params); };
+
+//批量修改某些字段
+export const editSomeFieldsArchive = params => { return axios.post(`${base}/mdp/arc/archive/editSomeFields`, params); };
+
+
+
+/**-------------------------前端mng|add|edit界面公共函数---------------请写在下面----------------------------------------------- */
+//初始化页面上的字典
+export const initDicts = (that) => {
+ var itemCodes=['categoryType','archiveStatus'];//在此添加要加载的字典 如['sex','grade','lvl']
+ if(itemCodes.length>0){
+ initSimpleDicts('all',itemCodes).then(res=>{
+ Object.assign(that.dicts,res.data.data)
+ });
+ }
+};
\ No newline at end of file
diff --git a/src/views/xm/core/wiki/archive/ArchiveEdit.vue b/src/views/xm/core/wiki/archive/ArchiveEdit.vue
new file mode 100644
index 00000000..8b92c94a
--- /dev/null
+++ b/src/views/xm/core/wiki/archive/ArchiveEdit.vue
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/xm/core/xmIteration/XmIterationInfoRoute.vue b/src/views/xm/core/xmIteration/XmIterationInfoRoute.vue
index 80d34c03..d615c1ec 100644
--- a/src/views/xm/core/xmIteration/XmIterationInfoRoute.vue
+++ b/src/views/xm/core/xmIteration/XmIterationInfoRoute.vue
@@ -31,7 +31,7 @@
if(this.$route.query && this.$route.query.id){
var localStorageIteration=localStorage.getItem("xm-iteration-info-route")
var iteration=null;
- if(localStorageIteration){
+ if(localStorageIteration && localStorageIteration!='undefined'){
iteration=JSON.parse(localStorageIteration)
if(iteration && iteration.id==this.$route.query.id){
this.xmIteration=iteration
diff --git a/src/views/xm/core/xmMenu/XmMenuDetailRoute.vue b/src/views/xm/core/xmMenu/XmMenuDetailRoute.vue
index 6eaaa5ba..4480dce0 100644
--- a/src/views/xm/core/xmMenu/XmMenuDetailRoute.vue
+++ b/src/views/xm/core/xmMenu/XmMenuDetailRoute.vue
@@ -33,7 +33,7 @@
if(this.$route.query && this.$route.query.menuId){
var localStorageXmMenu=localStorage.getItem("xm-menu-info-route")
var menu=null;
- if(localStorageXmMenu){
+ if(localStorageXmMenu && localStorageXmMenu!='undefined'){
menu=JSON.parse(localStorageXmMenu)
if(menu && menu.menuId==this.$route.query.menuId){
this.xmMenu=menu
diff --git a/src/views/xm/core/xmMenu/XmMenuEdit.vue b/src/views/xm/core/xmMenu/XmMenuEdit.vue
index 2ad8c1c8..004c8e0c 100644
--- a/src/views/xm/core/xmMenu/XmMenuEdit.vue
+++ b/src/views/xm/core/xmMenu/XmMenuEdit.vue
@@ -172,7 +172,7 @@
- 关联知识库
+
上传附件
@@ -215,6 +215,7 @@ import XmMenuExchangeMng from '../xmMenuExchange/XmMenuExchangeMng.vue';
import XmSubWorkItem from "@/views/xm/core/xmMenuWorkItem/XmSubWorkItem";
import XmRecord from '../xmRecord/XmRecord'
import XmMyDoFocus from '@/views/myWork/my/components/DoFocus';
+ import ArchiveEdit from '@/views/xm/core/wiki/archive/ArchiveEdit';
export default {
computed: {
@@ -520,7 +521,8 @@ import XmMenuExchangeMng from '../xmMenuExchange/XmMenuExchangeMng.vue';
XmMenuExchangeMng,
XmSubWorkItem,
XmRecord,
- XmMyDoFocus
+ XmMyDoFocus,
+ ArchiveEdit,
},
mounted() {
diff --git a/src/views/xm/core/xmProduct/XmProductInfoRoute.vue b/src/views/xm/core/xmProduct/XmProductInfoRoute.vue
index a2ca2916..e8c6cf69 100644
--- a/src/views/xm/core/xmProduct/XmProductInfoRoute.vue
+++ b/src/views/xm/core/xmProduct/XmProductInfoRoute.vue
@@ -33,7 +33,7 @@
if(this.$route.query && this.$route.query.id){
var localStorageProduct=localStorage.getItem("xm-product-info-route")
var product=null;
- if(localStorageProduct){
+ if(localStorageProduct && localStorageProduct!='undefined'){
product=JSON.parse(localStorageProduct)
if(product && product.id==this.$route.query.id){
this.xmProduct=product
diff --git a/src/views/xm/core/xmProject/XmProjectInfoRoute.vue b/src/views/xm/core/xmProject/XmProjectInfoRoute.vue
index cb3c3366..b9760a5c 100644
--- a/src/views/xm/core/xmProject/XmProjectInfoRoute.vue
+++ b/src/views/xm/core/xmProject/XmProjectInfoRoute.vue
@@ -36,7 +36,7 @@
if(this.$route.query && this.$route.query.id){
var localStorageProject=localStorage.getItem("xm-project-info-route")
var project=null;
- if(localStorageProject){
+ if(localStorageProject && localStorageProject!='undefined'){
project=JSON.parse(localStorageProject)
if(project && project.id==this.$route.query.id){
this.selProject=project
diff --git a/src/views/xm/core/xmQuestion/XmQuestionDetailRoute.vue b/src/views/xm/core/xmQuestion/XmQuestionDetailRoute.vue
index e25a7c05..36449f2d 100644
--- a/src/views/xm/core/xmQuestion/XmQuestionDetailRoute.vue
+++ b/src/views/xm/core/xmQuestion/XmQuestionDetailRoute.vue
@@ -33,7 +33,7 @@
if(this.$route.query && this.$route.query.id){
var localStorageXmQuestion=localStorage.getItem("xm-question-info-route")
var question=null;
- if(localStorageXmQuestion){
+ if(localStorageXmQuestion && localStorageXmQuestion!='undefined'){
question=JSON.parse(localStorageXmQuestion)
if(question && question.id==this.$route.query.id){
this.xmQuestion=question
diff --git a/src/views/xm/core/xmTask/XmTaskDetailRoute.vue b/src/views/xm/core/xmTask/XmTaskDetailRoute.vue
index 36f180c4..9e0ac698 100644
--- a/src/views/xm/core/xmTask/XmTaskDetailRoute.vue
+++ b/src/views/xm/core/xmTask/XmTaskDetailRoute.vue
@@ -33,7 +33,7 @@
if(this.$route.query && this.$route.query.id){
var localStorageTask=localStorage.getItem("xm-task-info-route")
var task=null;
- if(localStorageTask){
+ if(localStorageTask && localStorageTask!='undefined'){
task=JSON.parse(localStorageTask)
if(task && task.id==this.$route.query.id){
this.xmTask=task