Browse Source

合并鲁智强分支

liwenxuan_v2
超级管理员 2 years ago
parent
commit
ace523bf5c
  1. 45
      .history/src/layout/components/AppMain_20230815085414.vue
  2. 45
      .history/src/layout/components/AppMain_20231027165241.vue
  3. 45
      .history/src/layout/components/AppMain_20231027165254.vue
  4. 181
      .history/src/views/knowledge/ask/cc_20231026115501.vue
  5. 181
      .history/src/views/knowledge/ask/cc_20231026115506.vue
  6. 181
      .history/src/views/knowledge/ask/cc_20231026115511.vue
  7. 181
      .history/src/views/knowledge/ask/cc_20231026115517.vue
  8. 181
      .history/src/views/knowledge/ask/cc_20231026115519.vue
  9. 181
      .history/src/views/knowledge/ask/cc_20231026115523.vue
  10. 181
      .history/src/views/knowledge/ask/cc_20231026115525.vue
  11. 180
      .history/src/views/knowledge/ask/cc_20231026115529.vue
  12. 180
      .history/src/views/knowledge/ask/cc_20231026115547.vue
  13. 180
      .history/src/views/knowledge/ask/cc_20231026115548.vue
  14. 180
      .history/src/views/knowledge/ask/cc_20231026115549.vue
  15. 180
      .history/src/views/knowledge/ask/cc_20231026115725.vue
  16. 17
      .history/src/views/knowledge/ask/index_20231026114855.vue
  17. 16
      .history/src/views/knowledge/ask/index_20231026114856.vue
  18. 256
      .history/src/views/knowledge/exam/dd_20231026125748.vue
  19. 252
      .history/src/views/knowledge/exam/dd_20231026125807.vue
  20. 249
      .history/src/views/knowledge/exam/dd_20231026125834.vue
  21. 249
      .history/src/views/knowledge/exam/dd_20231026125840.vue
  22. 249
      .history/src/views/knowledge/exam/dd_20231026125843.vue
  23. 247
      .history/src/views/knowledge/exam/dd_20231026125857.vue
  24. 237
      .history/src/views/knowledge/exam/dd_20231026125920.vue
  25. 237
      .history/src/views/knowledge/exam/dd_20231026125922.vue
  26. 235
      .history/src/views/knowledge/exam/dd_20231026125924.vue
  27. 229
      .history/src/views/knowledge/exam/dd_20231026125940.vue
  28. 224
      .history/src/views/knowledge/exam/dd_20231026125945.vue
  29. 224
      .history/src/views/knowledge/exam/dd_20231026125957.vue
  30. 224
      .history/src/views/knowledge/exam/dd_20231026130001.vue
  31. 224
      .history/src/views/knowledge/exam/dd_20231026130017.vue
  32. 224
      .history/src/views/knowledge/exam/dd_20231026130024.vue
  33. 224
      .history/src/views/knowledge/exam/dd_20231026130027.vue
  34. 224
      .history/src/views/knowledge/exam/dd_20231026130030.vue
  35. 224
      .history/src/views/knowledge/exam/dd_20231026130032.vue
  36. 223
      .history/src/views/knowledge/exam/dd_20231026130047.vue
  37. 218
      .history/src/views/knowledge/exam/dd_20231026130051.vue
  38. 217
      .history/src/views/knowledge/exam/dd_20231026130107.vue
  39. 215
      .history/src/views/knowledge/exam/dd_20231026130221.vue
  40. 213
      .history/src/views/knowledge/exam/dd_20231026130225.vue
  41. 213
      .history/src/views/knowledge/exam/dd_20231026130410.vue
  42. 213
      .history/src/views/knowledge/exam/dd_20231026130414.vue
  43. 213
      .history/src/views/knowledge/exam/dd_20231026130420.vue
  44. 200
      .history/src/views/knowledge/exam/dd_20231026130513.vue
  45. 213
      .history/src/views/knowledge/exam/dd_20231026130520.vue
  46. 213
      .history/src/views/knowledge/exam/dd_20231026130525.vue
  47. 213
      .history/src/views/knowledge/exam/dd_20231026130526.vue
  48. 213
      .history/src/views/knowledge/exam/dd_20231026130530.vue
  49. 212
      .history/src/views/knowledge/exam/dd_20231026130606.vue
  50. 212
      .history/src/views/knowledge/exam/dd_20231026130748.vue
  51. 212
      .history/src/views/knowledge/exam/dd_20231026130750.vue
  52. 212
      .history/src/views/knowledge/exam/dd_20231026130753.vue
  53. 213
      .history/src/views/knowledge/exam/dd_20231026130939.vue
  54. 212
      .history/src/views/knowledge/exam/dd_20231026130944.vue
  55. 213
      .history/src/views/knowledge/exam/dd_20231026130949.vue
  56. 213
      .history/src/views/knowledge/exam/dd_20231026130955.vue
  57. 213
      .history/src/views/knowledge/exam/dd_20231026131019.vue
  58. 213
      .history/src/views/knowledge/exam/dd_20231026131020.vue
  59. 237
      .history/src/views/knowledge/exam/dd_20231026131215.vue
  60. 237
      .history/src/views/knowledge/exam/dd_20231026131528.vue
  61. 97
      .history/src/views/knowledge/exam/diaiop_20231026131831.vue
  62. 97
      .history/src/views/knowledge/exam/diaiop_20231026131835.vue
  63. 161
      .history/src/views/knowledge/exam/dialog_20231026131539.vue
  64. 161
      .history/src/views/knowledge/exam/dialog_20231026131542.vue
  65. 161
      .history/src/views/knowledge/exam/dialog_20231026131845.vue
  66. 161
      .history/src/views/knowledge/exam/dialog_20231026131848.vue
  67. 161
      .history/src/views/knowledge/exam/dialog_20231026131852.vue
  68. 152
      .history/src/views/knowledge/exam/dialog_20231026131904.vue
  69. 161
      .history/src/views/knowledge/exam/dialog_20231026131910.vue
  70. 161
      .history/src/views/knowledge/exam/dialog_20231026131915.vue
  71. 161
      .history/src/views/knowledge/exam/dialog_20231026131918.vue
  72. 161
      .history/src/views/knowledge/exam/dialog_20231026131921.vue
  73. 161
      .history/src/views/knowledge/exam/dialog_20231026131932.vue
  74. 161
      .history/src/views/knowledge/exam/dialog_20231026131937.vue
  75. 161
      .history/src/views/knowledge/exam/dialog_20231026131951.vue
  76. 161
      .history/src/views/knowledge/exam/dialog_20231026131953.vue
  77. 161
      .history/src/views/knowledge/exam/dialog_20231026132245.vue
  78. 231
      .history/src/views/opk/asd/news/bb_20231026132443.vue
  79. 232
      .history/src/views/opk/asd/news/bb_20231026132447.vue
  80. 232
      .history/src/views/opk/asd/news/bb_20231026132454.vue
  81. 232
      .history/src/views/opk/asd/news/bb_20231026132519.vue
  82. 232
      .history/src/views/opk/asd/news/bb_20231026132523.vue
  83. 232
      .history/src/views/opk/asd/news/bb_20231026132530.vue
  84. 232
      .history/src/views/opk/asd/news/bb_20231026132543.vue
  85. 232
      .history/src/views/opk/asd/news/bb_20231026132553.vue
  86. 232
      .history/src/views/opk/asd/news/bb_20231026132603.vue
  87. 232
      .history/src/views/opk/asd/news/bb_20231026132613.vue
  88. 232
      .history/src/views/opk/asd/news/bb_20231026132618.vue
  89. 232
      .history/src/views/opk/asd/news/bb_20231026132628.vue
  90. 232
      .history/src/views/opk/asd/news/bb_20231026132649.vue
  91. 232
      .history/src/views/opk/asd/news/bb_20231026132653.vue
  92. 233
      .history/src/views/opk/asd/news/bb_20231026132703.vue
  93. 234
      .history/src/views/opk/asd/news/bb_20231026132709.vue
  94. 234
      .history/src/views/opk/asd/news/bb_20231026132715.vue
  95. 232
      .history/src/views/opk/asd/news/bb_20231026132740.vue
  96. 232
      .history/src/views/opk/asd/news/bb_20231026132918.vue
  97. 232
      .history/src/views/opk/asd/news/bb_20231026132922.vue
  98. 232
      .history/src/views/opk/asd/news/bb_20231026132929.vue
  99. 232
      .history/src/views/opk/asd/news/bb_20231026132931.vue
  100. 232
      .history/src/views/opk/asd/news/bb_20231026132953.vue

