| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.getDyColumn() |
| | | if (this.$route.path.concat("equipment")) { |
| | | this.getDyColumn() |
| | | } |
| | | if (this.showColumnsType == 'transfer') { |
| | | // 显隐列初始默认隐藏列 |
| | | for (let item in this.columns) { |
| | |
| | | }, |
| | | methods: { |
| | | getDyColumn() { |
| | | if (this.$route.path.concat("equipment")) { |
| | | // 查询动态列 |
| | | let params = { |
| | | tableName: 't_monitor' |
| | | } |
| | | getDynamicColumnList(params).then(res => { |
| | | this.dynamicColumnList = res.data |
| | | }) |
| | | // 查询动态列 |
| | | let params = { |
| | | tableName: 't_monitor' |
| | | } |
| | | getDynamicColumnList(params).then(res => { |
| | | this.dynamicColumnList = res.data |
| | | }) |
| | | }, |
| | | addDynamicColumn() { |
| | | this.showDynamicColumn = true |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <el-dialog title="为了您的账号安全,首次登陆请修改密码" :visible.sync="loginInfo.firstLogin == 0"> |
| | | <el-dialog title="为了您的账号安全,首次登陆请修改密码" :modal="false" width="500px" :visible.sync="loginInfo.firstLogin == 0"> |
| | | <el-form> |
| | | <el-form-item label="新密码"> |
| | | <el-input v-model="newPassword" autocomplete="off"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="请确认密码"> |
| | | <el-input v-model="confirmPassword" autocomplete="off"></el-input> |
| | | <el-input v-model="newPassword" show-password autocomplete="off"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | <el-input v-model="form.unitName" placeholder="请输入单位名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="单位账号" prop="unitAdminAccount"> |
| | | <el-input v-model="form.unitAdminAccount" placeholder="请输入单位管理员账号" :disabled="account" /> |
| | | <el-input v-model="form.unitAdminAccount" placeholder="请输入单位账号" :disabled="account" /> |
| | | </el-form-item> |
| | | <el-form-item label="账号密码" prop="password"> |
| | | <el-input v-model="form.password" placeholder="请输入单位账号密码" :disabled="account" /> |
| | | </el-form-item> |
| | | <el-form-item label="单位联系人" prop="unitContact"> |
| | | <el-input v-model="form.unitContact" placeholder="请输入单位联系人" /> |
| | |
| | | { required: true, message: "单位联系人电话不能为空", trigger: "blur" } |
| | | ], |
| | | unitAdminAccount: [ |
| | | { required: true, message: "单位管理员账号不能为空", trigger: "blur" } |
| | | { required: true, message: "单位账号不能为空", trigger: "blur" } |
| | | ], |
| | | password: [ |
| | | { required: true, message: "单位账号密码不能为空", trigger: "blur" } |
| | | ] |
| | | } |
| | | }; |
| | | }, |
| | |
| | | remark: null, |
| | | createTime: null, |
| | | updateTime: null, |
| | | deleted: null |
| | | deleted: null, |
| | | password: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |