index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. <template>
  2. <div class="app-container">
  3. <el-row :gutter="20">
  4. <!--机构数据-->
  5. <el-col :span="4" :xs="24">
  6. <org-tree v-model="queryParams.belongOrgId" @defaultKey="getDefaultKey" @checkChange="checkChange"
  7. @click="clickTreeNode" hangsheTree :defaultCheckSub="false"></org-tree>
  8. </el-col>
  9. <!--搜索栏-->
  10. <el-col :span="20" :xs="24">
  11. <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
  12. label-width="68px">
  13. <el-form-item label="任务名称" prop="planName">
  14. <el-input v-model="queryParams.planName" placeholder="请输入关键字" clearable
  15. @keyup.enter.native="handleQuery"/>
  16. </el-form-item>
  17. <el-form-item label="机构类型" prop="execOrgType">
  18. <el-select v-model="queryParams.execOrgType" placeholder="请选择机构类型" clearable>
  19. <el-option v-for="dict in dict.type.sys_org_type" :key="dict.value" :label="dict.label"
  20. :value="dict.value"/>
  21. </el-select>
  22. </el-form-item>
  23. <el-form-item label="任务状态" prop="planStatus">
  24. <el-select v-model="queryParams.planStatus" placeholder="请选择任务状态" clearable>
  25. <el-option v-for="dict in dict.type.drill_plan_status" :key="dict.value" :label="dict.label"
  26. :value="dict.value"/>
  27. </el-select>
  28. </el-form-item>
  29. <el-form-item label="任务周期" prop="planCycle">
  30. <el-select v-model="queryParams.planCycle" placeholder="请选择任务周期" clearable>
  31. <el-option v-for="dict in dict.type.drill_plan_cycle" :key="dict.value" :label="dict.label"
  32. :value="dict.value"/>
  33. </el-select>
  34. </el-form-item>
  35. <!-- <el-form-item label="演练角色" prop="planRoleId">
  36. <el-select v-model="queryParams.planRoleId" placeholder="请选择演练角色" clearable>
  37. <el-option v-for="item in planRoleList" :key="item.roleId" :label="item.roleName"
  38. :value="item.roleId"></el-option>
  39. </el-select>
  40. </el-form-item>-->
  41. <!-- <el-form-item>
  42. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  43. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  44. </el-form-item> -->
  45. </el-form>
  46. <el-row :gutter="10" class="mb8">
  47. <el-col :span="1.5">
  48. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  49. </el-col>
  50. <el-col :span="1.5">
  51. <el-button type="primary" icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  52. </el-col>
  53. <el-col :span="1.5">
  54. <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd"
  55. v-hasPermi="['core:drillPlan:add']">新增任务
  56. </el-button>
  57. </el-col>
  58. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  59. </el-row>
  60. <el-table height="500" max-height="550px" border :data="planList" @selection-change="handleSelectionChange"
  61. row-key="id"
  62. :tree-props="{ children: 'children' }">
  63. <el-table-column label="序号" align="center" width="60" prop="no"/>
  64. <el-table-column label="任务名称" align="left" header-align="center" width="250" prop="planName"/>
  65. <el-table-column label="创建机构" align="left" header-align="center" width="180" prop="createOrgName"/>
  66. <el-table-column label="行社名称" align="left" header-align="center" width="180" prop="belongOrgName"/>
  67. <el-table-column label="机构类型" align="center" width="120" prop="execOrgType">
  68. <template slot-scope="scope">
  69. <dict-tag :options="dict.type.sys_org_type" :value="scope.row.execOrgType"/>
  70. </template>
  71. </el-table-column>
  72. <el-table-column label="任务周期" align="center" width="120" prop="planCycle">
  73. <template slot-scope="scope">
  74. <dict-tag :options="dict.type.drill_plan_cycle" :value="scope.row.planCycle"/>
  75. </template>
  76. </el-table-column>
  77. <el-table-column label="任务次数" align="center" width="120" prop="execTimes"/>
  78. <el-table-column label="任务状态" align="center" width="120" prop="planStatus">
  79. <template slot-scope="scope">
  80. <dict-tag :options="dict.type.drill_plan_status" :value="scope.row.planStatus"/>
  81. </template>
  82. </el-table-column>
  83. <!-- <el-table-column label="备注" align="center" prop="remark"/> -->
  84. <!-- <el-table-column label="修改人" align="center" width="100" prop="updateBy"/> -->
  85. <el-table-column label="操作" align="left" header-align="center" fixed="right" class-name="small-padding fixed-width">
  86. <template slot-scope="scope">
  87. <el-button v-if="checkCanPublish(scope.row)" size="mini" type="text" icon="el-icon-edit-outline"
  88. @click="handlePublish(scope.row)" v-hasPermi="['core:drillPlan:publish']">下发
  89. </el-button>
  90. <el-button v-if="checkCanRevocation(scope.row)" size="mini" type="text" icon="el-icon-down"
  91. @click="handleRevocation(scope.row)" v-hasPermi="['core:plan:edit']">撤回
  92. </el-button>
  93. <el-button v-if="checkCanEdit(scope.row)" size="mini" type="text" icon="el-icon-edit-outline"
  94. @click="handleUpdate(scope.row)" v-hasPermi="['core:drillPlan:edit']">编辑
  95. </el-button>
  96. <el-button v-if="checkCanDel(scope.row)" size="mini" type="text" icon="el-icon-delete"
  97. @click="handleDelete(scope.row)" v-hasPermi="['core:drillPlan:remove']">删除
  98. </el-button>
  99. </template>
  100. </el-table-column>
  101. </el-table>
  102. <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
  103. :limit.sync="queryParams.pageSize"
  104. @pagination="getList"/>
  105. </el-col>
  106. </el-row>
  107. <!-- 添加或修改教育培训计划对话框 -->
  108. <DialogCom :title="title" :visible.sync="open" :before-close="closeDialog" :close="cancel" width="850px"
  109. height="800px" append-to-body>
  110. <el-form ref="form" :model="form" :rules="rules" label-width="110px">
  111. <el-row>
  112. <el-col :span="24">
  113. <el-form-item label="任务名称" prop="planName">
  114. <el-input v-model="form.planName" placeholder="请输入任务名称"/>
  115. </el-form-item>
  116. </el-col>
  117. </el-row>
  118. <el-row>
  119. <el-col :span="12">
  120. <el-form-item label="任务周期" prop="planCycle">
  121. <el-select v-model="form.planCycle" placeholder="请选择任务周期" style="width: 100%;">
  122. <el-option v-for="dict in dict.type.drill_plan_cycle" :key="dict.value" :label="dict.label"
  123. :value="parseInt(dict.value)"></el-option>
  124. </el-select>
  125. </el-form-item>
  126. </el-col>
  127. <el-col :span="12">
  128. <el-form-item label="任务次数" prop="execTimes">
  129. <template>
  130. <el-input-number style="width: 100%;" v-model="form.execTimes" :min="1" :max="10"></el-input-number>
  131. </template>
  132. </el-form-item>
  133. </el-col>
  134. </el-row>
  135. <el-row>
  136. <el-col :span="12" v-show="form.planCycle == 0">
  137. <el-form-item prop="startDate" label="开始日期">
  138. <el-date-picker style="width: 100%;" v-model="form.startDate" @change="startDateChanged"
  139. :picker-options="startDatepickerOptions"
  140. align="right" type="date" placeholder="选择开始日期">
  141. </el-date-picker>
  142. </el-form-item>
  143. </el-col>
  144. <el-col :span="12" v-show="form.planCycle == 0">
  145. <el-form-item prop="endDate" label="结束日期">
  146. <el-date-picker style="width: 100%;" v-model="form.endDate" :picker-options="endDatepickerOptions"
  147. align="right" type="date"
  148. placeholder="选择结束日期">
  149. </el-date-picker>
  150. </el-form-item>
  151. </el-col>
  152. </el-row>
  153. <el-row>
  154. <el-col :span="12" v-show="form.planCycle != 0">
  155. <el-form-item label="立即生效" prop="buildTaskNow">
  156. <!-- <el-checkbox v-model="form.buildTaskNow">
  157. 默认从下个周期...
  158. <el-popover placement="top-start" title="" width="200" trigger="hover"
  159. content="默认从下个周期生成任务,勾选后从当前周期立即生成任务">
  160. <i class="el-icon-warning-outline change-icon" slot="reference"></i>
  161. </el-popover>
  162. </el-checkbox>-->
  163. <el-checkbox v-model="form.buildTaskNow">
  164. 默认从下个周期生成任务,
  165. <br/>
  166. 勾选后从当前周期立即生成任务
  167. </el-checkbox>
  168. </el-form-item>
  169. </el-col>
  170. <el-col :span="12">
  171. <el-form-item label="机构类型" prop="execOrgType">
  172. <el-select v-model="form.execOrgType" placeholder="请选择执行机构类型" @change="execOrgTypeChanged()"
  173. style="width: 100%;">
  174. <el-option v-for="dict in dict.type.sys_org_type" :key="dict.value" :label="dict.label"
  175. :value="parseInt(dict.value)"></el-option>
  176. </el-select>
  177. </el-form-item>
  178. </el-col>
  179. </el-row>
  180. <!-- <el-row>
  181. <el-col :span="12">
  182. <el-form-item label="演练角色" prop="planRoleId">
  183. <el-select v-model="form.planRoleId" placeholder="请选择" multiple style="width:100%">
  184. <el-option v-for="item in roleList" :key="item.id" :label="item.name" :value="item.id"></el-option>
  185. </el-select>
  186. </el-form-item>
  187. </el-col>
  188. <el-col :span="12">
  189. <el-form-item v-if="this.form.id" label="计划状态" prop="planStatus">
  190. <el-select v-model="form.planStatus" placeholder="请选择计划状态" style="width: 100%;">
  191. <el-option v-for="dict in dict.type.drill_plan_status" :key="dict.value" :label="dict.label"
  192. :value="parseInt(dict.value)"></el-option>
  193. </el-select>
  194. </el-form-item>
  195. </el-col>
  196. </el-row>-->
  197. <el-row>
  198. <el-col :span="24">
  199. <el-form-item v-show="form.execOrgType" label="演练机构" prop="planExecOrgIdList">
  200. <org-tree-select
  201. v-model="form.planExecOrgIdList" :queryData="form.execOrgType" ref="orgTreeSelect"
  202. :enabledCheckOrgTypes="form.execOrgType" :disable="true">
  203. </org-tree-select>
  204. </el-form-item>
  205. </el-col>
  206. </el-row>
  207. <el-row>
  208. <el-col :span="24">
  209. <el-form-item label="备注" prop="remark">
  210. <el-input v-model="form.remark" placeholder="请输入备注"/>
  211. </el-form-item>
  212. </el-col>
  213. </el-row>
  214. <el-row>
  215. <el-col :span="12">
  216. <el-form-item label="上传文件" prop="fileList">
  217. <K-file-upload ref="upload" :defaultValue="formFileListDefualtValue" v-model="form.fileList"/>
  218. </el-form-item>
  219. </el-col>
  220. </el-row>
  221. </el-form>
  222. <div slot="footer" class="dialog-footer">
  223. <el-button type="primary" @click="submitForm">确 定</el-button>
  224. <el-button @click="cancel">取 消</el-button>
  225. </div>
  226. </DialogCom>
  227. <!-- <DialogSelectFile
  228. ref="DialogSelectFile"
  229. :defaultSelect=defaultSelect
  230. @select="fileSelected"
  231. :orgId="orgId"
  232. ></DialogSelectFile> -->
  233. </div>
  234. </template>
  235. <script>
  236. import {
  237. addPlan,
  238. delPlan,
  239. getPlan,
  240. listPlan,
  241. listPlanRole,
  242. publishPlan,
  243. roleList,
  244. updatePlan,
  245. revocationPlan
  246. } from "@/api/core/drill/drillPlan";
  247. import tableList from "@/mixins/tableList";
  248. import OrgTree from "@/components/orgTree";
  249. import {deptTreeSelect} from "@/api/system/public";
  250. import KFileUpload from "@/components/K-FileUpload/index.vue";
  251. // import DialogSelectFile from "./dialog.select.file.vue";
  252. import OrgTreeSelect from '@/components/orgTreeSelect'
  253. import dayjs from "dayjs";
  254. export default {
  255. name: "Plan",
  256. dicts: ['sys_org_type', 'drill_plan_status', 'drill_plan_cycle'],
  257. components: {OrgTree, KFileUpload, OrgTreeSelect},
  258. mixins: [tableList],
  259. data() {
  260. return {
  261. // 遮罩层
  262. loading: true,
  263. // 选中数组
  264. ids: [],
  265. // 非单个禁用
  266. single: true,
  267. // 非多个禁用
  268. multiple: true,
  269. // 显示搜索条件
  270. showSearch: true,
  271. // 总条数
  272. total: 0,
  273. // 教育培训计划表格数据
  274. planList: [],
  275. // 弹出层标题
  276. title: "",
  277. // 是否显示弹出层
  278. open: false,
  279. isUnfold: false,
  280. defaultSelect: [],
  281. orgId: null,
  282. // 查询参数
  283. queryParams: {
  284. execOrgType: null,
  285. planCycle: null,
  286. planStatus: null,
  287. planRoleId: null,
  288. planName: null,
  289. checkSub: false,
  290. pageNum: 1,
  291. pageSize: 10,
  292. belongOrgId: null
  293. },
  294. formFileListDefualtValue: [],
  295. // 表单参数
  296. form: {},
  297. // 表单校验
  298. rules: {
  299. planName: [
  300. {required: true, message: "任务名称不能为空", trigger: "blur"}
  301. ],
  302. planCycle: [
  303. {required: true, message: "任务周期不能为空", trigger: "blur"}
  304. ],
  305. execTimes: [
  306. {required: true, message: "任务次数不能为空", trigger: "blur"}
  307. ],
  308. // planStatus: [
  309. // {required: true, message: "计划状态不能为空", trigger: "blur"}
  310. // ],
  311. execOrgType: [
  312. {required: true, message: "机构类型不能为空", trigger: "blur"}
  313. ],
  314. // planRoleId: [
  315. // {required: true, message: "演练角色不能为空", trigger: "blur"}
  316. // ],
  317. },
  318. planRoleList: [],
  319. roleList: [],
  320. //修改新增中的机构树
  321. deptOptions: [],
  322. startDatepickerOptions: {
  323. disabledDate(time) {
  324. const date = new Date();
  325. date.setTime(date.getTime() - 3600 * 1000 * 24);
  326. return time.getTime() < date;
  327. },
  328. },
  329. endDatepickerOptions: {
  330. disabledDate: this.disabledDate,
  331. },
  332. };
  333. },
  334. created() {
  335. this.getList();
  336. //this.initPlanRoleList();
  337. this.orgId = this.$store.getters.orgId;
  338. },
  339. methods: {
  340. /** 查询预案演练计划列表 */
  341. getList() {
  342. this.loading = true;
  343. listPlan(this.queryParams).then(response => {
  344. this.planList = response.rows;
  345. this.total = response.total;
  346. this.loading = false;
  347. });
  348. },
  349. //初始化与计划相关的角色信息
  350. initPlanRoleList() {
  351. listPlanRole({}).then(response => {
  352. this.planRoleList = response.data;
  353. });
  354. },
  355. //初始化所有角色数据
  356. initRoleList(query) {
  357. this.form.planRoleId = [];
  358. roleList(query).then(response => {
  359. this.roleList = response.data;
  360. });
  361. },
  362. startDateChanged(time) {
  363. if (this.form.startDate > this.form.endDate) {
  364. this.form.endDate = this.form.startDate;
  365. }
  366. },
  367. disabledDate(time) {
  368. //小于开始日期禁止选择
  369. let startDate = new Date();
  370. startDate.setTime(startDate.getTime() - 3600 * 1000 * 24);
  371. if (this.form.startDate) {
  372. startDate = new Date(this.formatTime(this.form.startDate, 'YYYY-MM-DD'));
  373. startDate.setTime(startDate.getTime() - 3600 * 1000 * 24);
  374. }
  375. return time.getTime() < new Date(startDate).getTime()
  376. },
  377. //已完成下发的计划不显示下发按钮
  378. checkCanPublish(row) {
  379. if (row.issue == 0 && row.standard == 1 && (row.planStatus == 0 || row.planStatus == 2) &&this.checkCanEdit(row)) {
  380. return true
  381. }
  382. return false;
  383. },
  384. //撤回按钮
  385. checkCanRevocation(row) {
  386. return row.planStatus == 1 && row.standard == 1 && this.checkCanEdit(row);
  387. },
  388. //所属机构为当前用户登录机构时才显示 “编辑、删除”按钮
  389. checkCanEdit(row) {
  390. // console.log("checkCanEdit",this.$store.getters.orgId,row.belongOrgId)
  391. return (row.belongOrgId == this.$store.getters.orgId || row.createOrgId == this.$store.getters.orgId)
  392. },
  393. checkCanDel(row) {
  394. // console.log("checkCanEdit",this.$store.getters.orgId,row)
  395. // 计划仅能够通过删除标准计划来删除
  396. /* return (row.belongOrgId == this.$store.getters.orgId || row.createOrgId == this.$store.getters.orgId)
  397. && (row.issue != 1 || (row.issue == 1 && row.done != 1))*/
  398. return row.standard == 1 && row.done != 1 && this.checkCanEdit(row);
  399. },
  400. //省联社下发的计划不显示“删除”按钮
  401. checkCreateByTopOrg(row) {
  402. return row.createByTopOrg !== 1
  403. },
  404. execOrgTypeChanged(row) {
  405. this.$refs['orgTreeSelect'].clear();
  406. // this.initRoleList(this.form.execOrgType);
  407. // this.form.planExecOrgIdList = [];
  408. },
  409. /** 查询机构树数据 */
  410. getDeptTree() {
  411. deptTreeSelect().then(response => {
  412. this.deptOptions = response.data;
  413. });
  414. },
  415. // 取消按钮
  416. cancel() {
  417. this.open = false;
  418. this.reset();
  419. this.$refs['orgTreeSelect'].clear();
  420. this.$refs["upload"].clearFiles();
  421. },
  422. closeDialog() {
  423. this.cancel();
  424. },
  425. // 表单重置
  426. reset() {
  427. this.form = {
  428. id: null,
  429. planName: null,
  430. planCycle: null,
  431. execTimes: null,
  432. planStatus: null,
  433. execOrgType: null,
  434. planExecOrgIdList: null,
  435. startDate: null,
  436. endDate: null,
  437. buildTaskNow: null,
  438. remark: null,
  439. planRoleId: null,
  440. fileList: null,
  441. checkSub: true
  442. };
  443. this.resetForm("form");
  444. },
  445. getDefaultKey(key) {
  446. this.queryParams.belongOrgId = key;
  447. this.getList();
  448. },
  449. //单选框状态改变
  450. checkChange(state) {
  451. this.queryParams.checkSub = state;
  452. this.handleQuery();
  453. },
  454. // 节点单击事件
  455. clickTreeNode(data) {
  456. //this.initPlanRoleList();
  457. this.queryParams.belongOrgId = data.id;
  458. this.handleQuery();
  459. },
  460. /** treeSelect组件自定义数据*/
  461. tenantIdnormalizer(node, instanceId) {
  462. if (node.children && !node.children.length) {
  463. delete node.children
  464. }
  465. return {
  466. id: node.id,
  467. label: node.name,
  468. children: node.children
  469. }
  470. },
  471. /** 搜索按钮操作 */
  472. handleQuery() {
  473. this.queryParams.pageNum = 1;
  474. this.getList();
  475. },
  476. /** 重置按钮操作 */
  477. resetQuery() {
  478. this.resetForm("queryForm");
  479. this.handleQuery();
  480. },
  481. // 多选框选中数据
  482. handleSelectionChange(selection) {
  483. this.ids = selection.map(item => item.id)
  484. this.single = selection.length !== 1
  485. this.multiple = !selection.length
  486. },
  487. /** 新增按钮操作 */
  488. handleAdd() {
  489. //this.initRoleList();
  490. this.getDeptTree()
  491. this.reset();
  492. this.open = true;
  493. this.title = "新增演练任务";
  494. },
  495. /** 修改按钮操作 */
  496. handleUpdate(row) {
  497. // this.initRoleList();
  498. this.getDeptTree()
  499. this.reset();
  500. const id = row.id || this.ids
  501. getPlan(id).then(response => {
  502. this.form = response.data;
  503. this.formFileListDefualtValue = this.form.fileList;
  504. this.open = true;
  505. this.title = "编辑演练任务";
  506. });
  507. },
  508. /** 提交按钮 */
  509. submitForm() {
  510. if (dayjs(this.form.startDate).isAfter(dayjs(this.form.endDate))) {
  511. this.$message.error("开始时间不能大于结束时间!");
  512. return;
  513. }
  514. this.$refs["form"].validate(valid => {
  515. if (valid) {
  516. let request = {...this.form};
  517. console.log("request", request)
  518. if (this.form.planExecOrgIdList) {
  519. const list = Array.isArray(this.form.planExecOrgIdList) ? this.form.planExecOrgIdList : [this.form.planExecOrgIdList];
  520. request.planExecOrgIdList = list;
  521. } else {
  522. request.planExecOrgIdList = [];
  523. }
  524. if (request.id != null) {
  525. this.$modal.confirm(this.getMsgStr(request, '编辑')).then(function () {
  526. return updatePlan(request);
  527. }).then(() => {
  528. this.$modal.msgSuccess("编辑成功");
  529. this.open = false;
  530. this.getList();
  531. }).catch(() => {
  532. });
  533. } else {
  534. addPlan(request).then(response => {
  535. this.$modal.msgSuccess("新增成功");
  536. this.open = false;
  537. this.getList();
  538. });
  539. }
  540. }
  541. });
  542. },
  543. /** 删除按钮操作 */
  544. handleDelete(row) {
  545. const ids = row.id || this.ids;
  546. this.$modal.confirm(this.getMsgStr(row, '删除')).then(function () {
  547. return delPlan(ids);
  548. }).then(() => {
  549. this.getList();
  550. this.$modal.msgSuccess("删除成功");
  551. }).catch(() => {
  552. });
  553. },
  554. /** 下发计划 */
  555. handlePublish(row) {
  556. if (row.id != null) {
  557. this.$modal.confirm(this.getMsgStr(row, '下发')).then(function () {
  558. return publishPlan(row.id);
  559. }).then(() => {
  560. this.$modal.msgSuccess("下发成功");
  561. this.getList();
  562. }).catch(() => {
  563. });
  564. }
  565. },
  566. //撤回计划
  567. handleRevocation(row) {
  568. if (row.id != null) {
  569. this.$modal.confirm('撤回会清除本周期所有任务,是否继续?').then(function () {
  570. return revocationPlan(row.id);
  571. }).then(() => {
  572. this.$modal.msgSuccess("撤回成功");
  573. this.getList();
  574. }).catch(() => {
  575. });
  576. }
  577. },
  578. /** 导出按钮操作 */
  579. handleExport() {
  580. this.download('system/plan/export', {
  581. ...this.queryParams
  582. }, `plan_${new Date().getTime()}.xlsx`)
  583. },
  584. // showSelectFile() {
  585. // this.$refs["DialogSelectFile"].show();
  586. // },
  587. getMsgStr(row, type) {
  588. let str = '是否确认' + type + '该任务?';
  589. if (row.standard == 1) {
  590. str = '此操作将会影响所有行社任务,' + str;
  591. }
  592. return str;
  593. },
  594. fileSelected(list) {
  595. console.log("fileSelected", list);
  596. if (!list) return;
  597. list.forEach(x => {
  598. this.form.fileList = this.form.fileList.concat(x.fileList);
  599. })
  600. },
  601. }
  602. };
  603. </script>