ソースを参照

宅基地调查优化

rongxin_prod
Xyq123* 1年前
コミット
fadcb77c23
4個のファイルの変更13行の追加5行の削除
  1. +2
    -0
      src/store/modules/user.js
  2. +4
    -1
      src/views/homesteadSurvey/index.vue
  3. +5
    -4
      src/views/homesteadSurvey/nmfwAdd.vue
  4. +2
    -0
      src/views/homesteadSurvey/zrzAdd.vue

+ 2
- 0
src/store/modules/user.js ファイルの表示

@@ -74,6 +74,7 @@ const user = {
commit('SET_TOKEN', res.token)
getInfo(res.token).then(response => {
const user = response.user
console.info(user.nickName);
// const avatar = user.avatar == "" ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar;
const avatar = "";
if (response.roles && response.roles.length > 0) { // 验证返回的roles是否是一个非空数组
@@ -180,6 +181,7 @@ const user = {
logout(state.token).then(() => {
commit('SET_TOKEN', '')
commit('SET_businessLevel', '')
commit('SET_NICKNAME', '')
commit('SET_ROLES', [])
commit('SET_PERMISSIONS', [])
removeToken()


+ 4
- 1
src/views/homesteadSurvey/index.vue ファイルの表示

@@ -223,9 +223,12 @@
userList().then(response => {
this.taskExecutortions = response.data
})
console.info(this.checked);
if(this.checked){
let userId = this.$store.getters.userId;
this.nickName = this.$store.getters.nickName;
setTimeout(() => {
this.nickName = this.$store.state.user.nickName;
},1000)
this.$set(this.queryParams, "rwzxr", userId);
this.getList();
}else{


+ 5
- 4
src/views/homesteadSurvey/nmfwAdd.vue ファイルの表示

@@ -580,12 +580,12 @@ export default {
this.permission = localStorage.getItem("executePermission");
this.zjdzdxxItem = JSON.parse(localStorage.getItem("zjdzdxxItem"));
if(this.form.id == null){
this.$set(this.form, 'hx', "01");
this.$set(this.form, 'hx', "03");
this.$set(this.form, 'hxjg', "01");
this.$set(this.form, 'fwlx', "01");
this.$set(this.form, 'fwxz', "6");
this.$set(this.form, 'fwjg', "01");
this.$set(this.form, 'sjly', "01");
this.$set(this.form, 'fwxz', "10");
this.$set(this.form, 'fwjg', "02");
this.$set(this.form, 'sjly', "04");
this.$set(this.form, 'sffz', "0");
this.$set(this.form, 'sfjf', "0");
this.$set(this.form, 'sfcf', "0");
@@ -595,6 +595,7 @@ export default {
this.$set(this.form, 'fwzt', "01");
this.$set(this.form, 'fwyt', "10");
this.$set(this.form, 'sfytrgy', "0");
this.$set(this.form, 'sjcs', 1);
}else{
if(this.form.sffz === "1"){
this.showFzxx = true;


+ 2
- 0
src/views/homesteadSurvey/zrzAdd.vue ファイルの表示

@@ -167,6 +167,8 @@
placeholder="请选择数据来源"
remote-url="/open/zdzh/list/sjly"
:on-remote-response="'data'"
:rules="[{ required: true }]"
required
/>
<van-field
input-align="right"


読み込み中…
キャンセル
保存