1111
This commit is contained in:
@@ -3,8 +3,8 @@ ENV = 'development'
|
|||||||
|
|
||||||
# EBTS/开发环境
|
# EBTS/开发环境
|
||||||
#VUE_APP_BASE_API = '/dev-api'
|
#VUE_APP_BASE_API = '/dev-api'
|
||||||
#VUE_APP_BASE_API = 'http://192.168.190.67/dev-api'
|
VUE_APP_BASE_API = 'http://192.168.190.67/dev-api'
|
||||||
VUE_APP_BASE_API = 'http://127.0.0.1:8085/dev-api'
|
#VUE_APP_BASE_API = 'http://127.0.0.1:8085/dev-api'
|
||||||
#VUE_APP_BASE_API = 'http://sistapi.hchyun.cn/dev-api'
|
#VUE_APP_BASE_API = 'http://sistapi.hchyun.cn/dev-api'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
|
|||||||
@@ -4,3 +4,4 @@ ENV = 'production'
|
|||||||
# EBTS/生产环境
|
# EBTS/生产环境
|
||||||
#VUE_APP_BASE_API = '/prod-api'
|
#VUE_APP_BASE_API = '/prod-api'
|
||||||
VUE_APP_BASE_API = 'http://192.168.190.67/dev-api'
|
VUE_APP_BASE_API = 'http://192.168.190.67/dev-api'
|
||||||
|
#VUE_APP_BASE_API = 'http://sist.swjtu.edu.cn/dev-api'
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ export function getArticle(id) {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询系统文章详细
|
// 查询系统文章详细
|
||||||
export function getArticleType() {
|
export function getArticleType() {
|
||||||
return request({
|
return request({
|
||||||
@@ -34,6 +35,15 @@ export function getArticleType() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 查询系统文章详细
|
||||||
|
export function getArticleNav() {
|
||||||
|
return request({
|
||||||
|
url: '/sist/article/nav',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function getArticleApprove(type) {
|
export function getArticleApprove(type) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sist/article/approve/'+type,
|
url: '/sist/article/approve/'+type,
|
||||||
|
|||||||
@@ -9,12 +9,13 @@ module.exports = {
|
|||||||
* 单点登录url
|
* 单点登录url
|
||||||
*/
|
*/
|
||||||
casloginUrl: 'https://cas.swjtu.edu.cn/authserver/login?service=http://192.168.190.67/dev-api/cas-login',
|
casloginUrl: 'https://cas.swjtu.edu.cn/authserver/login?service=http://192.168.190.67/dev-api/cas-login',
|
||||||
|
// casloginUrl: 'https://cas.swjtu.edu.cn/authserver/login?service=http://sist.swjtu.edu.cn/dev-api/cas-login',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单点登出url
|
* 单点登出url
|
||||||
*/
|
*/
|
||||||
// caslogoutUrl: 'http://localhost:8888/cas/logout?service=http://localhost:8080',
|
|
||||||
caslogoutUrl: 'https://cas.swjtu.edu.cn/authserver/logout?service=http://192.168.190.67/admin/logout',
|
caslogoutUrl: 'https://cas.swjtu.edu.cn/authserver/logout?service=http://192.168.190.67/admin/logout',
|
||||||
|
// caslogoutUrl: 'https://cas.swjtu.edu.cn/authserver/logout?service=http://sist.swjtu.edu.cn/admin/logout',
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {setToken} from "@/utils/auth";
|
|||||||
export default {
|
export default {
|
||||||
name: "cas-login",
|
name: "cas-login",
|
||||||
mounted() {
|
mounted() {
|
||||||
// debugger
|
debugger
|
||||||
let search = window.location.search;
|
let search = window.location.search;
|
||||||
let token = search.slice(search.indexOf("=") + 1)
|
let token = search.slice(search.indexOf("=") + 1)
|
||||||
setToken(token)
|
setToken(token)
|
||||||
|
|||||||
@@ -47,9 +47,9 @@
|
|||||||
placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in sistArticleTypeOption"
|
v-for="dict in sistArticleTypeOption"
|
||||||
:key="dict.dictCode"
|
:key="dict.id"
|
||||||
:label="dict.dictLabel"
|
:label="dict.title"
|
||||||
:value="dict.dictCode"
|
:value="dict.id"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -74,9 +74,9 @@
|
|||||||
@change="getLabApprove(params.labArticleType)" clearable :style="{width: '100%'}">
|
@change="getLabApprove(params.labArticleType)" clearable :style="{width: '100%'}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in labArticleTypeOption"
|
v-for="dict in labArticleTypeOption"
|
||||||
:key="dict.dictCode"
|
:key="dict.id"
|
||||||
:label="dict.dictLabel"
|
:label="dict.title"
|
||||||
:value="dict.dictCode"
|
:value="dict.id"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -126,6 +126,7 @@ import Editor from '@/components/Editor';
|
|||||||
import {updateArticle, getArticle, drafts, getArticleType, getArticleApprove} from "@/api/sist/article";
|
import {updateArticle, getArticle, drafts, getArticleType, getArticleApprove} from "@/api/sist/article";
|
||||||
import {Message} from "element-ui";
|
import {Message} from "element-ui";
|
||||||
import UploadFile from '@/views/utils/uploadFile.vue';
|
import UploadFile from '@/views/utils/uploadFile.vue';
|
||||||
|
import { getArticleNav } from '../../../../api/sist/article'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -245,22 +246,37 @@ export default {
|
|||||||
this.getDicts("article_status").then(response => {
|
this.getDicts("article_status").then(response => {
|
||||||
this.statusOptions = response.data;
|
this.statusOptions = response.data;
|
||||||
});
|
});
|
||||||
getArticleType().then(res => {
|
|
||||||
let dictCodes = res.data
|
getArticleNav().then(res=>{
|
||||||
let articleList = this.articleTypeOptions
|
let data = res.data
|
||||||
console.log("dictCodes",dictCodes,"articleList",articleList)
|
for (let item of data) {
|
||||||
for (let i = 0; i < articleList.length; i++) {
|
if (item.sitetype == 1){
|
||||||
for (let j = 0; j < dictCodes.length; j++) {
|
this.sistArticleTypeOption.push(item)
|
||||||
if (articleList[i].dictCode == dictCodes[j]) {
|
}else {
|
||||||
if (articleList[i].attribute2 == 1) {
|
this.labArticleTypeOption.push(item)
|
||||||
this.sistArticleTypeOption.push(articleList[i])
|
|
||||||
} else if (articleList[i].attribute2 == 2) {
|
|
||||||
this.labArticleTypeOption.push(articleList[i])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
console.log(res)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// getArticleType().then(res => {
|
||||||
|
// let dictCodes = res.data
|
||||||
|
// let articleList = this.articleTypeOptions
|
||||||
|
// console.log("dictCodes",dictCodes,"articleList",articleList)
|
||||||
|
// for (let i = 0; i < articleList.length; i++) {
|
||||||
|
// for (let j = 0; j < dictCodes.length; j++) {
|
||||||
|
// if (articleList[i].dictCode == dictCodes[j]) {
|
||||||
|
// if (articleList[i].attribute2 == 1) {
|
||||||
|
// this.sistArticleTypeOption.push(articleList[i])
|
||||||
|
// } else if (articleList[i].attribute2 == 2) {
|
||||||
|
// this.labArticleTypeOption.push(articleList[i])
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -25,7 +25,8 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['test:emplee:add']"
|
v-hasPermi="['test:emplee:add']"
|
||||||
>新增</el-button>
|
>新增
|
||||||
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -37,8 +38,8 @@
|
|||||||
default-expand-all
|
default-expand-all
|
||||||
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
||||||
>
|
>
|
||||||
<el-table-column label="名称" align="center" prop="name" />
|
<el-table-column label="名称" align="center" prop="name"/>
|
||||||
<el-table-column label="层" align="center" prop="level" />
|
<el-table-column label="层" align="center" prop="level"/>
|
||||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{m}:{s}') }}</span>
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{m}:{s}') }}</span>
|
||||||
@@ -57,14 +58,16 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['test:emplee:edit']"
|
v-hasPermi="['test:emplee:edit']"
|
||||||
>修改</el-button>
|
>修改
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['test:emplee:remove']"
|
v-hasPermi="['test:emplee:remove']"
|
||||||
>删除</el-button>
|
>删除
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -73,13 +76,18 @@
|
|||||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
<el-form-item label="上级" prop="pid">
|
<el-form-item label="上级" prop="pid">
|
||||||
<treeselect v-model="form.pid" :options="empleeOptions" :normalizer="normalizer" placeholder="请选择父id" />
|
<treeselect v-model="form.pid" :options="empleeOptions" :normalizer="normalizer" placeholder="请选择父id"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="层" prop="level">
|
<el-form-item label="层" prop="level">
|
||||||
<el-input v-model="form.level" placeholder="请输入层" />
|
<el-input-number type="number" :min="1" :max="3" v-model="form.level" placeholder="请输入层"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="名称" prop="name">
|
<el-form-item label="名称" prop="name">
|
||||||
<el-input v-model="form.name" placeholder="请输入名称" />
|
<el-input v-model="form.name" placeholder="请输入名称"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="form.level === 3" label="跳转链接" prop="link">
|
||||||
|
<el-input v-model="form.link" placeholder="请输跳转链接">
|
||||||
|
<template slot="prepend">Http://</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
@@ -91,12 +99,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listEmplee, getEmplee, delEmplee, addEmplee, updateEmplee, exportEmplee } from "@/api/test/emplee";
|
import { listEmplee, getEmplee, delEmplee, addEmplee, updateEmplee, exportEmplee } from '@/api/test/emplee'
|
||||||
import Treeselect from "@riophae/vue-treeselect";
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Emplee",
|
name: 'Emplee',
|
||||||
components: {
|
components: {
|
||||||
Treeselect
|
Treeselect
|
||||||
},
|
},
|
||||||
@@ -113,63 +121,62 @@ export default {
|
|||||||
// 层级结构树选项
|
// 层级结构树选项
|
||||||
empleeOptions: [],
|
empleeOptions: [],
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: "",
|
title: '',
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
// 站点类型字典
|
// 站点类型字典
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
type: null,
|
type: null,
|
||||||
name: null,
|
name: null
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询层级结构列表 */
|
/** 查询层级结构列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
this.queryParams.type = this.direId
|
this.queryParams.type = this.direId
|
||||||
this.queryParams.siteType = this.siteType
|
this.queryParams.siteType = this.siteType
|
||||||
listEmplee(this.queryParams).then(response => {
|
listEmplee(this.queryParams).then(response => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
this.empleeList = this.handleTree(response.data, "id", "pid");
|
this.empleeList = this.handleTree(response.data, 'id', 'pid')
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
/** 转换层级结构数据结构 */
|
/** 转换层级结构数据结构 */
|
||||||
normalizer(node) {
|
normalizer(node) {
|
||||||
if (node.children && !node.children.length) {
|
if (node.children && !node.children.length) {
|
||||||
delete node.children;
|
delete node.children
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
id: node.id,
|
id: node.id,
|
||||||
label: node.name,
|
label: node.name,
|
||||||
children: node.children
|
children: node.children
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
/** 查询部门下拉树结构 */
|
/** 查询部门下拉树结构 */
|
||||||
getTreeselect() {
|
getTreeselect() {
|
||||||
listEmplee({type:this.direId,siteType:this.siteType,}).then(response => {
|
listEmplee({ type: this.direId, siteType: this.siteType }).then(response => {
|
||||||
console.log(response)
|
console.log(response)
|
||||||
this.empleeOptions = [];
|
this.empleeOptions = []
|
||||||
const data = { id: 0, name: '顶级节点', children: [] };
|
const data = { id: 0, name: '顶级节点', children: [] }
|
||||||
if (response.code == 200){
|
if (response.code == 200) {
|
||||||
data.children = this.handleTree(response.data, "id", "pid");
|
data.children = this.handleTree(response.data, 'id', 'pid')
|
||||||
}
|
}
|
||||||
this.empleeOptions.push(data);
|
this.empleeOptions.push(data)
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.open = false;
|
this.open = false
|
||||||
this.reset();
|
this.reset()
|
||||||
},
|
},
|
||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
@@ -178,86 +185,85 @@ export default {
|
|||||||
siteType: null,
|
siteType: null,
|
||||||
pid: null,
|
pid: null,
|
||||||
type: null,
|
type: null,
|
||||||
level: null,
|
level: 1,
|
||||||
name: null,
|
name: null,
|
||||||
|
link: null,
|
||||||
createBy: null,
|
createBy: null,
|
||||||
createTime: null,
|
createTime: null,
|
||||||
updateBy: null,
|
updateBy: null,
|
||||||
updateTime: null
|
updateTime: null
|
||||||
};
|
}
|
||||||
this.resetForm("form");
|
this.resetForm('form')
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm('queryForm')
|
||||||
this.handleQuery();
|
this.handleQuery()
|
||||||
},
|
},
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.reset();
|
this.reset()
|
||||||
this.getTreeselect();
|
this.getTreeselect()
|
||||||
this.open = true;
|
this.open = true
|
||||||
this.title = "添加层级结构";
|
this.title = '添加层级结构'
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset()
|
||||||
this.getTreeselect();
|
this.getTreeselect()
|
||||||
if (row != null) {
|
if (row != null) {
|
||||||
this.form.pid = row.id;
|
this.form.pid = row.id
|
||||||
}
|
}
|
||||||
getEmplee(row.id).then(response => {
|
getEmplee(row.id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data
|
||||||
this.open = true;
|
this.open = true
|
||||||
this.title = "修改层级结构";
|
this.title = '修改层级结构'
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs['form'].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.form.type = this.direId
|
this.form.type = this.direId
|
||||||
this.form.siteType = this.siteType
|
this.form.siteType = this.siteType
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateEmplee(this.form).then(response => {
|
updateEmplee(this.form).then(response => {
|
||||||
this.msgSuccess("修改成功");
|
this.msgSuccess('修改成功')
|
||||||
this.open = false;
|
this.open = false
|
||||||
this.getList();
|
this.getList()
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
addEmplee(this.form).then(response => {
|
addEmplee(this.form).then(response => {
|
||||||
this.msgSuccess("新增成功");
|
this.msgSuccess('新增成功')
|
||||||
this.open = false;
|
this.open = false
|
||||||
this.getList();
|
this.getList()
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
this.$confirm('是否确认删除层级结构编号为"' + row.id + '"的数据项?', "警告", {
|
this.$confirm('是否确认删除层级结构编号为"' + row.id + '"的数据项?', '警告', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "warning"
|
type: 'warning'
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
return delEmplee(row.id);
|
return delEmplee(row.id)
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.getList();
|
this.getList()
|
||||||
this.msgSuccess("删除成功");
|
this.msgSuccess('删除成功')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--<template>-->
|
<!--<template>-->
|
||||||
<!-- <div>-->
|
<!-- <div>-->
|
||||||
<!-- {{ direId }}-->
|
<!-- {{ direId }}-->
|
||||||
|
|||||||
@@ -100,8 +100,8 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<!-- 添加或修改导航对话框 -->
|
<!-- 添加或修改导航对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="550px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||||
<el-form-item label="父级">
|
<el-form-item label="父级">
|
||||||
<el-input v-model="form.ptitle" disabled/>
|
<el-input v-model="form.ptitle" disabled/>
|
||||||
<!-- <treeselect v-model="form.pid" :options="navigationOptions" :normalizer="normalizer" placeholder="请选择父ID"/>-->
|
<!-- <treeselect v-model="form.pid" :options="navigationOptions" :normalizer="normalizer" placeholder="请选择父ID"/>-->
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="层次数据" prop="refId" v-show="empleeSelShow">
|
<el-form-item label="中文层次数据" prop="refId" v-show="empleeSelShow">
|
||||||
<el-select v-model="form.refId" placeholder="请选择层次数据" clearable :style="{width: '100%'}">
|
<el-select v-model="form.refId" placeholder="请选择层次数据" clearable :style="{width: '100%'}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in direTypeOptions"
|
v-for="dict in direTypeOptions"
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="层次数据" prop="enRefId" v-show="empleeSelShow">
|
<el-form-item label="英文层次数据" prop="enRefId" v-show="empleeSelShow">
|
||||||
<el-select v-model="form.enRefId" placeholder="请选择层次数据" clearable :style="{width: '100%'}">
|
<el-select v-model="form.enRefId" placeholder="请选择层次数据" clearable :style="{width: '100%'}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in direTypeOptions"
|
v-for="dict in direTypeOptions"
|
||||||
@@ -175,7 +175,7 @@
|
|||||||
|
|
||||||
<el-dialog title="编辑详情" :visible="detailsShow" width="1100px" :close-on-click-modal="false" @close="detailsClose()"
|
<el-dialog title="编辑详情" :visible="detailsShow" width="1100px" :close-on-click-modal="false" @close="detailsClose()"
|
||||||
append-to-body>
|
append-to-body>
|
||||||
<el-form :model="formData" :rules="detailsRules" size="medium" label-width="100px">
|
<el-form :model="formData" size="medium" label-width="100px">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<!-- <el-form-item label="详情标题" prop="title">-->
|
<!-- <el-form-item label="详情标题" prop="title">-->
|
||||||
@@ -228,8 +228,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formData: {
|
formData: {
|
||||||
title: null,
|
title: "",
|
||||||
content: null,
|
content: "",
|
||||||
},
|
},
|
||||||
detailsShow: false,
|
detailsShow: false,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
@@ -408,7 +408,9 @@ export default {
|
|||||||
},
|
},
|
||||||
//导航类型变化
|
//导航类型变化
|
||||||
navigationTypeChang(type) {
|
navigationTypeChang(type) {
|
||||||
this.form.refId = null
|
// if (type != "3"){
|
||||||
|
// this.form.refId = null
|
||||||
|
// }
|
||||||
this.articleTypeOptions = []
|
this.articleTypeOptions = []
|
||||||
this.direTypeOptions = []
|
this.direTypeOptions = []
|
||||||
if (type == 2) {
|
if (type == 2) {
|
||||||
@@ -448,6 +450,7 @@ export default {
|
|||||||
}
|
}
|
||||||
getNavigation(row.id).then(response => {
|
getNavigation(row.id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
console.log(response.data,"data")
|
||||||
if (this.form.pid == 0) {
|
if (this.form.pid == 0) {
|
||||||
this.form.ptitle = "顶级节点"
|
this.form.ptitle = "顶级节点"
|
||||||
} else {
|
} else {
|
||||||
@@ -459,10 +462,11 @@ export default {
|
|||||||
this.anvTypeEdit = false;
|
this.anvTypeEdit = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(this.navigationList);
|
console.log(this.navigationList,"fgfgfgfg");
|
||||||
}
|
}
|
||||||
this.form.refId = parseInt(this.form.refId)
|
console.log(this.form,"from")
|
||||||
this.navigationTypeChang(this.form.type)
|
this.navigationTypeChang(response.data.type)
|
||||||
|
// this.form.refId = parseInt(this.form.refId)
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改导航";
|
this.title = "修改导航";
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -28,10 +28,10 @@ module.exports = {
|
|||||||
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
||||||
productionSourceMap: true,
|
productionSourceMap: true,
|
||||||
// webpack-dev-server 相关配置
|
// webpack-dev-server 相关配置
|
||||||
// devServer: {
|
devServer: {
|
||||||
// host: '0.0.0.0',
|
// host: '0.0.0.0',
|
||||||
// // port: port,
|
// // port: port,
|
||||||
// port: 8080,
|
port: 8080,
|
||||||
// open: true,
|
// open: true,
|
||||||
// proxy: {
|
// proxy: {
|
||||||
// // detail: https://cli.vuejs.org/config/#devserver-proxy
|
// // detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||||
@@ -45,7 +45,7 @@ module.exports = {
|
|||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
// disableHostCheck: true
|
// disableHostCheck: true
|
||||||
// },
|
},
|
||||||
// 强制内联CSS
|
// 强制内联CSS
|
||||||
// 默认true: 使用CSS分离插件 ExtractTextPlugin,采用独立样式文件载入,不采用 <style> 方式内联至 html 文件中
|
// 默认true: 使用CSS分离插件 ExtractTextPlugin,采用独立样式文件载入,不采用 <style> 方式内联至 html 文件中
|
||||||
css: { extract: false },
|
css: { extract: false },
|
||||||
|
|||||||
Reference in New Issue
Block a user