45
.history/src/layout/components/AppMain_20230815085414.vue

@ -0,0 +1,45 @@
<script setup lang="ts">
import { useTagsViewStore } from "@/store/modules/tagsView";
const tagsViewStore = useTagsViewStore();
</script>
<template>
<section class="app-main">
<router-view v-slot="{ Component, route }">
<transition name="router-fade" mode="out-in">
<keep-alive :include="tagsViewStore.cachedViews">
<component :is="Component" :key="route.fullPath" />
</keep-alive>
</transition>
</router-view>
</section>
</template>
<style lang="scss" scoped>
.app-main {
position: relative;
width: 100%;
/* 50= navbar 50 */
min-height: calc(100vh - 50px);
overflow: hidden;
background-color: var(--el-bg-color-page);
}
.fixed-header + .app-main {
padding-top: 50px;
}
.hasTagsView {
.app-main {
/* 84 = navbar + tags-view = 50 + 34 */
min-height: calc(100vh - 84px);
}
.fixed-header + .app-main {
min-height: 100vh;
padding-top: 84px;
}
}
</style>

45
.history/src/layout/components/AppMain_20231027165241.vue

@ -0,0 +1,45 @@
<script setup lang="ts">
import { useTagsViewStore } from "@/store/modules/tagsView";
const tagsViewStore = useTagsViewStore();
</script>
<template>
<section class="app-main">
<router-view v-slot="{ Component, route }">
<transition name="router-fade" mode="out-in">
<keep-alive :include="tagsViewStore.cachedViews">
<component :is="Component" :key="route.fullPath" />
</keep-alive>
</transition>
</router-view>
</section>
</template>
<style lang="scss" scoped>
.app-main {
position: relative;
width: 100%;
/* 50= navbar 50 */
min-height: calc(100vh - 50px);
overflow: hidden;
background-color: #fff;
}
.fixed-header + .app-main {
padding-top: 50px;
}
.hasTagsView {
.app-main {
/* 84 = navbar + tags-view = 50 + 34 */
min-height: calc(100vh - 84px);
}
.fixed-header + .app-main {
min-height: 100vh;
padding-top: 84px;
}
}
</style>

45
.history/src/layout/components/AppMain_20231027165254.vue

