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

学期报告静态页面update

上级 0cddd4f3
...@@ -2,57 +2,49 @@ ...@@ -2,57 +2,49 @@
<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"
></el-cascader> filterable
</el-form-item> change-on-select
</el-col> style="width:330px"
<el-col :span="6"> ></el-cascader>
<el-form-item label="选择日期:"> </el-form-item>
<el-date-picker <el-form-item label="选择机构:">
v-model="formInline.date" <el-select
size="small" size="small"
type="daterange" v-model="formInline.organization"
placeholder="请选择开始时间" placeholder="请选择发布状态"
range-separator="~" @change="changeOrganization"
value-format="yyyy-MM-dd 00:00:00" multiple
></el-date-picker> collapse-tags
</el-form-item> style="width:330px"
</el-col> >
<el-col :span="8" style="padding:0;text-align:right;padding-right:15px;"> <el-option
<el-button type="default" size="small" @click="reset">重置</el-button> v-for="item in organizationList"
<el-button type="primary" size="small" @click="search" style="margin-left:0;">查询</el-button> :key="item.value"
</el-col> :label="item.label"
</el-form> :value="item.value"
</el-row> ></el-option>
<el-row> </el-select>
<el-col :span="5"> </el-form-item>
<el-form ref="formInline" :model="formInline" label-width="75px" style="width:100%;"> <div class="choose">{{ chooseOrganization }}</div>
<el-form-item label="选择机构:"> <el-tag
<el-select v-for="tag in tags"
size="small" :key="tag.name"
v-model="formInline.organization" closable>
placeholder="请选择发布状态" {{ tag }}
@change="changeOrganization" </el-tag>
> <el-form-item label="">
<el-option <el-checkbox size="small" v-model="formInline.checked">查看原始数据</el-checkbox>
v-for="item in organizationList" </el-form-item>
:key="item.value" </el-form>
:label="item.label" <!-- <div class="choose">{{ chooseOrganization }}</div> -->
:value="item.value"
></el-option>
</el-select>
</el-form-item>
</el-form>
</el-col>
</el-row>
<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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册