Browse Source

合并鲁智强代码

v5
超级管理员 2 years ago
parent
commit
30f3f899bf
  1. 118
      .history/src/views/knowledge/ask/cc_20231123132136.vue
  2. 180
      .history/src/views/knowledge/ask/cc_20231123132141.vue
  3. 180
      .history/src/views/knowledge/ask/cc_20231123132143.vue
  4. 180
      .history/src/views/knowledge/ask/cc_20231123132145.vue
  5. 180
      .history/src/views/knowledge/ask/cc_20231123132146.vue
  6. 180
      .history/src/views/knowledge/ask/cc_20231123132148.vue
  7. 180
      .history/src/views/knowledge/ask/cc_20231123132150.vue
  8. 180
      .history/src/views/knowledge/ask/cc_20231123132158.vue
  9. 180
      .history/src/views/knowledge/ask/cc_20231123132213.vue
  10. 180
      .history/src/views/knowledge/ask/cc_20231123132225.vue
  11. 180
      .history/src/views/knowledge/ask/cc_20231123132234.vue
  12. 180
      .history/src/views/knowledge/ask/cc_20231123132237.vue
  13. 180
      .history/src/views/knowledge/ask/cc_20231123132239.vue
  14. 180
      .history/src/views/knowledge/ask/cc_20231123132245.vue
  15. 180
      .history/src/views/knowledge/ask/cc_20231123132247.vue
  16. 180
      .history/src/views/knowledge/ask/cc_20231123132249.vue
  17. 180
      .history/src/views/knowledge/ask/cc_20231123132252.vue
  18. 180
      .history/src/views/knowledge/ask/cc_20231123132259.vue
  19. 180
      .history/src/views/knowledge/ask/cc_20231123132307.vue
  20. 180
      .history/src/views/knowledge/ask/cc_20231123132311.vue
  21. 181
      .history/src/views/knowledge/ask/cc_20231123132500.vue
  22. 181
      .history/src/views/knowledge/ask/cc_20231123132503.vue
  23. 181
      .history/src/views/knowledge/ask/cc_20231123132507.vue
  24. 183
      .history/src/views/knowledge/ask/cc_20231123132514.vue
  25. 183
      .history/src/views/knowledge/ask/cc_20231123132515.vue
  26. 183
      .history/src/views/knowledge/ask/cc_20231123132520.vue
  27. 183
      .history/src/views/knowledge/ask/cc_20231123132543.vue
  28. 183
      .history/src/views/knowledge/ask/cc_20231123132607.vue
  29. 183
      .history/src/views/knowledge/ask/cc_20231123132641.vue
  30. 180
      .history/src/views/knowledge/ask/cc_20231123132652.vue
  31. 180
      .history/src/views/knowledge/ask/cc_20231123132657.vue
  32. 183
      .history/src/views/knowledge/ask/cc_20231123132703.vue
  33. 183
      .history/src/views/knowledge/ask/cc_20231123132708.vue
  34. 183
      .history/src/views/knowledge/ask/cc_20231123132711.vue
  35. 183
      .history/src/views/knowledge/ask/cc_20231123132714.vue
  36. 183
      .history/src/views/knowledge/ask/cc_20231123132717.vue
  37. 183
      .history/src/views/knowledge/ask/cc_20231123132719.vue
  38. 183
      .history/src/views/knowledge/ask/cc_20231123132756.vue
  39. 183
      .history/src/views/knowledge/ask/cc_20231123132800.vue
  40. 183
      .history/src/views/knowledge/ask/cc_20231123132802.vue
  41. 183
      .history/src/views/knowledge/ask/cc_20231123132805.vue
  42. 183
      .history/src/views/knowledge/ask/cc_20231123132807.vue
  43. 183
      .history/src/views/knowledge/ask/cc_20231123132813.vue
  44. 183
      .history/src/views/knowledge/ask/cc_20231123132835.vue
  45. 183
      .history/src/views/knowledge/ask/cc_20231123132840.vue
  46. 180
      .history/src/views/knowledge/ask/cc_20231123132911.vue
  47. 181
      .history/src/views/knowledge/ask/cc_20231123132913.vue
  48. 183
      .history/src/views/knowledge/ask/cc_20231123132915.vue
  49. 183
      .history/src/views/knowledge/ask/cc_20231123132917.vue
  50. 183
      .history/src/views/knowledge/ask/cc_20231123132918.vue
  51. 202
      .history/src/views/knowledge/ask/cc_20231123133021.vue
  52. 202
      .history/src/views/knowledge/ask/cc_20231123133029.vue
  53. 201
      .history/src/views/knowledge/ask/cc_20231123133210.vue
  54. 201
      .history/src/views/knowledge/ask/cc_20231123133219.vue
  55. 201
      .history/src/views/knowledge/ask/cc_20231123133310.vue
  56. 201
      .history/src/views/knowledge/ask/cc_20231123133315.vue
  57. 201
      .history/src/views/knowledge/ask/cc_20231123133323.vue
  58. 201
      .history/src/views/knowledge/ask/cc_20231123133330.vue
  59. 201
      .history/src/views/knowledge/ask/cc_20231123133334.vue
  60. 201
      .history/src/views/knowledge/ask/cc_20231123133336.vue
  61. 201
      .history/src/views/knowledge/ask/cc_20231123133339.vue
  62. 201
      .history/src/views/knowledge/ask/cc_20231123133356.vue
  63. 201
      .history/src/views/knowledge/ask/cc_20231123133358.vue
  64. 201
      .history/src/views/knowledge/ask/cc_20231123133359.vue
  65. 201
      .history/src/views/knowledge/ask/cc_20231123133407.vue
  66. 201
      .history/src/views/knowledge/ask/cc_20231123133413.vue
  67. 201
      .history/src/views/knowledge/ask/cc_20231123133416.vue
  68. 201
      .history/src/views/knowledge/ask/cc_20231123133426.vue
  69. 201
      .history/src/views/knowledge/ask/cc_20231123133432.vue
  70. 200
      .history/src/views/knowledge/ask/cc_20231123133448.vue
  71. 199
      .history/src/views/knowledge/ask/cc_20231123133452.vue
  72. 199
      .history/src/views/knowledge/ask/cc_20231123133454.vue
  73. 198
      .history/src/views/knowledge/ask/cc_20231123133456.vue
  74. 197
      .history/src/views/knowledge/ask/cc_20231123133457.vue
  75. 196
      .history/src/views/knowledge/ask/cc_20231123133514.vue
  76. 195
      .history/src/views/knowledge/ask/cc_20231123133515.vue
  77. 195
      .history/src/views/knowledge/ask/cc_20231123133546.vue
  78. 195
      .history/src/views/knowledge/ask/cc_20231123133548.vue
  79. 195
      .history/src/views/knowledge/ask/cc_20231123133554.vue
  80. 195
      .history/src/views/knowledge/ask/cc_20231123133601.vue
  81. 195
      .history/src/views/knowledge/ask/cc_20231123133653.vue
  82. 195
      .history/src/views/knowledge/ask/cc_20231123133701.vue
  83. 195
      .history/src/views/knowledge/ask/cc_20231123133706.vue
  84. 192
      .history/src/views/knowledge/ask/cc_20231123133736.vue
  85. 192
      .history/src/views/knowledge/ask/cc_20231123133746.vue
  86. 192
      .history/src/views/knowledge/ask/cc_20231123133750.vue
  87. 192
      .history/src/views/knowledge/ask/cc_20231123133756.vue
  88. 193
      .history/src/views/knowledge/ask/cc_20231123133821.vue
  89. 193
      .history/src/views/knowledge/ask/cc_20231123133826.vue
  90. 193
      .history/src/views/knowledge/ask/cc_20231123133921.vue
  91. 193
      .history/src/views/knowledge/ask/cc_20231123133935.vue
  92. 193
      .history/src/views/knowledge/ask/cc_20231123133942.vue
  93. 193
      .history/src/views/knowledge/ask/cc_20231123134004.vue
  94. 193
      .history/src/views/knowledge/ask/cc_20231123134009.vue
  95. 193
      .history/src/views/knowledge/ask/cc_20231123134011.vue
  96. 193
      .history/src/views/knowledge/ask/cc_20231123134030.vue
  97. 193
      .history/src/views/knowledge/ask/cc_20231123134038.vue
  98. 193
      .history/src/views/knowledge/ask/cc_20231123134047.vue
  99. 193
      .history/src/views/knowledge/ask/cc_20231123134048.vue
  100. 193
      .history/src/views/knowledge/ask/cc_20231123134051.vue

