diff --git a/ebts-ui/.env.production b/ebts-ui/.env.production
index 98e270b..ccffda9 100644
--- a/ebts-ui/.env.production
+++ b/ebts-ui/.env.production
@@ -3,4 +3,4 @@ ENV = 'production'
# EBTS/生产环境
#VUE_APP_BASE_API = '/prod-api'
-VUE_APP_BASE_API = 'http://sistapi.hchyun.cn/dev-api'
+VUE_APP_BASE_API = 'http://localhost:8096/dev-api'
diff --git a/ebts-ui/src/views/sist/navigation/index.vue b/ebts-ui/src/views/sist/navigation/index.vue
index b9b26a3..bfdeef3 100644
--- a/ebts-ui/src/views/sist/navigation/index.vue
+++ b/ebts-ui/src/views/sist/navigation/index.vue
@@ -50,29 +50,34 @@
+
+
+
+
+
新增下级
修改详情
修改
-
-
-
+
+
+
+
-
+
-
+
@@ -183,26 +193,29 @@ import {
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import Editor from "@/components/Editor"
+import UploadFile from '@/views/utils/uploadFile'
export default {
name: "Navigation",
components: {
Treeselect,
- Editor
+ Editor,
+ UploadFile
},
data() {
return {
- formData:{
- title:null,
- content:null,
+ formData: {
+ title: null,
+ content: null,
},
- detailsShow:false,
+ detailsShow: false,
// 遮罩层
loading: true,
// 显示搜索条件
showSearch: true,
articleSelShow: false,
empleeSelShow: false,
+ inageShow:false,
// 导航表格数据
navigationTypeOptions: [],
// 导航树选项
@@ -214,8 +227,8 @@ export default {
sistDireTypeOptions: [],
labDireTypeOptions: [],
navigationType: [],
- navList:[],
- anvTypeEdit:true,
+ navList: [],
+ anvTypeEdit: true,
// 弹出层标题
title: "",
// 是否显示弹出层
@@ -237,7 +250,7 @@ export default {
{required: true, message: "英语名称不能为空", trigger: "blur"}
],
},
- detailsRules:{
+ detailsRules: {
// title: [
// {required: true, message: "导航名称不能为空", trigger: "blur"}
// ],
@@ -308,12 +321,13 @@ export default {
this.open = false;
this.reset();
},
- detailsClose(){
+ detailsClose() {
this.detailsShow = false
},
// 表单重置
reset() {
this.articleSelShow = false
+ this.inageShow = false;
this.empleeSelShow = false
this.form = {
id: null,
@@ -343,22 +357,22 @@ export default {
this.form.ptitle = row.title
this.form.pid = row.id
this.form.sitetype = row.sitetype
- this.form.type= '0'
+ this.form.type = '0'
this.title = "添加下级导航";
},
- handleUpdateDetails(row){
+ handleUpdateDetails(row) {
this.detailsShow = true
- this.formData={
- id:row.refId,
- title:"",
- content:"",
+ this.formData = {
+ id: row.refId,
+ title: "",
+ content: "",
}
- getDetails(row.refId).then(res=>{
+ getDetails(row.refId).then(res => {
this.formData = res.data
})
},
- save(){
- updateDetails(this.formData).then(res=>{
+ save() {
+ updateDetails(this.formData).then(res => {
this.msgSuccess("修改成功");
this.detailsShow = false
})
@@ -388,6 +402,12 @@ export default {
this.articleSelShow = false
this.empleeSelShow = false
}
+
+ if (this.form.type==0){
+ this.inageShow = false;
+ }else {
+ this.inageShow = true;
+ }
},
/** 修改按钮操作 */
handleUpdate(row) {
@@ -399,14 +419,14 @@ export default {
}
getNavigation(row.id).then(response => {
this.form = response.data;
- if (this.form.pid==0){
+ if (this.form.pid == 0) {
this.form.ptitle = "顶级节点"
- }else {
+ } else {
for (let nav of this.navList) {
- if (nav.id == this.form.pid){
+ if (nav.id == this.form.pid) {
this.form.ptitle = nav.title;
}
- if (nav.pid == this.form.id){
+ if (nav.pid == this.form.id) {
this.anvTypeEdit = false;
}
}
@@ -455,7 +475,7 @@ export default {
};