10 Commits

3 changed files with 7 additions and 2 deletions
Split View
  1. +3
    -0
      .env.production
  2. +3
    -2
      src/views/login/index.vue
  3. +1
    -0
      src/views/questionnaire/survey.vue

+ 3
- 0
.env.production View File

@ -2,4 +2,7 @@
VUE_APP_ENV = '物业'
NODE_ENV = 'production'
# base api
# 正式环境
VUE_APP_BASE_API = 'http://8.140.133.55:8096'
# 测试环境
# VUE_APP_BASE_API = 'http://8.140.133.55:8090'

+ 3
- 2
src/views/login/index.vue View File

@ -79,7 +79,7 @@ export default {
loginForm: {
userid: '',
password: '',
pid: 100
pid: ""
},
loginRules: {
pid: [{ required: true, trigger: 'blur', message: '不能为空' }],
@ -123,7 +123,8 @@ export default {
getPlants() {
getCourts().then((res) => {
if (res.code === 200) {
this.options = res.data
this.options = res.data || [];
this.loginForm.pid = this.options[0].cid || "";
localStorage.setItem('cid', JSON.stringify(this.options))
}
})


+ 1
- 0
src/views/questionnaire/survey.vue View File

@ -17,6 +17,7 @@
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="dataList" border>
<el-table-column :label="getColumnName('surveysheetid')" align="center" prop="surveysheetid" width="120" />
<el-table-column :label="getColumnName('descr')" align="center" prop="descr" width="120" show-overflow-tooltip />
<el-table-column :label="getColumnName('surveyyear')" align="center" prop="surveyyear" width="100" />
<el-table-column :label="getColumnName('surveydate')" prop="surveydate" align="center" width="100" />


Loading…
Cancel
Save