|
@@ -5,8 +5,8 @@
|
|
<div class="page-form-title-box">
|
|
<div class="page-form-title-box">
|
|
<el-form :model="queryParams" class="form-box" ref="queryForm"
|
|
<el-form :model="queryParams" class="form-box" ref="queryForm"
|
|
:inline="true" style="width:100%;">
|
|
:inline="true" style="width:100%;">
|
|
- <el-form-item label="" prop="queryParamsData2">
|
|
|
|
- <el-select v-model="queryParams.queryParamsData2" placeholder="请选择状态" style="width: 200px">
|
|
|
|
|
|
+ <el-form-item label="" prop="isStart">
|
|
|
|
+ <el-select v-model="queryParams.isStart" placeholder="请选择状态" style="width: 200px">
|
|
<el-option
|
|
<el-option
|
|
v-for="dict in optionList"
|
|
v-for="dict in optionList"
|
|
:key="dict.value"
|
|
:key="dict.value"
|
|
@@ -15,20 +15,20 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="queryParamsData3">
|
|
|
|
- <el-select v-model="queryParams.queryParamsData3" placeholder="请选择部门" style="width: 200px">
|
|
|
|
|
|
+ <el-form-item label="" prop="deptId">
|
|
|
|
+ <el-select v-model="queryParams.deptId" placeholder="请选择二级单位" style="width: 200px">
|
|
<el-option
|
|
<el-option
|
|
v-for="dict in sectionOptionList"
|
|
v-for="dict in sectionOptionList"
|
|
- :key="dict.value"
|
|
|
|
- :label="dict.label"
|
|
|
|
- :value="dict.value"
|
|
|
|
|
|
+ :key="dict.deptId"
|
|
|
|
+ :label="dict.deptName"
|
|
|
|
+ :value="dict.deptId"
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="queryParamsData1">
|
|
|
|
|
|
+ <el-form-item label="" prop="searchValue">
|
|
<el-input
|
|
<el-input
|
|
maxLength="30"
|
|
maxLength="30"
|
|
- v-model="queryParams.queryParamsData1"
|
|
|
|
|
|
+ v-model="queryParams.searchValue"
|
|
placeholder="课题名称/负责人/成员"
|
|
placeholder="课题名称/负责人/成员"
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
/>
|
|
/>
|
|
@@ -47,12 +47,12 @@
|
|
</div>
|
|
</div>
|
|
<div class="page-content-box">
|
|
<div class="page-content-box">
|
|
<el-table class="table-box" v-loading="loading" border :data="dataList">
|
|
<el-table class="table-box" v-loading="loading" border :data="dataList">
|
|
- <el-table-column label="课题组" prop="name" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="负责人" prop="content" width="180" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="联系电话" prop="content" width="150" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="所属部门" prop="content" width="150" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="成员数" prop="content" width="100" show-overflow-tooltip/>
|
|
|
|
- <el-table-column label="状态" prop="state" width="135" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column label="课题组" prop="topicName" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="负责人" prop="userName" width="180" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="联系电话" prop="userPhone" width="150" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="所属部门" prop="deptName" width="150" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="成员数" prop="num" width="100" show-overflow-tooltip/>
|
|
|
|
+ <el-table-column label="状态" prop="isStart" width="135" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-switch
|
|
<el-switch
|
|
@click.native="tableButton(5,scope.row)"
|
|
@click.native="tableButton(5,scope.row)"
|
|
@@ -61,7 +61,7 @@
|
|
:inactive-value="false"
|
|
:inactive-value="false"
|
|
active-color="#0183FA"
|
|
active-color="#0183FA"
|
|
inactive-color="#999"
|
|
inactive-color="#999"
|
|
- v-model="scope.row.state"
|
|
|
|
|
|
+ v-model="scope.row.isStart"
|
|
active-text="启用"
|
|
active-text="启用"
|
|
inactive-text="停用"
|
|
inactive-text="停用"
|
|
disabled
|
|
disabled
|
|
@@ -70,10 +70,10 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="创建时间" prop="createTime" width="180" show-overflow-tooltip>
|
|
<el-table-column label="创建时间" prop="createTime" width="180" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
|
|
|
+ <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="创建人" prop="content" width="150" show-overflow-tooltip/>
|
|
|
|
|
|
+ <el-table-column label="创建人" prop="createByName" width="150" show-overflow-tooltip/>
|
|
<el-table-column label="操作" width="200" show-overflow-tooltip v-if="tableButtonType">
|
|
<el-table-column label="操作" width="200" show-overflow-tooltip v-if="tableButtonType">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="table-button-box">
|
|
<div class="table-button-box">
|
|
@@ -109,9 +109,8 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
- //import { getDicts } from "@/api/commonality/noPermission";
|
|
|
|
- //import { systemUserSelect } from "@/api/commonality/permission";
|
|
|
|
- //import { getInfo } from "@/api/basicsModules/index";
|
|
|
|
|
|
+ import { systemTopicList,systemTopicAdd,systemTopicEdit,systemTopicTopicDel,systemTopicEditTopicStart } from "@/api/integratedManagement/index";
|
|
|
|
+ import { getDeptDropList } from "@/api/commonality/permission";
|
|
import importComponent from "@/components/importComponent/importComponent.vue";
|
|
import importComponent from "@/components/importComponent/importComponent.vue";
|
|
import addPage from "./addPage.vue";
|
|
import addPage from "./addPage.vue";
|
|
import listPage from "./listPage.vue";
|
|
import listPage from "./listPage.vue";
|
|
@@ -144,12 +143,12 @@
|
|
queryParams:{
|
|
queryParams:{
|
|
page:1,
|
|
page:1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
- queryParamsData1:"",
|
|
|
|
- queryParamsData2 :null,
|
|
|
|
- queryParamsData3 :null,
|
|
|
|
|
|
+ searchValue:"",
|
|
|
|
+ isStart :null,
|
|
|
|
+ deptId :null,
|
|
},
|
|
},
|
|
//列表数据
|
|
//列表数据
|
|
- dataList:[{}],
|
|
|
|
|
|
+ dataList:[],
|
|
//数据数量
|
|
//数据数量
|
|
total:0,
|
|
total:0,
|
|
//组件传参
|
|
//组件传参
|
|
@@ -160,7 +159,8 @@
|
|
|
|
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
- //this.getList();
|
|
|
|
|
|
+ this.getDeptDropList();
|
|
|
|
+ this.getList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//查询按钮
|
|
//查询按钮
|
|
@@ -173,19 +173,20 @@
|
|
this.$set(this,'queryParams',{
|
|
this.$set(this,'queryParams',{
|
|
page:1,
|
|
page:1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
- queryParamsData1:"",
|
|
|
|
- queryParamsData2 :null,
|
|
|
|
|
|
+ searchValue:"",
|
|
|
|
+ isStart :null,
|
|
|
|
+ deptId :null,
|
|
});
|
|
});
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
//获取数据列表
|
|
//获取数据列表
|
|
getList(){
|
|
getList(){
|
|
- // this.$set(this,'loading',true);
|
|
|
|
- // getListFunction(this.queryParams).then(response => {
|
|
|
|
- // this.$set(this,'loading',false);
|
|
|
|
- // this.$set(this,'dataList',response.data.records);
|
|
|
|
- // this.$set(this,'total',response.data.total);
|
|
|
|
- // });
|
|
|
|
|
|
+ this.$set(this,'loading',true);
|
|
|
|
+ systemTopicList(this.queryParams).then(response => {
|
|
|
|
+ this.$set(this,'dataList',response.data.records);
|
|
|
|
+ this.$set(this,'total',response.data.total);
|
|
|
|
+ this.$set(this,'loading',false);
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//操作按钮
|
|
//操作按钮
|
|
tableButton(type,row){
|
|
tableButton(type,row){
|
|
@@ -202,10 +203,9 @@
|
|
this.$set(this,'propsData',obj);
|
|
this.$set(this,'propsData',obj);
|
|
}else if(type == 3){
|
|
}else if(type == 3){
|
|
//编辑
|
|
//编辑
|
|
- this.$set(this,'pageType',2);
|
|
|
|
let obj = JSON.parse(JSON.stringify(row))
|
|
let obj = JSON.parse(JSON.stringify(row))
|
|
- obj.showType = false;
|
|
|
|
this.$set(this,'propsData',obj);
|
|
this.$set(this,'propsData',obj);
|
|
|
|
+ this.$set(this,'pageType',2);
|
|
}else if(type == 4){
|
|
}else if(type == 4){
|
|
//删除
|
|
//删除
|
|
this.$confirm('是否确认删除?', "警告", {
|
|
this.$confirm('是否确认删除?', "警告", {
|
|
@@ -214,7 +214,7 @@
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(function() {
|
|
}).then(function() {
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- deleteFunction({id:row.id}).then(response => {
|
|
|
|
|
|
+ systemTopicTopicDel({id:row.id}).then(response => {
|
|
self.msgSuccess(response.message)
|
|
self.msgSuccess(response.message)
|
|
self.getList();
|
|
self.getList();
|
|
});
|
|
});
|
|
@@ -228,7 +228,7 @@
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(function() {
|
|
}).then(function() {
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- stateFunction({id:row.id,state:!row.state,}).then(response => {
|
|
|
|
|
|
+ systemTopicEditTopicStart({id:row.id,isStart:!row.isStart,}).then(response => {
|
|
self.msgSuccess(response.message)
|
|
self.msgSuccess(response.message)
|
|
self.getList();
|
|
self.getList();
|
|
});
|
|
});
|
|
@@ -239,6 +239,12 @@
|
|
this.getList();
|
|
this.getList();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ //获取二级单位列表
|
|
|
|
+ getDeptDropList(){
|
|
|
|
+ getDeptDropList({level:2 }).then(response => {
|
|
|
|
+ this.$set(this,'sectionOptionList',response.data);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|