Commit 8e840f29 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 4725d762 bda9d36f
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
初始化区域数据 初始化区域数据
</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>
......
...@@ -46,7 +46,9 @@ ...@@ -46,7 +46,9 @@
>初始化区域数据</a-button >初始化区域数据</a-button
> >
<a-tooltip class="header-item" title="返回门户" placement="bottom"> <a-tooltip class="header-item" title="返回门户" placement="bottom">
<a :href="portalUrl + path"> <a-icon type="home" /> 返回门户 </a> <a :href="portalUrl + (path ? path : '')">
<a-icon type="home" /> 返回门户
</a>
</a-tooltip> </a-tooltip>
<!-- <a-tooltip class="header-item" title="数据可视化" placement="bottom"> <!-- <a-tooltip class="header-item" title="数据可视化" placement="bottom">
<a href="" target="_blank"> <a-icon type="setting" /> 数据可视化 </a> <a href="" target="_blank"> <a-icon type="setting" /> 数据可视化 </a>
...@@ -96,7 +98,7 @@ export default { ...@@ -96,7 +98,7 @@ export default {
{ key: "US", name: "English", alias: "English" }, { key: "US", name: "English", alias: "English" },
], ],
searchActive: false, searchActive: false,
portalUrl: process.env.VUE_APP_API_portal_URL, portalUrl: process.env.VUE_APP_API_portal_URL + "/#",
}; };
}, },
computed: { computed: {
......
...@@ -16,49 +16,49 @@ ...@@ -16,49 +16,49 @@
<a-tab-pane key="ApplyMaterial"> <a-tab-pane key="ApplyMaterial">
<span slot="tab"> <span slot="tab">
<a-icon type="container" /> <a-icon type="file" />
申请材料 申请材料
</span> </span>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="AcceptMaterial"> <a-tab-pane key="AcceptMaterial">
<span slot="tab"> <span slot="tab">
<a-icon type="container" /> <a-icon type="interaction" />
受理材料 受理材料
</span> </span>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="Flow"> <a-tab-pane key="Flow">
<span slot="tab"> <span slot="tab">
<a-icon type="container" /> <a-icon type="cluster" />
办理流程 办理流程
</span> </span>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="Rates"> <a-tab-pane key="Rates">
<span slot="tab"> <span slot="tab">
<a-icon type="container" /> <a-icon type="audit" />
收费标准 收费标准
</span> </span>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="Pursuant"> <a-tab-pane key="Pursuant">
<span slot="tab"> <span slot="tab">
<a-icon type="container" /> <a-icon type="file-done" />
设定依据 设定依据
</span> </span>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="Agency"> <a-tab-pane key="Agency">
<span slot="tab"> <span slot="tab">
<a-icon type="container" /> <a-icon type="solution" />
中介服务 中介服务
</span> </span>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="Question"> <a-tab-pane key="Question">
<span slot="tab"> <span slot="tab">
<a-icon type="container" /> <a-icon type="file-unknown" />
常见问题 常见问题
</span> </span>
</a-tab-pane> </a-tab-pane>
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
}, },
}; };
</script> </script>
<style lang='less' scoped> <style lang="less" scoped>
.addmatter { .addmatter {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
...@@ -75,11 +75,6 @@ ...@@ -75,11 +75,6 @@
:addVisile.sync="addVisile" :addVisile.sync="addVisile"
@addSuccess="getCategoryList" @addSuccess="getCategoryList"
></AddTheme> ></AddTheme>
<!-- 预览 -->
<PrevieModal
:previewData="previewData"
:previewVisible.sync="previewVisible"
></PrevieModal>
</div> </div>
</template> </template>
...@@ -88,7 +83,6 @@ import { getCategoryList, deleteCategory } from "@/services/market"; ...@@ -88,7 +83,6 @@ import { getCategoryList, deleteCategory } from "@/services/market";
import AddTheme from "../modal/AddTheme"; import AddTheme from "../modal/AddTheme";
import local from "@/utils/local"; import local from "@/utils/local";
import { pageSizeOptions } from "@/config/pageConfig.js"; import { pageSizeOptions } from "@/config/pageConfig.js";
import PrevieModal from "@/components/PrevieModal.vue";
const columns = [ const columns = [
{ {
title: "序号", title: "序号",
...@@ -135,15 +129,12 @@ const columns = [ ...@@ -135,15 +129,12 @@ const columns = [
export default { export default {
components: { components: {
AddTheme, AddTheme,
PrevieModal,
}, },
data() { data() {
return { return {
api: process.env.VUE_APP_API_BASE_URL + "/", api: process.env.VUE_APP_API_BASE_URL + "/",
api2: process.env.VUE_APP_API_IMG_URL, api2: process.env.VUE_APP_API_IMG_URL,
columns, columns,
previewData: {}, // 预览
previewVisible: false,
siteId: local.getLocal("siteId"), siteId: local.getLocal("siteId"),
tableData: [], // 表格数据 tableData: [], // 表格数据
loading: false, loading: false,
...@@ -254,11 +245,9 @@ export default { ...@@ -254,11 +245,9 @@ export default {
}, },
// 预览封面 // 预览封面
handlePreview(url) { handlePreview(url) {
this.previewData = { this.$viewerApi({
type: "img", images: [url],
url: url, });
};
this.previewVisible = true;
}, },
}, },
}; };
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
:class="{ :class="{
content: v.fieldType == 'text', content: v.fieldType == 'text',
'upload-item': v.fieldType == 'upload', 'upload-item': v.fieldType == 'upload',
'table-item': v.fieldType == 'table',
}" }"
:prop="`appInfoFieldList.${i}.fieldValue`" :prop="`appInfoFieldList.${i}.fieldValue`"
:rules="{ :rules="{
...@@ -532,7 +533,7 @@ export default { ...@@ -532,7 +533,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
/deep/.ant-form-item { /deep/.ant-form-item {
display: flex; display: flex;
align-items: flex-start; align-items: center;
} }
/deep/.ant-drawer-body { /deep/.ant-drawer-body {
height: calc(100vh - 55px); height: calc(100vh - 55px);
...@@ -554,8 +555,12 @@ export default { ...@@ -554,8 +555,12 @@ export default {
} }
} }
.upload-item { .upload-item {
align-items: flex-start !important;
display: block !important; display: block !important;
} }
.table-item {
align-items: flex-start !important;
}
.search-box { .search-box {
margin-bottom: 10px; margin-bottom: 10px;
text-align: right; text-align: right;
......
...@@ -458,6 +458,12 @@ export default { ...@@ -458,6 +458,12 @@ export default {
value: "", value: "",
}, },
]; ];
this.apiParams = [
{
key: "",
value: "",
},
];
} }
}, },
}, },
......
...@@ -46,11 +46,6 @@ ...@@ -46,11 +46,6 @@
<a-input-number v-model="form.sort" :min="1" /> <a-input-number v-model="form.sort" :min="1" />
</a-form-model-item> </a-form-model-item>
</a-form-model> </a-form-model>
<!-- 预览 -->
<PrevieModal
:previewData="previewData"
:previewVisible.sync="previewVisible"
></PrevieModal>
</a-modal> </a-modal>
</div> </div>
</template> </template>
...@@ -58,7 +53,6 @@ ...@@ -58,7 +53,6 @@
<script> <script>
import { saveCategory } from "@/services/market"; import { saveCategory } from "@/services/market";
import local from "@/utils/local"; import local from "@/utils/local";
import PrevieModal from "@/components/PrevieModal.vue";
export default { export default {
props: { props: {
addVisile: { addVisile: {
...@@ -71,17 +65,13 @@ export default { ...@@ -71,17 +65,13 @@ export default {
default: "新增分类", default: "新增分类",
}, },
}, },
components: { components: {},
PrevieModal,
},
data() { data() {
return { return {
accept: "image/jpeg,image/png", accept: "image/jpeg,image/png",
api: process.env.VUE_APP_API_BASE_URL + "/", api: process.env.VUE_APP_API_BASE_URL + "/",
api2: process.env.VUE_APP_API_IMG_URL, api2: process.env.VUE_APP_API_IMG_URL,
fileList: [], fileList: [],
previewData: {}, // 预览
previewVisible: false,
form: { form: {
siteId: local.getLocal("siteId"), // 站点id siteId: local.getLocal("siteId"), // 站点id
siteName: local.getLocal("siteName"), // 站点名称 siteName: local.getLocal("siteName"), // 站点名称
...@@ -184,11 +174,9 @@ export default { ...@@ -184,11 +174,9 @@ export default {
}, },
// 预览 // 预览
handlePreview(info) { handlePreview(info) {
this.previewData = { this.$viewerApi({
type: "img", images: [info.url],
url: info.url, });
};
this.previewVisible = true;
}, },
// 重置 // 重置
handleReset() { handleReset() {
......
...@@ -282,8 +282,9 @@ ...@@ -282,8 +282,9 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
<div class="color_title">部署板块</div> <div v-permission="[1]" class="color_title">部署板块</div>
<a-form-model-item <a-form-model-item
v-permission="[1]"
:label-col="{ span: 2 }" :label-col="{ span: 2 }"
:wrapper-col="{ span: 22 }" :wrapper-col="{ span: 22 }"
class="model-id" class="model-id"
...@@ -566,7 +567,6 @@ export default { ...@@ -566,7 +567,6 @@ export default {
}, },
created() { created() {
this.getModel(); this.getModel();
console.log(process.env.NODE_ENV);
}, },
computed: { computed: {
Visible: { Visible: {
...@@ -811,7 +811,7 @@ export default { ...@@ -811,7 +811,7 @@ export default {
} }
.ant-checkbox-group { .ant-checkbox-group {
display: grid; display: grid;
grid-template-columns: 260px 260px 260px 260px; grid-template-columns: repeat(3, 320px);
} }
.ant-checkbox-wrapper { .ant-checkbox-wrapper {
margin-left: 0px; margin-left: 0px;
......
...@@ -302,6 +302,7 @@ export default { ...@@ -302,6 +302,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
/deep/.ant-drawer-body { /deep/.ant-drawer-body {
height: 90%; height: 90%;
padding: 0px;
} }
.classify { .classify {
height: 100%; height: 100%;
...@@ -310,6 +311,7 @@ export default { ...@@ -310,6 +311,7 @@ export default {
.classify-list { .classify-list {
flex: 1; flex: 1;
margin-bottom: 10px; margin-bottom: 10px;
padding: 20px;
overflow-y: auto; overflow-y: auto;
} }
.footer-btn { .footer-btn {
...@@ -326,6 +328,7 @@ export default { ...@@ -326,6 +328,7 @@ export default {
} }
.skin-name { .skin-name {
margin-bottom: 0px; margin-bottom: 0px;
align-items: flex-start;
/deep/ .ant-form-item-label { /deep/ .ant-form-item-label {
line-height: 20px !important; line-height: 20px !important;
} }
......
<template> <template>
<a-spin tip="正在上传中..." :spinning="spinning"> <a-spin tip="正在上传中..." :spinning="spinning">
<div class="website flex flexc"> <div class="personnel flex flexc">
<TabHeader label="工作人员管理"></TabHeader> <TabHeader label="工作人员管理"></TabHeader>
<div class="pd15 flex1 auto-scroll-y"> <div class="pd15 flex1 auto-scroll-y">
<div class="person_chang flex aic mb10"> <div class="person_chang flex aic mb10">
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
{{ curDept }} {{ curDept }}
</div> </div>
<a-popover <a-popover
overlayClassName="personnel-popover"
arrowPointAtCenter arrowPointAtCenter
placement="rightTop" placement="rightTop"
title="部门列表" title="部门列表"
...@@ -80,6 +81,7 @@ ...@@ -80,6 +81,7 @@
{{ curWindow }} {{ curWindow }}
</div> </div>
<a-popover <a-popover
overlayClassName="personnel-popover"
arrowPointAtCenter arrowPointAtCenter
placement="rightTop" placement="rightTop"
title="窗口列表" title="窗口列表"
...@@ -661,9 +663,15 @@ export default { ...@@ -661,9 +663,15 @@ export default {
}, },
}; };
</script> </script>
<style lang="less">
.personnel-popover {
.ant-popover-inner-content {
padding: 0px !important;
}
}
</style>
<style lang="less" scoped> <style lang="less" scoped>
.website { .personnel {
width: 100%; width: 100%;
height: 100%; height: 100%;
.right { .right {
...@@ -783,10 +791,12 @@ export default { ...@@ -783,10 +791,12 @@ export default {
} }
} }
} }
.dept-list { .dept-list {
width: 500px; width: 620px;
min-height: 50px; min-height: 50px;
max-height: 400px; max-height: 400px;
padding: 12px 16px;
overflow-y: auto; overflow-y: auto;
.ant-radio-group { .ant-radio-group {
display: grid; display: grid;
......
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
style="width: 150px" style="width: 150px"
> >
<a-select-option <a-select-option
v-for="v in userDict" v-for="(v, key) in userDict"
:key="v.key" :key="key"
:value="v.key" :value="key"
>{{ v.value }}</a-select-option >{{ v }}</a-select-option
> >
</a-select> </a-select>
<a-button type="primary" class="addclass" @click="getUserList" <a-button type="primary" class="addclass" @click="getUserList"
...@@ -98,6 +98,7 @@ ...@@ -98,6 +98,7 @@
<script> <script>
import { userList, userDelete } from "@/api/userManagement.js"; import { userList, userDelete } from "@/api/userManagement.js";
import { mapGetters } from "vuex";
import addUser from "./components/addUser.vue"; import addUser from "./components/addUser.vue";
import EditUser from "./components/EditUser.vue"; import EditUser from "./components/EditUser.vue";
import EditPwd from "./components/EditPwd.vue"; import EditPwd from "./components/EditPwd.vue";
...@@ -174,8 +175,13 @@ export default { ...@@ -174,8 +175,13 @@ export default {
roleId: undefined, roleId: undefined,
searchVal: undefined, searchVal: undefined,
}, },
loginNames: ["admin", "administrator1", "Administrator"],
}; };
}, },
computed: {
...mapGetters("user", ["userData"]),
},
created() { created() {
this.getUserList(); this.getUserList();
}, },
...@@ -185,15 +191,6 @@ export default { ...@@ -185,15 +191,6 @@ export default {
this.tablePagination.pageSize = pag.pageSize; this.tablePagination.pageSize = pag.pageSize;
this.getUserList(); this.getUserList();
}, },
// 对象转对象数组
transverter(obj) {
return Object.keys(obj).map((v) => {
return {
key: v,
value: obj[v],
};
});
},
// 获取用户列表 // 获取用户列表
async getUserList() { async getUserList() {
...@@ -207,11 +204,6 @@ export default { ...@@ -207,11 +204,6 @@ export default {
realName = "%" + this.userform.searchVal + "%"; realName = "%" + this.userform.searchVal + "%";
} }
} }
// if (/^[\u4e00-\u9fa5]+$/.test(this.userform.searchVal)) {
// realName = "%" + this.userform.searchVal + "%";
// } else if (/^[\d]+$/.test(this.userform.searchVal)) {
// mobile = "%" + this.userform.searchVal + "%";
// }
let res = await userList({ let res = await userList({
page: this.tablePagination.current, page: this.tablePagination.current,
size: this.tablePagination.pageSize, size: this.tablePagination.pageSize,
...@@ -225,9 +217,18 @@ export default { ...@@ -225,9 +217,18 @@ export default {
this.tablePagination.current -= 1; this.tablePagination.current -= 1;
this.getUserList(); this.getUserList();
} }
this.tablePagination.total = total; this.userDict = roleId;
this.userDict = this.transverter(roleId); let { loginName } = this.userData;
if (this.loginNames.includes(loginName)) {
this.tableSourceData = data; this.tableSourceData = data;
this.tablePagination.total = total;
} else {
this.tableSourceData = data.filter((v) => {
return !this.loginNames.includes(v.loginName);
});
this.tablePagination.total = total - 3;
}
this.tableLoading = false; this.tableLoading = false;
}, },
......
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