维护
This commit is contained in:
parent
9856fbc64a
commit
d7b11a6c0b
@ -5,7 +5,7 @@ VUE_APP_TITLE = 智慧幼儿体质评估与促进系统
|
||||
ENV = 'development'
|
||||
|
||||
# 智慧幼儿体质评估与促进系统/开发环境
|
||||
VUE_APP_BASE_API = 'http://192.168.16.81:8081'
|
||||
VUE_APP_BASE_API = 'https://kindergarten.xinelu.cn'
|
||||
#'/dev-api'
|
||||
|
||||
# 路由懒加载
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
var baseurl = "http://192.168.16.62:8080";
|
||||
var baseurl = "https://kindergarten.xinelu.cn";
|
||||
|
||||
export default baseurl
|
||||
@ -72,8 +72,8 @@ export default {
|
||||
return variables;
|
||||
},
|
||||
},
|
||||
created(){
|
||||
this.info()
|
||||
created() {
|
||||
this.info();
|
||||
},
|
||||
watch: {
|
||||
$route(to, from) {
|
||||
@ -86,9 +86,10 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
info(){
|
||||
console.log(this.$router.path)
|
||||
if (this.$router.path != "/index") {
|
||||
info() {
|
||||
console.log(this.$router.path);
|
||||
console.log(this.$route.path);
|
||||
if (this.$route.path != "/index") {
|
||||
this.show = false;
|
||||
} else {
|
||||
this.show = true;
|
||||
|
||||
@ -175,11 +175,7 @@
|
||||
v-model="form.parentId"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="所属区域"
|
||||
prop="areaId"
|
||||
v-if="List.length != 0 && form.parentId != 0"
|
||||
>
|
||||
<el-form-item label="所属区域" prop="areaId">
|
||||
<el-select
|
||||
v-model="value"
|
||||
placeholder="请选择省"
|
||||
@ -224,23 +220,6 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="所属区域" prop="areaId" v-else>
|
||||
<el-select
|
||||
v-model="form.areaName"
|
||||
placeholder="请选择省"
|
||||
style="width: 380px"
|
||||
disabled
|
||||
>
|
||||
<el-option
|
||||
v-for="item in provincelist"
|
||||
:key="item.areaId"
|
||||
:label="item.name"
|
||||
:value="item.areaId"
|
||||
@click.native="province(item)"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="组织名称" prop="organizeName">
|
||||
<el-input
|
||||
v-model="form.organizeName"
|
||||
@ -416,7 +395,7 @@ export default {
|
||||
province(item) {
|
||||
this.value1 = "";
|
||||
this.value2 = "";
|
||||
this.form.areaId = "";
|
||||
this.form.areaId = item.id;
|
||||
getSubordinateInfo(item.id).then((res) => {
|
||||
this.citylist = res.data;
|
||||
});
|
||||
|
||||
@ -1015,10 +1015,13 @@ export default {
|
||||
//验证身份证
|
||||
var isCardId = (rule, value, callback) => {
|
||||
if (!value) {
|
||||
console.log(value);
|
||||
callback();
|
||||
} else {
|
||||
if (!this.checkSpecialKey(value)) {
|
||||
callback(new Error("不能含有特殊字符!!"));
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user