WholeProcessManagement.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <!-- 全流程管理列表组件 -->
  3. <div id="WholeProcessManagement">
  4. <el-form :inline="true" ref="myTaskForm" :model="formInline" class="demo-form-inline" style="padding: 10px;">
  5. <el-form-item label="任务类型">
  6. <el-select size="mini" v-model="formInline.taskType" placeholder="任务类型">
  7. <el-option-group v-for="group in taskTypeOptions" :key="group.label" :label="group.label">
  8. <el-option v-for="item in group.options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
  9. </el-option-group>
  10. </el-select>
  11. </el-form-item>
  12. <el-form-item label="关联项目">
  13. <el-select size="mini" v-model="formInline.associatedItems" placeholder="关联项目">
  14. <el-option v-for="item in associatedItemsOptions" :key="item.value" :label="item.label" :value="item.value">
  15. </el-option>
  16. </el-select>
  17. </el-form-item>
  18. <el-form-item label="审计状态">
  19. <el-select size="mini" v-model="formInline.auditStatus" placeholder="审计状态">
  20. <el-option label="已审核" value="ReviewedAndApproved"></el-option>
  21. <el-option label="未审核" value="NotReviewed"></el-option>
  22. </el-select>
  23. </el-form-item>
  24. <el-form-item style="float: right">
  25. <el-button type="primary" @click="onSubmit">查询</el-button>
  26. <el-button @click="resetForm()">重置</el-button>
  27. </el-form-item>
  28. </el-form>
  29. <el-table :data="tableData" style="width: calc(100% - 20px);padding:0 10px;" height="calc(80vh - 400px)" stripe>
  30. <el-table-column type="index" width="50"> </el-table-column>
  31. <el-table-column prop="taskId" label="任务编号"> </el-table-column>
  32. <el-table-column prop="taskName" label="任务名称"> </el-table-column>
  33. <el-table-column prop="createDate" label="创建时间"> </el-table-column>
  34. <el-table-column prop="state" label="状态">
  35. <template slot-scope="scope">
  36. <el-tag :type="scope.row.state === '已审核' ? 'success' : 'info'" disable-transitions>{{ scope.row.state }}</el-tag>
  37. </template>
  38. </el-table-column>
  39. <el-table-column prop="taskType" label="任务类型"> </el-table-column>
  40. <el-table-column fixed="right" label="操作">
  41. <template slot-scope="scope">
  42. <el-button size="mini" icon="el-icon-search" @click="ToView(scope.$index, tableData)">查看</el-button>
  43. </template>
  44. </el-table-column>
  45. </el-table>
  46. <div style="padding: 10px;">
  47. <el-pagination
  48. style="float: right"
  49. @size-change="handleSizeChange"
  50. @current-change="handleCurrentChange"
  51. :current-page="1"
  52. :page-sizes="[5, 10, 20, 50]"
  53. :page-size="10"
  54. layout="total, prev, pager, next, sizes, jumper"
  55. :total="400"
  56. >
  57. </el-pagination>
  58. </div>
  59. <!-- 全流程管理流程组件 -->
  60. <StepsMyBox id="stepsBox" v-show="StepsMyBoxShowState" @hideStepsMyBoxState="StepsMyBoxShowState = false"/>
  61. </div>
  62. </template>
  63. <script>
  64. /**
  65. * 头部菜单(全流程管理列表)组件
  66. * @author: LiuMengxiang
  67. * @Date: 2022年11月21-25日
  68. */
  69. import StepsMyBox from "./StepsMyBox.vue";
  70. export default {
  71. name: "WholeProcessManagement",
  72. components: {StepsMyBox},
  73. data() {
  74. return {
  75. StepsMyBoxShowState: false,
  76. // 查询条件
  77. formInline: {
  78. taskType: "",
  79. associatedItems: "",
  80. auditStatus: ""
  81. },
  82. // 任务类型options
  83. taskTypeOptions: [
  84. {
  85. label: "全部类型",
  86. options: [
  87. {
  88. value: "all",
  89. label: "全部类型"
  90. }
  91. ]
  92. },
  93. {
  94. label: "基本类型",
  95. options: [
  96. {
  97. value: "landResources",
  98. label: "土地资源"
  99. },
  100. {
  101. value: "ecologicalResources",
  102. label: "生态资源"
  103. },
  104. {
  105. value: "forestLandResources",
  106. label: "林地资源"
  107. },
  108. {
  109. value: "waterResources",
  110. label: "水资源"
  111. },
  112. {
  113. value: "townAreaTopic",
  114. label: "镇域专题"
  115. }
  116. ]
  117. },
  118. {
  119. label: "土地资源",
  120. options: [
  121. {
  122. value: "lr_bfm",
  123. label: "基本农田监控"
  124. },
  125. {
  126. value: "lr_soclr",
  127. label: "建设用地减量化监管"
  128. }
  129. ]
  130. }
  131. ],
  132. // 关联项目options
  133. associatedItemsOptions: [
  134. {
  135. value: "1",
  136. label: "项目1"
  137. },
  138. {
  139. value: "2",
  140. label: "项目2"
  141. }
  142. ],
  143. // 我的任务form表单
  144. tableData: [
  145. {
  146. createDate: "2016-05-03",
  147. taskName: "任务名称",
  148. taskId: "任务编号",
  149. state: "已审核",
  150. taskType: "土地资源"
  151. },
  152. {
  153. createDate: "2016-05-03",
  154. taskName: "任务名称",
  155. taskId: "任务编号",
  156. state: "未审核",
  157. taskType: "土地资源"
  158. },
  159. {
  160. createDate: "2016-05-03",
  161. taskName: "任务名称",
  162. taskId: "任务编号",
  163. state: "已审核",
  164. taskType: "土地资源"
  165. },
  166. {
  167. createDate: "2016-05-03",
  168. taskName: "任务名称",
  169. taskId: "任务编号",
  170. state: "已审核",
  171. taskType: "土地资源"
  172. },
  173. {
  174. createDate: "2016-05-03",
  175. taskName: "任务名称",
  176. taskId: "任务编号",
  177. state: "已审核",
  178. taskType: "土地资源"
  179. }
  180. ]
  181. };
  182. },
  183. props: {},
  184. mounted() {},
  185. watch: {},
  186. methods: {
  187. // 切换条数
  188. handleSizeChange(val) {
  189. console.log(`每页 ${val} 条`);
  190. },
  191. // 切换页
  192. handleCurrentChange(val) {
  193. console.log(`当前页: ${val}`);
  194. },
  195. // 查询事件
  196. onSubmit() {
  197. console.log("submit!");
  198. },
  199. // 查询条件重置
  200. resetForm() {
  201. this.formInline = {
  202. taskType: "",
  203. associatedItems: "",
  204. auditStatus: ""
  205. };
  206. this.onSubmit();
  207. },
  208. // 查看
  209. ToView(index, rows) {
  210. this.StepsMyBoxShowState = true;
  211. console.log(rows, index);
  212. }
  213. }
  214. };
  215. </script>
  216. <style lang="less" scoped>
  217. #WholeProcessManagement {
  218. position: absolute;
  219. display: flex;
  220. background: #00274d;
  221. z-index: 999;
  222. margin-top: 60px;
  223. width: 100%;
  224. height: calc(100% - 60px);
  225. -moz-user-select: none;
  226. -webkit-user-select: none;
  227. -ms-user-select: none;
  228. -khtml-user-select: none;
  229. user-select: none;
  230. overflow: hidden;
  231. flex-direction: column;
  232. }
  233. </style>