Sfoglia il codice sorgente

内蒙宅基地

zhijidi_new
Xyq123* 2 anni fa
parent
commit
ea87f24cdb
3 ha cambiato i file con 14 aggiunte e 16 eliminazioni
  1. +0
    -8
      src/api/login/index.js
  2. +3
    -1
      src/views/sunVillage_info/homeApplication/applicationList.vue
  3. +11
    -7
      src/views/sunVillage_info/homeApplication/proposerLite.vue

+ 0
- 8
src/api/login/index.js Vedi File

@@ -1,7 +1,4 @@
import request from '@/utils/request' import request from '@/utils/request'
import { encrypt } from '@/utils/jsencrypt' // 公钥,私钥都声明在里面

const VUE_APP_ENABLE_SECRET = true; // 登录账密凭据加密


// 登录方法 // 登录方法
export function login(username, password, code, uuid) { export function login(username, password, code, uuid) {
@@ -11,11 +8,6 @@ export function login(username, password, code, uuid) {
code, code,
uuid uuid
} }
if(VUE_APP_ENABLE_SECRET)
{
data.username = encrypt(username);
data.password = encrypt(password);
}
return request({ return request({
url: '/login', url: '/login',
method: 'post', method: 'post',


+ 3
- 1
src/views/sunVillage_info/homeApplication/applicationList.vue Vedi File

@@ -81,6 +81,7 @@ export default {
finished: false, finished: false,
refreshing: false, refreshing: false,
deptId:null, deptId:null,
idcard:null,
total: 0, total: 0,
queryParams:{ queryParams:{
pageNum:1, pageNum:1,
@@ -95,7 +96,8 @@ export default {
this.houseGetDicts("home_stage_status").then((response) => { this.houseGetDicts("home_stage_status").then((response) => {
this.houseApplyStatus = response.data; this.houseApplyStatus = response.data;
}); });
this.deptId = Cookies.get('deptId')
this.deptId = Cookies.get('deptId');
this.idcard = Cookies.get('idcard');
this.$set(this.queryParams, "deptId", this.deptId); this.$set(this.queryParams, "deptId", this.deptId);
this.$set(this.queryParams, "sqhhzsfzh", this.idcard); this.$set(this.queryParams, "sqhhzsfzh", this.idcard);
this.getList(); this.getList();


+ 11
- 7
src/views/sunVillage_info/homeApplication/proposerLite.vue Vedi File

@@ -2087,7 +2087,7 @@ export default {
this.sysFarmer = JSON.parse(Cookies.get('user')); this.sysFarmer = JSON.parse(Cookies.get('user'));
listHomeapplytype({deptId:this.sysFarmer.deptId}).then(response => { listHomeapplytype({deptId:this.sysFarmer.deptId}).then(response => {
let _this = this; let _this = this;
_this.tytzList = response.rows;
_this.tytzList = response.rows;;
}); });
} }
console.info( this.sysFarmer); console.info( this.sysFarmer);
@@ -2122,8 +2122,10 @@ export default {
allInformationWLHT(this.id).then(response => { allInformationWLHT(this.id).then(response => {
listHomeapplytype({deptId: response.data.deptId}).then(res => { listHomeapplytype({deptId: response.data.deptId}).then(res => {
this.tytzList = res.rows; this.tytzList = res.rows;
console.info(this.tytzList);
for (let i = 0; i < this.tytzList.length; i++) { for (let i = 0; i < this.tytzList.length; i++) {
//_this.infoList[i].push({text: response.rows[i].name, value: response.rows[i].code}); //_this.infoList[i].push({text: response.rows[i].name, value: response.rows[i].code});
this.$set(this.tytzList[i], "tytzId", this.tytzList[i].id);
if(this.tytzList[i].id = response.data.tyhxt){ if(this.tytzList[i].id = response.data.tyhxt){
this.tytzName = this.tytzList[i].name; this.tytzName = this.tytzList[i].name;
} }
@@ -2143,8 +2145,10 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
let map = this.$refs.pointDarwMap; let map = this.$refs.pointDarwMap;
if(data === null) if(data === null)
if( this.applicationDetail.ydjfkg !== null){
data = this.applicationDetail.ydjfkg.theGeomJson; data = this.applicationDetail.ydjfkg.theGeomJson;
this.setMapData(map, data);
this.setMapData(map, data);
}
}); });
}, },
// 绘制验收地图 // 绘制验收地图
@@ -3563,11 +3567,11 @@ export default {
return; return;
} else { } else {
setTimeout(() => { setTimeout(() => {
saveHomeBaseInfo(_this.applicationDetail).then((response) => {
_this.complete(pass, comment);
saveHomeBaseInfo(this.applicationDetail).then((response) => {
this.complete(pass, comment);
}).catch(resp => { }).catch(resp => {
_this.notify(msg, 'danger');
_this.notify("保存失败!", 'danger');
this.notify(msg, 'danger');
this.notify("保存失败!", 'danger');
}); });
}, 500); }, 500);
} }
@@ -4663,7 +4667,7 @@ export default {
return false; return false;
}, },
onConfirmTytz(val){ onConfirmTytz(val){
this.$set(this.applicationDetail, 'tyhxt', val.value);
this.$set(this.applicationDetail, 'tyhxt', val.tytzId);
this.tytzName = val.name; this.tytzName = val.name;
this.showTyt = false; this.showTyt = false;
}, },


Caricamento…
Annulla
Salva