提交 6ab6763c 编写于 作者: zhentian.jia's avatar zhentian.jia

UI样式调整

上级 25ff87f6
...@@ -142,7 +142,10 @@ export default { ...@@ -142,7 +142,10 @@ export default {
}, },
search() { search() {
if (vm.formInline.region.length == 0) { if (vm.formInline.region.length == 0) {
vm.$message("请选择地区"); const h = this.$createElement;
vm.$message({
message: h('p', { style: 'color: #FF3399' }, '请先选择地区后再进行查询 ')
});
return; return;
} }
let checkAll = operationData.hasAll(vm.formInline.organization) let checkAll = operationData.hasAll(vm.formInline.organization)
......
...@@ -93,7 +93,10 @@ export default { ...@@ -93,7 +93,10 @@ export default {
methods: { methods: {
search() { search() {
if (vm.formInline.region.length == 0) { if (vm.formInline.region.length == 0) {
vm.$message("请选择地区"); const h = this.$createElement;
vm.$message({
message: h('p', { style: 'color: #FF3399' }, '请先选择地区后再进行查询 ')
});
return; return;
} }
let checkAll = operationData.hasAll(vm.formInline.organization); let checkAll = operationData.hasAll(vm.formInline.organization);
......
...@@ -129,7 +129,10 @@ export default { ...@@ -129,7 +129,10 @@ export default {
// 搜索列表 // 搜索列表
search() { search() {
if (vm.formInline.region.length == 0) { if (vm.formInline.region.length == 0) {
vm.$message("请选择地区"); const h = this.$createElement;
vm.$message({
message: h('p', { style: 'color: #FF3399' }, '请先选择地区后再进行查询 ')
});
return; return;
} }
let checkAll = operationData.hasAll(vm.formInline.organization) let checkAll = operationData.hasAll(vm.formInline.organization)
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<el-select <el-select
size="small" size="small"
v-model="formInline.organization" v-model="formInline.organization"
placeholder="请选择机构" :placeholder="organizationNotice"
@change="changeOrganization" @change="changeOrganization"
multiple multiple
collapse-tags collapse-tags
...@@ -194,6 +194,7 @@ export default { ...@@ -194,6 +194,7 @@ export default {
pageNo: 1, pageNo: 1,
pageSize: 20 pageSize: 20
}, },
organizationNotice: '选择地区筛选到区才能选择机构',
dialogData: { dialogData: {
region: "", region: "",
// regionData: "", // regionData: "",
...@@ -280,6 +281,9 @@ export default { ...@@ -280,6 +281,9 @@ export default {
// console.log('region',value,vm.formInline); // console.log('region',value,vm.formInline);
if (value.length >= 3) { if (value.length >= 3) {
this.getOrganizationList(); this.getOrganizationList();
this.organizationNotice = "请选择机构";
} else {
this.organizationNotice = "选择地区筛选到区才能选择机构";
} }
}, },
setMoreOption(data, type) { setMoreOption(data, type) {
...@@ -472,7 +476,10 @@ export default { ...@@ -472,7 +476,10 @@ export default {
}, },
exportExcel() { exportExcel() {
if (vm.formInline.region.length == 0) { if (vm.formInline.region.length == 0) {
vm.$message("请选择地区"); const h = this.$createElement;
vm.$message({
message: h('p', { style: 'color: #FF3399' }, '请先选择地区后再进行导出 ')
});
return; return;
} }
//按钮置灰三秒 //按钮置灰三秒
...@@ -533,7 +540,10 @@ export default { ...@@ -533,7 +540,10 @@ export default {
}, },
changeDate() { changeDate() {
if (vm.formInline.region.length == 0) { if (vm.formInline.region.length == 0) {
vm.$message("请选择地区"); const h = this.$createElement;
vm.$message({
message: h('p', { style: 'color: #FF3399' }, '请先选择地区后再进行修改 ')
});
return; return;
} }
this.setDialogData(); this.setDialogData();
......
...@@ -109,7 +109,10 @@ export default { ...@@ -109,7 +109,10 @@ export default {
search() { search() {
if (vm.formInline.region.length == 0) { if (vm.formInline.region.length == 0) {
vm.$message("请选择地区"); const h = this.$createElement;
vm.$message({
message: h('p', { style: 'color: #FF3399' }, '请先选择地区后再进行查询 ')
});
return; return;
} }
let checkAll = operationData.hasAll(vm.formInline.organization) let checkAll = operationData.hasAll(vm.formInline.organization)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册