@ -0,0 +1,45 @@
<script setup lang="ts">
import { useTagsViewStore } from "@/store/modules/tagsView";
const tagsViewStore = useTagsViewStore();
</script>
<template>
<section class="app-main">
<router-view v-slot="{ Component, route }">
<transition name="router-fade" mode="out-in">
<keep-alive :include="tagsViewStore.cachedViews">
<component :is="Component" :key="route.fullPath" />
</keep-alive>
</transition>
</router-view>
</section>
</template>
<style lang="scss" scoped>
.app-main {
position: relative;
width: 100%;
/* 50= navbar 50 */
min-height: calc(100vh - 50px);
overflow: hidden;
background-color: var(--el-bg-color-page);
}
.fixed-header + .app-main {
padding-top: 50px;
}
.hasTagsView {
.app-main {
/* 84 = navbar + tags-view = 50 + 34 */
min-height: calc(100vh - 84px);
}
.fixed-header + .app-main {
min-height: 100vh;
padding-top: 84px;
}
}
</style>

181
.history/src/views/knowledge/ask/cc_20231026115501.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>
*{
bca
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_20231026115506.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>
*{
background-color:#fff
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_20231026115511.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>
*{
background-color:#fff;
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_20231026115517.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>
*{
background-color:#fff;
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_20231026115519.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>
*{
background-color:#fff;
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_20231026115523.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>
*{
background-color:#fff;
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_20231026115525.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>
*{
background-color:#fff;
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_20231026115529.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_20231026115547.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':','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_20231026115548.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':''','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_20231026115549.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':'','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_20231026115725.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>

17
.history/src/views/knowledge/ask/index_20231026114855.vue

@ -0,0 +1,17 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-28 11:39:33
@ 备注:
-->
<script lang='ts' setup>
import cc from "./cc.vue"
</script>
<template>
<div>
<cc></cc>
</template>
<style lang='scss' scoped>
* {
background-color:#fff;
}
</style>

16
.history/src/views/knowledge/ask/index_20231026114856.vue

@ -0,0 +1,16 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-28 11:39:33
@ 备注:
-->
<script lang='ts' setup>
import cc from "./cc.vue"
</script>
<template>
<cc></cc>
</template>
<style lang='scss' scoped>
* {
background-color:#fff;
}
</style>

256
.history/src/views/knowledge/exam/dd_20231026125748.vue

@ -0,0 +1,256 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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) => {
//
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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
//
const addRow=(val)=> {
data.studentInfo.push(val);
}
//
const editRow=(val)=> {
let index = data.studentInfo.findIndex(
(item, index) => item.id === val.id
);
data.studentInfo.splice(index, 1, val);
}
//
const handleSelectionChange=(val)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
data.studentInfo = data.studentInfo.filter(
(item) => !multipleSelection.value.includes(item)
);
multipleSelection.value = []; //
})
.catch(() => {
//
});
}
const handleSave=(formData)=> {
formData.id = this.studentInfo.length + 1; //ID
data.studentInfo.push(formData); //
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

252
.history/src/views/knowledge/exam/dd_20231026125807.vue

@ -0,0 +1,252 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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) => {
//
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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
//
const addRow=(val)=> {
data.studentInfo.push(val);
}
//
const editRow=(val)=> {
let index = data.studentInfo.findIndex(
(item, index) => item.id === val.id
);
data.studentInfo.splice(index, 1, val);
}
//
const handleSelectionChange=(val)=> {
multipleSelection.value = val;
}
const handleBatchDelete=()=> {
if (multipleSelection.value.length === 0) {
ElMessageBox.alert("请选择要删除的数据", "提示", {
confirmButtonText: "确定",
});
return;
}
ElMessageBox.confirm("确定要批量删除所选数据吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
data.studentInfo = data.studentInfo.filter(
(item) => !multipleSelection.value.includes(item)
);
multipleSelection.value = []; //
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-weight: bolder;
font-size:15px;
}
.aaa {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

249
.history/src/views/knowledge/exam/dd_20231026125834.vue

@ -0,0 +1,249 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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) => {
//
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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
//
const addRow=(val)=> {
data.studentInfo.push(val);
}
//
const editRow=(val)=> {
let index = data.studentInfo.findIndex(
(item, index) => item.id === val.id
);
data.studentInfo.splice(index, 1, val);
}
//
const handleSelectionChange=(val)=> {
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

249
.history/src/views/knowledge/exam/dd_20231026125840.vue

@ -0,0 +1,249 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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) => {
//
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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
//
const addRow=(val)=> {
data.studentInfo.push(val);
}
//
const editRow=(val)=> {
let index = data.studentInfo.findIndex(
(item, index) => item.id === val.idF
);
data.studentInfo.splice(index, 1, val);
}
//
const handleSelectionChange=(val)=> {
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

249
.history/src/views/knowledge/exam/dd_20231026125843.vue

@ -0,0 +1,249 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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) => {
//
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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
//
const addRow=(val)=> {
data.studentInfo.push(val);
}
//
const editRow=(val)=> {
let index = data.studentInfo.findIndex(
(item, index) => item.id === val.id
);
data.studentInfo.splice(index, 1, val);
}
//
const handleSelectionChange=(val)=> {
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

247
.history/src/views/knowledge/exam/dd_20231026125857.vue

@ -0,0 +1,247 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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) => {
//
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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
//
const addRow=(val)=> {
data.studentInfo.push(val);
}
//
const editRow=(val)=> {
let index = data.studentInfo.findIndex(
(item, index) => item.id === val.id
);
data.studentInfo.splice(index, 1, 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

237
.history/src/views/knowledge/exam/dd_20231026125920.vue

@ -0,0 +1,237 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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) => {
//
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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
//
//
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

237
.history/src/views/knowledge/exam/dd_20231026125922.vue

@ -0,0 +1,237 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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) => {
//
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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
//
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

235
.history/src/views/knowledge/exam/dd_20231026125924.vue

@ -0,0 +1,235 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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) => {
//
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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

229
.history/src/views/knowledge/exam/dd_20231026125940.vue

@ -0,0 +1,229 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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 handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

224
.history/src/views/knowledge/exam/dd_20231026125945.vue

@ -0,0 +1,224 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const handleEdit=(val)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

224
.history/src/views/knowledge/exam/dd_20231026125957.vue

@ -0,0 +1,224 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

224
.history/src/views/knowledge/exam/dd_20231026130001.vue

@ -0,0 +1,224 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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(() => {
method.handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

224
.history/src/views/knowledge/exam/dd_20231026130017.vue

@ -0,0 +1,224 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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(() => {
handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

224
.history/src/views/knowledge/exam/dd_20231026130024.vue

@ -0,0 +1,224 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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(() => {
handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val:any)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

224
.history/src/views/knowledge/exam/dd_20231026130027.vue

@ -0,0 +1,224 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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(() => {
handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val:any)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

224
.history/src/views/knowledge/exam/dd_20231026130030.vue

@ -0,0 +1,224 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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(() => {
handleSure(val:any);
})
.catch(() => {
//
});
}
const handleSure=(val:any)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

224
.history/src/views/knowledge/exam/dd_20231026130032.vue

@ -0,0 +1,224 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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(() => {
handleSure(val);
})
.catch(() => {
//
});
}
const handleSure=(val:any)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

223
.history/src/views/knowledge/exam/dd_20231026130047.vue

@ -0,0 +1,223 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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 handleSure=(val:any)=> {
this.dialogVisible = false;
const index = data.studentInfo.findIndex((item) => item.id === val.id);
data.studentInfo.splice(index, 1);
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

218
.history/src/views/knowledge/exam/dd_20231026130051.vue

@ -0,0 +1,218 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

217
.history/src/views/knowledge/exam/dd_20231026130107.vue

@ -0,0 +1,217 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
@add-row = "addRow"
@edit-row="editRow"
@image-uploaded="handleImageUploaded"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

215
.history/src/views/knowledge/exam/dd_20231026130221.vue

@ -0,0 +1,215 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
:array-num="studentInfo.length"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130225.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130410.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model:dialogShow="dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130414.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model:dialogShow="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130420.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// 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 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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

200
.history/src/views/knowledge/exam/dd_20231026130513.vue

@ -0,0 +1,200 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130520.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form: {
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130525.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive{
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130526.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
},
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130530.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
:data="studentInfo"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

212
.history/src/views/knowledge/exam/dd_20231026130606.vue

@ -0,0 +1,212 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

212
.history/src/views/knowledge/exam/dd_20231026130748.vue

@ -0,0 +1,212 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" :value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

212
.history/src/views/knowledge/exam/dd_20231026130750.vue

@ -0,0 +1,212 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" :value="0"></el-option>
<el-option label="甲醇分厂" :value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

212
.history/src/views/knowledge/exam/dd_20231026130753.vue

@ -0,0 +1,212 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130939.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<template #default="{ row }">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button
>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

212
.history/src/views/knowledge/exam/dd_20231026130944.vue

@ -0,0 +1,212 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<template #default="{ row }">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130949.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<template #default="{ row }">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit"
>人数</el-button>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026130955.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<template #default="{ row }">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit(row)"
>人数</el-button>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026131019.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<template #default="{ row }">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit(row)"
>人数</el-button>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
const jokeMes = ref([]) //
const temJokeMes = ref([]) //
const searchName = ref(""); //
const multipleSelection = ref([]);
const handleNew=()=> {
data.title = "查看";
data.rowInfo = {};
data.dialogShow = true;
}
const =(val:any)=> {
data.title = "修改";
data.dialogShow = true;
data.rowInfo = val;
}
const handleDel=(val:any)=> {
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

213
.history/src/views/knowledge/exam/dd_20231026131020.vue

@ -0,0 +1,213 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div class="box">
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNewac">添加</el-button>
<el-button type="warning" :icon="Star" circle size="large"><el-icon><RefreshRight /></el-icon></el-button>
<span class="aaa">
<el-form-item label="" style="width: 50">
<el-select v-model="form.region" placeholder="请选分厂" size="large">
<el-option label="请选分厂" value="0"></el-option>
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.section" placeholder="请选工段" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.position" placeholder="请选职务" size="large"> </el-select>
</el-form-item>
<el-form-item label="">
<el-select v-model="form.column" placeholder="请选栏目" size="large">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input v-model="searchName" style="width: 170px" placeholder="请输入题目" size="large"></el-input>
<el-button type="success" style="width: 80px" size="large" @click="getUserList">查询</el-button>
</span>
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="考试名称" width="250" />
<el-table-column prop="sex" label="归属" width="100" />
<el-table-column prop="age" label="考试范围" />
<el-table-column prop="num" label="考试时长" width="100"/>
<el-table-column prop="abc" label="考题总数"/>
<el-table-column prop="abg" label="及格线"/>
<el-table-column prop="acd" label="开始&结束"/>
<el-table-column prop="acc" label="发起人"/>
<el-table-column prop="ace" label="创建时间"/>
<el-table-column prop="acf" label="状态">
<template #default="row">
<el-switch v-model="row.row.status" />
</template>
</el-table-column>
<el-table-column prop="acg" label="考试人数">
<template #default="{ row }">
<el-button class="new_btn" type="primary" size="large" @click="handleEdit(row)"
>人数</el-button>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="200">
<template #default="{ row }">
<el-button type="danger" size="LARGE" @click="handleDel(row)"
>结束考试</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model="data.dialogShow"
:row-info="rowInfo"
:title="title"
/>
</div>
</template>
<script lane="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 Dialog from "./dialog.vue";
// eslint-disable-next-line vue/no-reserved-component-names
const data = reactive({
dialogShow: false, // /
rowInfo: {}, // /
title: "", //
queryInfo:{
query:'',
pagenum:1,
pagesize:'',
},
});
const form=reactive({
name: "",
region: "",
date1: "",
date2: "",
delivery: false,
type: [],
resource: "",
desc: "",
section: "",
position: "",
column: "",
})
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 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 {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th) {
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

237
.history/src/views/knowledge/exam/dd_20231026131215.vue

@ -0,0 +1,237 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNew"
>新增</el-button
>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span class="aaa">
<el-form-item label="" size="large">
<el-select v-model="data.form.region" placeholder="请选分厂">
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="" size="large" style="width: 50">
<el-select v-model="data.form.section" placeholder="请选工段"> </el-select>
</el-form-item>
<el-form-item label="" size="large">
<el-select v-model="data.form.position" placeholder="请选职务"> </el-select>
</el-form-item>
<el-form-item label="" size="large">
<el-select v-model="data.form.column" placeholder="请选栏目">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input
v-model="searchName"
style="width: 170px"
placeholder="请输入题目"
size="large"
></el-input>
<el-button type="success" style="width: 100px" size="large"
>查询</el-button
>
</span>
<el-table
ref="multipleTableRef"
border
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
stripe
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="文章标题" width="650" />
<el-table-column prop="sex" label="所属栏目" width="100" />
<el-table-column prop="age" label="可见范围" width="100"/>
<el-table-column prop="num" label="访问数据" width="440" />
<el-table-column prop="abc" label="状态" width="70">
<template #default="row">
<el-switch
v-model="row.row.status"
:active-icon="Check"
:inactive-icon="Close"
@click="handleDelac"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<el-button type="success" size="large" @click="handleEdit(row)"
>修改</el-button
>
<el-button type="danger" size="large" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model:data.dialogShow="data.dialogShow"
:row-info="data.rowInfo"
/>
<!-- 详情弹窗 -->
</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 { Check, Close } from '@element-plus/icons-vue'
import axios from "axios"; //
import Dialog from "./dialog.vue";
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 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(() => {
//
});
}
const handleDelac=(val:any)=> {
ElMessageBox.confirm("你确定启用这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-size: 15px;
font-weight: bolder;
}
.aaa {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

237
.history/src/views/knowledge/exam/dd_20231026131528.vue

@ -0,0 +1,237 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<div>
<el-button type="danger" class="button-margin" size="large" @click="handleBatchDelete">批量删除</el-button>
<el-button class="new_btn" type="success" size="large" @click="handleNew"
>新增</el-button
>
<el-button type="warning" circle size="large"
><el-icon><RefreshRight /></el-icon
></el-button>
<span class="aaa">
<el-form-item label="" size="large">
<el-select v-model="data.form.region" placeholder="请选分厂">
<el-option label="甲醇分厂" value="1"></el-option>
<el-option label="化产分厂" value="2"></el-option>
<el-option label="动力分厂" value="3"></el-option>
<el-option label="机焦车间" value="4"></el-option>
<el-option label="质检中心" value="5"></el-option>
<el-option label="安环部" value="6"></el-option>
<el-option label="备煤车间" value="7"></el-option>
<el-option label="保卫部" value="8"></el-option>
<el-option label="企管部" value="9"></el-option>
<el-option label="高管" value="10"></el-option>
<el-option label="综合办" value="11"></el-option>
<el-option label="人力资源部" value="12"></el-option>
<el-option label="财务部" value="13"></el-option>
<el-option label="营销部" value="14"></el-option>
<el-option label="生产部" value="15"></el-option>
<el-option label="仓储中心" value="16"></el-option>
<el-option label="物流中心" value="17"></el-option>
<el-option label="办公室" value="18"></el-option>
<el-option label="审计监察部" value="19"></el-option>
<el-option label="法律事务部" value="20"></el-option>
<el-option label="财务部" value="21"></el-option>
<el-option label="供应部" value="22"></el-option>
<el-option label="销售部" value="23"></el-option>
<el-option label="生产计划部" value="24"></el-option>
</el-select>
</el-form-item>
<el-form-item label="" size="large" style="width: 50">
<el-select v-model="data.form.section" placeholder="请选工段"> </el-select>
</el-form-item>
<el-form-item label="" size="large">
<el-select v-model="data.form.position" placeholder="请选职务"> </el-select>
</el-form-item>
<el-form-item label="" size="large">
<el-select v-model="data.form.column" placeholder="请选栏目">
<el-option label="请选栏目" value="0"></el-option>
<el-option label="流程制度" value="1"></el-option>
<el-option label="工艺技术" value="2"></el-option>
<el-option label="设备管理" value="3"></el-option>
<el-option label="仪控仪表" value="4"></el-option>
<el-option label="机电维修" value="5"></el-option>
<el-option label="安全生产" value="6"></el-option>
<el-option label="质量管理" value="7"></el-option>
<el-option label="财务管理" value="8"></el-option>
<el-option label="人力资源" value="9"></el-option>
<el-option label="仓储物流" value="10"></el-option>
<el-option label="营销采购" value="11"></el-option>
</el-select>
</el-form-item>
<el-input
v-model="searchName"
style="width: 170px"
placeholder="请输入题目"
size="large"
></el-input>
<el-button type="success" style="width: 100px" size="large"
>查询</el-button
>
</span>
<el-table
ref="multipleTableRef"
border
:header-cell-style="{'width':'100%','background':'#F2F2F2','text-align':'center'}"
stripe
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" />
<el-table-column prop="name" label="文章标题" width="650" />
<el-table-column prop="sex" label="所属栏目" width="100" />
<el-table-column prop="age" label="可见范围" width="100"/>
<el-table-column prop="num" label="访问数据" width="440" />
<el-table-column prop="abc" label="状态" width="70">
<template #default="row">
<el-switch
v-model="row.row.status"
:active-icon="Check"
:inactive-icon="Close"
@click="handleDelac"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作">
<template #default="{ row }">
<el-button type="success" size="large" @click="handleEdit(row)"
>修改</el-button
>
<el-button type="danger" size="large" @click="handleDel(row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 新建/编辑弹框 -->
<Dialog
v-if="data.dialogShow"
v-model:data.dialogShow="data.dialogShow"
:row-info="data.rowInfo"
/>
<!-- 详情弹窗 -->
</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 { Check, Close } from '@element-plus/icons-vue'
import axios from "axios"; //
import Dialog from "./dialog.vue";
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 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(() => {
//
});
}
const handleDelac=(val:any)=> {
ElMessageBox.confirm("你确定启用这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
})
.catch(() => {
//
});
}
</script>
<style lang="scss" scoped>
*{
font-size: 15px;
font-weight: bolder;
}
.aaa {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 五列 */
align-items: start; /* 顶格对齐 */
float: right;
width: 700px;
height: 30px;
margin: 5px 0;
}
.button-margin {
margin: 5px 0; /* 设置右侧外边距,调整按钮之间的间距 */
}
:deep(.el-table th){
font-weight: bold; /* 设置表头字体加粗 */
color: #333; /* 设置表头字体颜色 */
}
</style>

97
.history/src/views/knowledge/exam/diaiop_20231026131831.vue

@ -0,0 +1,97 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="考试得分" />
<el-table-column prop="name" label="考试次数" />
<el-table-column prop="sex" label="状态" width="300"/>
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary"
>下载</el-button>
</el-table-column>
</el-table>
</el-dialog>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object as () => FormInfo,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit = defineEmits(['image-uploaded', 'update:diaiopShow', 'editRow', 'addRow'])
const formData = reactive({})
//
const handleClose=()=> {
emit("update:diaiopShow", false);
}
onMounted(()=>{
Object.assign(formData,props.rowInfo)
})
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

97
.history/src/views/knowledge/exam/diaiop_20231026131835.vue

@ -0,0 +1,97 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="考试得分" />
<el-table-column prop="name" label="考试次数" />
<el-table-column prop="sex" label="状态" width="300"/>
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary"
>下载</el-button>
</el-table-column>
</el-table>
</el-dialog>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit = defineEmits(['image-uploaded', 'update:diaiopShow', 'editRow', 'addRow'])
const formData = reactive({})
//
const handleClose=()=> {
emit("update:diaiopShow", false);
}
onMounted(()=>{
Object.assign(formData,props.rowInfo)
})
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131539.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object as () => FormInfo,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
formData: {
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
data.formData = Object.assign({}, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131542.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
formData: {
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
data.formData = Object.assign({}, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131845.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
formData: {
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign({}, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131848.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
formData: {
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131852.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
formData: {
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

152
.history/src/views/knowledge/exam/dialog_20231026131904.vue

@ -0,0 +1,152 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131910.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
const formData: {
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
},
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131915.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
const formData={
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
},
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131918.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
const formData=reactive({
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
},
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131921.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
const formData=reactive({
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
})
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
data.formData = Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131932.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
const formData=reactive({
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
})
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
Object.assign({}, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131937.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
const formData=reactive({
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
})
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", data.formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
Object.assign(formData, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131951.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
const formData=reactive({
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
})
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", data.formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
Object.assign(formData, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026131953.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
const formData=reactive({
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
})
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", formData);
} else {
//
data.formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
Object.assign(formData, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

161
.history/src/views/knowledge/exam/dialog_20231026132245.vue

@ -0,0 +1,161 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog :model-value="true" :title="title" @close="handleClose">
<el-table
ref="multipleTableRef"
border
style="width: 100%"
stripe
>
<el-table-column prop="asd" label="工号" />
<el-table-column prop="name" label="姓名" />
<el-table-column prop="sex" label="属性" width="300"/>
<el-table-column prop="age" label="考试分数" />
<el-table-column prop="num" label="状态" />
<el-table-column prop="qwe" label="参加次数" />
<el-table-column prop="zxc" label="查看详情">
<el-button class="new_btn" type="primary" @click="handleNewed"
>查看</el-button>
</el-table-column>
</el-table>
</el-dialog>
<Diaiop
v-if="data.diaiopShow"
v-model:data.diaiopShow="data.diaiopShow"
:row-info="rowInfo"
:title="title"
/>
</template>
<script lang="ts" setup>
import { reactive, toRefs, ref, onMounted} from "vue";
import { Delete, Download, Plus, ZoomIn } from "@element-plus/icons-vue";
import { ElMessage,UploadProps} from "element-plus";
import "quill/dist/quill.snow.css";
import type { UploadFile } from 'element-plus'
import Diaiop from "./diaiop.vue"
const childBorder = ref(false);
const parentBorder = ref(false);
const editContvalue = ref("");
const props=defineProps({
title: {
type: String,
default: "",
},
dialogShow: {
type: Boolean,
default: false,
},
rowInfo: {
type: Object,
default() {
return {};
},
},
arrayNum: {
type: Number,
default: 0,
},
})
const emit=defineEmits(['image-uploaded', 'update:dialogShow', 'editRow', 'addRow'])
const data = reactive({
diaiopShow: false,
title:"",
rowInfo:{},
studentInfoac:[
{
asd:"300946",
name:"刘来",
sex:"质检中心煤焦采制样操作工",
age:"65",
num:"及格",
qwe:"55",
zxc:""
}
],
});
const formData=reactive({
id: props.arrayNum.toString(),
name: "",
sex: "",
num: "",
age:"",
qwe:"",
zxc:"",
})
//
const handleClose=()=> {
emit("update:dialogShow", false);
}
//
const resetForm=()=> {
Object.assign(formData, props.rowInfo);
}
//
const submitForm=()=> {
handleClose();
if (props.rowInfo.name) {
//
const id = props.rowInfo;
emit("editRow", formData);
} else {
//
formData["id"] = (props.arrayNum + 1).toString();
emit("addRow", formData);
}
}
const handleNewed=()=> {
data.title = "查看试卷";
data.rowInfo = {};
data.diaiopShow = true;
}
const editorInstance = ref(null);
onMounted(() => {
Object.assign(formData, props.rowInfo);
});
const handlePictureCardPreview = (file: UploadFile) => {};
const disabled = ref(false);
const handleRemove = (file: UploadFile) => {};
const handleDownload = (file: UploadFile) => {};
</script>
<style scoped>
.avatar-uploader .avatar {
display: block;
width: 178px;
height: 178px;
}
</style>
<style lang="scss">
.avatar-uploader .el-upload {
position: relative;
overflow: hidden;
cursor: pointer;
border: 1px dashed var(--el-border-color);
border-radius: 6px;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
width: 178px;
height: 178px;
font-size: 28px;
color: #8c939d;
text-align: center;
}
.el-dialog{
width:1200px;
}
</style>

231
.history/src/views/opk/asd/news/bb_20231026132443.vue

@ -0,0 +1,231 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<div class="qwe">
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</div>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132447.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<div class="qwe">
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</div>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-container>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132454.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<div class="qwe">
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</div>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132519.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col class="qwe">
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</div>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132523.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col class="qwe">
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132530.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132543.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="3" class="qwe">
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132553.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="3" class="qwe">
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="20">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132603.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 170px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="20">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132613.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 150px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="20">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132618.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="20">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132628.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132649.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="22">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132653.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

233
.history/src/views/opk/asd/news/bb_20231026132703.vue

@ -0,0 +1,233 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

234
.history/src/views/opk/asd/news/bb_20231026132709.vue

@ -0,0 +1,234 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-col>
<el-divider direction="vertical"/>
</el-col>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

234
.history/src/views/opk/asd/news/bb_20231026132715.vue

@ -0,0 +1,234 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-col :span="1">
<el-divider direction="vertical"/>
</el-col>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132740.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-row style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132918.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-container style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132922.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-container style="width: 100%">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-container>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132929.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-container clss="">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-container>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132931.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-container clss="m-4">
<el-col :span="2" class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-container>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

232
.history/src/views/opk/asd/news/bb_20231026132953.vue

@ -0,0 +1,232 @@
<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 09:13:14
@ 备注:
-->
<script lang='ts' setup>
import {ref,reactive,onMounted} from 'vue'
import { organdpost,posttarget,set_posttarget } from '@/api/opk/api'
import { addPostCont,tarlist,deltarget } from '@/api/opk/api'
import { editPostCont } from '@/api/opk/pulic/api'
import { departmentprogramme,edit_depart,edit_depart_progra } from '@/api/opk/news/api'
import { ge_copy } from '@/api/opk/zxy/news/api'
import { formItemValidateStates, TableV2SortOrder } from 'element-plus';
import { getDictFormData } from '@/api/dict'
import Dialog from './dialog.vue'
import Dialoglog from './dialoglog.vue'
import Yg from './yg.vue'
// eslint-disable-next-line vue/require-prop-types
const { addShow, title } = defineProps(['addShow', 'title'])
const data = reactive({
formInline:{
region:'',
},
title:"",
addPostBox: false,
edPostBox:false,
ygPostBox:false,
})
const orgTreeProps ={
label: 'name',
children:'child'
}
const orgTreeProp ={
label: 'title',
children:'childen'
}
const formdat = {
someProp:"",
}
const total =ref(0)
const rowInfo = ref<any>({})
const postIds = ref<number[]>([])
const tableData = ref<any>([]);
const tables = ref<any>([]);
//
function jjjs(){
addPostCont("/hrapi/org/govthree","post")
.then(data => {
tableData.value = data.data[3].child[14].child;
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
jjjs()
function editPost(){
editPostCont({})
.then(data => {
tables.value = data.data.list;
})
}
editPost()
const table = ref<any>([])
const formdate = reactive({
page:0,
pagesize:20,
name:"",
dimension:"",
attribute:"",
orgidlist:"",
type:"",
value1:"2023",
})
//
const tableq = ref([])
const postt = ()=>{
const ass = new Date(formdate.value1);
const qwe = ass.getFullYear();
const zjr = qwe.toString();
departmentprogramme({orgid:formdate.orgidlist,year:zjr,version:formdate.name})
.then(data => {
tableq.value = data.data;
total.value = data.data.count;
})
}
//
const addtableData = ()=>{
data.addPostBox = true;
}
//
const addRow = (val:any)=> {
tableData.value.push(val);
}
//
const editRow = (val:any)=> {
let index =tableData.value.findIndex(
(item:any) => item.id === val.id
);
tableData.value.splice(index, 1, val);
}
//
const closeDetail = ()=>{
data.addPostBox = false;
}
function editPostState(classId:string,state:number){
console.log("改变状态--------->",classId,state)
let statusVal = 1
if( state == 1) statusVal = 2;
edit_depart({id:classId,state:statusVal,istrue:2})
postt()
}
//
const handleDel = (val:any) => {
const dictTypeIds = [val.outID || postIds.value].join(",");
let dictTypeIdAry = dictTypeIds.split(",")
ElMessageBox.confirm("你确定删除这条信息吗?", "提示", {
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
const add = val.key.toString()
handleSure(val)
console.log(val.id)
edit_depart({id:add,state:3,istrue:2}).then(()=>
ElMessage.success("删除成功"))
postt()
})
};
const handleSure = (val:any)=> {
const index = tableData.value.findIndex((item:any) => item.id === val.id);
if(index!=-1){
tableData.value.splice(index, 1);
}
}
const resetChecked=()=> {
formdate.orgidlist = ""
postt()
}
const handle=(data:any)=>{
formdate.orgidlist = data.id.toString()
postt()
}
const handleErd=(val:any)=>{
data.edPostBox=true;
rowInfo.value=val;
}
const handleio=(val:any)=>{
data.ygPostBox=true;
rowInfo.value = val;
}
onMounted(()=>{
jjjs()
postt()
})
</script>
<template>
<div class="m-2">
<el-container clss="m-4">
<div class="qwe">
<el-button type="primary" style="width: 140px" size="large" @click="resetChecked">全选</el-button>
<el-tree ref="orgTreeRef" v-model="formdate.orgidlist" node-key="id" class="orgTree" :data="tableData" :props="orgTreeProps" :default-expand-all="false" @node-click="handle"/>
</el-col>
<el-divider direction="vertical"/>
<el-col :span="21">
<el-container class="wer">
<el-form-item label="方案版本号:">
<el-input v-model="formdate.name" placeholder="请输入方案版本号" clearable style="width:200px"/>
</el-form-item>
<el-form-item label="年度:" label-width="90">
<el-date-picker v-model="formdate.value1" type="year"/>
</el-form-item>
<el-form-item label-width="25">
<el-button type="primary" @click="postt"><el-icon><Search /></el-icon></el-button>
<el-button class="new_btn" type="warning" @click="addtableData"><el-icon><Plus /></el-icon></el-button>
</el-form-item>
</el-container>
<el-table class="m-1" :data="tableq" border style="width: 100%">
<el-table-column prop="groupname,deaprtname," label="部门">
<template #default="scope">
{{scope.row.groupname}}{{scope.row.deaprtname}}
</template>
</el-table-column>
<el-table-column prop="year" label="年" width="70"/>
<el-table-column prop="key" label="版本号"/>
<el-table-column prop="time" label="时间" />
<el-table-column prop="state" label="状态" width="70">
<template #default="scope">
<el-switch v-model="scope.row.status" class="ml-2" inline-prompt style="--el-switch-on-color: #ff4949; --el-switch-off-color: #13ce66" @change="editPostState(scope.row.key,scope.row.state)"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="228">
<template #default="{ row }">
<el-button type="primary" link @click="handleio(row)"><el-icon><View /></el-icon></el-button>
<el-button type="primary" link @click="handleErd(row)"><el-icon><DocumentChecked /></el-icon></el-button>
<el-button type="primary" link @click="handleDel(row)"><el-icon><Delete /></el-icon></el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-container>
<pagination v-if="total > 0" v-model:page="formdate.page" v-model:pagesize="formdate.pagesize" :total="total" @click="postt"/>
<Dialog v-if="data.addPostBox" v-model="data.addPostBox" :title="title" :array-num="tableData.length" @add-row="addRow" @edit-row="editRow"></Dialog>
<Dialoglog v-if="data.edPostBox" v-model="data.edPostBox" :title="title" :row-info="rowInfo"></Dialoglog>
<Yg v-if="data.ygPostBox" v-model="data.ygPostBox" :title="title" :row-info="rowInfo"></Yg>
</div>
</template>
<style lang='scss' scoped>
.qwe {
margin:-8px 0 0 -6px;
float:right;
}
.wer{
margin:-5px 0 0 20px;
font-weight:normal;
}
.horizontal-controls {
display: flex;
float: left;
}
.el-divider--vertical{
display:inline-block;
width:1px;
height:812px;
margin:0 8px;
vertical-align:middle;
position:relative;
}
/* 可以根据需要调整样式 */
</style>

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

Loading…
Cancel
Save