From 1e10c9d9b5f0242d7e89926bc9269e49bd7183d9 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Mon, 6 Mar 2023 10:07:36 +0800
Subject: [PATCH 01/17] =?UTF-8?q?=200301=E9=9C=80=E6=B1=82=EF=BC=9A?=
=?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86-=E6=93=8D=E4=BD=9C?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95=E8=B0=83=E6=95=B4=E5=8F=82=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/workSys/operAuth.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/modules/workSys/operAuth.vue b/src/views/modules/workSys/operAuth.vue
index f0ee36e8c..86ce8f98d 100644
--- a/src/views/modules/workSys/operAuth.vue
+++ b/src/views/modules/workSys/operAuth.vue
@@ -165,7 +165,7 @@ export default {
timeRange: [],
formData: {
- category: 'data_tm',
+ category: '',
operatorName: '',//姓名
operatorMobile: '',//手机号
startTime: '',//检测开始时间yyyy-MM-dd HH:mm
@@ -268,7 +268,7 @@ export default {
//重置搜索条件
resetSearch () {
this.formData = {
- category: 'data_tm',
+ category: '',
operatorName: '',//姓名
operatorMobile: '',//手机号
startTime: '',//检测开始时间yyyy-MM-dd HH:mm
From 126d36911af41a2266d74fc392afe485ab316c49 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Mon, 6 Mar 2023 14:20:13 +0800
Subject: [PATCH 02/17] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E5=81=9A=E4=BA=86=E5=88=97=E8=A1=A8=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/workSys/articleTag/edit.vue | 359 ++++++++++++++++++
.../modules/workSys/articleTag/index.vue | 348 +++++++++++++++++
2 files changed, 707 insertions(+)
create mode 100644 src/views/modules/workSys/articleTag/edit.vue
create mode 100644 src/views/modules/workSys/articleTag/index.vue
diff --git a/src/views/modules/workSys/articleTag/edit.vue b/src/views/modules/workSys/articleTag/edit.vue
new file mode 100644
index 000000000..8b21186db
--- /dev/null
+++ b/src/views/modules/workSys/articleTag/edit.vue
@@ -0,0 +1,359 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/workSys/articleTag/index.vue b/src/views/modules/workSys/articleTag/index.vue
new file mode 100644
index 000000000..ce0f56615
--- /dev/null
+++ b/src/views/modules/workSys/articleTag/index.vue
@@ -0,0 +1,348 @@
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.showFlag == 1 ? "显示" : "隐藏" }}
+
+
+
+
+
+ 查看
+ 修改
+
+ {{
+ scope.row.showFlag == 0 ? "显示" : "隐藏"
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From e42dbd86284242a436d8acba8af828ebb941671a Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Mon, 6 Mar 2023 21:58:33 +0800
Subject: [PATCH 03/17] =?UTF-8?q?=E7=BE=A4=E7=A7=9F=E6=88=BF=E5=85=88?=
=?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/shequzhili/htgl/index.vue | 4 +-
.../tuceng/anquan/qunzufang/index.vue | 400 ++++++++++++++++++
.../tuceng/anquan/qunzufang/qzfInfo.vue | 336 +++++++++++++++
3 files changed, 738 insertions(+), 2 deletions(-)
create mode 100644 src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
create mode 100644 src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue
diff --git a/src/views/modules/shequzhili/htgl/index.vue b/src/views/modules/shequzhili/htgl/index.vue
index 033196013..8204fcc0a 100644
--- a/src/views/modules/shequzhili/htgl/index.vue
+++ b/src/views/modules/shequzhili/htgl/index.vue
@@ -305,8 +305,8 @@ export default {
computed: {
maxTableHeight () {
return this.$store.state.inIframe
- ? this.clientHeight - 360 + this.iframeHeigh
- : this.clientHeight - 360;
+ ? this.clientHeight - 240 + this.iframeHeigh
+ : this.clientHeight - 240;
},
...mapGetters(["clientHeight", "iframeHeight"]),
},
diff --git a/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
new file mode 100644
index 000000000..12ffe99f8
--- /dev/null
+++ b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
@@ -0,0 +1,400 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue
new file mode 100644
index 000000000..403efbbdd
--- /dev/null
+++ b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue
@@ -0,0 +1,336 @@
+
+
+
+
+ 显示脱敏信息
+
+
+
+
+ 所属楼栋:
+ {{ dataForm.neighborHoodName }}-{{dataForm.buildingName}}
+
+
+
+ 单元号:
+ {{ dataForm.unitName?dataForm.unitName:'--' }}
+
+
+
+ 门牌号:
+ {{ dataForm.doorName}}
+
+
+
+ 房屋编码:
+ {{ dataForm.coding?dataForm.coding:'--'}}
+
+
+
+
+ 房屋类型:
+ {{dataForm.houseTypeName?dataForm.houseTypeName:'--' }}
+
+
+ 房屋用途:
+ {{dataForm.purposeName?dataForm.purposeName:'--' }}
+
+
+ 房屋状态:
+ {{dataForm.rentName?dataForm.rentName:'--' }}
+
+
+ 房主姓名:
+ {{dataForm.ownerName?dataForm.ownerName:'--' }}
+
+
+ 联系方式:
+ {{dataForm.showOwnerPhone?dataForm.showOwnerPhone:'--' }}
+
+
+ 房主身份证:
+ {{dataForm.showOwnerIdCard?dataForm.showOwnerIdCard:'--' }}
+
+
+ 备注:
+ {{dataForm.remark?dataForm.remark:'--' }}
+
+
+ 居住成员信息:
+ --
+
+
+
+ 姓名
+ 联系方式
+ 房主身份证
+
+
+ {{item.name}}
+ {{item.mobile?item.mobile:"--"}}
+ {{item.idCard?item.idCard:"--"}}
+
+
+
+
+
+
+
+ 关 闭
+
+
+
+
+
+
+
+
\ No newline at end of file
From d7a21e1c7200bca47cfe776ce8323e41cc28f219 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 7 Mar 2023 10:50:30 +0800
Subject: [PATCH 04/17] =?UTF-8?q?=E7=BE=A4=E7=A7=9F=E6=88=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/shequzhili/htgl/index.vue | 48 ++++++++++---------
.../tuceng/anquan/qunzufang/qzfInfo.vue | 31 +++++++++---
2 files changed, 51 insertions(+), 28 deletions(-)
diff --git a/src/views/modules/shequzhili/htgl/index.vue b/src/views/modules/shequzhili/htgl/index.vue
index 8204fcc0a..8a2682f8c 100644
--- a/src/views/modules/shequzhili/htgl/index.vue
+++ b/src/views/modules/shequzhili/htgl/index.vue
@@ -11,12 +11,13 @@
@@ -185,20 +186,22 @@ import axios from "axios";
export default {
data() {
+ let orgOptionProps = {
+ multiple: false,
+ value: 'agencyId',
+ label: 'agencyName',
+ children: 'subAgencyList',
+ checkStrictly: true
+ }
return {
orgOptions: [],
- orgOptionProps: {
- multiple: false,
- value: 'agencyId',
- label: 'agencyName',
- children: 'subAgencyList',
- checkStrictly: true
- },
+ orgOptionProps,
formData: {
topicContent: '',
userName: '',
startDate: '',
endDate: '',
+ gridId:'',
},
showhtglDialog:false,
topicId:'',
@@ -249,7 +252,19 @@ export default {
this.pageNo = 1;
this.getTableData();
},
-
+ handleChangeAgency (val) {
+ let obj = this.$refs["myCascaderk"].getCheckedNodes()[0].data
+ if (obj) {
+ if (obj.level === 'grid') {
+ this.formData.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
+ } else {
+ this.formData.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
+ }
+
+ } else {
+ this.formData.gridId = ''
+ }
+ },
resetSearch () {
this.agencyIdArray = []
this.formData = {
@@ -257,29 +272,18 @@ export default {
userName: '',
startDate: '',
endDate: '',
+ gridId:''
}
this.pageNo = 1
},
async getTableData () {
const url = "/resi/group/ytTopic/topicList";
- var gridId = ''
const { pageSize, pageNo, formData } = this;
- if(this.agencyIdArray.length ==1){
- gridId = this.agencyIdArray.join()
- }else if(this.agencyIdArray.length ==2){
- gridId = this.agencyIdArray.splice(1).join()
- }else if(this.agencyIdArray.length ==3){
- gridId = this.agencyIdArray.splice(2).join()
- }else if(this.agencyIdArray.length ==4){
- gridId = this.agencyIdArray.splice(3).join()
- }else{
- this.agencyIdArray = []
- }
+
const { data, code, msg } = await requestPost(url, {
pageSize,
pageNo,
- gridId,
source:'1',
...formData,
});
diff --git a/src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue
index 403efbbdd..468d0d9f2 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue
@@ -151,8 +151,6 @@
},
async initForm (row, agencyObj) {
- console.log(row,'see1');
-
// this.dataForm = JSON.parse(JSON.stringify(row))
this.agencyObj = agencyObj
this.houseId = row.houseId
@@ -186,19 +184,40 @@
const url = "/data/aggregator/epmetuser/detailByType";
const { data, code, msg } = await requestPost(url, {
- id: this.houseId,
+ id:this.houseId,
type: "checkHouse",
});
-
+ for(let i in this.quanzufangResiList){
+ await this.getResiTuomin( this.quanzufangResiList[i].id)
+ }
if (code === 0) {
this.$set(this.dataForm, 'showOwnerPhone', data.mobile)
this.$set(this.dataForm, 'showOwnerIdCard', data.idCard)
} else {
this.$message.error(msg);
}
-
},
-
+ async getResiTuomin(id){
+ const url = "/data/aggregator/epmetuser/detailByType";
+ const { data, code, msg } = await requestPost(url, {
+ id:id,
+ type: "checkIcResiUser",
+ });
+ if(code == 0){
+ for(let i in this.quanzufangResiList){
+ // console.log(this.quanzufangResiList[i].mobile.split(7,11));
+ // console.log(data.mobile.split(7,11));
+ if(this.quanzufangResiList[i].mobile.substr(7,4) == data.mobile.substr(7,4)){
+ this.$set(this.quanzufangResiList[i],'mobile',data.mobile)
+ this.$set(this.quanzufangResiList[i],'idCard',data.idCard)
+ }
+ }
+
+ }else {
+ this.$message.error(msg)
+ }
+
+ },
async loadHouseInfo () {
const url = "/gov/org/ichouse/" + this.houseId
From 24d7094df658869a3f28109b2379e64795c09291 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 7 Mar 2023 12:56:09 +0800
Subject: [PATCH 05/17] =?UTF-8?q?=E7=BE=A4=E7=A7=9F=E6=88=BF=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/shequzhili/tuceng/anquan/qunzufang/index.vue | 9 ++++++++-
.../shequzhili/tuceng/anquan/qunzufang/qzfInfo.vue | 9 +++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
index 12ffe99f8..d933567b8 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
@@ -105,7 +105,14 @@
align="center"
width="50"
/>
-
+
+
备注:
{{dataForm.remark?dataForm.remark:'--' }}
-
-
居住成员信息:
+
+ 居住成员信息
--
@@ -351,5 +351,10 @@
right: 40px;
z-index: 1000;
}
+ .leftPostion_box{
+ position: relative;
+ left: -80px;
+ font-size: 18px;
+ }
\ No newline at end of file
From dbd8ba2f7dce8f38b1039f93ac6e99837bc9a2c4 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 7 Mar 2023 20:15:25 +0800
Subject: [PATCH 06/17] =?UTF-8?q?=E5=BE=BD=E7=AB=A0=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E5=85=88=E6=8F=90=E4=BA=A4=E4=B8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../emblemManagement/cpts/emblemIfon.vue | 143 ++++++++
.../workSys/emblemManagement/index.vue | 320 ++++++++++++++++++
2 files changed, 463 insertions(+)
create mode 100644 src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
create mode 100644 src/views/modules/workSys/emblemManagement/index.vue
diff --git a/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue b/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
new file mode 100644
index 000000000..7e5ba53d9
--- /dev/null
+++ b/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
+ 所属网格: {{emblemObj.gridName||'--'}}
+
+
+
+
+
+ 审核类型: {{emblemObj.badgeName||'--'}}
+
+
+
+
+ 姓名: {{emblemObj.userName||'--'}}
+
+
+
+
+ 身份证号: {{emblemObj.idCard||'--'}}
+
+
+
+
+ 手机号: {{emblemObj.mobile||'--'}}
+
+
+
+
+ 备注: {{emblemObj.userName||'--'}}
+
+
+
+
+ 认证证件:
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/workSys/emblemManagement/index.vue b/src/views/modules/workSys/emblemManagement/index.vue
new file mode 100644
index 000000000..fee13312c
--- /dev/null
+++ b/src/views/modules/workSys/emblemManagement/index.vue
@@ -0,0 +1,320 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.auditStatus == 'approved'?'审核通过':scope.row.auditStatus == 'rejected'?'审核驳回':'审核中'}}
+
+
+
+
+
+ {{scope.row.auditStatus=='approved'?'查看':'审核'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From ec0ce11f361f2b75fbe8b6198f5b0e3701dfb246 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Wed, 8 Mar 2023 10:16:13 +0800
Subject: [PATCH 07/17] =?UTF-8?q?=E5=85=88=E6=8F=90=E4=BA=A4=E4=B8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/workSys/articleTag/edit.vue | 291 +++++++-----------
.../modules/workSys/articleTag/index.vue | 3 +-
.../emblemManagement/cpts/emblemIfon.vue | 38 +--
.../workSys/emblemManagement/index.vue | 14 +-
4 files changed, 130 insertions(+), 216 deletions(-)
diff --git a/src/views/modules/workSys/articleTag/edit.vue b/src/views/modules/workSys/articleTag/edit.vue
index 8b21186db..a5efaaeed 100644
--- a/src/views/modules/workSys/articleTag/edit.vue
+++ b/src/views/modules/workSys/articleTag/edit.vue
@@ -5,66 +5,35 @@
-
+ v-model="formData.tagName">
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -90,138 +59,102 @@ import { requestPost, requestGet } from '@/js/dai/request'
let loading // 加载动画
export default {
data () {
+
return {
formType: 'add', //表单操作类型 add新增,edit编辑,detail详情
-
btnDisable: false,
-
+ orgOptions:[],
roleId: '',
+ sbid:'',
menuList: [],
menuListShuju: [],
formData: {
- id: '',
- name: '',
- remark: '',//备注
- menuIdList: [],
- customerId: ''
+ tagName: '',
+ agencyId:'',
+ orgIdPath:''
+ },
+ formDatam:[],
+ rules:{
+ tagName: [
+ { required: true, message: '分类名称不能为空', trigger: 'blur' }
+ ],
+ agencyId:[
+ { required: true, message: '应用范围不能为空', trigger: 'blur' }
+ ]
},
defaultRole: '',
-
}
},
components: {},
async mounted () {
-
-
+ await this.getOrgTreeList()
},
methods: {
- async initForm (type, roleId, defaultRole) {
+ async initForm (type, row, defaultRole) {
this.startLoading()
- this.customerId = localStorage.getItem("customerId");
- this.formData.customerId = this.customerId
- //获取菜单
- await this.getMenuList()
- await this.getMenuShujuList()
-
- this.$refs.menuListTree.setCheckedKeys([])
- this.$refs.menuListShujuTree.setCheckedKeys([])
-
this.formType = type
-
- if (roleId) {
- this.roleId = roleId
- this.formData.id = roleId
- this.defaultRole = defaultRole
- this.loadFormData()
- }
-
+ this.formData = {...row}
this.endLoading()
-
- },
-
-
- async getMenuList () {
- const url = "/gov/access/menu/nav"
-
- let params = {}
-
- const { data, code, msg } = await requestGet(url, params)
-
- if (code === 0) {
- this.menuList = [
- {
- id: '000',
- name: '全部菜单',
- children: [...data]
- }
- ]
- // this.menuList = data
-
- } else {
- this.$message.error(msg)
- }
-
- },
- async getMenuShujuList () {
- const url = "/gov/access/menu/nav"
-
- let params = {
- tableName: 'data_menu'
- }
-
-
- const { data, code, msg } = await requestGet(url, params)
-
- if (code === 0) {
- this.menuListShuju = [
- {
- id: '000',
- name: '全部菜单',
- children: [...data]
- }
- ]
- // this.menuListShuju = data
-
- } else {
- this.$message.error(msg)
- }
-
},
-
- async loadFormData () {
-
- // const url = 'http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/detail'
- const url = '/gov/access/govrole/' + this.roleId
- let params = {
-
- }
- const { data, code, msg } = await requestGet(url, params)
- if (code === 0) {
- this.formData = data
-
- this.formData.menuIdList.forEach(item => {
- this.$refs.menuListTree.setChecked(item, true)
-
- })
- this.formData.menuIdList.forEach(item => {
- this.$refs.menuListShujuTree.setChecked(item, true)
- })
- this.formData.customerId = this.customerId
-
+ async getOrgTreeList() {
+ const { user } = this.$store.state
+ this.dataListLoading = true
+ this.$http
+ .post('/gov/org/customeragency/staffinagencylist')
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ } else {
+ console.log('获取查询详情成功', res.data)
+ let { agencyList, subAgencyList } = res.data
+ // this.optionsA = res.data
+ // console.log(this.optionsA);
+ const _arr = [{ ...agencyList, subAgencyList: [...subAgencyList] }]
+ this.orgOptions = this.deepTree(_arr)
+ }
+ })
+ .catch(() => {
+ this.dataListLoading = false
+ return this.$message.error('网络错误')
+ })
+ this.dataListLoading = false
+ },
+ deepTree (arr) {
+ if (Array.isArray(arr)) {
+ return arr.map(item => {
+ return {
+ ...item,
+ subAgencyList: item.subAgencyList.length > 0 && this.deepTree(item.subAgencyList) || null
+ }
+ })
+ }
+ },
+ cascaderClick () {
+ let obj = this.$refs["cascaderUnit"].getCheckedNodes()[0].data
+ var arr = []
+ if (obj) {
+ if (obj.level === "street" && obj.subAgencyList!= null) {
+ for(let i in obj.subAgencyList){
+ this.formDatam.push({'agencyId':obj.subAgencyList[i].agencyId,'orgIdPath':obj.orgIdPath})
+ }
+ console.log( this.formDatam);
+ } else {
+ this.$set(this.formData,'agencyId',obj.agencyId)
+ this.$set(this.formData,'orgIdPath',obj.orgIdPath)
+ }
} else {
- this.$message.error(msg)
+ this.formData.agencyId = ''
}
- },
-
+
+ },
handleComfirm () {
this.$refs['ref_form'].validate((valid, messageObj) => {
if (!valid) {
app.util.validateRule(messageObj)
-
} else {
this.addNat()
}
@@ -230,20 +163,6 @@ export default {
},
async addNat () {
-
-
- this.formData.menuIdList = []
- this.formData.menuIdList = [
- ...this.$refs.menuListTree.getCheckedKeys(),
- ...this.$refs.menuListTree.getHalfCheckedKeys(),
- ...this.$refs.menuListShujuTree.getCheckedKeys(),
- ...this.$refs.menuListShujuTree.getHalfCheckedKeys()
- ]
- this.formData.menuIdList = this.formData.menuIdList.filter(item => item !== '000')
-
- console.log('menuAll', this.formData)
-
- // return false
this.btnDisable = true
setTimeout(() => {
this.btnDisable = false
@@ -251,18 +170,30 @@ export default {
let url = ''
if (this.formType === 'add') {
- url = '/gov/access/govrole/save'
-
- this.formData.roleId = ''
+ url = '/gov/voice/tag/save'
} else {
- url = '/gov/access/govrole/edit'
+ url = '/gov/voice/tag/update'
}
-
-
- const { data, code, msg } = await requestPost(url, this.formData)
-
+ console.log(this.formData);
+ const { tagName,orgIdPath,agencyId} = this.formData
+ let params = {}
+ if(agencyId &&this.formDatam.length==0){
+ params = {
+ tagName,
+ agencyList:{
+ orgIdPath,
+ agencyId,
+ },
+ }
+ }else{
+ params = {
+ tagName,
+ agencyList:this.formDatam
+ }
+ }
+ const { data, code, msg } = await requestPost(url,params)
if (code === 0) {
this.$message({
type: 'success',
@@ -276,7 +207,7 @@ export default {
this.btnDisable = false
this.$message.error(msg)
}
-
+ this.formDatam = []
},
handleCancle () {
@@ -290,12 +221,7 @@ export default {
this.roleId = ''
this.formData = {
- id: '',
- name: '',
- remark: '',//备注
- menuIdList: [],
- customerId: ''
-
+ tagName: '',
}
this.$refs['ref_form'].resetFields()
},
@@ -318,10 +244,7 @@ export default {
computed: {
dataRule () {
return {
- name: [
- { required: true, message: '角色名称不能为空', trigger: 'change' }
- ],
-
+
}
},
diff --git a/src/views/modules/workSys/articleTag/index.vue b/src/views/modules/workSys/articleTag/index.vue
index ce0f56615..811df167b 100644
--- a/src/views/modules/workSys/articleTag/index.vue
+++ b/src/views/modules/workSys/articleTag/index.vue
@@ -144,6 +144,7 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="formTitle"
+ destroy-on-close
width="850px"
top="5vh"
class="dialog-h"
@@ -267,7 +268,7 @@ export default {
this.formTitle = "修改";
this.formShow = true;
this.$nextTick(() => {
- this.$refs.ref_form.initForm("edit", row.id, row.defaultRole);
+ this.$refs.ref_form.initForm("edit", row);
});
},
diff --git a/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue b/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
index 7e5ba53d9..5084704b5 100644
--- a/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
+++ b/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
@@ -24,12 +24,7 @@
- 手机号: {{emblemObj.mobile||'--'}}
-
-
-
-
- 备注: {{emblemObj.userName||'--'}}
+ 手机号11111: {{emblemObj.mobile||'--'}}
@@ -40,8 +35,18 @@
-
+
+
+ 审核原因: {{emblemObj.userName||'--'}}
+
+
+
+ 取消
+ 审核不通过
+ 审核通过
+
+
@@ -63,29 +68,12 @@
created() {
// console.log(this.emblemObj);
// this.$set(this.emblemObj,'topicVoices',this.emblemObj)
- this.getResiTuomin(emblemObj.userId)
},
mounted(){
},
methods:{
- async getResiTuomin(id){
- const url = "/data/aggregator/epmetuser/detailByType";
- const { data, code, msg } = await requestPost(url, {
- id:id,
- type: "checkIcResiUser",
- });
- if(code == 0){
- for(let i in this.quanzufangResiList){
- this.$set(this.emblemObj,'mobile',data.mobile)
- this.$set(this.emblemObj,'idCard',data.idCard)
- }
-
- }else {
- this.$message.error(msg)
- }
-
- },
+
},
diff --git a/src/views/modules/workSys/emblemManagement/index.vue b/src/views/modules/workSys/emblemManagement/index.vue
index fee13312c..febec02e2 100644
--- a/src/views/modules/workSys/emblemManagement/index.vue
+++ b/src/views/modules/workSys/emblemManagement/index.vue
@@ -191,6 +191,7 @@
topicId:'',
tableData:[],
emblemObj:{},
+ customerId:"",
pageNo: 1,
pageSize: window.localStorage.getItem("pageSize") || 20,
total: 1,
@@ -202,6 +203,7 @@
mounted() {
this.getOrgTreeList();
this.getEmblemType()
+ this.customerId = localStorage.getItem("customerId");
},
methods: {
async getOrgTreeList() {
@@ -244,11 +246,12 @@
this.pageNo = 1;
this.getTableData();
},
- async getResiTuomin(id){
- const url = "/data/aggregator/epmetuser/detailByType";
+ async getEmblemIfon(row){
+ const url = "/epmetuser/more/badge/certification/detail";
const { data, code, msg } = await requestPost(url, {
- id:id,
- type: "checkIcResiUser",
+ badgeId:row.badgeId,
+ recordId:row.recordId,
+ customerId:this.customerId,
});
if(code == 0){
return data
@@ -289,8 +292,7 @@
},
async handleWatch (row) {
this.showhtglDialog = true
- this.getResiTuomin(row.userId)
- this.emblemObj = {row,...this.getResiTuomin(row.userId)}
+ this.emblemObj = {row,...this.getEmblemIfon(row)}
console.log(row);
},
},
From 7a0db25bf175ddead0d2ad8af59f76b2ab934af8 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Wed, 8 Mar 2023 11:11:11 +0800
Subject: [PATCH 08/17] =?UTF-8?q?=E5=BE=BD=E7=AB=A0=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../emblemManagement/cpts/emblemIfon.vue | 61 +++++++++++++++----
.../workSys/emblemManagement/index.vue | 13 +++-
2 files changed, 59 insertions(+), 15 deletions(-)
diff --git a/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue b/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
index 5084704b5..00b1e5d10 100644
--- a/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
+++ b/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
@@ -1,7 +1,7 @@
-
+
所属网格: {{emblemObj.gridName||'--'}}
@@ -9,41 +9,50 @@
- 审核类型: {{emblemObj.badgeName||'--'}}
+ 审核类型: {{emblemObj.authResult == 'approved'?'审核通过':emblemObj.authResult == 'rejected'?'审核驳回':'审核中'||'--'}}
- 姓名: {{emblemObj.userName||'--'}}
+ 姓名: {{emblemObj.surname +emblemObj.name||'--'}}
- 身份证号: {{emblemObj.idCard||'--'}}
+ 身份证号: {{emblemObj.idcard||'--'}}
- 手机号11111: {{emblemObj.mobile||'--'}}
+ 手机号: {{emblemObj.mobile||'--'}}
认证证件:
-
+
-
+
- 审核原因: {{emblemObj.userName||'--'}}
+ 审核原因:
+
+
+
+
- 取消
- 审核不通过
- 审核通过
+ 取消
+ 审核不通过
+ 审核通过
@@ -57,6 +66,8 @@
data() {
return {
+ auditTextarea:'',
+ btnFlag:false
};
},
props:{
@@ -73,8 +84,32 @@
mounted(){
},
methods:{
-
-
+ async handleAudit(status){
+ if(status == 'yes'){
+ }else{
+ if (this.auditTextarea == ""){
+ this.$message.error('请填写审核原因!')
+ return
+ }
+ }
+ const url = "/epmetuser/badge/audit"
+ let params = {
+ recordId:this.emblemObj.recordId,
+ auditStatus:status == 'yes'?'approved':'rejected',
+ auditRemark:this.auditTextarea
+ }
+ let {code,msg,data} = await requestPost(url,params)
+ if(code==0){
+ this.$message.success('操作成功!')
+ this.$emit('dialogOk')
+ }else if(code>=8000){
+ this.$message.error(msg)
+ }
+ },
+ handleDiaClose(){
+ this.$emit('dialogCancle')
+ }
+
},
components: {},
diff --git a/src/views/modules/workSys/emblemManagement/index.vue b/src/views/modules/workSys/emblemManagement/index.vue
index febec02e2..88a04b8b3 100644
--- a/src/views/modules/workSys/emblemManagement/index.vue
+++ b/src/views/modules/workSys/emblemManagement/index.vue
@@ -161,6 +161,8 @@
@close="showhtglDialog = false"
>
@@ -246,6 +248,13 @@
this.pageNo = 1;
this.getTableData();
},
+ diaClose() {
+ this.showhtglDialog = false;
+ },
+ addFormOk() {
+ this.showhtglDialog = false;
+ this.getTableData();
+ },
async getEmblemIfon(row){
const url = "/epmetuser/more/badge/certification/detail";
const { data, code, msg } = await requestPost(url, {
@@ -292,8 +301,8 @@
},
async handleWatch (row) {
this.showhtglDialog = true
- this.emblemObj = {row,...this.getEmblemIfon(row)}
- console.log(row);
+ let obj = await this.getEmblemIfon(row)
+ this.emblemObj = {row,...obj}
},
},
components: {
From e3c2871d57afb696738bfa99892422ab7ee3ac4e Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Wed, 8 Mar 2023 12:44:33 +0800
Subject: [PATCH 09/17] =?UTF-8?q?=E5=BE=BD=E7=AB=A0=E5=AE=A1=E6=A0=B8/?=
=?UTF-8?q?=E7=BE=A4=E7=A7=9F=E6=88=BF=E5=88=97=E8=A1=A8=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../tuceng/anquan/qunzufang/index.vue | 5 +++-
.../emblemManagement/cpts/emblemIfon.vue | 23 ++++++++++++++-----
.../workSys/emblemManagement/index.vue | 4 ++--
3 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
index d933567b8..2e1a47873 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/qunzufang/index.vue
@@ -108,10 +108,13 @@
+
+ {{scope.row.agencyName }}-{{ scope.row.gridName}}
+
- 审核类型: {{emblemObj.authResult == 'approved'?'审核通过':emblemObj.authResult == 'rejected'?'审核驳回':'审核中'||'--'}}
+ 徽章类型: {{emblemObj.badgeName ||'--'}}
@@ -30,12 +30,15 @@
认证证件:
-
-
+
+
+
+
+ --
-
+
审核原因:
@@ -49,10 +52,18 @@
+
+
+ 审核原因:
+
+ {{emblemObj.authReason||"--"}}
+
+
+
取消
- 审核不通过
- 审核通过
+ 审核不通过
+ 审核通过
diff --git a/src/views/modules/workSys/emblemManagement/index.vue b/src/views/modules/workSys/emblemManagement/index.vue
index 88a04b8b3..f20038491 100644
--- a/src/views/modules/workSys/emblemManagement/index.vue
+++ b/src/views/modules/workSys/emblemManagement/index.vue
@@ -127,14 +127,14 @@
label="状态"
>
- {{scope.row.auditStatus == 'approved'?'审核通过':scope.row.auditStatus == 'rejected'?'审核驳回':'审核中'}}
+ {{scope.row.auditStatus == 'approved'?'已通过':scope.row.auditStatus == 'rejected'?'未通过':'审核中'}}
{{scope.row.auditStatus=='approved'?'查看':'审核'}}{{scope.row.auditStatus=='auditing'?'审核':'查看'}}
From 9b78cfb661637a6d07f915487cff6ca08ccca068 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Wed, 8 Mar 2023 14:32:22 +0800
Subject: [PATCH 10/17] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=85=8D=E7=BD=AE/?=
=?UTF-8?q?=E5=85=9A=E5=BB=BA=E5=AE=A3=E4=BC=A0=E4=B8=8B=E6=8B=89=E6=A1=86?=
=?UTF-8?q?=E5=8A=A0=E5=BF=85=E5=A1=AB=E4=B8=94=E4=B8=8D=E5=85=81=E8=AE=B8?=
=?UTF-8?q?=E8=BE=93=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/communityParty/article/drafts.vue | 8 +-
.../modules/communityParty/article/index.vue | 8 +-
src/views/modules/workSys/articleTag/edit.vue | 82 ++++++++-----------
3 files changed, 48 insertions(+), 50 deletions(-)
diff --git a/src/views/modules/communityParty/article/drafts.vue b/src/views/modules/communityParty/article/drafts.vue
index a3b63a7ff..59906c237 100644
--- a/src/views/modules/communityParty/article/drafts.vue
+++ b/src/views/modules/communityParty/article/drafts.vue
@@ -275,7 +275,6 @@ export default {
keyName: "tagNameList",
type: "select",
multiple: true,
- filterable: true,
allowCreate: true,
optionUrl: "/gov/voice/tag/taglist",
optionUrlParams: {},
@@ -286,6 +285,13 @@ export default {
value: item.tagName,
}));
},
+ rules: [
+ {
+ required: true,
+ message: "文章标签不能为空",
+ trigger: "blur",
+ },
+ ],
},
{
field: "内容",
diff --git a/src/views/modules/communityParty/article/index.vue b/src/views/modules/communityParty/article/index.vue
index 5d2d6b034..ea064e288 100644
--- a/src/views/modules/communityParty/article/index.vue
+++ b/src/views/modules/communityParty/article/index.vue
@@ -471,7 +471,6 @@ export default {
keyName: "tagNameList",
type: "select",
multiple: true,
- filterable: true,
allowCreate: true,
optionUrl: "/gov/voice/tag/taglist",
optionUrlParams: {},
@@ -482,6 +481,13 @@ export default {
value: item.tagName,
}));
},
+ rules: [
+ {
+ required: true,
+ message: "文章标签不能为空",
+ trigger: "blur",
+ },
+ ],
},
{
field: "内容",
diff --git a/src/views/modules/workSys/articleTag/edit.vue b/src/views/modules/workSys/articleTag/edit.vue
index a5efaaeed..e4f63815f 100644
--- a/src/views/modules/workSys/articleTag/edit.vue
+++ b/src/views/modules/workSys/articleTag/edit.vue
@@ -14,7 +14,6 @@
label-width="150px"
style="display: block">
@@ -64,10 +63,7 @@ export default {
formType: 'add', //表单操作类型 add新增,edit编辑,detail详情
btnDisable: false,
orgOptions:[],
- roleId: '',
- sbid:'',
- menuList: [],
- menuListShuju: [],
+ tagId:'',
formData: {
tagName: '',
agencyId:'',
@@ -82,8 +78,6 @@ export default {
{ required: true, message: '应用范围不能为空', trigger: 'blur' }
]
},
-
- defaultRole: '',
}
},
components: {},
@@ -93,15 +87,25 @@ export default {
methods: {
- async initForm (type, row, defaultRole) {
+ async initForm (type, row) {
this.startLoading()
this.formType = type
- this.formData = {...row}
+ console.log(row);
+ if(type!='add'){
+ this.formData.tagName = row.tagName
+ this.tagId = row.id
+ if(row.agencyList.length>1){
+ this.formData.agencyId = row.agencyList[0].orgIdPath.split(':')[1]
+ this.formData.orgIdPath = row.agencyList[0].orgIdPath.split(':')[0] +':'+ row.agencyList[0].orgIdPath.split(':')[1]
+ }else{
+ this.formData.agencyId = row.agencyList[0].agencyId
+ this.formData.orgIdPath = row.agencyList[0].orgIdPath
+ }
+ }
this.endLoading()
},
async getOrgTreeList() {
- const { user } = this.$store.state
this.dataListLoading = true
this.$http
.post('/gov/org/customeragency/staffinagencylist')
@@ -111,8 +115,6 @@ export default {
} else {
console.log('获取查询详情成功', res.data)
let { agencyList, subAgencyList } = res.data
- // this.optionsA = res.data
- // console.log(this.optionsA);
const _arr = [{ ...agencyList, subAgencyList: [...subAgencyList] }]
this.orgOptions = this.deepTree(_arr)
}
@@ -135,19 +137,17 @@ export default {
},
cascaderClick () {
let obj = this.$refs["cascaderUnit"].getCheckedNodes()[0].data
- var arr = []
+ this.formDatam = []
if (obj) {
- if (obj.level === "street" && obj.subAgencyList!= null) {
+ if (obj.level === "street") {
for(let i in obj.subAgencyList){
- this.formDatam.push({'agencyId':obj.subAgencyList[i].agencyId,'orgIdPath':obj.orgIdPath})
+ this.formData.push({'agencyId':obj.subAgencyList[i].agencyId,'orgIdPath':obj.subAgencyList[i].orgIdPath})
}
- console.log( this.formDatam);
} else {
- this.$set(this.formData,'agencyId',obj.agencyId)
- this.$set(this.formData,'orgIdPath',obj.orgIdPath)
+ this.formDatam.push({'agencyId':obj.agencyId,'orgIdPath':obj.orgIdPath})
}
} else {
- this.formData.agencyId = ''
+ this.formDatam = []
}
},
@@ -171,27 +171,26 @@ export default {
let url = ''
if (this.formType === 'add') {
url = '/gov/voice/tag/save'
-
} else {
url = '/gov/voice/tag/update'
-
}
- console.log(this.formData);
- const { tagName,orgIdPath,agencyId} = this.formData
+ const { tagName} = this.formData
let params = {}
- if(agencyId &&this.formDatam.length==0){
- params = {
- tagName,
- agencyList:{
- orgIdPath,
- agencyId,
- },
- }
+
+ if(this.formType != 'add'){
+ if(this.formDatam.length == 0){
+ this.formDatam.push({'agencyId':this.formData.agencyId,'orgIdPath':this.formData.orgIdPath})
+ }
+ params = {
+ tagName,
+ agencyList:this.formDatam,
+ id:this.tagId
+ }
}else{
- params = {
- tagName,
- agencyList:this.formDatam
- }
+ params = {
+ tagName,
+ agencyList:this.formDatam,
+ }
}
const { data, code, msg } = await requestPost(url,params)
if (code === 0) {
@@ -207,7 +206,6 @@ export default {
this.btnDisable = false
this.$message.error(msg)
}
- this.formDatam = []
},
handleCancle () {
@@ -217,9 +215,6 @@ export default {
},
resetData () {
-
- this.roleId = ''
-
this.formData = {
tagName: '',
}
@@ -242,17 +237,8 @@ export default {
}
},
computed: {
- dataRule () {
- return {
-
-
- }
- },
-
},
props: {
-
-
}
}
From 6e61d053745e1d9f19542d6cd77f544a8f568738 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Thu, 9 Mar 2023 10:10:29 +0800
Subject: [PATCH 11/17] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=9C=B0=E5=9D=80,?=
=?UTF-8?q?=E5=AD=97=E5=85=B8=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 3 +-
.env.production.sit | 3 +-
.../modules/communityParty/article/drafts.vue | 2 +-
.../modules/communityParty/article/index.vue | 2 +-
src/views/modules/workSys/articleTag/edit.vue | 67 ++++++++++++++-----
.../modules/workSys/articleTag/index.vue | 4 +-
6 files changed, 58 insertions(+), 23 deletions(-)
diff --git a/.env.development b/.env.development
index be04f184b..b9429d7e2 100644
--- a/.env.development
+++ b/.env.development
@@ -1,6 +1,7 @@
NODE_ENV=development
-VUE_APP_API_SERVER = http://192.168.1.140/api
+VUE_APP_API_SERVER = http://219.146.91.110/api
+#VUE_APP_API_SERVER = http://192.168.1.140/api
# VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api
diff --git a/.env.production.sit b/.env.production.sit
index 9edee48dd..abbd978f7 100644
--- a/.env.production.sit
+++ b/.env.production.sit
@@ -1,6 +1,7 @@
NODE_ENV=production
# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api
-VUE_APP_API_SERVER = http://192.168.1.140/api
+#VUE_APP_API_SERVER = http://192.168.1.140/api
+VUE_APP_API_SERVER = http://219.146.91.110/api
VUE_APP_NODE_ENV=prod:sit
VUE_APP_PUBLIC_PATH=epmet-oper
VUE_APP_CUSTOMER=yantai
\ No newline at end of file
diff --git a/src/views/modules/communityParty/article/drafts.vue b/src/views/modules/communityParty/article/drafts.vue
index 59906c237..606dad2c8 100644
--- a/src/views/modules/communityParty/article/drafts.vue
+++ b/src/views/modules/communityParty/article/drafts.vue
@@ -276,7 +276,7 @@ export default {
type: "select",
multiple: true,
allowCreate: true,
- optionUrl: "/gov/voice/tag/taglist",
+ optionUrl: "/gov/voice/tag/queryAgencyTag",
optionUrlParams: {},
optionList: [],
optionCook(list) {
diff --git a/src/views/modules/communityParty/article/index.vue b/src/views/modules/communityParty/article/index.vue
index ea064e288..9226f0d36 100644
--- a/src/views/modules/communityParty/article/index.vue
+++ b/src/views/modules/communityParty/article/index.vue
@@ -472,7 +472,7 @@ export default {
type: "select",
multiple: true,
allowCreate: true,
- optionUrl: "/gov/voice/tag/taglist",
+ optionUrl: "/gov/voice/tag/queryAgencyTag",
optionUrlParams: {},
optionList: [],
optionCook(list) {
diff --git a/src/views/modules/workSys/articleTag/edit.vue b/src/views/modules/workSys/articleTag/edit.vue
index e4f63815f..bd3ed8ee5 100644
--- a/src/views/modules/workSys/articleTag/edit.vue
+++ b/src/views/modules/workSys/articleTag/edit.vue
@@ -25,10 +25,11 @@
label-width="150px"
prop="agencyId"
>
+
@@ -63,6 +64,14 @@ export default {
formType: 'add', //表单操作类型 add新增,edit编辑,detail详情
btnDisable: false,
orgOptions:[],
+ optionProps: {
+ checkStrictly: true,
+ expandTrigger: 'hover',
+ value: 'agencyId',
+ label: 'agencyName',
+ children: 'subAgencyList',
+ },
+ agencyIdArray:[],
tagId:'',
formData: {
tagName: '',
@@ -83,6 +92,8 @@ export default {
components: {},
async mounted () {
await this.getOrgTreeList()
+
+
},
methods: {
@@ -90,6 +101,7 @@ export default {
async initForm (type, row) {
this.startLoading()
this.formType = type
+
console.log(row);
if(type!='add'){
this.formData.tagName = row.tagName
@@ -107,22 +119,37 @@ export default {
},
async getOrgTreeList() {
this.dataListLoading = true
- this.$http
- .post('/gov/org/customeragency/staffinagencylist')
- .then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- } else {
- console.log('获取查询详情成功', res.data)
- let { agencyList, subAgencyList } = res.data
- const _arr = [{ ...agencyList, subAgencyList: [...subAgencyList] }]
- this.orgOptions = this.deepTree(_arr)
- }
- })
- .catch(() => {
- this.dataListLoading = false
- return this.$message.error('网络错误')
- })
+ // this.$http
+ // .post('gov/org/customeragency/agencylist', { customerId: this.customerId})
+ // .then(({ data: res }) => {
+ // if (res.code !== 0) {
+ // return this.$message.error(res.msg)
+ // } else {
+ // console.log('获取查询详情成功', res.data)
+ // let { agencyList, subAgencyList } = res.data
+ // const _arr = [{ ...agencyList, subAgencyList: [...subAgencyList] }]
+ // this.orgOptions = this.deepTree(_arr)
+ // }
+ // })
+ // .catch(() => {
+ // this.dataListLoading = false
+ // return this.$message.error('网络错误')
+ // })
+ const url = '/gov/org/customeragency/agencylist'
+ // const url = 'http://yapi.elinkservice.cn/mock/102/gov/org/agency/agencylist'
+
+ let params = {
+ customerId: this.customerId
+ }
+ const { data, code, msg } = await requestPost(url, params)
+ if (code === 0) {
+ this.options = []
+ this.agencyIdArray.length = []
+ this.orgOptions.push(data)
+
+ } else {
+ this.$message.error(msg)
+ }
this.dataListLoading = false
},
deepTree (arr) {
@@ -141,7 +168,7 @@ export default {
if (obj) {
if (obj.level === "street") {
for(let i in obj.subAgencyList){
- this.formData.push({'agencyId':obj.subAgencyList[i].agencyId,'orgIdPath':obj.subAgencyList[i].orgIdPath})
+ this.formDatam.push({'agencyId':obj.subAgencyList[i].agencyId,'orgIdPath':obj.subAgencyList[i].orgIdPath})
}
} else {
this.formDatam.push({'agencyId':obj.agencyId,'orgIdPath':obj.orgIdPath})
@@ -239,6 +266,10 @@ export default {
computed: {
},
props: {
+ customerId:{
+ type:String,
+ default:""
+ }
}
}
diff --git a/src/views/modules/workSys/articleTag/index.vue b/src/views/modules/workSys/articleTag/index.vue
index 811df167b..e672ee7d2 100644
--- a/src/views/modules/workSys/articleTag/index.vue
+++ b/src/views/modules/workSys/articleTag/index.vue
@@ -151,6 +151,7 @@
@closed="diaClose"
>
Date: Thu, 9 Mar 2023 11:07:31 +0800
Subject: [PATCH 12/17] =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E6=B2=A1=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 2 +-
.env.production.sit | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.env.development b/.env.development
index b9429d7e2..81ccbbf08 100644
--- a/.env.development
+++ b/.env.development
@@ -1,6 +1,6 @@
NODE_ENV=development
-VUE_APP_API_SERVER = http://219.146.91.110/api
+VUE_APP_API_SERVER = http://219.146.91.110:30802/api
#VUE_APP_API_SERVER = http://192.168.1.140/api
# VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api
diff --git a/.env.production.sit b/.env.production.sit
index abbd978f7..a725889ac 100644
--- a/.env.production.sit
+++ b/.env.production.sit
@@ -1,7 +1,7 @@
NODE_ENV=production
# VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api
#VUE_APP_API_SERVER = http://192.168.1.140/api
-VUE_APP_API_SERVER = http://219.146.91.110/api
+VUE_APP_API_SERVER = http://219.146.91.110:30802/api
VUE_APP_NODE_ENV=prod:sit
VUE_APP_PUBLIC_PATH=epmet-oper
VUE_APP_CUSTOMER=yantai
\ No newline at end of file
From 57de118b2d93c43789cfde640e51ed1dd5448d85 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Thu, 9 Mar 2023 12:19:54 +0800
Subject: [PATCH 13/17] =?UTF-8?q?=E5=BE=BD=E7=AB=A0=E5=AE=A1=E6=A0=B8?=
=?UTF-8?q?=E5=A4=87=E6=B3=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/workSys/emblemManagement/cpts/emblemIfon.vue | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue b/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
index d91ff2acc..2de6aea07 100644
--- a/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
+++ b/src/views/modules/workSys/emblemManagement/cpts/emblemIfon.vue
@@ -60,6 +60,11 @@
+
+
+ 备注: {{emblemObj.remark||'--'}}
+
+
取消
审核不通过
From 7cc756db167e816e6fc4f6759c5d26783a7ba4be Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Thu, 9 Mar 2023 16:37:05 +0800
Subject: [PATCH 14/17] bug
---
src/views/modules/workSys/articleTag/edit.vue | 422 +++++++++---------
1 file changed, 223 insertions(+), 199 deletions(-)
diff --git a/src/views/modules/workSys/articleTag/edit.vue b/src/views/modules/workSys/articleTag/edit.vue
index bd3ed8ee5..7ef2b7397 100644
--- a/src/views/modules/workSys/articleTag/edit.vue
+++ b/src/views/modules/workSys/articleTag/edit.vue
@@ -1,277 +1,301 @@
From 05adafd9e85432609ead0f2cc7e018e118019923 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Thu, 9 Mar 2023 16:54:57 +0800
Subject: [PATCH 15/17] =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=94=99=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/workSys/articleTag/edit.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/views/modules/workSys/articleTag/edit.vue b/src/views/modules/workSys/articleTag/edit.vue
index 7ef2b7397..c2bf1c85f 100644
--- a/src/views/modules/workSys/articleTag/edit.vue
+++ b/src/views/modules/workSys/articleTag/edit.vue
@@ -117,8 +117,9 @@ export default {
":" +
row.agencyList[0].orgIdPath.split(":")[1];
}
- } else if(row.agencyList.length == 0){
+ } else if(row.agencyList.length == 1){
this.endLoading();
+ console.log('走到这了吗');
this.formData.agencyId = row.agencyList[0].agencyId;
this.formData.orgIdPath = row.agencyList[0].orgIdPath;
}
From 1869377bf2eca622ecb03224d67c9b7426749943 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Thu, 9 Mar 2023 16:59:59 +0800
Subject: [PATCH 16/17] =?UTF-8?q?=E5=86=8D=E5=8A=A0=E4=B8=80=E4=B8=AA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/workSys/articleTag/edit.vue | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/views/modules/workSys/articleTag/edit.vue b/src/views/modules/workSys/articleTag/edit.vue
index c2bf1c85f..3dfd76d76 100644
--- a/src/views/modules/workSys/articleTag/edit.vue
+++ b/src/views/modules/workSys/articleTag/edit.vue
@@ -119,9 +119,10 @@ export default {
}
} else if(row.agencyList.length == 1){
this.endLoading();
- console.log('走到这了吗');
this.formData.agencyId = row.agencyList[0].agencyId;
this.formData.orgIdPath = row.agencyList[0].orgIdPath;
+ }else{
+ return
}
} else {
}
From f389a01fee6f92a489671344e01ef448947f74fa Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Thu, 9 Mar 2023 22:47:45 +0800
Subject: [PATCH 17/17] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E8=8C=83=E5=9B=B4?=
=?UTF-8?q?=E5=A4=9A=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/workSys/articleTag/edit.vue | 113 +++++++-----------
1 file changed, 41 insertions(+), 72 deletions(-)
diff --git a/src/views/modules/workSys/articleTag/edit.vue b/src/views/modules/workSys/articleTag/edit.vue
index 3dfd76d76..25f49d911 100644
--- a/src/views/modules/workSys/articleTag/edit.vue
+++ b/src/views/modules/workSys/articleTag/edit.vue
@@ -24,7 +24,6 @@
>
-
@@ -54,7 +53,6 @@
取 消
import { Loading } from "element-ui"; // 引入Loading服务
import { requestPost, requestGet } from "@/js/dai/request";
-
+import nextTick from "dai-js/tools/nextTick";
let loading; // 加载动画
export default {
data() {
@@ -76,11 +74,12 @@ export default {
formType: "add", //表单操作类型 add新增,edit编辑,detail详情
btnDisable: false,
orgOptions: [],
- agencyIdArray: [],
tagId: "",
+ sarr: [],
+ targetObj: {},
formData: {
tagName: "",
- agencyId: "",
+ agencyId: [],
orgIdPath: "",
},
formDatam: [],
@@ -105,24 +104,17 @@ export default {
this.startLoading();
this.formType = type;
if (type != "add") {
+ console.log(this.formData);
this.formData.tagName = row.tagName;
this.tagId = row.id;
- if (row.agencyList.length > 1) {
- this.formData.agencyId = row.agencyList[0].pid;
- if (row.agencyList[0].orgIdPath.split(":").length == 2) {
- this.formData.orgIdPath = row.agencyList[0].orgIdPath.split(":")[0];
- } else {
- this.formData.orgIdPath =
- row.agencyList[0].orgIdPath.split(":")[0] +
- ":" +
- row.agencyList[0].orgIdPath.split(":")[1];
+ this.formData.agencyId = [];
+
+ if (row.agencyList.length >= 1) {
+ for (let i in row.agencyList) {
+ this.formData.agencyId.push(row.agencyList[i].agencyId);
}
- } else if(row.agencyList.length == 1){
+ } else {
this.endLoading();
- this.formData.agencyId = row.agencyList[0].agencyId;
- this.formData.orgIdPath = row.agencyList[0].orgIdPath;
- }else{
- return
}
} else {
}
@@ -139,64 +131,26 @@ export default {
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.options = [];
- this.agencyIdArray.length = [];
this.orgOptions.push(data);
} else {
this.$message.error(msg);
}
this.dataListLoading = false;
},
- deepTree(arr) {
- if (Array.isArray(arr)) {
- return arr.map((item) => {
- return {
- ...item,
- subAgencyList:
- (item.subAgencyList.length > 0 &&
- this.deepTree(item.subAgencyList)) ||
- null,
- };
- });
- }
- },
- cascaderClick() {
- let obj = this.$refs["cascaderUnit"].getCheckedNodes()[0].data;
- this.formDatam = [];
- if (obj) {
- if (obj.level === "street") {
- for (let i in obj.subAgencyList) {
- this.formDatam.push({
- agencyId: obj.subAgencyList[i].agencyId,
- orgIdPath: obj.subAgencyList[i].orgIdPath,
- pid: obj.subAgencyList[i].pid,
- agencyName: obj.subAgencyList[i].agencyName,
- });
- }
- console.log(this.formDatam);
- } else if (obj.level === "district") {
- for (let i in obj.subAgencyList) {
- if (obj.subAgencyList[i].subAgencyList != null) {
- for (let j in obj.subAgencyList[i].subAgencyList) {
- this.formDatam.push({
- agencyId:obj.subAgencyList[i].subAgencyList[j].agencyId,
- orgIdPath:obj.subAgencyList[i].subAgencyList[j].orgIdPath,
- pid: obj.subAgencyList[i].pid,
- agencyName: obj.subAgencyList[i].subAgencyList[j].agencyName,
- });
- }
- }
+
+
+ getLastItem(list, vals, key) {
+ let LIST = list || [];
+ for (let item of LIST) {
+ // console.log(item[key]);
+ for (let i of vals) {
+ if (item[key] === i) {
+ this.sarr.push(item);
+ break;
+ } else {
+ this.getLastItem(item.subAgencyList, vals, key);
}
- console.log(this.formDatam);
- } else if (obj.level === "community") {
- this.formDatam.push({
- agencyId: obj.agencyId,
- orgIdPath: obj.orgIdPath,
- agencyName: obj.agencyName,
- pid: obj.pid
- });
}
- } else {
- this.formDatam = [];
}
},
handleComfirm() {
@@ -210,6 +164,21 @@ export default {
},
async addNat() {
+ this.newArr = [];
+ this.formDatam = [];
+ const map = new Map();
+ this.getLastItem(this.orgOptions, this.formData.agencyId, "agencyId");
+ this.newArr = this.sarr.filter(
+ (v) => !map.has(v.agencyId) && map.set(v.agencyId, 1)
+ );
+ for (let i in this.newArr) {
+ this.formDatam.push({
+ agencyId: this.newArr[i].agencyId,
+ orgIdPath: this.newArr[i].orgIdPath,
+ pid: this.newArr[i].pid,
+ agencyName: this.newArr[i].agencyName,
+ });
+ }
this.btnDisable = true;
setTimeout(() => {
this.btnDisable = false;