Browse Source

Task 综合公开2

rongxin_dev
zhaodengke 6 months ago
parent
commit
d339cd922f
8 changed files with 18 additions and 20 deletions
  1. +3
    -4
      src/api/sunVillage_info/otherOpen.js
  2. BIN
      src/assets/images/sunVillage_info/index_block_zonghegongkai.png
  3. BIN
      src/assets/images/sunVillage_info/index_code_btn_zonghegongkai.png
  4. +0
    -1
      src/views/sunVillage_info/index_code.vue
  5. +4
    -4
      src/views/sunVillage_info/otherOpen/otherOpenEdit.vue
  6. +7
    -7
      src/views/sunVillage_info/otherOpen/otherOpenList.vue
  7. +1
    -1
      src/views/sunVillage_info/otherOpen/otherOpenVisitDetail.vue
  8. +3
    -3
      src/views/sunVillage_info/otherOpen/otherOpenVisitList.vue

+ 3
- 4
src/api/sunVillage_info/otherOpen.js View File

@@ -46,19 +46,18 @@ export function delOther(id) {
// 查询其他公开列表 游客 // 查询其他公开列表 游客
export function otherOpenList(query) { export function otherOpenList(query) {
return request({ return request({
url: '/open/villageAffairs/public/otherOpenList',
url: '/open/villageAffairs/public/otherPublicList',
method: 'get', method: 'get',
params: query params: query
}) })
} }


// 查询其他公开详细 游客 // 查询其他公开详细 游客
export function otherOpenDetail(bookId, id) {
export function otherOpenDetail(id) {
return request({ return request({
url: '/open/villageAffairs/public/otherOpenDetail',
url: '/open/villageAffairs/public/otherPublicDetail',
method: 'get', method: 'get',
params: { params: {
bookId,
id, id,
}, },
}) })


BIN
src/assets/images/sunVillage_info/index_block_zonghegongkai.png View File

Before After
Width: 64  |  Height: 64  |  Size: 3.4 KiB

BIN
src/assets/images/sunVillage_info/index_code_btn_zonghegongkai.png View File

Before After
Width: 355  |  Height: 134  |  Size: 14 KiB

+ 0
- 1
src/views/sunVillage_info/index_code.vue View File

@@ -98,7 +98,6 @@ import {bookListByDept} from "@/api/onlineHome/villageAffairs";
//账套列表 //账套列表
bookVisbile:false, bookVisbile:false,
bookList:[], bookList:[],
bookName:"",
bookId:"", bookId:"",
book:"", book:"",




+ 4
- 4
src/views/sunVillage_info/otherOpen/otherOpenEdit.vue View File

@@ -107,19 +107,19 @@
intent: null, intent: null,
content: '', content: '',
otherTypeOptions: [], otherTypeOptions: [],
type: null,
otherType: null,
title: '综合公开', title: '综合公开',
}; };
}, },
created() { created() {
this.id = this.$route.query.id; this.id = this.$route.query.id;
this.intent = this.$route.query.intent; this.intent = this.$route.query.intent;
this.type = this.$route.query.type;
this.otherType = this.$route.query.otherType;
if(this.isEdit) if(this.isEdit)
this.getDetail(); this.getDetail();
else else
{ {
this.form.otherType = this.$route.query.type;
this.form.otherType = this.$route.query.otherType;
this.getDicts('other_gk_type').then((resp) => { this.getDicts('other_gk_type').then((resp) => {
this.otherTypeOptions = resp.data; this.otherTypeOptions = resp.data;
const dict = resp.data.find((x) => x.dictValue == this.form.otherType); const dict = resp.data.find((x) => x.dictValue == this.form.otherType);
@@ -191,7 +191,7 @@
return this.intent === 'edit' ? '编辑' : '新增'; return this.intent === 'edit' ? '编辑' : '新增';
}, },
showTypeSelector() { showTypeSelector() {
return this.isAdd && !this.type;
return this.isAdd && !this.otherType;
}, },
}, },
} }


+ 7
- 7
src/views/sunVillage_info/otherOpen/otherOpenList.vue View File

@@ -93,7 +93,7 @@ import {getLoginBook} from "@/api/sunVillage_info/fixedAssets";
}; };
}, },
created() { created() {
this.queryParams.otherType = this.$route.query.type || '';
this.queryParams.otherType = this.$route.query.otherType || '';
this.getDicts('other_gk_type').then((resp) => { this.getDicts('other_gk_type').then((resp) => {
let arr = []; let arr = [];
arr.push({ arr.push({
@@ -135,28 +135,28 @@ import {getLoginBook} from "@/api/sunVillage_info/fixedAssets";
intent: 'view', intent: 'view',
}; };
if(this.queryParams.otherType) if(this.queryParams.otherType)
parms.type = this.queryParams.otherType;
parms.otherType = this.queryParams.otherType;
this.$router.push({ this.$router.push({
name: 'otherOpenDetail', name: 'otherOpenDetail',
query: parms, query: parms,
}).catch(() => {}); }).catch(() => {});
}, },
viewItem(id){ viewItem(id){
this.$router.replace(`/sunVillage_info/otherOpenIndex?type=${this.queryParams.otherType || ''}`, () => this.gotoViewItem(id), () => this.gotoViewItem(id) );
this.$router.replace(`/sunVillage_info/otherOpenIndex?otherType=${this.queryParams.otherType || ''}`, () => this.gotoViewItem(id), () => this.gotoViewItem(id) );
}, },
gotoAdd() { gotoAdd() {
let parms = { let parms = {
intent: 'add', intent: 'add',
}; };
if(this.queryParams.otherType) if(this.queryParams.otherType)
parms.type = this.queryParams.otherType;
parms.otherType = this.queryParams.otherType;
this.$router.push({ this.$router.push({
name: 'otherOpenEdit', name: 'otherOpenEdit',
query: parms, query: parms,
}).catch(() => {}); }).catch(() => {});
}, },
add() { add() {
this.$router.replace(`/sunVillage_info/otherOpenIndex?type=${this.queryParams.otherType || ''}`, () => this.gotoAdd(), () => this.gotoAdd() );
this.$router.replace(`/sunVillage_info/otherOpenIndex?otherType=${this.queryParams.otherType || ''}`, () => this.gotoAdd(), () => this.gotoAdd() );
}, },
gotoEdit(id) { gotoEdit(id) {
let parms = { let parms = {
@@ -164,14 +164,14 @@ import {getLoginBook} from "@/api/sunVillage_info/fixedAssets";
intent: 'edit', intent: 'edit',
}; };
if(this.queryParams.otherType) if(this.queryParams.otherType)
parms.type = this.queryParams.otherType;
parms.otherType = this.queryParams.otherType;
this.$router.push({ this.$router.push({
name: 'otherOpenEdit', name: 'otherOpenEdit',
query: parms, query: parms,
}).catch(() => {}); }).catch(() => {});
}, },
edit(id) { edit(id) {
this.$router.replace(`/sunVillage_info/otherOpenIndex?type=${this.queryParams.otherType || ''}`, () => this.gotoEdit(id), () => this.gotoEdit(id) );
this.$router.replace(`/sunVillage_info/otherOpenIndex?otherType=${this.queryParams.otherType || ''}`, () => this.gotoEdit(id), () => this.gotoEdit(id) );
}, },
remove(id) { remove(id) {
Dialog.confirm({ Dialog.confirm({


+ 1
- 1
src/views/sunVillage_info/otherOpen/otherOpenVisitDetail.vue View File

@@ -90,7 +90,7 @@
return; return;
} }


otherOpenDetail(this.bookId, this.id).then((resp) => {
otherOpenDetail(this.id).then((resp) => {
this.form = resp.data; this.form = resp.data;
this.getDicts('other_gk_type').then((resp) => { this.getDicts('other_gk_type').then((resp) => {
const dict = resp.data.find((x) => x.dictValue == this.form.otherType); const dict = resp.data.find((x) => x.dictValue == this.form.otherType);


+ 3
- 3
src/views/sunVillage_info/otherOpen/otherOpenVisitList.vue View File

@@ -97,7 +97,7 @@ import Cookies from "js-cookie";
return; return;
} }


this.queryParams.otherType = this.$route.query.type || '';
this.queryParams.otherType = this.$route.query.otherType || '';
this.getDicts('other_gk_type').then((resp) => { this.getDicts('other_gk_type').then((resp) => {
let arr = []; let arr = [];
arr.push({ arr.push({
@@ -139,14 +139,14 @@ import Cookies from "js-cookie";
intent: 'view', intent: 'view',
}; };
if(this.queryParams.otherType) if(this.queryParams.otherType)
parms.type = this.queryParams.otherType;
parms.otherType = this.queryParams.otherType;
this.$router.push({ this.$router.push({
name: 'otherOpenVisitDetail', name: 'otherOpenVisitDetail',
query: parms, query: parms,
}).catch(() => {}); }).catch(() => {});
}, },
viewItem(id){ viewItem(id){
this.$router.replace(`/sunVillage_info/otherOpenVisitIndex?type=${this.queryParams.otherType || ''}`, () => this.gotoViewItem(id), () => this.gotoViewItem(id) );
this.$router.replace(`/sunVillage_info/otherOpenVisitIndex?otherType=${this.queryParams.otherType || ''}`, () => this.gotoViewItem(id), () => this.gotoViewItem(id) );
}, },
back() { back() {
this.$router.replace('/sunVillage_info/otherOpenVisitIndex', () => this.$router.back(), () => this.$router.back() ); this.$router.replace('/sunVillage_info/otherOpenVisitIndex', () => this.$router.back(), () => this.$router.back() );


Loading…
Cancel
Save