From 483a39ff4d46420856d60bf74d5abf5a501c783e Mon Sep 17 00:00:00 2001 From: yujk <990961482@qq.com> Date: Mon, 2 Aug 2021 10:49:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E6=9D=83=E8=B0=83=E6=9F=A5=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/authenticRight/index.vue | 203 ++++++++++++++++------------- 1 file changed, 116 insertions(+), 87 deletions(-) diff --git a/src/views/authenticRight/index.vue b/src/views/authenticRight/index.vue index 17f6fdbe..5d6ec46f 100644 --- a/src/views/authenticRight/index.vue +++ b/src/views/authenticRight/index.vue @@ -100,18 +100,10 @@ - - - + + +
提交
@@ -354,34 +344,26 @@ -

农村土地承包经营权证

@@ -422,15 +404,14 @@ name="fileTime" label="影像起始时间" label-width="120px" + @click="showPop1" placeholder="影像起始时间" :rules="[{ required: true, message: '请填写影像起始时间' }]" > - + + +
提交
@@ -439,7 +420,7 @@ { if(res.data){ - this.option1=[{ text: '区县', value: 0 }] + this.option1=[{ text: '请选择区县', value: 0 }] res.data.map(item => { this.option1.push({ "text":item.countName,"value": item.countName}) }) @@ -630,12 +629,29 @@ export default { getInfo().then(response => { console.log(response) this.userId = response.user.userId - /* getMember(response.user.userId).then(response => { - console.log(response) - });*/ + this.nickName = response.user.nickName }); }, methods:{ + changeFn(val) { + }, + confirmFn(){ + this.xcdcform.fileTime = getNowFormatDate(this.currentValue) + this.dhdcform.fileTime = getNowFormatDate(this.currentValue) + this.showDate = false; + this.showDate1 = false; + }, + cancelFn(){ + this.showDate = false; + this.showDate1 = false; + } + , + showPop(){ + this.showDate = true; + }, + showPop1(){ + this.showDate1 = true; + }, changeDept(val){ if(val==1){ this.queryParams.countName = this.value1 @@ -644,7 +660,7 @@ export default { this.queryParams.cooperativeName = null listSamplingDept(this.queryParams).then(res => { if(res.data){ - this.option11=[{ text: '乡镇', value: 0 }] + this.option11=[{ text: '请选择乡镇', value: 0 }] res.data.map(item => { this.option11.push({ "text":item.townName,"value": item.townName}) }) @@ -660,7 +676,7 @@ export default { this.queryParams.cooperativeName = null listSamplingDept(this.queryParams).then(res => { if(res.data){ - this.option2=[{ text: '村级', value: 0 }] + this.option2=[{ text: '请选择村级', value: 0 }] res.data.map(item => { this.option2.push({ "text":item.villageName,"value": item.villageName}) }) @@ -675,7 +691,7 @@ export default { this.queryParams.cooperativeName = null listSamplingDept(this.queryParams).then(res => { if(res.data){ - this.option22=[{ text: '合作社', value: 0 }] + this.option22=[{ text: '请选择合作社', value: 0 }] res.data.map(item => { this.option22.push({ "text":item.cooperativeName,"value": item.cooperativeName}) }) @@ -692,21 +708,20 @@ export default { } }, reset(){ - this.queryParams = { - // 分页 + this.queryform={ pageNum: 1, - pageSize: 10, - // 查询排序 - //orderByColumn: "id", - //isAsc: "desc", - countName: null, - townName: null, - villageName: null, - cooperativeName: null, - farmerName: null, - status: null, - id:null, - }; + pageSize: 10, + // 查询排序 + //orderByColumn: "id", + //isAsc: "desc", + countName: null, + townName: null, + villageName: null, + cooperativeName: null, + farmerName: null, + status: null, + id: null, + } this.xcdcform={ countName: null, townName: null, @@ -778,6 +793,20 @@ export default { }, onClickRight() { this.show = true + this.queryform = { + pageNum: 1, + pageSize: 10, + // 查询排序 + //orderByColumn: "id", + //isAsc: "desc", + countName: null, + townName: null, + villageName: null, + cooperativeName: null, + farmerName: null, + status: null, + id: null, + } }, onSearch() { @@ -824,7 +853,6 @@ export default { /** 判断是否有证书 */ haveCertificate(id){ if(id == "1"){ - console.log(this.xcdcform.item1); if(this.xcdcform.item1=='N'){ this.xcdcform.item2 = 'N' this.xcdcform.item3 = 'N' @@ -841,7 +869,6 @@ export default { this.xcdcform.item9 = null } }if(id == "2") { - console.log(this.xcdcform.item10); if(this.xcdcform.item10=='N'){ this.xcdcform.item11 = 'N' this.xcdcform.item12 = 'N' @@ -898,6 +925,8 @@ export default { this.xcdcform["farmerName"] = data.farmerName this.xcdcform["samplingId"] = data.id this.xcdcform["fileName"] = data.townName+data.villageName + this.xcdcform["checkedBy"] = this.nickName + this.xcdcform["fileTime"] = getNowFormatDate() } }) @@ -922,15 +951,16 @@ export default { this.dhdcform["farmerName"] = data.farmerName this.dhdcform["samplingId"] = data.id this.dhdcform["fileName"] = data.townName+data.villageName + this.dhdcform["checkedBy"] = this.nickName + this.dhdcform["fileTime"] = getNowFormatDate() } }) } }, onSubmit(values) { - this.queryParams = values - this.queryParams["createBy"] = this.userId - this.queryParams["createTime"] = "2020-01-01 00:00:00" - addSampling(values).then(res => { + this.queryform["createBy"] = this.userId + this.queryform["createTime"] = getNowFormatDate() + addSampling(this.queryform).then(res => { console.log(res) this.show = false this.getList(); @@ -938,9 +968,9 @@ export default { }, onSubmitXCDC(values) { this.xcdcform["createBy"] = this.userId - this.xcdcform["createTime"] = "2020-01-01 00:00:00" + this.xcdcform["createTime"] = getNowFormatDate() this.xcdcform["updateBy"] = this.userId - this.xcdcform["updateTime"] = "2020-01-01 00:00:00" + this.xcdcform["updateTime"] = getNowFormatDate() let i = 0 if(this.xcdcform.item1=='N'){ i++ @@ -978,7 +1008,6 @@ export default { this.xcdcform["lackCount"] = i if(this.xcdcform.id){ updateInvestigate(this.xcdcform).then(res => { - console.log(res) this.showXCDC = false let _this = this this.xcdcform.status = "2" @@ -1017,9 +1046,9 @@ export default { }}, onSubmitDHDC(values) { this.dhdcform["createBy"] = this.userId - this.dhdcform["createTime"] = "2020-01-01 00:00:00" + this.dhdcform["createTime"] = getNowFormatDate() this.dhdcform["updateBy"] = this.userId - this.dhdcform["updateTime"] = "2020-01-01 00:00:00" + this.dhdcform["updateTime"] = getNowFormatDate() console.log(this.dhdcform) if(this.dhdcform.id){ updateInvestigate(this.dhdcform).then(res => {