diff --git a/src/views/modules/visual/communityParty/crateForm.vue b/src/views/modules/visual/communityParty/crateForm.vue
new file mode 100644
index 000000000..86ed68e07
--- /dev/null
+++ b/src/views/modules/visual/communityParty/crateForm.vue
@@ -0,0 +1,431 @@
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/visual/communityParty/party.vue b/src/views/modules/visual/communityParty/party.vue
index 826333519..f318f3eef 100644
--- a/src/views/modules/visual/communityParty/party.vue
+++ b/src/views/modules/visual/communityParty/party.vue
@@ -131,6 +131,18 @@
+
+
+
@@ -140,6 +152,7 @@ import screenTable from "../components/screen-table/index";
import cptCard from "@/views/modules/visual/cpts/card";
import nextTick from "dai-js/tools/nextTick";
import screenEchartsFrame from "../components/screen-echarts-frame";
+import crateForm from './crateForm.vue';
import { pieOption } from './options'
import * as echarts from 'echarts';
@@ -148,10 +161,15 @@ export default {
components: {
cptCard,
screenTable,
- screenEchartsFrame
+ screenEchartsFrame,
+ crateForm
},
data() {
return {
+ memberDialog: false,
+ disabled: true,
+ memberDetailInfo: {},
+ optionsG: [],
headerList: [
{ title: "序号", coulmn: 'index' },
{ title: "姓名", coulmn: 'name' },
@@ -289,7 +307,32 @@ export default {
// this.initChartType()
},
+ async created() {
+ this.getGridList('query')
+ },
methods: {
+ handleSearch () {
+ this.memberDialog = false
+ },
+ handlerCancle () {
+ this.memberDialog = false
+ },
+ async getGridList(type, agencyId) {
+ const { user } = await this.$store.state
+ // addorupdate query
+ await this.$http
+ .get('/resi/partymember/icPartyOrg/getSearchTreelist', { params: {agencyId: agencyId || user.agencyId} })
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ } else {
+ this.optionsG = this.deepArrTOnull(res.data)
+ }
+ })
+ .catch(() => {
+ return this.$message.error('网络错误')
+ })
+ },
pieInitOk (dom) {
console.log('pie准备好了', dom)
this.pieAgeChartS = dom
@@ -719,14 +762,32 @@ export default {
return arr
},
handleClickRow(val) {
- console.log('click-row----', val)
- if (!val.icResiUser) {
- return this.$message.warning('该党员居民信息未完善')
- }
+ this.getDetail(val.userId)
+ this.memberDialog = true
+ },
+ jumpDetail (val) {
+ this.memberDialog = false
this.$router.push({
- path: `/main-shuju/visual-basicinfo-people/${val.icResiUser}`,
+ path: `/main-shuju/visual-basicinfo-people/${val}`,
});
},
+ getDetail(id) {
+ let params = {
+ id,
+ }
+ this.$http
+ .post(`/resi/partymember/icPartyMember/${id}`)
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ } else {
+ this.memberDetailInfo = { ...res.data }
+ }
+ })
+ .catch((err) => {
+ return this.$message.error('网络错误')
+ })
+ },
handleCascader(val) {
console.log('val-vvv', val)
const _arr = val[val.length - 1].split('-')