Commit 9f8ad81c authored by “yiyousong”'s avatar “yiyousong”

pref:修改事项管理页面

parent 1f410829
<template> <template>
<div class="addmatter"> <div class="addmatter">
<a-tabs default-active-key="1"> <a-tabs default-active-key="1">
<a-button slot="tabBarExtraContent" @click="handleBack" <div slot="tabBarExtraContent">
>返回上一级</a-button <a-space>
> <a-button @click="handleManage">返回事项列表</a-button>
<a-button @click="handleBack">返回概要列表</a-button>
</a-space>
</div>
<a-tab-pane key="1" tab="基本信息"> <a-tab-pane key="1" tab="基本信息">
<BaseMessage /> <BaseMessage />
</a-tab-pane> </a-tab-pane>
...@@ -70,6 +73,10 @@ export default { ...@@ -70,6 +73,10 @@ export default {
mounted() {}, mounted() {},
methods: { methods: {
// 返回管理页面
handleManage() {
this.$router.push("/business");
},
// 返回上一级 // 返回上一级
handleBack() { handleBack() {
this.$router.back(); this.$router.back();
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<!-- 基本信息 --> <!-- 基本信息 -->
<div class="flex jcb aic"> <div class="flex jcb aic">
<div class="color_title">基本信息</div> <div class="color_title">基本信息</div>
<div class="more primary">完善更多信息>></div> <div class="more primary" @click="checkMore">完善更多信息>></div>
</div> </div>
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
...@@ -43,17 +43,17 @@ ...@@ -43,17 +43,17 @@
</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="belongDept"> <a-form-model-item label="所属部门" prop="deptCode">
<a-select <a-select
showSearch showSearch
v-model="baseform.belongDept" v-model="baseform.deptCode"
optionFilterProp="label" optionFilterProp="label"
placeholder="请选择部门" placeholder="请选择部门"
> >
<a-select-option <a-select-option
v-for="v in deptData" v-for="v in deptData"
:key="v.id" :key="v.id"
:value="v.name" :value="v.deptNumber"
:label="v.name" :label="v.name"
> >
{{ v.name }}</a-select-option {{ v.name }}</a-select-option
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<!-- 窗口办理 --> <!-- 窗口办理 -->
<div class="flex jcb aic"> <div class="flex jcb aic">
<div class="color_title">窗口办理</div> <div class="color_title">窗口办理</div>
<div class="more primary">完善更多信息>></div> <div class="more primary" @click="checkMore">完善更多信息>></div>
</div> </div>
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<!-- 常规信息 --> <!-- 常规信息 -->
<div class="flex jcb aic"> <div class="flex jcb aic">
<div class="color_title">常规信息</div> <div class="color_title">常规信息</div>
<div class="more primary">完善更多信息>></div> <div class="more primary" @click="checkMore">完善更多信息>></div>
</div> </div>
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
...@@ -293,7 +293,9 @@ ...@@ -293,7 +293,9 @@
</a-row> </a-row>
</a-form-model> </a-form-model>
<div class="btn_box"> <div class="btn_box">
<a-button type="primary" class="mr" @click="handleOk"> 确定 </a-button> <a-button type="primary" class="mr" @click="handleOk" :loading="loading">
确定
</a-button>
<a-button @click="handleReset"> 重置 </a-button> <a-button @click="handleReset"> 重置 </a-button>
</div> </div>
</div> </div>
...@@ -303,11 +305,12 @@ ...@@ -303,11 +305,12 @@
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import local from "@/utils/local"; import local from "@/utils/local";
import { getDeptList } from "@/services/dept"; import { getDeptList } from "@/services/dept";
import { saveAddMatter } from "@/services/matter"; import { saveAddMatter, addMatterToSite } from "@/services/matter";
export default { export default {
data() { data() {
return { return {
siteId: local.getLocal("siteId"), // 站点id siteId: local.getLocal("siteId"), // 站点id
loading: false,
labelCol: { span: 5 }, labelCol: { span: 5 },
wrapperCol: { span: 19 }, wrapperCol: { span: 19 },
isTimely: undefined, isTimely: undefined,
...@@ -325,6 +328,7 @@ export default { ...@@ -325,6 +328,7 @@ export default {
matterNo: "", //事项编号 matterNo: "", //事项编号
sort: "", // 排序 sort: "", // 排序
belongDept: undefined, //所属部门 belongDept: undefined, //所属部门
deptCode: undefined, //所属部门编号
legalTimeLimitShow: "", // 法定办结时限 legalTimeLimitShow: "", // 法定办结时限
promiseTimeLimitShow: "", // 承诺办结时限 promiseTimeLimitShow: "", // 承诺办结时限
isChargesShow: "", //是否收费 isChargesShow: "", //是否收费
...@@ -349,7 +353,7 @@ export default { ...@@ -349,7 +353,7 @@ export default {
matterNo: [ matterNo: [
{ required: true, message: "事项编号不能为空", trigger: "blur" }, { required: true, message: "事项编号不能为空", trigger: "blur" },
], ],
belongDept: [ deptCode: [
{ required: true, message: "所属部门不能为空", trigger: "change" }, { required: true, message: "所属部门不能为空", trigger: "change" },
], ],
}, },
...@@ -374,13 +378,19 @@ export default { ...@@ -374,13 +378,19 @@ export default {
handleOk() { handleOk() {
this.$refs.form.validate(async (valid) => { this.$refs.form.validate(async (valid) => {
if (valid) { if (valid) {
this.loading = true;
let res = await saveAddMatter({ let res = await saveAddMatter({
siteId: this.siteId, siteId: this.siteId,
...this.baseform, ...this.baseform,
}); });
let { code, msg } = res.data; let { code, msg, data } = res.data;
this.loading = false;
if (code === 1) { if (code === 1) {
this.$message.success(msg); this.$message.success(msg);
await addMatterToSite({
siteId: this.siteId,
matterIds: data.entity.id + "",
});
this.handleReset(); this.handleReset();
} }
} }
...@@ -389,6 +399,15 @@ export default { ...@@ -389,6 +399,15 @@ export default {
handleReset() { handleReset() {
this.$refs.form.resetFields(); this.$refs.form.resetFields();
}, },
// 完善更多
checkMore() {
this.$router.push({
path: "addmatter",
query: {
formData: JSON.stringify(this.baseform),
},
});
},
}, },
}; };
</script> </script>
......
...@@ -986,20 +986,7 @@ export default { ...@@ -986,20 +986,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.basemessage { .basemessage {
width: 100%; width: 100%;
.color_title {
margin-left: 15px;
position: relative;
margin-bottom: 15px;
&::before {
content: "";
width: 4px;
height: 20px;
position: absolute;
top: 1px;
left: -16px;
background-color: rgba(5, 149, 253, 1);
}
}
.btn_box { .btn_box {
padding: 25px 126px 20px; padding: 25px 126px 20px;
justify-content: flex-start; justify-content: flex-start;
......
<template> <template>
<div class="business"> <div class="business">
<a-tabs v-model="active"> <a-tabs v-model="active">
<a-tab-pane :key="1" tab="业务管理"> <a-tab-pane :key="1" tab="事项管理">
<BusinessTabs1 v-if="active === 1" ref="BusinessTabs1" /> <BusinessTabs2 v-if="active === 1" ref="BusinessTabs2" />
</a-tab-pane> </a-tab-pane>
<a-tab-pane :key="2" tab="事项管理"> <a-tab-pane :key="2" tab="业务管理">
<BusinessTabs2 v-if="active === 2" ref="BusinessTabs2" /> <BusinessTabs1 v-if="active === 2" ref="BusinessTabs1" />
</a-tab-pane> </a-tab-pane>
<a-tab-pane :key="3" tab="业务事项关联"> <a-tab-pane :key="3" tab="业务事项关联">
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</template> </template>
<!-- 事项名称 --> <!-- 事项名称 -->
<template slot="matterName" slot-scope="text"> <template slot="matterName" slot-scope="text">
<a-tooltip placement="top"> <a-tooltip placement="topLeft">
<template slot="title"> <template slot="title">
{{ text.matterName }} {{ text.matterName }}
</template> </template>
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
</template> </template>
<!-- 事项名称 --> <!-- 事项名称 -->
<template slot="matterName" slot-scope="text"> <template slot="matterName" slot-scope="text">
<a-tooltip placement="top"> <a-tooltip placement="topLeft">
<template slot="title"> <template slot="title">
{{ text.matterName }} {{ text.matterName }}
</template> </template>
...@@ -442,7 +442,6 @@ export default { ...@@ -442,7 +442,6 @@ export default {
this.getMatterSiteData(); this.getMatterSiteData();
this.getMatterListData(); this.getMatterListData();
this.selectedRowKeys = []; this.selectedRowKeys = [];
this.$bus.$emit("addMatterSiteData");
} }
}, },
// 右边删除 // 右边删除
......
...@@ -113,6 +113,18 @@ ...@@ -113,6 +113,18 @@
<template slot="deptName" slot-scope="text"> <template slot="deptName" slot-scope="text">
{{ text.deptName ? text.deptName : "--" }} {{ text.deptName ? text.deptName : "--" }}
</template> </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="action" slot-scope="text"> <template slot="action" slot-scope="text">
<a href="javascript:;" class="jion" @click="handleIn(text)">关联</a> <a href="javascript:;" class="jion" @click="handleIn(text)">关联</a>
</template> </template>
...@@ -287,8 +299,11 @@ const rightColumns = [ ...@@ -287,8 +299,11 @@ const rightColumns = [
}, },
{ {
title: "事项名称", title: "事项名称",
ellipsis: true, // ellipsis: true,
dataIndex: "matterName", align: "left",
scopedSlots: {
customRender: "matterName",
},
}, },
{ {
title: "操作", title: "操作",
...@@ -664,6 +679,12 @@ export default { ...@@ -664,6 +679,12 @@ export default {
} }
} }
} }
.matter-name {
margin-bottom: 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-bottom { .header-bottom {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
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