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

学期报告静态页面update

上级 0cddd4f3
...@@ -2,44 +2,28 @@ ...@@ -2,44 +2,28 @@
<div class="course-analysis-wrap"> <div class="course-analysis-wrap">
<bread-crumb :curmbFirst="curmbFirst" :curmbSecond="curmbSecond"></bread-crumb> <bread-crumb :curmbFirst="curmbFirst" :curmbSecond="curmbSecond"></bread-crumb>
<div class="component-content screenSet" id="screenSet"> <div class="component-content screenSet" id="screenSet">
<el-row :gutter="30" class="row" type="flex" style="margin-top: 10px;">
<el-form ref="formInline" :model="formInline" label-width="75px" style="width:100%;"> <el-form ref="formInline" :model="formInline" label-width="80px">
<el-col :span="5">
<el-form-item label="选择地区:"> <el-form-item label="选择地区:">
<el-cascader <el-cascader
size="small"
:options="optionsRegion" :options="optionsRegion"
v-model="formInline.region" v-model="formInline.region"
@change="handleChange" @change="handleChange"
filterable
change-on-select
style="width:330px"
></el-cascader> ></el-cascader>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="选择日期:">
<el-date-picker
v-model="formInline.date"
size="small"
type="daterange"
placeholder="请选择开始时间"
range-separator="~"
value-format="yyyy-MM-dd 00:00:00"
></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8" style="padding:0;text-align:right;padding-right:15px;">
<el-button type="default" size="small" @click="reset">重置</el-button>
<el-button type="primary" size="small" @click="search" style="margin-left:0;">查询</el-button>
</el-col>
</el-form>
</el-row>
<el-row>
<el-col :span="5">
<el-form ref="formInline" :model="formInline" label-width="75px" style="width:100%;">
<el-form-item label="选择机构:"> <el-form-item label="选择机构:">
<el-select <el-select
size="small" size="small"
v-model="formInline.organization" v-model="formInline.organization"
placeholder="请选择发布状态" placeholder="请选择发布状态"
@change="changeOrganization" @change="changeOrganization"
multiple
collapse-tags
style="width:330px"
> >
<el-option <el-option
v-for="item in organizationList" v-for="item in organizationList"
...@@ -49,10 +33,18 @@ ...@@ -49,10 +33,18 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form>
</el-col>
</el-row>
<div class="choose">{{ chooseOrganization }}</div> <div class="choose">{{ chooseOrganization }}</div>
<el-tag
v-for="tag in tags"
:key="tag.name"
closable>
{{ tag }}
</el-tag>
<el-form-item label="">
<el-checkbox size="small" v-model="formInline.checked">查看原始数据</el-checkbox>
</el-form-item>
</el-form>
<!-- <div class="choose">{{ chooseOrganization }}</div> -->
<div class="button-group"> <div class="button-group">
<el-button type="default" size="small" @click="exportExcel">导出Excel</el-button> <el-button type="default" size="small" @click="exportExcel">导出Excel</el-button>
<el-button type="default" size="small" @click="changeDate" v-if="activeName=='first'">数据调整</el-button> <el-button type="default" size="small" @click="changeDate" v-if="activeName=='first'">数据调整</el-button>
...@@ -110,13 +102,17 @@ export default { ...@@ -110,13 +102,17 @@ export default {
curmbFirst: "学情报告", curmbFirst: "学情报告",
curmbSecond: "项目列表", curmbSecond: "项目列表",
organizationList: [ organizationList: [
{
label: '全部',
value: 0,
},
{ {
label: "西湖区第二人民医院", label: "西湖区第二人民医院",
value: "1" value: 1,
}, },
{ {
label: "杭州市中医院", label: "杭州市中医院",
value: "2" value: 2,
} }
], ],
chooseOrganization: "", chooseOrganization: "",
...@@ -124,18 +120,18 @@ export default { ...@@ -124,18 +120,18 @@ export default {
formInline: { formInline: {
region: [], region: [],
date: "", date: "",
organization: "", organization: [],
checked: false,
pageNo: 1, pageNo: 1,
pageSize: 10 pageSize: 10
}, },
activeName: "first" tags: [],
activeName: "first",
}; };
}, },
computed: { computed: {
...mapGetters([ ...mapGetters([
"_token" "_token"
// "idType",
// "masterAdministratorFlag"
]) ])
}, },
created() { created() {
...@@ -158,9 +154,16 @@ export default { ...@@ -158,9 +154,16 @@ export default {
console.log(value); console.log(value);
}, },
changeOrganization(value) { changeOrganization(value) {
console.log(value);
this.chooseOrganization = "";
this.tags = [];
for (let i = 0; i < this.organizationList.length; i++) { for (let i = 0; i < this.organizationList.length; i++) {
if (value == this.organizationList[i].value) { for(let j=0; j<value.length;j++) {
this.chooseOrganization = this.organizationList[i].label; if (value[j] == this.organizationList[i].value) {
console.log('value[j]',j,value[j],this.organizationList[i].label )
this.chooseOrganization += this.organizationList[i].label + ' ';
this.tags.push(this.organizationList[i].label);
}
} }
} }
}, },
......
...@@ -111,6 +111,7 @@ export default { ...@@ -111,6 +111,7 @@ export default {
tableData: [ tableData: [
// table数据 // table数据
{ {
id: 53,
name: "one", name: "one",
status: 1, status: 1,
startTime: 1561707289000, startTime: 1561707289000,
...@@ -171,7 +172,7 @@ export default { ...@@ -171,7 +172,7 @@ export default {
}, },
//跳转到报告详情页 //跳转到报告详情页
go(row) { go(row) {
vm.$router.push({path:"/item-list",params: row}) vm.$router.push({path:"/item-list?id=" + row.id ,params: row})
} }
} }
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册