From d96ed41928602059862eb50fcc39937ad238f4f1 Mon Sep 17 00:00:00 2001
From: xuyuanqing <392009588@qq.com>
Date: Fri, 20 Sep 2024 16:45:21 +0800
Subject: [PATCH 01/10] =?UTF-8?q?=E9=98=B3=E5=85=89=E6=9D=91=E5=8A=A1-?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=8B=E4=B8=AD=E3=80=81=E4=BA=8B=E5=90=8E?=
=?UTF-8?q?=E5=85=AC=E5=BC=80=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/sunVillage_info/list_tourists.vue | 1 +
.../sunVillage_info/list_tourists_add.vue | 82 ++++++++++++++++-
.../sunVillage_info/list_tourists_detail.vue | 33 ++++++-
.../sunVillage_info/list_tourists_edit.vue | 92 ++++++++++++++++++-
4 files changed, 202 insertions(+), 6 deletions(-)
diff --git a/src/views/sunVillage_info/list_tourists.vue b/src/views/sunVillage_info/list_tourists.vue
index a49e15f7..b59066fd 100644
--- a/src/views/sunVillage_info/list_tourists.vue
+++ b/src/views/sunVillage_info/list_tourists.vue
@@ -190,6 +190,7 @@
.then(() => {
tempWorkerOpenRemove(id).then(response => {
this.$notify({ type: 'success', message: '删除成功' });
+ this.applicationList = [];
this.getList()
});
})
diff --git a/src/views/sunVillage_info/list_tourists_add.vue b/src/views/sunVillage_info/list_tourists_add.vue
index 943f8338..4770b794 100644
--- a/src/views/sunVillage_info/list_tourists_add.vue
+++ b/src/views/sunVillage_info/list_tourists_add.vue
@@ -46,11 +46,27 @@
- 公开图片
+ 事前公开
+
+
+
+ 事中公开
+
+
+
+
+
+
+
+ 事后公开
+
+
+
+
@@ -102,12 +118,16 @@
form:{
openNy:this.format(new Date(),'yyyy-MM'),
openPic:'',
+ openPic2:'',
+ openPic3:'',
openFile:'',
openName:this.format(new Date(),'yyyy')+ '年' + (this.format(new Date(),'MM')-1) + '月零工公开'
},
openPic:[],
fileList:[],
fileList1:[],
+ fileList2:[],
+ fileList3:[],
openNy:new Date(),
type:'',
openFile:[],
@@ -118,6 +138,8 @@
},
openFile2:[],
openPic2:[],
+ openPic3:[],
+ openPic4:[],
};
},
created() {
@@ -139,6 +161,8 @@
var that = this;
that.form.openFile = that.openFile2.join(',')
that.form.openPic = that.openPic2.join(',')
+ that.form.openPic2 = that.openPic3.join(',')
+ that.form.openPic3 = that.openPic4.join(',')
tempWorkerOpenAdd(that.form).then((r1) => {
if (r1.code == 200){
that.$notify({ type: 'success', message: '新增成功' });
@@ -157,6 +181,14 @@
this.openPic2.splice(detail.index,1)
// this.form.openPic.splice(index,1);
},
+ deleteFile2(detail){
+ this.openPic3.splice(detail.index,1)
+ // this.form.openPic.splice(index,1);
+ },
+ deleteFile3(detail){
+ this.openPic4.splice(detail.index,1)
+ // this.form.openPic.splice(index,1);
+ },
deleteWord(index){
this.openFileList.splice(index,1);
this.openFile2.splice(index,1);
@@ -170,7 +202,6 @@
// 此时可以自行将文件上传至服务器
if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
file.map(res=>{
- this.openPic.push(res.file);
let params1 = new FormData();
params1.append("file", res.file);
commonUpload(params1).then((r1) => {
@@ -178,7 +209,6 @@
})
})
}else{
- this.openPic.push(file);
let params1 = new FormData();
params1.append("file", file.file);
commonUpload(params1).then((r1) => {
@@ -186,6 +216,52 @@
})
}
},
+ afterRead2(file) {
+ this.$toast.loading({
+ message: "上传中...",
+ forbidClick: true,
+ duration: 0,
+ });
+ // 此时可以自行将文件上传至服务器
+ if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
+ file.map(res=>{
+ let params1 = new FormData();
+ params1.append("file", res.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic3.push(r1.fileName);
+ })
+ })
+ }else{
+ let params1 = new FormData();
+ params1.append("file", file.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic3.push(r1.fileName);
+ })
+ }
+ },
+ afterRead3(file) {
+ this.$toast.loading({
+ message: "上传中...",
+ forbidClick: true,
+ duration: 0,
+ });
+ // 此时可以自行将文件上传至服务器
+ if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
+ file.map(res=>{
+ let params1 = new FormData();
+ params1.append("file", res.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic4.push(r1.fileName);
+ })
+ })
+ }else{
+ let params1 = new FormData();
+ params1.append("file", file.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic4.push(r1.fileName);
+ })
+ }
+ },
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
diff --git a/src/views/sunVillage_info/list_tourists_detail.vue b/src/views/sunVillage_info/list_tourists_detail.vue
index ed98aa51..2d85901f 100644
--- a/src/views/sunVillage_info/list_tourists_detail.vue
+++ b/src/views/sunVillage_info/list_tourists_detail.vue
@@ -36,12 +36,28 @@
- 公开图片
+ 事前公开
+
+
+
+ 事中公开
+
+
+
+
+
+
+
+ 事后公开
+
+
+
+
@@ -92,6 +108,8 @@
fjImg:'',
fjImgShow:false,
openPic:[],
+ openPic2:[],
+ openPic3:[],
fileList:[],
fileList1:[],
openNy:new Date(),
@@ -144,7 +162,18 @@
this.openPic.push({url:'/api'+rrr})
})
}
-
+ if (res.data.openPic2 !='' && res.data.openPic2 != null && res.data.openPic2 != undefined){
+ res.data.openPic2 = res.data.openPic2.split(',')
+ res.data.openPic2.map((rrr,i)=>{
+ this.openPic2.push({url:'/api'+rrr})
+ })
+ }
+ if (res.data.openPic3 !='' && res.data.openPic3 != null && res.data.openPic3 != undefined){
+ res.data.openPic3 = res.data.openPic3.split(',')
+ res.data.openPic3.map((rrr,i)=>{
+ this.openPic3.push({url:'/api'+rrr})
+ })
+ }
this.form = res.data;
})
},
diff --git a/src/views/sunVillage_info/list_tourists_edit.vue b/src/views/sunVillage_info/list_tourists_edit.vue
index 6344b23c..476b98ba 100644
--- a/src/views/sunVillage_info/list_tourists_edit.vue
+++ b/src/views/sunVillage_info/list_tourists_edit.vue
@@ -46,12 +46,30 @@
- 公开图片
+ 事前公开
+
+
+
+ 事中公开
+
+
+
+
+
+
+
+
+ 事后公开
+
+
+
+
+
@@ -105,6 +123,8 @@
openFile:'',
},
openPic:[],
+ openPicsz:[],
+ openPicsh:[],
fileList:[],
fileList1:[],
openNy:new Date(),
@@ -117,6 +137,8 @@
deptId:''
},
openPic2:[],
+ openPic3:[],
+ openPic4:[],
openFile2:[]
};
},
@@ -161,6 +183,20 @@
this.openPic[i] = {url:'/api'+rrr}
})
}
+ if (res.data.openPic2!='' && res.data.openPic2 != null && res.data.openPic2 != undefined){
+ this.openPicsz = res.data.openPic2.split(',')
+ this.openPic3 = res.data.openPic2.split(',')
+ this.openPicsz.map((rrr,i)=>{
+ this.openPicsz[i] = {url:'/api'+rrr}
+ })
+ }
+ if (res.data.openPic3!='' && res.data.openPic3 != null && res.data.openPic3 != undefined){
+ this.openPicsh = res.data.openPic3.split(',')
+ this.openPic4 = res.data.openPic3.split(',')
+ this.openPicsh.map((rrr,i)=>{
+ this.openPicsh[i] = {url:'/api'+rrr}
+ })
+ }
that.form = res.data;
})
},
@@ -168,6 +204,8 @@
var that = this;
that.form.openFile = that.openFile2.join(',')
that.form.openPic = that.openPic2.join(',')
+ that.form.openPic2 = that.openPic3.join(',')
+ that.form.openPic3 = that.openPic4.join(',')
tempWorkerOpenEdit(that.form).then((r1) => {
if (r1.code == 200){
that.$notify({ type: 'success', message: '修改成功' });
@@ -186,6 +224,12 @@
console.log(detail)
this.openPic2.splice(detail.index,1)
},
+ deleteFile2(file,detail){
+ this.openPic3.splice(detail.index,1)
+ },
+ deleteFile3(file,detail){
+ this.openPic4.splice(detail.index,1)
+ },
deleteWord(index){
this.openFile.splice(index,1);
this.openFile2.splice(index,1);
@@ -213,6 +257,52 @@
})
}
},
+ afterRead2(file) {
+ this.$toast.loading({
+ message: "上传中...",
+ forbidClick: true,
+ duration: 0,
+ });
+ // 此时可以自行将文件上传至服务器
+ if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
+ file.map(res=>{
+ let params1 = new FormData();
+ params1.append("file", res.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic3.push(r1.fileName);
+ })
+ })
+ }else{
+ let params1 = new FormData();
+ params1.append("file", file.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic3.push(r1.fileName);
+ })
+ }
+ },
+ afterRead3(file) {
+ this.$toast.loading({
+ message: "上传中...",
+ forbidClick: true,
+ duration: 0,
+ });
+ // 此时可以自行将文件上传至服务器
+ if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
+ file.map(res=>{
+ let params1 = new FormData();
+ params1.append("file", res.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic4.push(r1.fileName);
+ })
+ })
+ }else{
+ let params1 = new FormData();
+ params1.append("file", file.file);
+ commonUpload(params1).then((r1) => {
+ this.openPic4.push(r1.fileName);
+ })
+ }
+ },
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
From 5917cdf724fffa8d247b969f5a9910ca30b7ae43 Mon Sep 17 00:00:00 2001
From: zhaodengke
Date: Sat, 12 Oct 2024 14:06:30 +0800
Subject: [PATCH 02/10] =?UTF-8?q?Task=20=E9=9B=B6=E5=B7=A5=E5=85=AC?=
=?UTF-8?q?=E5=BC=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../sunVillage_info/list_tourists_add.vue | 81 +---------------
.../sunVillage_info/list_tourists_detail.vue | 32 +------
.../sunVillage_info/list_tourists_edit.vue | 94 +------------------
.../sunVillage_info/list_tourists_ranking.vue | 2 +-
4 files changed, 5 insertions(+), 204 deletions(-)
diff --git a/src/views/sunVillage_info/list_tourists_add.vue b/src/views/sunVillage_info/list_tourists_add.vue
index 4770b794..17e5ac2e 100644
--- a/src/views/sunVillage_info/list_tourists_add.vue
+++ b/src/views/sunVillage_info/list_tourists_add.vue
@@ -46,27 +46,11 @@
- 事前公开
+ 公开图片
-
-
-
- 事中公开
-
-
-
-
-
-
-
- 事后公开
-
-
-
-
@@ -118,16 +102,11 @@
form:{
openNy:this.format(new Date(),'yyyy-MM'),
openPic:'',
- openPic2:'',
- openPic3:'',
openFile:'',
openName:this.format(new Date(),'yyyy')+ '年' + (this.format(new Date(),'MM')-1) + '月零工公开'
},
openPic:[],
fileList:[],
- fileList1:[],
- fileList2:[],
- fileList3:[],
openNy:new Date(),
type:'',
openFile:[],
@@ -138,8 +117,6 @@
},
openFile2:[],
openPic2:[],
- openPic3:[],
- openPic4:[],
};
},
created() {
@@ -161,8 +138,6 @@
var that = this;
that.form.openFile = that.openFile2.join(',')
that.form.openPic = that.openPic2.join(',')
- that.form.openPic2 = that.openPic3.join(',')
- that.form.openPic3 = that.openPic4.join(',')
tempWorkerOpenAdd(that.form).then((r1) => {
if (r1.code == 200){
that.$notify({ type: 'success', message: '新增成功' });
@@ -181,14 +156,6 @@
this.openPic2.splice(detail.index,1)
// this.form.openPic.splice(index,1);
},
- deleteFile2(detail){
- this.openPic3.splice(detail.index,1)
- // this.form.openPic.splice(index,1);
- },
- deleteFile3(detail){
- this.openPic4.splice(detail.index,1)
- // this.form.openPic.splice(index,1);
- },
deleteWord(index){
this.openFileList.splice(index,1);
this.openFile2.splice(index,1);
@@ -216,52 +183,6 @@
})
}
},
- afterRead2(file) {
- this.$toast.loading({
- message: "上传中...",
- forbidClick: true,
- duration: 0,
- });
- // 此时可以自行将文件上传至服务器
- if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
- file.map(res=>{
- let params1 = new FormData();
- params1.append("file", res.file);
- commonUpload(params1).then((r1) => {
- this.openPic3.push(r1.fileName);
- })
- })
- }else{
- let params1 = new FormData();
- params1.append("file", file.file);
- commonUpload(params1).then((r1) => {
- this.openPic3.push(r1.fileName);
- })
- }
- },
- afterRead3(file) {
- this.$toast.loading({
- message: "上传中...",
- forbidClick: true,
- duration: 0,
- });
- // 此时可以自行将文件上传至服务器
- if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
- file.map(res=>{
- let params1 = new FormData();
- params1.append("file", res.file);
- commonUpload(params1).then((r1) => {
- this.openPic4.push(r1.fileName);
- })
- })
- }else{
- let params1 = new FormData();
- params1.append("file", file.file);
- commonUpload(params1).then((r1) => {
- this.openPic4.push(r1.fileName);
- })
- }
- },
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
diff --git a/src/views/sunVillage_info/list_tourists_detail.vue b/src/views/sunVillage_info/list_tourists_detail.vue
index 2d85901f..a8607721 100644
--- a/src/views/sunVillage_info/list_tourists_detail.vue
+++ b/src/views/sunVillage_info/list_tourists_detail.vue
@@ -36,28 +36,12 @@
- 事前公开
+ 公开图片
-
-
-
- 事中公开
-
-
-
-
-
-
-
- 事后公开
-
-
-
-
@@ -108,8 +92,6 @@
fjImg:'',
fjImgShow:false,
openPic:[],
- openPic2:[],
- openPic3:[],
fileList:[],
fileList1:[],
openNy:new Date(),
@@ -162,18 +144,6 @@
this.openPic.push({url:'/api'+rrr})
})
}
- if (res.data.openPic2 !='' && res.data.openPic2 != null && res.data.openPic2 != undefined){
- res.data.openPic2 = res.data.openPic2.split(',')
- res.data.openPic2.map((rrr,i)=>{
- this.openPic2.push({url:'/api'+rrr})
- })
- }
- if (res.data.openPic3 !='' && res.data.openPic3 != null && res.data.openPic3 != undefined){
- res.data.openPic3 = res.data.openPic3.split(',')
- res.data.openPic3.map((rrr,i)=>{
- this.openPic3.push({url:'/api'+rrr})
- })
- }
this.form = res.data;
})
},
diff --git a/src/views/sunVillage_info/list_tourists_edit.vue b/src/views/sunVillage_info/list_tourists_edit.vue
index 476b98ba..ed93f4ee 100644
--- a/src/views/sunVillage_info/list_tourists_edit.vue
+++ b/src/views/sunVillage_info/list_tourists_edit.vue
@@ -46,30 +46,12 @@
- 事前公开
+ 公开图片
-
-
-
- 事中公开
-
-
-
-
-
-
-
-
- 事后公开
-
-
-
-
-
@@ -123,8 +105,6 @@
openFile:'',
},
openPic:[],
- openPicsz:[],
- openPicsh:[],
fileList:[],
fileList1:[],
openNy:new Date(),
@@ -137,8 +117,6 @@
deptId:''
},
openPic2:[],
- openPic3:[],
- openPic4:[],
openFile2:[]
};
},
@@ -183,20 +161,6 @@
this.openPic[i] = {url:'/api'+rrr}
})
}
- if (res.data.openPic2!='' && res.data.openPic2 != null && res.data.openPic2 != undefined){
- this.openPicsz = res.data.openPic2.split(',')
- this.openPic3 = res.data.openPic2.split(',')
- this.openPicsz.map((rrr,i)=>{
- this.openPicsz[i] = {url:'/api'+rrr}
- })
- }
- if (res.data.openPic3!='' && res.data.openPic3 != null && res.data.openPic3 != undefined){
- this.openPicsh = res.data.openPic3.split(',')
- this.openPic4 = res.data.openPic3.split(',')
- this.openPicsh.map((rrr,i)=>{
- this.openPicsh[i] = {url:'/api'+rrr}
- })
- }
that.form = res.data;
})
},
@@ -204,8 +168,6 @@
var that = this;
that.form.openFile = that.openFile2.join(',')
that.form.openPic = that.openPic2.join(',')
- that.form.openPic2 = that.openPic3.join(',')
- that.form.openPic3 = that.openPic4.join(',')
tempWorkerOpenEdit(that.form).then((r1) => {
if (r1.code == 200){
that.$notify({ type: 'success', message: '修改成功' });
@@ -221,15 +183,9 @@
this.showBuildTime = false;
},
deleteFile1(file,detail){
- console.log(detail)
+ //console.log(detail)
this.openPic2.splice(detail.index,1)
},
- deleteFile2(file,detail){
- this.openPic3.splice(detail.index,1)
- },
- deleteFile3(file,detail){
- this.openPic4.splice(detail.index,1)
- },
deleteWord(index){
this.openFile.splice(index,1);
this.openFile2.splice(index,1);
@@ -257,52 +213,6 @@
})
}
},
- afterRead2(file) {
- this.$toast.loading({
- message: "上传中...",
- forbidClick: true,
- duration: 0,
- });
- // 此时可以自行将文件上传至服务器
- if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
- file.map(res=>{
- let params1 = new FormData();
- params1.append("file", res.file);
- commonUpload(params1).then((r1) => {
- this.openPic3.push(r1.fileName);
- })
- })
- }else{
- let params1 = new FormData();
- params1.append("file", file.file);
- commonUpload(params1).then((r1) => {
- this.openPic3.push(r1.fileName);
- })
- }
- },
- afterRead3(file) {
- this.$toast.loading({
- message: "上传中...",
- forbidClick: true,
- duration: 0,
- });
- // 此时可以自行将文件上传至服务器
- if (file instanceof Array){//判断是否为数组,单张图片为array,多张为数组,数组返回true否则为false
- file.map(res=>{
- let params1 = new FormData();
- params1.append("file", res.file);
- commonUpload(params1).then((r1) => {
- this.openPic4.push(r1.fileName);
- })
- })
- }else{
- let params1 = new FormData();
- params1.append("file", file.file);
- commonUpload(params1).then((r1) => {
- this.openPic4.push(r1.fileName);
- })
- }
- },
afterReadOpenFile(file){
this.$toast.loading({
message: "上传中...",
diff --git a/src/views/sunVillage_info/list_tourists_ranking.vue b/src/views/sunVillage_info/list_tourists_ranking.vue
index 64d38268..eb04a406 100644
--- a/src/views/sunVillage_info/list_tourists_ranking.vue
+++ b/src/views/sunVillage_info/list_tourists_ranking.vue
@@ -80,7 +80,7 @@
queryParams:{
pageNum:1,
pageSize:10,
- orderByColumn:'openNy',
+ orderByColumn:'jobNy',
isAsc:'desc',
year:'',
},
From 024f389d5288df8e58f18aef64f79c9dddd5a9f8 Mon Sep 17 00:00:00 2001
From: zhaodengke
Date: Sat, 12 Oct 2024 16:04:14 +0800
Subject: [PATCH 03/10] =?UTF-8?q?Task=20=E9=9B=B6=E5=B7=A5=E7=99=BB?=
=?UTF-8?q?=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/form/CommonUpload.vue | 160 ++++++++++++
src/components/form/FieldDatePicker.vue | 3 +
src/router/index.js | 18 ++
src/utils/request.js | 2 +-
.../list_tourists_registration.vue | 152 +++++++++++-
.../list_tourists_registration_add.vue | 141 ++++++-----
.../list_tourists_registration_detail.vue | 188 ++++++++++++++
.../list_tourists_registration_edit.vue | 230 ++++++++++++++++++
8 files changed, 828 insertions(+), 66 deletions(-)
create mode 100644 src/components/form/CommonUpload.vue
create mode 100644 src/views/sunVillage_info/list_tourists_registration_detail.vue
create mode 100644 src/views/sunVillage_info/list_tourists_registration_edit.vue
diff --git a/src/components/form/CommonUpload.vue b/src/components/form/CommonUpload.vue
new file mode 100644
index 00000000..4fdbd0ab
--- /dev/null
+++ b/src/components/form/CommonUpload.vue
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/form/FieldDatePicker.vue b/src/components/form/FieldDatePicker.vue
index 5ed1cbfb..f1c76d61 100644
--- a/src/components/form/FieldDatePicker.vue
+++ b/src/components/form/FieldDatePicker.vue
@@ -41,6 +41,8 @@
:type="type || 'date'"
:readonly="readonly"
:title="label || ''"
+ :min-date="minDate"
+ :max-date="maxDate"
@confirm="onConfirm"
@cancel="onCancel"
@change="onChanged"
@@ -62,6 +64,7 @@ export default {
'formatter', // value的格式化 String|Function|undefined 字符串为格式字符串, 函数则必须有返回 undefined则不转换
'clearable', // 点击取消时清空绑定值
'yearRangeLength', // type === 'year' 时生成的年份数量范围 [YEAR - yearRangeLength, YEAR + yearRangeLength]
+ 'minDate', 'maxDate'
],
watch: {
value: function (newVal, oldVal) {
diff --git a/src/router/index.js b/src/router/index.js
index 3b52ab05..308f244c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -3660,6 +3660,24 @@ export const constantRoutes = [
},
component: (resolve) => require(['@/views/sunVillage_info/list_tourists_registration_add'], resolve)
},
+ { ////阳光村务(新)-- 零工登记详情
+ path: '/sunVillage_info/list_tourists_registration_detail',
+ name: 'sunVillageInfoListTouristsRegistrationDetail',
+ meta: {
+ title: '查看零工登记',
+ hidden: true,
+ },
+ component: (resolve) => require(['@/views/sunVillage_info/list_tourists_registration_detail'], resolve)
+ },
+ { ////阳光村务(新)-- 零工登记修改
+ path: '/sunVillage_info/list_tourists_registration_edit',
+ name: 'sunVillageInfoListTouristsRegistrationEdit',
+ meta: {
+ title: '修改零工登记',
+ hidden: true,
+ },
+ component: (resolve) => require(['@/views/sunVillage_info/list_tourists_registration_edit'], resolve)
+ },
{ ////阳光村务(新)-- 合同信息
path: '/sunVillage_info/list_register',
name: 'sunVillageInfoListRegister',
diff --git a/src/utils/request.js b/src/utils/request.js
index 023805bc..278e298e 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -69,7 +69,7 @@ if(responseInterceptor === undefined){
// 获取错误信息
const msg = errorCode[code] || res.data.msg || errorCode['default']
// console.info(gqnum); && gqnum === 0
- console.log(code)
+ // console.log(code)
if (code === 401) {
// gqnum++;
Dialog.confirm({
diff --git a/src/views/sunVillage_info/list_tourists_registration.vue b/src/views/sunVillage_info/list_tourists_registration.vue
index b412e1b3..5e58fdb5 100644
--- a/src/views/sunVillage_info/list_tourists_registration.vue
+++ b/src/views/sunVillage_info/list_tourists_registration.vue
@@ -1,7 +1,7 @@
@@ -30,7 +30,7 @@
姓名
- {{item.workerName}}
+ {{item.workerName}}

@@ -43,7 +43,7 @@
出工事由
出工数
-
+
{{item.jobTime}}
{{item.workReason}}
{{item.workNum}}
@@ -54,12 +54,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -440,6 +534,7 @@
height: 100%;
position: absolute;
top: 0;
+ pointer-events: none;
}
.name_icon{
position: absolute;
@@ -501,4 +596,53 @@
.clear{
clear: both;
}
+.opera_btn{
+ width: 52px;
+ height: 52px;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content:center;
+
+ &.delete{
+ background:#df0707;
+ .icon{
+ width: 22px;
+ height: 29px;
+ background: url('../../assets/images/sunVillage_info/list_icon_7.png') no-repeat;
+ background-size: 100% 100%;
+ display: block;
+ }
+ }
+ &.edit{
+ background: #79cf13;
+ .icon {
+ width: 26px;
+ height: 25px;
+ background: url('../../assets/images/sunVillage_info/list_icon_6.png') no-repeat;
+ background-size: 100% 100%;
+ display: block;
+ }
+ }
+ &.view{
+ background: #3494ff;
+ .icon {
+ width: 29px;
+ height: 21px;
+ background: url('../../assets/images/sunVillage_info/list_icon_3.png') no-repeat;
+ background-size: 100% 100%;
+ display: block;
+ }
+ }
+ &.list{
+ background: #79cf13;
+ .icon {
+ width: 29px;
+ height: 21px;
+ background: url('../../assets/images/sunVillage_info/list_icon_10.png') no-repeat;
+ background-size: 100% 100%;
+ display: block;
+ }
+ }
+}
diff --git a/src/views/sunVillage_info/list_tourists_registration_add.vue b/src/views/sunVillage_info/list_tourists_registration_add.vue
index 75368e19..6c3c365f 100644
--- a/src/views/sunVillage_info/list_tourists_registration_add.vue
+++ b/src/views/sunVillage_info/list_tourists_registration_add.vue
@@ -2,7 +2,7 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -57,16 +70,38 @@
diff --git a/src/views/sunVillage_info/list_tourists_registration_detail.vue b/src/views/sunVillage_info/list_tourists_registration_detail.vue
new file mode 100644
index 00000000..c61d3c9c
--- /dev/null
+++ b/src/views/sunVillage_info/list_tourists_registration_detail.vue
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sunVillage_info/list_tourists_registration_edit.vue b/src/views/sunVillage_info/list_tourists_registration_edit.vue
new file mode 100644
index 00000000..7cb5d01a
--- /dev/null
+++ b/src/views/sunVillage_info/list_tourists_registration_edit.vue
@@ -0,0 +1,230 @@
+
+
+
+
+
+
+

+
修改零工
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
From fa66565219d7ff51a62d2f95016ce53529b0b79b Mon Sep 17 00:00:00 2001
From: zhaodengke
Date: Sat, 12 Oct 2024 16:30:08 +0800
Subject: [PATCH 04/10] =?UTF-8?q?Task=20=E4=B8=AA=E4=BA=BA=E9=9B=B6?=
=?UTF-8?q?=E5=B7=A5=E5=85=AC=E5=BC=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../sunVillage_info/list_tourists_ranking.vue | 16 +++++++++++++---
.../list_tourists_registration.vue | 18 ++++--------------
.../list_tourists_registration_detail.vue | 2 +-
3 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/src/views/sunVillage_info/list_tourists_ranking.vue b/src/views/sunVillage_info/list_tourists_ranking.vue
index eb04a406..4c1c7ae6 100644
--- a/src/views/sunVillage_info/list_tourists_ranking.vue
+++ b/src/views/sunVillage_info/list_tourists_ranking.vue
@@ -25,7 +25,7 @@
姓名
-
+
{{item.workerName}}
@@ -41,7 +41,7 @@
工日值
金额(元)
-
+
{{item.workReason}}
{{item.workerNote}}
{{item.workNum}}
@@ -104,7 +104,7 @@
getList(){
var _this = this;
setTimeout(() => {
- console.log(_this.queryParams)
+ //console.log(_this.queryParams)
listOddjob(_this.queryParams).then(response => {
_this.listLength = response.total;
_this.applicationList = response.rows;
@@ -119,6 +119,15 @@
});
}, 1000);
},
+ viewItem(id){
+ this.$router.push({
+ path: "/sunVillage_info/list_tourists_registration_detail",
+ query: {
+ id: id,
+ intent: 'view',
+ },
+ }).catch(() => {});
+ },
},
}
@@ -378,6 +387,7 @@
height: 100%;
position: absolute;
top: 0;
+ pointer-events: none;
}
.name_icon{
position: absolute;
diff --git a/src/views/sunVillage_info/list_tourists_registration.vue b/src/views/sunVillage_info/list_tourists_registration.vue
index 5e58fdb5..9b45de2a 100644
--- a/src/views/sunVillage_info/list_tourists_registration.vue
+++ b/src/views/sunVillage_info/list_tourists_registration.vue
@@ -64,21 +64,21 @@
-
+
-
+
-
+
@@ -596,7 +596,7 @@ import {delOddjob, listOddjob, tempWorkerOpenRemove} from "@/api/sunVillage_info
.clear{
clear: both;
}
-.opera_btn{
+.menu_btn{
width: 52px;
height: 52px;
border-radius: 50%;
@@ -634,15 +634,5 @@ import {delOddjob, listOddjob, tempWorkerOpenRemove} from "@/api/sunVillage_info
display: block;
}
}
- &.list{
- background: #79cf13;
- .icon {
- width: 29px;
- height: 21px;
- background: url('../../assets/images/sunVillage_info/list_icon_10.png') no-repeat;
- background-size: 100% 100%;
- display: block;
- }
- }
}
diff --git a/src/views/sunVillage_info/list_tourists_registration_detail.vue b/src/views/sunVillage_info/list_tourists_registration_detail.vue
index c61d3c9c..109b17a4 100644
--- a/src/views/sunVillage_info/list_tourists_registration_detail.vue
+++ b/src/views/sunVillage_info/list_tourists_registration_detail.vue
@@ -42,7 +42,7 @@
-
+
From 82b0050c9d04e02959f9932e03c3475b99e7c061 Mon Sep 17 00:00:00 2001
From: zhaodengke
Date: Sat, 12 Oct 2024 16:49:10 +0800
Subject: [PATCH 05/10] =?UTF-8?q?Task=20=E6=B8=B8=E5=AE=A2=E9=9B=B6?=
=?UTF-8?q?=E5=B7=A5=E5=85=AC=E5=BC=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/sunVillage_info/list_tourists.vue | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/views/sunVillage_info/list_tourists.vue b/src/views/sunVillage_info/list_tourists.vue
index b59066fd..07f9a5a4 100644
--- a/src/views/sunVillage_info/list_tourists.vue
+++ b/src/views/sunVillage_info/list_tourists.vue
@@ -53,6 +53,14 @@
+
@@ -93,7 +101,7 @@
projectIndex:'',
showBtn:true,
nowYear:new Date().getFullYear(),
- yearList:[]
+ yearList:[],
};
},
created() {
From 99ff9aee2bfdf08334d0f729a77de58023bd111a Mon Sep 17 00:00:00 2001
From: zhaodengke
Date: Sat, 12 Oct 2024 17:09:54 +0800
Subject: [PATCH 06/10] =?UTF-8?q?Task=20=E6=B8=B8=E5=AE=A2=E9=9B=B6?=
=?UTF-8?q?=E5=B7=A5=E5=85=AC=E5=BC=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/sunVillage_info/list_tourists_registration.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/sunVillage_info/list_tourists_registration.vue b/src/views/sunVillage_info/list_tourists_registration.vue
index 9b45de2a..11de4b7a 100644
--- a/src/views/sunVillage_info/list_tourists_registration.vue
+++ b/src/views/sunVillage_info/list_tourists_registration.vue
@@ -1,7 +1,7 @@
From 2ab6b94d30cd64c70a74799b6e859313ff5d7da8 Mon Sep 17 00:00:00 2001
From: zhaodengke
Date: Wed, 16 Oct 2024 14:49:29 +0800
Subject: [PATCH 07/10] =?UTF-8?q?Task=20master=E5=90=8C=E6=AD=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/sunVillage_info/fixedAssets.js | 9 +
src/permission.js | 4 +-
src/router/index.js | 20 +-
src/views/sunVillage_info/list_tourists.vue | 5 +-
.../sunVillage_info/list_tourists_ranking.vue | 2 +-
.../list_tourists_ranking_lite.vue | 369 ++++++++++++++++++
.../list_tourists_registration_detail.vue | 2 +-
...t_tourists_registration_detail_visitor.vue | 190 +++++++++
8 files changed, 596 insertions(+), 5 deletions(-)
create mode 100644 src/views/sunVillage_info/list_tourists_ranking_lite.vue
create mode 100644 src/views/sunVillage_info/list_tourists_registration_detail_visitor.vue
diff --git a/src/api/sunVillage_info/fixedAssets.js b/src/api/sunVillage_info/fixedAssets.js
index f49895d9..b7bd6428 100644
--- a/src/api/sunVillage_info/fixedAssets.js
+++ b/src/api/sunVillage_info/fixedAssets.js
@@ -425,6 +425,15 @@ export function listOddjob(query) {
})
}
+// 查询零工登记详细
+export function getOddjobDetail(bookId, id) {
+ return request({
+ url: '/open/villageAffairs/public/oddjobDetail',
+ method: 'get',
+ params: {bookId, id},
+ })
+}
+
// 新增零工登记
export function addOddjob(data) {
return request({
diff --git a/src/permission.js b/src/permission.js
index bbae94cc..d3f2d4ce 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -95,7 +95,9 @@ const whiteList = [
'/sunVillage_info/list_finance_detail', //详情页
'/sunVillage_info/list_photo_detail', //详情页
'/sunVillage_info/list_finance_ranking', //详情页
- '/sunVillage_info/list_tourists_ranking', //详情页
+ '/sunVillage_info/list_tourists_ranking', //零工排行榜
+ '/sunVillage_info/list_tourists_ranking_lite', //零工排行榜
+ '/sunVillage_info/list_tourists_registration_detail_visitor', //零工详情页
'/sunVillage_info/login_code', //详情页
'/sunVillage_info/index_code_rights', //详情页
'/sunVillage_info/list_vote', //详情页
diff --git a/src/router/index.js b/src/router/index.js
index 308f244c..0a49b4fd 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -3633,7 +3633,7 @@ export const constantRoutes = [
},
component: (resolve) => require(['@/views/sunVillage_info/list_issues_edit'], resolve)
},
- { ////阳光村务(新)-- 合同信息
+ { ////阳光村务(新)-- 零工公开榜
path: '/sunVillage_info/list_tourists_ranking',
name: 'sunVillageInfoListTouristsRanking',
meta: {
@@ -3642,6 +3642,15 @@ export const constantRoutes = [
},
component: (resolve) => require(['@/views/sunVillage_info/list_tourists_ranking'], resolve)
},
+ { ////阳光村务(新)-- 零工公开榜(精简)
+ path: '/sunVillage_info/list_tourists_ranking_lite',
+ name: 'sunVillageInfoListTouristsRankingLite',
+ meta: {
+ title: '零工公式公布榜',
+ hidden: true,
+ },
+ component: (resolve) => require(['@/views/sunVillage_info/list_tourists_ranking_lite'], resolve)
+ },
{ ////阳光村务(新)-- 零工登记
path: '/sunVillage_info/list_tourists_registration',
name: 'sunVillageInfoListTouristsRegistration',
@@ -3669,6 +3678,15 @@ export const constantRoutes = [
},
component: (resolve) => require(['@/views/sunVillage_info/list_tourists_registration_detail'], resolve)
},
+ { ////阳光村务(新)-- 零工登记详情(游客)
+ path: '/sunVillage_info/list_tourists_registration_detail_visitor',
+ name: 'sunVillageInfoListTouristsRegistrationDetailVisitor',
+ meta: {
+ title: '查看零工登记',
+ hidden: true,
+ },
+ component: (resolve) => require(['@/views/sunVillage_info/list_tourists_registration_detail_visitor'], resolve)
+ },
{ ////阳光村务(新)-- 零工登记修改
path: '/sunVillage_info/list_tourists_registration_edit',
name: 'sunVillageInfoListTouristsRegistrationEdit',
diff --git a/src/views/sunVillage_info/list_tourists.vue b/src/views/sunVillage_info/list_tourists.vue
index 07f9a5a4..0486bebb 100644
--- a/src/views/sunVillage_info/list_tourists.vue
+++ b/src/views/sunVillage_info/list_tourists.vue
@@ -102,11 +102,13 @@
showBtn:true,
nowYear:new Date().getFullYear(),
yearList:[],
+ visitor: false,
};
},
created() {
this.queryParams.bookId = Cookies.get('bookId');
this.queryParams.deptId = Cookies.get('deptId');
+ this.visitor = this.$route.query.type == 'code';
if (this.$route.query.type == 'code'){
this.showBtn = false;
}
@@ -187,7 +189,8 @@
this.$router.push({path:'/sunVillage_info/list_tourists_edit',query: {id:id,type:'finance'}})
},
goRanking(id,time){
- this.$router.push({path:'/sunVillage_info/list_tourists_ranking',query: {id:id,time:time}})
+ const url = this.visitor ? '/sunVillage_info/list_tourists_ranking_lite' : '/sunVillage_info/list_tourists_ranking';
+ this.$router.push({path:url,query: {id:id,time:time}})
},
goRemove(id){
this.$dialog.alert({
diff --git a/src/views/sunVillage_info/list_tourists_ranking.vue b/src/views/sunVillage_info/list_tourists_ranking.vue
index 4c1c7ae6..cce95d2f 100644
--- a/src/views/sunVillage_info/list_tourists_ranking.vue
+++ b/src/views/sunVillage_info/list_tourists_ranking.vue
@@ -121,7 +121,7 @@
},
viewItem(id){
this.$router.push({
- path: "/sunVillage_info/list_tourists_registration_detail",
+ path: "/sunVillage_info/list_tourists_registration_detail_visitor",
query: {
id: id,
intent: 'view',
diff --git a/src/views/sunVillage_info/list_tourists_ranking_lite.vue b/src/views/sunVillage_info/list_tourists_ranking_lite.vue
new file mode 100644
index 00000000..49906e35
--- /dev/null
+++ b/src/views/sunVillage_info/list_tourists_ranking_lite.vue
@@ -0,0 +1,369 @@
+
+
+
+
+
{{deptName}}{{yearMonth[0]}}年{{yearMonth[1]}}月份
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sunVillage_info/list_tourists_registration_detail.vue b/src/views/sunVillage_info/list_tourists_registration_detail.vue
index 109b17a4..b7026d48 100644
--- a/src/views/sunVillage_info/list_tourists_registration_detail.vue
+++ b/src/views/sunVillage_info/list_tourists_registration_detail.vue
@@ -50,7 +50,7 @@
+
From b16e2b44cf822ccae5ef5d19ecc17fd55d353886 Mon Sep 17 00:00:00 2001
From: zhaodengke
Date: Wed, 16 Oct 2024 15:02:21 +0800
Subject: [PATCH 08/10] =?UTF-8?q?Task=20=E9=9B=B6=E5=B7=A5=E4=BA=8B?=
=?UTF-8?q?=E9=A1=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/sunVillage_info/subcontract.js | 19 +++++++++++++++++++
.../list_tourists_ranking_lite.vue | 12 ++++++------
...t_tourists_registration_detail_visitor.vue | 5 +++--
3 files changed, 28 insertions(+), 8 deletions(-)
create mode 100644 src/api/sunVillage_info/subcontract.js
diff --git a/src/api/sunVillage_info/subcontract.js b/src/api/sunVillage_info/subcontract.js
new file mode 100644
index 00000000..91ac0f9d
--- /dev/null
+++ b/src/api/sunVillage_info/subcontract.js
@@ -0,0 +1,19 @@
+import request from '@/utils/request'
+
+// 查询零工事项列表
+export function registrationList(query) {
+ return request({
+ url: '/open/villageAffairs/public/registrationList',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询零工事项详细
+export function registrationDetail(bookId, id) {
+ return request({
+ url: '/open/villageAffairs/public/registrationDetail',
+ method: 'get',
+ params: {bookId, id},
+ })
+}
diff --git a/src/views/sunVillage_info/list_tourists_ranking_lite.vue b/src/views/sunVillage_info/list_tourists_ranking_lite.vue
index 49906e35..6dbb7a22 100644
--- a/src/views/sunVillage_info/list_tourists_ranking_lite.vue
+++ b/src/views/sunVillage_info/list_tourists_ranking_lite.vue
@@ -19,8 +19,8 @@
@load="getList('+1')"
>
-