Commit 0aca1c24 authored by “yiyousong”'s avatar “yiyousong”

reat:新增事项概要页面

parent 2cfac867
<template> <template>
<div class="addbusiness ff"> <div class="addmatter">
<div class="back_btn" @click="handleBack">返回上一级</div>
<a-tabs default-active-key="1"> <a-tabs default-active-key="1">
<a-tab-pane key="1" tab="基本信息" class="box"> <a-button slot="tabBarExtraContent" @click="handleBack"
>返回上一级</a-button
>
<a-tab-pane key="1" tab="基本信息">
<BaseMessage /> <BaseMessage />
</a-tab-pane> </a-tab-pane>
...@@ -79,19 +81,14 @@ export default { ...@@ -79,19 +81,14 @@ export default {
}; };
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
.addbusiness { .addmatter {
position: relative; width: 100%;
height: 100%; height: auto;
padding-left: 10px; padding-left: 10px;
.back_btn { padding-right: 10px;
position: absolute; background-color: #fff;
top: 8px; }
right: 20px; /deep/.ant-tabs-nav-container {
border-radius: 4px; border-bottom: 1px solid #f0f0f0 !important;
padding: 6px 8px;
border: 1px solid rgba(221, 221, 221, 1);
z-index: 100;
cursor: pointer;
}
} }
</style> </style>
\ No newline at end of file
<template>
<!-- 事项概要 -->
<div class="synopsis">
<a-tabs default-active-key="1">
<a-button slot="tabBarExtraContent" @click="handleBack"
>返回上一级</a-button
>
<a-tab-pane key="1" tab="事项概要信息">
<AddSynopsis></AddSynopsis>
</a-tab-pane>
</a-tabs>
</div>
</template>
<script>
import AddSynopsis from "./components/AddSynopsis.vue";
export default {
components: {
AddSynopsis,
},
data() {
return {};
},
methods: {
// 返回上一级
handleBack() {
this.$router.back();
},
},
};
</script>
<style lang="less" scoped>
.synopsis {
height: 100%;
width: 100%;
padding: 0px 10px;
}
/deep/.ant-tabs-nav-container {
border-bottom: 1px solid #f0f0f0 !important;
}
</style>
\ No newline at end of file
...@@ -985,7 +985,7 @@ export default { ...@@ -985,7 +985,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.basemessage { .basemessage {
width: 98%; width: 100%;
.color_title { .color_title {
margin-left: 15px; margin-left: 15px;
position: relative; position: relative;
...@@ -1020,10 +1020,4 @@ export default { ...@@ -1020,10 +1020,4 @@ export default {
/deep/.ant-input { /deep/.ant-input {
width: 100% !important; width: 100% !important;
} }
/deep/.ant-col-6 {
width: 25% !important;
}
/deep/.ant-col-3 {
width: 12.5% !important;
}
</style> </style>
<template>
<div class="business-matter">
<router-view></router-view>
</div>
</template>
<script>
export default {};
</script>
<style lang="less" scoped>
.business-matter {
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="header-bottom"> <div class="header-bottom">
<div class="left-btn"> <div class="left-btn">
<a-button type="danger" @click="handleDelAll"> 批量移除 </a-button> <a-button type="danger" @click="handleDelAll"> 批量移除 </a-button>
<!-- <a-button class="add-btn" @click="addItems"> 新增事项 </a-button> --> <a-button class="add-btn" @click="addMatter"> 新增事项 </a-button>
</div> </div>
<div class="search-box"> <div class="search-box">
<!-- <a-select <!-- <a-select
...@@ -338,15 +338,8 @@ export default { ...@@ -338,15 +338,8 @@ export default {
}); });
}, },
//新增事项 //新增事项
addItems() { addMatter() {
if (!this.siteId) { this.$router.push("/business/synopsis");
this.$message.warning("请先选择站点");
return;
}
this.$router.push({
path: "addbusiness",
query: { siteId: this.siteId },
});
}, },
onSelectChange(key, data) { onSelectChange(key, data) {
this.deleteData = data; this.deleteData = data;
......
...@@ -50,19 +50,34 @@ const options = { ...@@ -50,19 +50,34 @@ const options = {
}, },
{ {
path: "business", path: "business",
meta: {
icon: "book",
},
component: () => import("@/pages/basicset/business/Index"),
children: [
{
path: "",
name: "业务事项管理", name: "业务事项管理",
meta: { meta: {
icon: "book", icon: "book",
invisible: true,
}, },
component: () => import("@/pages/basicset/business/business"), component: () => import("@/pages/basicset/business/business"),
}, },
{ {
path: "addbusiness", path: "addmatter",
name: "新增事项", name: "新增事项",
component: () => component: () => import("@/pages/basicset/addmatter/AddMatter"),
import("@/pages/basicset/addbusiness/addbusiness.vue"), meta: { invisible: true },
},
{
path: "synopsis",
name: "事项概要",
component: () => import("@/pages/basicset/addmatter/Synopsis"),
meta: { invisible: true }, meta: { invisible: true },
}, },
],
},
{ {
path: "department", path: "department",
......
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