118
.history/src/views/knowledge/ask/cc_20231019150728.vue → .history/src/views/knowledge/ask/cc_20231123132136.vue

@ -6,7 +6,7 @@
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" :icon="Star" circle size="large"
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
@ -17,17 +17,16 @@
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList"
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo" border
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange" >
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
@ -62,39 +61,21 @@
</template>
</el-table-column>
</el-table>
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
class="add"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
<!-- 详情弹窗 -->
<Detail v-if="detailShow" :row-info="rowInfo" @close-etail="closeDetail" />
</div>
</template>
<script>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
import Detail from "./detail.vue";
import Dialog from "./dialog.vue";
export default {
// eslint-disable-next-line vue/no-reserved-component-names
components: { Dialog,Detail },
setup() {
const data = reactive({
dialogShow: false, // /
detailShow: false, //
rowInfo: {}, // /
title: "", //
queryInfo:{
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
@ -112,75 +93,45 @@
position: "",
column: "",
},
studentInfo: studentInfo,
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild) => {
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const filterTableData = computed(() =>
data.studentInfo.filter(
(item) => !searchName.value || item.name.includes(searchName.value)
)
);
const multipleSelection = ref([]);
const method = reactive({
handleNew() {
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
},
handleDetail(val) {
data.detailShow = true;
data.rowInfo = val;
},
handleEdit(val) {
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
},
handleDel(val) {
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
},
handleSure(val) {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
},
//
addRow(val) {
data.studentInfo.push(val);
},
//
editRow(val) {
let index = data.studentInfo.findIndex(
(item, index) => item.id === val.id
);
data.studentInfo.splice(index, 1, val);
},
}
//
closeDetail() {
data.detailShow = false;
},
handleSelectionChange(val) {
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
},
handleBatchDelete() {
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
@ -194,44 +145,19 @@
type: "warning",
})
.then(() => {
data.studentInfo = data.studentInfo.filter(
(item) => !multipleSelection.value.includes(item)
);
multipleSelection.value = []; //
})
.catch(() => {
//
});
},
handleSave(formData) {
formData.id = this.studentInfo.length + 1; //ID
data.studentInfo.push(formData); //
},
async getUserList() {
//
try {
const response = await axios.get("your_api_url", {
params: {
query: searchName.value, //
},
});
}
// data.studentInfo
data.studentInfo = response.data;
} catch (error) {
//
}
},
});
return { ...toRefs(data), ...method, ...filterTableData, searchName,imageUrl,handleImageUploaded,};
},
};
</script>
<style lang="scss" scoped>
*{
*{
font-weight: bolder;
font-size:15px;
}
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;

180
.history/src/views/knowledge/ask/cc_20231123132141.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132143.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132145.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132146.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132148.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132150.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132158.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132213.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132225.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132234.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132237.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132239.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132245.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132247.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132249.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132252.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132259.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132307.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132311.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

181
.history/src/views/knowledge/ask/cc_20231123132500.vue

@ -0,0 +1,181 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

181
.history/src/views/knowledge/ask/cc_20231123132503.vue

@ -0,0 +1,181 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

181
.history/src/views/knowledge/ask/cc_20231123132507.vue

@ -0,0 +1,181 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132514.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {
name
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132515.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {
name:""
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132520.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {
name:"我公司的企业安全文化是什么?"
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132543.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="data.studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {
name:"我公司的企业安全文化是什么?"
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132607.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="data.studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {
name:"我公司的企业安全文化是什么?"
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132641.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="data.studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {
"name":"我公司的企业安全文化是什么?"
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132652.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="data.studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132657.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132703.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo: {
"name":"我公司的企业安全文化是什么?"
},
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132708.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo: {
"name":"我公司的企业安全文化是什么?"
},
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132711.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo: {
"name":"我公司的企业安全文化是什么?"
}
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132714.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo={
"name":"我公司的企业安全文化是什么?"
}
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132717.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo=ref({
"name":"我公司的企业安全文化是什么?"
}
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132719.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo=ref({
"name":"我公司的企业安全文化是什么?"
})
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132756.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo=ref({
"name":"我公司的企业安全文化是什么?"
])
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132800.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo=ref([]
"name":"我公司的企业安全文化是什么?"
])
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132802.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo=ref([
"name":"我公司的企业安全文化是什么?"
])
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132805.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo=ref([
"name:"我公司的企业安全文化是什么"
])
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132807.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo=ref([
name:"我公司的企业安全文化是什么?"
])
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132813.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo=ref({
"name":"我公司的企业安全文化是什么?"
})
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132835.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo<any>=ref({
"name":"我公司的企业安全文化是什么?"
})
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132840.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const studentInfo:any=ref({
"name":"我公司的企业安全文化是什么?"
})
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

180
.history/src/views/knowledge/ask/cc_20231123132911.vue

@ -0,0 +1,180 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data=".studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

181
.history/src/views/knowledge/ask/cc_20231123132913.vue

@ -0,0 +1,181 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="data.studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132915.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="data.studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {
"name":"我公司的企业安全文化是什么?"
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132917.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="data.studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {
name:"我公司的企业安全文化是什么?"
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

183
.history/src/views/knowledge/ask/cc_20231123132918.vue

@ -0,0 +1,183 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
studentInfo: {
name:"我公司的企业安全文化是什么?"
},
});
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

202
.history/src/views/knowledge/ask/cc_20231123133021.vue

@ -0,0 +1,202 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="studentInfo"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

202
.history/src/views/knowledge/ask/cc_20231123133029.vue

@ -0,0 +1,202 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
size="large"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133210.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px" size="large"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133219.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133310.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133315.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133323.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: 'Tom',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133330.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133334.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133336.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133339.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
date: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133356.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133358.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
date: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133359.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '2016-05-03',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133407.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-02',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133413.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: ' 杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133416.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-04',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133426.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '2016-05-01',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

201
.history/src/views/knowledge/ask/cc_20231123133432.vue

@ -0,0 +1,201 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<div class="ooo">
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

200
.history/src/views/knowledge/ask/cc_20231123133448.vue

@ -0,0 +1,200 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

199
.history/src/views/knowledge/ask/cc_20231123133452.vue

@ -0,0 +1,199 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
</span>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

199
.history/src/views/knowledge/ask/cc_20231123133454.vue

@ -0,0 +1,199 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<span>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

198
.history/src/views/knowledge/ask/cc_20231123133456.vue

@ -0,0 +1,198 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

197
.history/src/views/knowledge/ask/cc_20231123133457.vue

@ -0,0 +1,197 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<div class="button-container">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

196
.history/src/views/knowledge/ask/cc_20231123133514.vue

@ -0,0 +1,196 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</div>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

195
.history/src/views/knowledge/ask/cc_20231123133515.vue

@ -0,0 +1,195 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

195
.history/src/views/knowledge/ask/cc_20231123133546.vue

@ -0,0 +1,195 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="">
<template #default="{ row }">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

195
.history/src/views/knowledge/ask/cc_20231123133548.vue

@ -0,0 +1,195 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

195
.history/src/views/knowledge/ask/cc_20231123133554.vue

@ -0,0 +1,195 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="400">
<template #default="{ row }">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

195
.history/src/views/knowledge/ask/cc_20231123133601.vue

@ -0,0 +1,195 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

195
.history/src/views/knowledge/ask/cc_20231123133653.vue

@ -0,0 +1,195 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

195
.history/src/views/knowledge/ask/cc_20231123133701.vue

@ -0,0 +1,195 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

195
.history/src/views/knowledge/ask/cc_20231123133706.vue

@ -0,0 +1,195 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" link size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-margin {
margin: 10px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

192
.history/src/views/knowledge/ask/cc_20231123133736.vue

@ -0,0 +1,192 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link class="button-margin" @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" link size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

192
.history/src/views/knowledge/ask/cc_20231123133746.vue

@ -0,0 +1,192 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default" class="button-margin"
>下架</el-button
>
<el-button type="danger" link size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

192
.history/src/views/knowledge/ask/cc_20231123133750.vue

@ -0,0 +1,192 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default"
>下架</el-button
>
<el-button type="danger" link size="default" class="button-margin" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

192
.history/src/views/knowledge/ask/cc_20231123133756.vue

@ -0,0 +1,192 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default"
>下架</el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123133821.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-1"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default"
>下架</el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123133826.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default"
>下架</el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123133921.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default"
>下架</el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123133935.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
>查看答案列表</el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123133942.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
><el-icon><ChatLineSquare /></el-icon></el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123134004.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" >
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
><el-icon><ChatLineSquare /></el-icon></el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123134009.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" width="">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
><el-icon><ChatLineSquare /></el-icon></el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123134011.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" width="300">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
><el-icon><ChatLineSquare /></el-icon></el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123134030.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
><el-icon><ChatLineSquare /></el-icon></el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123134038.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" width="300" />
<el-table-column prop="sex" label="提问人" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
><el-icon><ChatLineSquare /></el-icon></el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123134047.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" width="300" />
<el-table-column prop="sex" label="提问人"width="300" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
><el-icon><ChatLineSquare /></el-icon></el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123134048.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" width="300" />
<el-table-column prop="sex" label="提问人" width="300" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
><el-icon><ChatLineSquare /></el-icon></el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

193
.history/src/views/knowledge/ask/cc_20231123134051.vue

@ -0,0 +1,193 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span>
<el-form-item label="问题:" class="aaa" style="font-size:100px;">
<el-input
v-model="searchName"
style="width: 170px"
placeholder="问题"
></el-input>
<el-button type="success" style="width: 80px"
>查询</el-button
>
</el-form-item>
</span>
<el-table
ref="multipleTableRef"
border
class="m-2"
stripe
:data="tableData"
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}" >
<el-table-column type="selection"/>
<el-table-column prop="name" label="问题" width="300" />
<el-table-column prop="sex" label="提问人" width="90" />
<el-table-column prop="age" label="阅读量" />
<el-table-column prop="abe" label="赞" />
<el-table-column prop="ade" label="踩" />
<el-table-column prop="age" label="评论" />
<el-table-column prop="age" label="回答人数" />
<el-table-column prop="abc" label="状态" width="120">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="num" label="时间"/>
<el-table-column fixed="right" label="操作" width="300">
<template #default="{ row }">
<el-button type="success" size="default" link @click="handleEdit(row)"
><el-icon><ChatLineSquare /></el-icon></el-button
>
<el-button type="danger" link size="default"
><el-icon><Lock /></el-icon></el-button
>
<el-button type="danger" link size="default" @click="handleDel(row)"
><el-icon><Delete /></el-icon></el-button
>
</template>
</el-table-column>
</el-table>
<!-- 详情弹窗 -->
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs, computed, onMounted } from "vue";
import { countdownEmits, ElMessageBox, ElTable } from "element-plus";
import { Timer } from "@element-plus/icons-vue";
import axios from "axios"; //
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
});
const tableData = [
{
sex: '张德银',
name: '我公司的企业安全文化是什么?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '杨吉方',
name: 'DCS?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '谈谈你对精益管理的理解?',
address: 'No. 189, Grove St, Los Angeles',
},
{
sex: '江金锋',
name: '为了避免6s活动流于形式,应该注意哪些事项?',
address: 'No. 189, Grove St, Los Angeles',
},
]
const imageUrl = ref('');
//
const handleImageUploaded = (imageUrlFromChild:any) => {
//
imageUrl.value = imageUrlFromChild;
};
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "新增";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val:any)=> {
data.title = "答案列表";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
//
const handleSelectionChange=(val:any)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
position: absolute;
left: 1350px;
top: 0px;
margin: 10px 0;
font-weight: bolder;
}
.button-container {
display: flex;
flex-direction: column;
align-items: center; /* 居中对齐 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save