manualRunProjectList.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <template>
  2. <div>
  3. <search-layout :needBox="true">
  4. <template slot="searchItem1">
  5. <span class="label">项目ID</span>
  6. <el-input
  7. v-model="searchParams.id"
  8. size="small"
  9. clearable
  10. placeholder="请输入"
  11. maxlength="60"
  12. >
  13. </el-input>
  14. </template>
  15. <template slot="searchItem2">
  16. <span class="label">项目名称</span>
  17. <el-input
  18. v-model="searchParams.clientOrgName"
  19. size="small"
  20. clearable
  21. placeholder="请输入"
  22. maxlength="60"
  23. >
  24. </el-input>
  25. </template>
  26. <template slot="searchItem3">
  27. <span class="label">进度</span>
  28. <el-select v-model="searchParams.status">
  29. <el-option
  30. v-for="item in list"
  31. :label="item.caption"
  32. :value="item.code"
  33. :key="item.code"
  34. ></el-option>
  35. </el-select>
  36. </template>
  37. <template slot="searchItem4">
  38. <span class="label">测评等级</span>
  39. <el-select v-model="searchParams.status">
  40. <el-option
  41. v-for="item in list"
  42. :label="item.caption"
  43. :value="item.code"
  44. :key="item.code"
  45. ></el-option>
  46. </el-select>
  47. </template>
  48. <template slot="searchItem5">
  49. <span class="label">创建时间</span>
  50. <el-date-picker
  51. v-model="searchParams.clientOrgName1"
  52. type="date"
  53. placeholder="选择日期"
  54. >
  55. </el-date-picker>
  56. </template>
  57. <template slot="searchItem6">
  58. <span class="label">完成时间</span>
  59. <el-date-picker
  60. v-model="searchParams.clientOrgName1"
  61. type="date"
  62. placeholder="选择日期"
  63. >
  64. </el-date-picker>
  65. </template>
  66. <template slot="searchBtn1">
  67. <el-button type="primary">查询</el-button>
  68. </template>
  69. <template slot="searchBtn2">
  70. <el-button type="primary">重置</el-button>
  71. </template>
  72. </search-layout>
  73. <div class="btnsPanel">
  74. <el-button type="primary" plain icon="el-icon-delete"
  75. >批量删除</el-button
  76. >
  77. <el-button
  78. type="primary"
  79. icon="el-icon-circle-plus-outline"
  80. @click="addOne"
  81. >创建</el-button
  82. >
  83. </div>
  84. <tableList
  85. ref="table"
  86. style="margin: 0 30px"
  87. :columns="columns"
  88. :getDataWay="getDataWay"
  89. :pagination="pagination"
  90. selection
  91. index
  92. >
  93. <!-- <el-table-column label="停/启用" slot="asd" align="center">
  94. <template v-slot="scope">
  95. <el-switch
  96. v-model="scope.row.asd"
  97. active-color="#3397FF"
  98. inactive-color="#b2b2b2"
  99. >
  100. </el-switch>
  101. </template>
  102. </el-table-column> -->
  103. <el-table-column label="操作" slot="cgInfos" align="center">
  104. <template v-slot="scope">
  105. <i
  106. @click="addMarkDia(scope.row)"
  107. class="el-icon-video-pause elIcon"
  108. title="停用"
  109. ></i>
  110. <i
  111. @click="addMarkDia(scope.row)"
  112. class="el-icon-delete elIcon"
  113. title="删除"
  114. ></i>
  115. <i
  116. @click="viewRow(scope.row)"
  117. class="el-icon-view elIcon"
  118. title="查看"
  119. ></i>
  120. <i
  121. @click="addMarkDia(scope.row)"
  122. class="el-icon-video-play elIcon"
  123. title="运行"
  124. ></i>
  125. <i
  126. @click="addMarkDia(scope.row)"
  127. class="el-icon-edit-outline elIcon"
  128. title="编辑"
  129. ></i>
  130. <i
  131. @click="downRow(scope.row)"
  132. class="el-icon-download elIcon"
  133. title="下载"
  134. ></i>
  135. </template>
  136. </el-table-column>
  137. </tableList>
  138. <el-dialog
  139. title="编辑"
  140. :visible.sync="dialogVisible"
  141. width="690px"
  142. :close-on-click-modal="false"
  143. :close-on-press-escape="false"
  144. >
  145. <div class="checkboxPanel">
  146. <el-checkbox-group v-model="downType">
  147. <el-checkbox label="工作报告" class="labelA"></el-checkbox>
  148. <el-checkbox label="任务文件包"></el-checkbox>
  149. </el-checkbox-group>
  150. </div>
  151. <span slot="footer">
  152. <el-button type="primary" @click="dialogVisible = false"
  153. >确 定</el-button
  154. >
  155. <el-button @click="dialogVisible = false">取 消</el-button>
  156. </span>
  157. </el-dialog>
  158. </div>
  159. </template>
  160. <script>
  161. import searchLayout from "@/components/grid/searchLayout";
  162. import tableList from "@/components/grid/TableList";
  163. export default {
  164. name: "manualRunProjectList", // 手动运行项目
  165. components: { searchLayout, tableList },
  166. data() {
  167. return {
  168. searchParams: {
  169. //搜索参数
  170. id: "", //ID
  171. clientOrgName: "", //车辆名称
  172. clientOrgName1: "", //配置名称
  173. clientOrgName2: "", //配置描述
  174. },
  175. list: [],
  176. columns: [
  177. {
  178. label: "项目ID",
  179. prop: "id",
  180. },
  181. {
  182. label: "项目名称",
  183. prop: "ktName",
  184. },
  185. {
  186. label: "算法名称",
  187. prop: "jbSource",
  188. },
  189. {
  190. label: "创建时间",
  191. prop: "jbSource",
  192. },
  193. {
  194. label: "进度",
  195. prop: "startDateStr",
  196. },
  197. {
  198. label: "测评等级",
  199. prop: "jbSource",
  200. },
  201. // {
  202. // label: "停/启用",
  203. // prop: "asd",
  204. // template: true,
  205. // },
  206. {
  207. label: "操作",
  208. prop: "cgInfos",
  209. template: true,
  210. },
  211. ],
  212. pagination: {
  213. //分页使用
  214. currentPage: 1,
  215. pageSize: 10,
  216. position: "right",
  217. pageSizes: [10, 30, 50, 100, 200],
  218. layout: "sizes, total, prev, pager, next, jumper",
  219. },
  220. getDataWay: {
  221. //加载表格数据
  222. dataType: "data",
  223. type: "post",
  224. firstRequest: false,
  225. data: [
  226. {
  227. id: 1,
  228. ktName: "kjdhfkjsdhfkjsjhdfksdjhfkhwoieyrhfisdhfksjhdf",
  229. jbSource: "收到就好付款时间的回复可见收到货覅无痕",
  230. asd: true,
  231. },
  232. { id: 2, asd: true },
  233. { id: 3, asd: true },
  234. { id: 4, asd: true },
  235. { id: 5, asd: true },
  236. { id: 6, asd: true },
  237. ],
  238. param: {},
  239. },
  240. downType: [],
  241. dialogVisible: false,
  242. };
  243. },
  244. methods: {
  245. addOne() {
  246. this.$router.push({ path: "/manualRunProjectDetail" });
  247. },
  248. viewRow() {
  249. this.$router.push({ path: "/projectInfo" });
  250. },
  251. addMarkDia() {},
  252. downRow(row) {
  253. this.dialogVisible = true;
  254. },
  255. },
  256. // mounted() {},
  257. };
  258. </script>
  259. <style lang='less' scoped>
  260. .btnsPanel {
  261. margin: 45px 40px 15px;
  262. }
  263. .checkboxPanel {
  264. text-align: center;
  265. .labelA {
  266. margin-right: 60px;
  267. }
  268. }
  269. </style>