|
@@ -3,11 +3,7 @@
|
|
|
<TitleBar></TitleBar>
|
|
|
<div class="main-container">
|
|
|
<div class="search-container TableSelectMain">
|
|
|
- <el-form
|
|
|
- class="table-select-main widthAuto"
|
|
|
- :model="searchForm"
|
|
|
- label-position="left"
|
|
|
- >
|
|
|
+ <el-form class="table-select-main widthAuto" :model="searchForm" label-position="left">
|
|
|
<el-row :gutter="15">
|
|
|
<el-col :span="4">
|
|
|
<el-form-item>
|
|
@@ -48,7 +44,7 @@
|
|
|
<!-- <el-button type="primary" round icon="el-icon-plus">新建</el-button> -->
|
|
|
<el-button type="primary" plain round @click="showBatch(1)">批量显示</el-button>
|
|
|
<el-button type="primary" plain round @click="showBatch(0)">批量屏蔽</el-button>
|
|
|
- <!-- <el-button type="primary" plain round>批量删除</el-button> -->
|
|
|
+ <el-button type="primary" plain round @click="batchDelete">批量删除</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -80,7 +76,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="expression" label="诊单标题" min-width="200px;"></el-table-column>
|
|
|
- <el-table-column prop="sessionid" label="会话id" min-width="100px;"></el-table-column>
|
|
|
+ <!-- <el-table-column prop="sessionid" label="会话id" min-width="100px;"></el-table-column> -->
|
|
|
<el-table-column prop="userName" label="发起人" min-width="200px;"></el-table-column>
|
|
|
<el-table-column label="发起时间" min-width="120px;" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">{{ scope.row.createTime | formatTimePipe }}</template>
|
|
@@ -99,13 +95,9 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" min-width="220px;">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- round
|
|
|
- @click="chatShow(scope.row.sessionid, scope.row.createTime)"
|
|
|
- >详情</el-button>
|
|
|
+ <el-button size="mini" type="primary" plain round @click="chatShow(scope.row.sessionid, scope.row.createTime)"
|
|
|
+ >详情</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -154,7 +146,7 @@ export default {
|
|
|
this.queryListData();
|
|
|
},
|
|
|
selectionChange(data) {
|
|
|
- this.ids = data.map(item => {
|
|
|
+ this.ids = data.map((item) => {
|
|
|
return item.id;
|
|
|
});
|
|
|
},
|
|
@@ -176,10 +168,10 @@ export default {
|
|
|
obj.endDate = this.time[1];
|
|
|
}
|
|
|
queryPage(obj)
|
|
|
- .then(res => {
|
|
|
+ .then((res) => {
|
|
|
console.log(res);
|
|
|
- if(res.statusCode == "10"){
|
|
|
- this.$router.replace("/login");
|
|
|
+ if (res.statusCode == '10') {
|
|
|
+ this.$router.replace('/login');
|
|
|
}
|
|
|
this.tableData = res.data.records;
|
|
|
this.total = res.data.total;
|
|
@@ -209,14 +201,14 @@ export default {
|
|
|
statuzChange(id, statuz) {
|
|
|
let obj = {
|
|
|
ids: [id],
|
|
|
- status: statuz
|
|
|
+ status: statuz,
|
|
|
};
|
|
|
useBath(obj)
|
|
|
.then(() => {
|
|
|
this.$message.success('操作成功');
|
|
|
this.queryListData();
|
|
|
})
|
|
|
- .catch(err => err);
|
|
|
+ .catch((err) => err);
|
|
|
},
|
|
|
// 编辑
|
|
|
editformData(data) {
|
|
@@ -225,7 +217,7 @@ export default {
|
|
|
this.$message.success('编辑成功');
|
|
|
this.queryListData();
|
|
|
})
|
|
|
- .catch(err => err);
|
|
|
+ .catch((err) => err);
|
|
|
},
|
|
|
showBatch(status) {
|
|
|
let obj = {
|
|
@@ -238,7 +230,23 @@ export default {
|
|
|
this.$message.success('操作成功');
|
|
|
this.queryListData();
|
|
|
})
|
|
|
- .catch(err => err);
|
|
|
+ .catch((err) => err);
|
|
|
+ },
|
|
|
+ //批量删除
|
|
|
+ batchDelete() {
|
|
|
+ let param = { ids: this.ids };
|
|
|
+
|
|
|
+ this.$confirm('是否删除?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }).then(() => {
|
|
|
+ removeData(param).then(() => {
|
|
|
+ this.$message.success('操作成功');
|
|
|
+ this.queryListData();
|
|
|
+ }).catch((err) => err);;
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
@@ -248,10 +256,10 @@ export default {
|
|
|
</script>
|
|
|
<style lang="stylus" scoped>
|
|
|
.TableSelectMain .el-date-editor.el-input.el-input--prefix.el-input--suffix.el-date-editor--date {
|
|
|
- width: 95%;
|
|
|
+ width: 95%;
|
|
|
}
|
|
|
|
|
|
::v-deep .el-date-editor .el-range-separator {
|
|
|
- width: auto;
|
|
|
+ width: auto;
|
|
|
}
|
|
|
</style>
|