Commit 71ee3156 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents b855a219 1adadc44
...@@ -16,15 +16,15 @@ ...@@ -16,15 +16,15 @@
</div> </div>
<div> <div>
<a-space size="middle"> <a-space size="middle">
<a v-permission="[1]" @click="visibleInit = true"> <!-- <a v-permission="[1]" @click="visibleInit = true">
<a-icon type="redo" /> <a-icon type="redo" />
初始化区域数据 初始化区域数据
</a> </a> -->
<a-tooltip class="header-item" title="返回门户" placement="bottom"> <!-- <a-tooltip class="header-item" title="返回门户" placement="bottom">
<a :href="portalUrl + (path ? path : '')"> <a :href="portalUrl + (path ? path : '')">
<a-icon type="home" /> 返回门户 <a-icon type="home" /> 返回门户
</a> </a>
</a-tooltip> </a-tooltip> -->
</a-space> </a-space>
</div> </div>
</a-layout-header> </a-layout-header>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<a-input v-model="baseform.sort" placeholder="请输入序号" /> <a-input v-model="baseform.sort" placeholder="请输入序号" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="8"> <!-- <a-col :span="8">
<a-form-model-item label="所属部门" prop="deptCode"> <a-form-model-item label="所属部门" prop="deptCode">
<a-select <a-select
showSearch showSearch
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
> >
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col> -->
<a-col :span="8"> <a-col :span="8">
<a-form-model-item label="是否收费" prop="isChargesShow"> <a-form-model-item label="是否收费" prop="isChargesShow">
<a-radio-group v-model="baseform.isChargesShow"> <a-radio-group v-model="baseform.isChargesShow">
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="8"> <!-- <a-col :span="8">
<a-form-model-item label="所属部门" prop="deptCode"> <a-form-model-item label="所属部门" prop="deptCode">
<a-select <a-select
showSearch showSearch
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
> >
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col> -->
<a-col :span="8"> <a-col :span="8">
<a-form-model-item label="服务对象" prop="appoveObjectShow"> <a-form-model-item label="服务对象" prop="appoveObjectShow">
......
<template> <template>
<div class="business flex flexc"> <div class="business flex flexc">
<a-tabs :activeKey="active" @change="changeRouter"> <a-tabs :activeKey="active" @change="changeRouter">
<a-tab-pane key="/business/businessmanage">
<span slot="tab">
<a-icon type="container" />
业务管理
</span>
</a-tab-pane>
<a-tab-pane key="/business/mattermanage"> <a-tab-pane key="/business/mattermanage">
<span slot="tab"> <span slot="tab">
<a-icon type="read" /> <a-icon type="read" />
事项管理 事项管理
</span> </span>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="/business/businessinmanage">
<span slot="tab">
<a-icon type="switcher" />
业务事项关联
</span>
</a-tab-pane>
<a-tab-pane key="/business/workguide">
<span slot="tab">
<a-icon type="apartment" />
办事指南数据管理
</span>
</a-tab-pane>
</a-tabs> </a-tabs>
<div class="business-out-box flex1"> <div class="business-out-box flex1">
<router-view></router-view> <router-view></router-view>
......
<template> <template>
<div class="basicset-tab2"> <div class="basicset-tab2">
<div class="left">
<div class="header">
<div class="titel">站点事项列表</div>
<div class="header-bottom pdr6">
<div class="left-btn">
<a-button type="danger" @click="handleDelAll"> 批量移除 </a-button>
</div>
<div>
<a-space>
<a-select
style="width: 120px"
v-model="leftSource"
class="select-department"
placeholder="全部来源"
:allowClear="true"
>
<a-select-option :value="0"> 一体化添加 </a-select-option>
<a-select-option :value="1"> 手动添加 </a-select-option>
</a-select>
<a-select
showSearch
style="min-width: 120px"
v-model="leftDept"
class="select-department"
placeholder="全部部门"
optionFilterProp="label"
:allowClear="true"
>
<a-select-option
v-for="v in deptList"
:key="v.id"
:value="v.deptNumber"
:label="v.name"
>
{{ v.name }}
</a-select-option>
</a-select>
<a-input-search
v-model="searchLeftVal"
placeholder="请输入事项名称搜索"
enter-button="搜索"
@search="onSearchLeft"
allowClear
/>
</a-space>
</div>
</div>
</div>
<div class="table-content">
<!-- 表格 -->
<a-table
bordered
size="middle"
:loading="leftLoading"
:pagination="{
showTotal: (total) => `共 ${total} 条`,
current: leftCurrent,
total: leftTotal,
pageSize: leftSize,
showSizeChanger: true,
showQuickJumper: true,
defaultPageSize: leftSize,
pageSizeOptions: pageSizeOptions,
onChange: changeLeft,
onShowSizeChange: showSizeChange,
}"
:scroll="{ y: 550 }"
:columns="leftColumns"
:data-source="matterSiteData"
:row-selection="{ onChange: onSelectChange }"
:rowKey="(record) => record.id"
>
<template slot="index" slot-scope="text, record, index">
<span>
{{ (leftCurrent - 1) * leftSize + index + 1 }}
</span>
</template>
<!-- 部门 -->
<template slot="deptName" slot-scope="text">
{{ text.deptName ? text.deptName : "--" }}
</template>
<!-- 事项名称 -->
<template slot="matterName" slot-scope="text">
<a-tooltip placement="topLeft">
<template slot="title">
{{ text.matterName }}
</template>
<div class="matter-name">{{ text.matterName }}</div>
</a-tooltip>
<a-tag v-if="text.source == 0" color="green"> 一体化添加 </a-tag>
<a-tag v-else color="blue"> 手动添加 </a-tag>
</template>
<!-- 到现场次数 -->
<template slot="num" slot-scope="text">
<span v-if="text.windowToTheSceneNum">{{
text.windowToTheSceneNum
}}</span>
<span v-else-if="text.onlineToTheSceneNum">{{
text.onlineToTheSceneNum
}}</span>
<span v-else>0</span>
</template>
<!-- 操作 -->
<template slot="action" slot-scope="text">
<a-space>
<span
href="javascript:;"
v-if="text.source == 1"
class="primary pointer"
@click="handleSiteEdit(text)"
>编辑</span
>
<span href="javascript:;" style="visibility: hidden" v-else
>编辑</span
>
<span
href="javascript:;"
class="delete pointer"
@click="handleDel(text.id, text)"
>移除</span
>
</a-space>
</template>
</a-table>
</div>
</div>
<!-- 右 --> <!-- 右 -->
<div class="right"> <div class="right">
<div class="header"> <div class="header">
...@@ -133,9 +7,9 @@ ...@@ -133,9 +7,9 @@
<div class="control pdr6"> <div class="control pdr6">
<div> <div>
<a-space size="middle"> <a-space size="middle">
<a-button type="primary" @click="handleAddAll"> <!-- <a-button type="primary" @click="handleAddAll">
批量加入 批量加入
</a-button> </a-button> -->
<a-button type="primary" @click="addMatter"> 新增事项 </a-button> <a-button type="primary" @click="addMatter"> 新增事项 </a-button>
</a-space> </a-space>
</div> </div>
...@@ -151,7 +25,7 @@ ...@@ -151,7 +25,7 @@
<a-select-option :value="0"> 一体化事项 </a-select-option> <a-select-option :value="0"> 一体化事项 </a-select-option>
<a-select-option :value="1"> 自建事项 </a-select-option> <a-select-option :value="1"> 自建事项 </a-select-option>
</a-select> </a-select>
<a-select <!-- <a-select
showSearch showSearch
allowClear allowClear
style="min-width: 120px" style="min-width: 120px"
...@@ -168,7 +42,7 @@ ...@@ -168,7 +42,7 @@
> >
{{ v.name }} {{ v.name }}
</a-select-option> </a-select-option>
</a-select> </a-select> -->
<a-input-search <a-input-search
v-model="searchRightVal" v-model="searchRightVal"
placeholder="请输入事项名称搜索" placeholder="请输入事项名称搜索"
...@@ -239,9 +113,9 @@ ...@@ -239,9 +113,9 @@
<span href="javascript:;" style="visibility: hidden" v-else <span href="javascript:;" style="visibility: hidden" v-else
>编辑</span >编辑</span
> >
<a href="javascript:;" class="primary" @click="handleIn(text.id)" <!-- <a href="javascript:;" class="primary" @click="handleIn(text.id)"
>加入</a >加入</a
> > -->
<span <span
href="javascript:;" href="javascript:;"
class="delete pointer" class="delete pointer"
...@@ -655,18 +529,18 @@ export default { ...@@ -655,18 +529,18 @@ export default {
.basicset-tab2 { .basicset-tab2 {
width: 100%; width: 100%;
display: flex; display: flex;
&::after { // &::after {
content: ""; // content: "";
width: 1px; // width: 1px;
height: 82vh; // height: 82vh;
position: absolute; // position: absolute;
background-color: #eeeeee; // background-color: #eeeeee;
top: 44px; // top: 44px;
left: 50%; // left: 50%;
} // }
.left, .left,
.right { .right {
width: 50%; width: 100%;
padding: 0 20px; padding: 0 20px;
.header { .header {
height: 100px; height: 100px;
......
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ export default {
id: loginRes.data.id, id: loginRes.data.id,
userType: loginRes.data.userType, userType: loginRes.data.userType,
currUserName: loginRes.data.currUserName, currUserName: loginRes.data.currUserName,
name: loginRes.data.currUserName,
}; };
this.getToken(token, userInfo, loginRes.data); this.getToken(token, userInfo, loginRes.data);
this.$message.success(loginRes.msg, 3); this.$message.success(loginRes.msg, 3);
...@@ -57,16 +58,16 @@ export default { ...@@ -57,16 +58,16 @@ export default {
this.SET_token(token); this.SET_token(token);
console.log(data); console.log(data);
// data.siteid ? this.SET_SITE_ID(data.siteid) : ""; this.SET_SITE_ID("1");
// data.siteName ? this.SET_siteName(data.siteName) : ""; // data.siteName ? this.SET_siteName(data.siteName) : "";
// this.SET_sysName(data.sysName); // this.SET_sysName(data.sysName);
// this.SET_sysLogo(data.sysLogo); // this.SET_sysLogo(data.sysLogo);
// this.SET_path(data.path); // this.SET_path(data.path);
// local.setLocal("siteId", data.siteid); local.setLocal("siteId", "1");
// local.setLocal("siteName", data.siteName); // local.setLocal("siteName", data.siteName);
// 动态菜单 // 动态菜单
createMenus(); createMenus();
this.$router.push("/website"); this.$router.push("/");
} else { } else {
this.$message.warning("跳转失败,请重新登录"); this.$message.warning("跳转失败,请重新登录");
setTimeout(() => { setTimeout(() => {
......
This diff is collapsed.
...@@ -39,7 +39,7 @@ const routes = [ ...@@ -39,7 +39,7 @@ const routes = [
path: "/", path: "/",
name: "首页", name: "首页",
component: Layouts, component: Layouts,
redirect: "/website", redirect: "/business/mattermanage",
children: [ children: [
{ {
path: "/website", path: "/website",
...@@ -441,6 +441,7 @@ function createMenus() { ...@@ -441,6 +441,7 @@ function createMenus() {
let options = initRouter(); let options = initRouter();
let routesArr = calcRouters(options.routes, role); let routesArr = calcRouters(options.routes, role);
const rootRoute = routesArr.find((item) => item.path === "/"); const rootRoute = routesArr.find((item) => item.path === "/");
console.log(rootRoute,"!!!!!!!!");
const menuRoutes = rootRoute && rootRoute.children; const menuRoutes = rootRoute && rootRoute.children;
mergeI18nFromRoutes(i18n, menuRoutes); mergeI18nFromRoutes(i18n, menuRoutes);
if (menuRoutes) { if (menuRoutes) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment