Browse Source

【安宁pc端 小程序码管理 】-【程序码分类修改】魏凯 2020-10-22

feature/identityTag
weikai 5 years ago
parent
commit
eb20671ae3
  1. 46
      src/views/modules/user/identityTag.vue

46
src/views/modules/user/identityTag.vue

@ -58,7 +58,8 @@
<el-form-item> <el-form-item>
<el-button v-if="$hasPermission('epdc:user:export')" <el-button v-if="$hasPermission('epdc:user:export')"
type="success" type="success"
@click="exportHandle()">{{ $t('export') }}</el-button> @click="exportHandle()">{{ $t('export') }}
</el-button>
</el-form-item> </el-form-item>
<br> <br>
@ -70,7 +71,7 @@
style="width: 100%;"> style="width: 100%;">
<el-table-column label="序号" header-align="center" align="center" width="50px"> <el-table-column label="序号" header-align="center" align="center" width="50px">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.$index+1}} {{ scope.$index + 1 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="realName" <el-table-column prop="realName"
@ -120,12 +121,21 @@
header-align="center" header-align="center"
align="center" align="center"
width="180"></el-table-column> width="180"></el-table-column>
<el-table-column prop="allDeptNames" <!-- <el-table-column prop="allDeptNames"-->
label="街道-社区-网格" <!-- label="街道-社区-网格"-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- min-width="350"-->
<!-- show-overflow-tooltip> </el-table-column>-->
<el-table-column :label="$t('handle')"
fixed="right"
header-align="center" header-align="center"
align="center" width="150"
min-width="350" align="center">
show-overflow-tooltip> </el-table-column> <template slot-scope="scope">
<el-button type="text" size="small">身份标签管理</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination :current-page="page" <el-pagination :current-page="page"
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 50, 100]"
@ -141,6 +151,7 @@
<script> <script>
import mixinViewModule from '@/mixins/view-module' import mixinViewModule from '@/mixins/view-module'
export default { export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
data () { data () {
@ -192,8 +203,7 @@ export default {
deptIdList: [] deptIdList: []
} }
}, },
components: { components: {},
},
watch: { watch: {
'deptIdList': function (val) { 'deptIdList': function (val) {
if (val.length === 0) { if (val.length === 0) {
@ -227,7 +237,8 @@ export default {
} }
this.options = res.data.options this.options = res.data.options
}) })
.catch(() => { }) .catch(() => {
})
this.initTime() this.initTime()
// this.getStreetList() // this.getStreetList()
this.getRegistOptions() this.getRegistOptions()
@ -271,15 +282,15 @@ export default {
// }).catch(() => { }) // }).catch(() => { })
// }, // },
btKeyUpRealName (e) { btKeyUpRealName (e) {
e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '')
this.dataForm.realName = e.target.value this.dataForm.realName = e.target.value
}, },
btKeyUpMobile (e) { btKeyUpMobile (e) {
e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '')
this.dataForm.mobile = e.target.value this.dataForm.mobile = e.target.value
}, },
btKeyUpIdentityNo (e) { btKeyUpIdentityNo (e) {
e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '')
this.dataForm.identityNo = e.target.value this.dataForm.identityNo = e.target.value
}, },
getCommunityList () { getCommunityList () {
@ -297,7 +308,8 @@ export default {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.communityOptions = res.data this.communityOptions = res.data
}).catch(() => { }) }).catch(() => {
})
}, },
getGridList () { getGridList () {
if (this.dataForm.communityId === '') { if (this.dataForm.communityId === '') {
@ -311,7 +323,8 @@ export default {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.gridOptions = res.data this.gridOptions = res.data
}).catch(() => { }) }).catch(() => {
})
}, },
getRegistOptions () { getRegistOptions () {
this.$http.get(`/sys/dict/sublist/1168769645576179713`).then(({ data: res }) => { this.$http.get(`/sys/dict/sublist/1168769645576179713`).then(({ data: res }) => {
@ -319,7 +332,8 @@ export default {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
this.registOptions = res.data this.registOptions = res.data
}).catch(() => { }) }).catch(() => {
})
}, },
// getPostOptions () { // getPostOptions () {
// this.$http.get(`/sys/dict/sublist/1168770417290366977`).then(({ data: res }) => { // this.$http.get(`/sys/dict/sublist/1168770417290366977`).then(({ data: res }) => {

Loading…
Cancel
Save