index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
  4. <el-form-item :label="$t('检查内容')" prop="chkcontents" label-width="150">
  5. <el-input
  6. v-model="queryParams.chkcontents"
  7. :placeholder="$t('请输入') + $t('检查内容')"
  8. clearable
  9. size="small"
  10. @input="handleQuery"
  11. />
  12. </el-form-item>
  13. <el-form-item :label="$t('检查日期')" prop="inspectdate" label-width="150">
  14. <el-date-picker
  15. @change="handleQuery"
  16. v-model="chooseDate"
  17. type="daterange"
  18. align="right"
  19. unlink-panels
  20. :range-separator="$t('至')"
  21. :start-placeholder="$t('开始日期')"
  22. :end-placeholder="$t('结束日期')"
  23. value-format="yyyy-MM-dd"
  24. :picker-options="pickerOptions">
  25. </el-date-picker>
  26. </el-form-item>
  27. <el-form-item :label="$t('检查状况')" prop="inspectstatus" label-width="150">
  28. <el-select v-model="queryParams.inspectstatus" :placeholder="$t('请选择') + $t('检查状况')" clearable size="small" @change="handleQuery">
  29. <el-option
  30. v-for="dict in inspectstatusOptions"
  31. :key="dict.dictValue"
  32. :label="dict.dictLabel"
  33. :value="dict.dictValue"
  34. />
  35. </el-select>
  36. </el-form-item>
  37. <el-form-item>
  38. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('搜索') }}</el-button>
  39. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('重置') }}</el-button>
  40. </el-form-item>
  41. </el-form>
  42. <el-row :gutter="10" class="mb8">
  43. <el-col :span="1.5">
  44. <el-button
  45. type="primary"
  46. icon="el-icon-plus"
  47. size="mini"
  48. @click="handleAdd"
  49. v-hasPermi="['ehs:autosprinkler:add']"
  50. >{{ $t('新增') }}</el-button>
  51. </el-col>
  52. <el-col :span="1.5">
  53. <el-button
  54. type="success"
  55. icon="el-icon-edit"
  56. size="mini"
  57. :disabled="single"
  58. @click="handleUpdate"
  59. v-hasPermi="['ehs:autosprinkler:edit']"
  60. >{{ $t('修改') }}</el-button>
  61. </el-col>
  62. <el-col :span="1.5">
  63. <el-button
  64. type="danger"
  65. icon="el-icon-delete"
  66. size="mini"
  67. :disabled="multiple"
  68. @click="handleDelete"
  69. v-hasPermi="['ehs:autosprinkler:remove']"
  70. >{{ $t('删除') }}</el-button>
  71. </el-col>
  72. <el-col :span="1.5">
  73. <el-button
  74. type="info"
  75. icon="el-icon-upload2"
  76. size="mini"
  77. @click="handleImport"
  78. v-hasPermi="['ehs:autosprinkler:edit']"
  79. >{{ $t('导入') }}</el-button>
  80. </el-col>
  81. <el-col :span="1.5">
  82. <el-button
  83. type="warning"
  84. icon="el-icon-download"
  85. size="mini"
  86. @click="handleExport"
  87. v-hasPermi="['ehs:autosprinkler:export']"
  88. >{{ $t('导出') }}</el-button>
  89. </el-col>
  90. <el-col :span="1.5">
  91. <el-button
  92. type="primary"
  93. icon="el-icon-download"
  94. size="mini"
  95. :disabled="multiple"
  96. @click="handleBatch"
  97. v-hasPermi="['ehs:highpresfire:edit']"
  98. >{{ $t('批量') +' '+ $t('修改') }}</el-button>
  99. </el-col>
  100. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  101. </el-row>
  102. <el-table v-loading="loading" :data="autosprinklerList" @selection-change="handleSelectionChange" :cell-class-name="tableCellClassName" :height="clientHeight" border>
  103. <el-table-column type="selection" width="55" align="center" />
  104. <el-table-column :label="$t('检查日期')" align="center" prop="inspectdate" width="200">
  105. <template slot-scope="scope">
  106. <span>{{ parseTime(scope.row.inspectdate, '{y}-{m}-{d}') }}</span>
  107. </template>
  108. </el-table-column>
  109. <el-table-column :label="$t('部位')" align="center" prop="location" :show-overflow-tooltip="true"/>
  110. <el-table-column :label="$t('系统名称')" align="center" prop="sysname" :show-overflow-tooltip="true"/>
  111. <el-table-column :label="$t('检查内容')" align="center" prop="chkcontents" :show-overflow-tooltip="true"/>
  112. <el-table-column :label="$t('维修/检测情况')" align="center" prop="manitenance" :show-overflow-tooltip="true"/>
  113. <el-table-column :label="$t('检查人')" align="center" prop="inspector" :show-overflow-tooltip="true"/>
  114. <el-table-column :label="$t('检查状况')" align="center" prop="inspectstatus" width="120" :formatter="inspectstatusFormat" />
  115. <el-table-column :label="$t('备注')" align="center" prop="remarks" :show-overflow-tooltip="true"/>
  116. <el-table-column :label="$t('操作')" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
  117. <template slot-scope="scope">
  118. <el-button
  119. size="mini"
  120. type="text"
  121. icon="el-icon-edit"
  122. @click="handleUpdate(scope.row)"
  123. v-hasPermi="['ehs:autosprinkler:edit']"
  124. >{{ $t('修改') }}</el-button>
  125. <el-button
  126. size="mini"
  127. type="text"
  128. icon="el-icon-delete"
  129. @click="handleDelete(scope.row)"
  130. v-hasPermi="['ehs:autosprinkler:remove']"
  131. >{{ $t('删除') }}</el-button>
  132. </template>
  133. </el-table-column>
  134. </el-table>
  135. <pagination
  136. v-show="total>0"
  137. :total="total"
  138. :page.sync="queryParams.pageNum"
  139. :limit.sync="queryParams.pageSize"
  140. @pagination="getList"
  141. />
  142. <!-- 添加或修改自动喷淋系统对话框 -->
  143. <el-dialog v-dialogDrag :title="title" :visible.sync="open" width="500px" append-to-body>
  144. <el-form ref="form" :model="form" :rules="rules" label-width="80px">
  145. <el-form-item :label="$t('装置名称')" prop="plantCode">
  146. <el-select v-model="form.plantCode" :placeholder="$t('请选择') + $t('装置名称')">
  147. <el-option
  148. v-for="dict in plantCodeOptions"
  149. :key="dict.dictValue"
  150. :label="dict.dictLabel"
  151. :value="dict.dictValue"
  152. ></el-option>
  153. </el-select>
  154. </el-form-item>
  155. <el-form-item :label="$t('部位')" prop="location">
  156. <el-input v-model="form.location" :placeholder="$t('请输入') + $t('部位')" />
  157. </el-form-item>
  158. <el-form-item :label="$t('系统名称')" prop="sysname">
  159. <el-input v-model="form.sysname" :placeholder="$t('请输入') + $t('系统名称')" />
  160. </el-form-item>
  161. <el-form-item :label="$t('检查内容')" prop="chkcontents">
  162. <el-input v-model="form.chkcontents" :placeholder="$t('请输入') + $t('检查内容')" />
  163. </el-form-item>
  164. <el-form-item :label="$t('维修/检测情况')" prop="manitenance">
  165. <el-input v-model="form.manitenance" :placeholder="$t('请输入') + $t('维修/检测情况')" />
  166. </el-form-item>
  167. <el-form-item :label="$t('检查人')" prop="inspector">
  168. <el-input v-model="form.inspector" :placeholder="$t('请输入') + $t('检查人')" />
  169. </el-form-item>
  170. <el-form-item :label="$t('检查日期')" prop="inspectdate">
  171. <el-date-picker clearable size="small" style="width: 200px"
  172. v-model="form.inspectdate"
  173. type="date"
  174. value-format="yyyy-MM-dd"
  175. :placeholder="$t('请选择') + $t('检查日期')">
  176. </el-date-picker>
  177. </el-form-item>
  178. <el-form-item :label="$t('检查状况')" prop="inspectstatus">
  179. <el-select v-model="form.inspectstatus" :placeholder="$t('请选择') + $t('检查状况')">
  180. <el-option
  181. v-for="dict in inspectstatusOptions"
  182. :key="dict.dictValue"
  183. :label="dict.dictLabel"
  184. :value="dict.dictValue"
  185. ></el-option>
  186. </el-select>
  187. </el-form-item>
  188. <el-form-item :label="$t('备注')" prop="remarks">
  189. <el-input v-model="form.remarks" :placeholder="$t('请输入') + $t('备注')" />
  190. </el-form-item>
  191. <el-form-item :label="$t('归属部门')" prop="deptId">
  192. <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" :placeholder="$t('请选择') + $t('归属部门')" />
  193. </el-form-item>
  194. </el-form>
  195. <div slot="footer" class="dialog-footer">
  196. <el-button type="primary" @click="submitForm">{{ $t('确 定') }}</el-button>
  197. <el-button @click="cancel">{{ $t('取 消') }}</el-button>
  198. </div>
  199. </el-dialog>
  200. <!-- 用户导入对话框 -->
  201. <el-dialog v-dialogDrag :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
  202. <el-upload
  203. ref="upload"
  204. :limit="1"
  205. accept=".xlsx, .xls"
  206. :headers="upload.headers"
  207. :action="upload.url"
  208. :disabled="upload.isUploading"
  209. :on-progress="handleFileUploadProgress"
  210. :on-success="handleFileSuccess"
  211. :auto-upload="false"
  212. drag
  213. >
  214. <i class="el-icon-upload"></i>
  215. <div class="el-upload__text">
  216. {{ $t('将文件拖到此处,或') }}
  217. <em>{{ $t('点击上传') }}</em>
  218. </div>
  219. <div class="el-upload__tip" slot="tip">
  220. <!--<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据-->
  221. <el-link type="info" style="font-size:12px" @click="importTemplate">{{ $t('下载模板') }}</el-link>
  222. </div>
  223. <form ref="downloadFileForm" :action="upload.downloadAction" target="FORMSUBMIT">
  224. <input name="type" :value="upload.type" hidden />
  225. </form>
  226. <div class="el-upload__tip" style="color:red" slot="tip">{{ $t('提示:仅允许导入“xls”或“xlsx”格式文件!') }}</div>
  227. </el-upload>
  228. <div slot="footer" class="dialog-footer">
  229. <el-button type="primary" @click="submitFileForm">{{ $t('确 定') }}</el-button>
  230. <el-button @click="upload.open = false">{{ $t('取 消') }}</el-button>
  231. </div>
  232. </el-dialog>
  233. <el-dialog v-dialogDrag :title="$t('批量') + $t('修改')" :visible.sync="batch.open" width="400px" append-to-body>
  234. <el-form ref="form" :model="batchForm" :rules="rules" label-width="80px">
  235. <el-form-item :label="$t('检查状况')" prop="inspectstatus">
  236. <el-select v-model="batchForm.inspectstatus" :placeholder="$t('请选择') + $t('检查状况')">
  237. <el-option
  238. v-for="dict in inspectstatusOptions"
  239. :key="dict.dictValue"
  240. :label="dict.dictLabel"
  241. :value="dict.dictValue"
  242. ></el-option>
  243. </el-select>
  244. </el-form-item>
  245. <el-form-item :label="$t('备注')" prop="remarks">
  246. <el-input type="textarea" v-model="batchForm.remarks" :placeholder="$t('请输入') + $t('备注')" />
  247. </el-form-item>
  248. </el-form>
  249. <div slot="footer" class="dialog-footer">
  250. <el-button type="primary" @click="batchSubmitForm">{{ $t('确 定') }}</el-button>
  251. <el-button @click="cancel">{{ $t('取 消') }}</el-button>
  252. </div>
  253. </el-dialog>
  254. </div>
  255. </template>
  256. <script>
  257. import { listAutosprinkler, batchEdit, getAutosprinkler, delAutosprinkler, addAutosprinkler, updateAutosprinkler, exportAutosprinkler } from "@/api/ehs/autosprinkler";
  258. import { treeselect } from "@/api/system/dept";
  259. import { getToken } from "@/utils/auth";
  260. import Treeselect from "@riophae/vue-treeselect";
  261. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  262. export default {
  263. name: "Autosprinkler",
  264. components: { Treeselect },
  265. data() {
  266. return {
  267. // 遮罩层
  268. loading: true,
  269. // 选中数组
  270. ids: [],
  271. // 非单个禁用
  272. single: true,
  273. // 非多个禁用
  274. multiple: true,
  275. // 显示搜索条件
  276. showSearch: false,
  277. // 总条数
  278. total: 0,
  279. // 自动喷淋系统表格数据
  280. autosprinklerList: [],
  281. // 弹出层标题
  282. title: "",
  283. // 部门树选项
  284. deptOptions: undefined,
  285. clientHeight:300,
  286. // 是否显示弹出层
  287. open: false,
  288. // 装置编号字典
  289. plantCodeOptions: [],
  290. // 检查状况字典
  291. inspectstatusOptions: [],
  292. // 用户导入参数
  293. upload: {
  294. //下载模板请求地址
  295. downloadAction: process.env.VUE_APP_BASE_API + '/common/template',
  296. //下载模板类型
  297. type: "autosprinkler",
  298. // 是否显示弹出层(用户导入)
  299. open: false,
  300. // 弹出层标题(用户导入)
  301. title: "",
  302. // 是否禁用上传
  303. isUploading: false,
  304. // 是否更新已经存在的用户数据
  305. updateSupport: 0,
  306. // 设置上传的请求头部
  307. headers: { Authorization: "Bearer " + getToken() },
  308. // 上传的地址
  309. url: process.env.VUE_APP_BASE_API + "/ehs/autosprinkler/importData"
  310. },
  311. // 查询参数
  312. queryParams: {
  313. pageNum: 1,
  314. pageSize: 20,
  315. plantCode: null,
  316. location: null,
  317. sysname: null,
  318. chkcontents: null,
  319. manitenance: null,
  320. inspector: null,
  321. inspectdate: null,
  322. startDate: null,
  323. endDate: null,
  324. inspectstatus: null,
  325. remarks: null
  326. },
  327. //日期快速选择
  328. pickerOptions: {
  329. shortcuts: [{
  330. text: this.$t('最近一周'),
  331. onClick(picker) {
  332. const end = new Date();
  333. const start = new Date();
  334. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  335. picker.$emit('pick', [start, end]);
  336. }
  337. }, {
  338. text: this.$t('最近一个月'),
  339. onClick(picker) {
  340. const end = new Date();
  341. const start = new Date();
  342. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  343. picker.$emit('pick', [start, end]);
  344. }
  345. }, {
  346. text: this.$t('最近三个月'),
  347. onClick(picker) {
  348. const end = new Date();
  349. const start = new Date();
  350. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  351. picker.$emit('pick', [start, end]);
  352. }
  353. }]
  354. },
  355. //日期选择器
  356. chooseDate: [],
  357. // 表单参数
  358. form: {},
  359. batch: {
  360. open: false
  361. },
  362. batchForm: {},
  363. // 表单校验
  364. rules: {
  365. plantCode: [
  366. { required: true, message: this.$t('装置编号') + this.$t('不能为空'), trigger: "change" }
  367. ],
  368. inspector: [
  369. { required: true, message: this.$t('检查人') + this.$t('不能为空'), trigger: "blur" }
  370. ],
  371. inspectdate: [
  372. { required: true, message: this.$t('检查日期') + this.$t('不能为空'), trigger: "blur" }
  373. ],
  374. deptId: [
  375. { required: true, message: this.$t('部门编号') + this.$t('不能为空'), trigger: "blur" }
  376. ],
  377. }
  378. };
  379. },
  380. watch: {
  381. // 根据名称筛选部门树
  382. deptName(val) {
  383. this.$refs.tree.filter(val);
  384. }
  385. },
  386. created() {
  387. //设置表格高度对应屏幕高度
  388. this.$nextTick(() => {
  389. this.clientHeight = (document.body.clientHeight - 80) * 0.8
  390. })
  391. this.getList();
  392. this.getTreeselect();
  393. this.getDicts("PLANT_DIVIDE").then(response => {
  394. this.plantCodeOptions = response.data;
  395. });
  396. this.getDicts("INSPECTSTATUS").then(response => {
  397. this.inspectstatusOptions = response.data;
  398. });
  399. },
  400. methods: {
  401. /** 查询自动喷淋系统列表 */
  402. getList() {
  403. this.loading = true;
  404. listAutosprinkler(this.queryParams).then(response => {
  405. this.autosprinklerList = response.rows;
  406. this.total = response.total;
  407. this.loading = false;
  408. });
  409. },
  410. //根据分数显示颜色提示
  411. tableCellClassName({ row, column, rowIndex, columnIndex }) {
  412. if (columnIndex == 7){
  413. return this.changeColor(row.inspectstatus)
  414. }
  415. },
  416. changeColor (value) {
  417. if(value == 10){
  418. return 'cellNormal'
  419. }else if( value == 12) {
  420. return 'cellMalfunction'
  421. }
  422. },
  423. /** 查询部门下拉树结构 */
  424. getTreeselect() {
  425. treeselect().then(response => {
  426. this.deptOptions = response.data;
  427. });
  428. },
  429. // 装置编号字典翻译
  430. plantCodeFormat(row, column) {
  431. return this.selectDictLabel(this.plantCodeOptions, row.plantCode);
  432. },
  433. // 检查状况字典翻译
  434. inspectstatusFormat(row, column) {
  435. return this.selectDictLabel(this.inspectstatusOptions, row.inspectstatus);
  436. },
  437. // 取消按钮
  438. cancel() {
  439. this.open = false;
  440. this.reset();
  441. },
  442. // 表单重置
  443. reset() {
  444. this.form = {
  445. id: null,
  446. plantCode: null,
  447. location: null,
  448. sysname: null,
  449. chkcontents: null,
  450. manitenance: null,
  451. owner: null,
  452. inspector: null,
  453. inspectdate: null,
  454. startDate: null,
  455. endDate: null,
  456. inspectstatus: null,
  457. delFlag: null,
  458. createrCode: null,
  459. createdate: null,
  460. updaterCode: null,
  461. updatedate: null,
  462. deptId: null,
  463. remarks: null
  464. };
  465. this.resetForm("form");
  466. },
  467. /** 搜索按钮操作 */
  468. handleQuery() {
  469. this.queryParams.pageNum = 1;
  470. this.queryParams.startDate = this.chooseDate[0];
  471. this.queryParams.endDate = this.chooseDate[1];
  472. this.getList();
  473. },
  474. /** 重置按钮操作 */
  475. resetQuery() {
  476. this.resetForm("queryForm");
  477. this.chooseDate = "";
  478. this.handleQuery();
  479. },
  480. // 多选框选中数据
  481. handleSelectionChange(selection) {
  482. this.ids = selection.map(item => item.id)
  483. this.single = selection.length!==1
  484. this.multiple = !selection.length
  485. },
  486. /** 新增按钮操作 */
  487. handleAdd() {
  488. this.reset();
  489. this.open = true;
  490. this.title = this.$t('新增') + " " + this.$t('自动喷淋系统');
  491. },
  492. /** 修改按钮操作 */
  493. handleUpdate(row) {
  494. this.reset();
  495. const id = row.id || this.ids
  496. getAutosprinkler(id).then(response => {
  497. this.form = response.data;
  498. this.open = true;
  499. this.title = this.$t('修改') + this.$t('自动喷淋系统');
  500. });
  501. },
  502. /** 提交按钮 */
  503. submitForm() {
  504. this.$refs["form"].validate(valid => {
  505. if (valid) {
  506. if (this.form.id != null) {
  507. updateAutosprinkler(this.form).then(response => {
  508. this.msgSuccess(this.$t('修改成功'));
  509. this.open = false;
  510. this.getList();
  511. });
  512. } else {
  513. addAutosprinkler(this.form).then(response => {
  514. this.msgSuccess(this.$t('新增成功'));
  515. this.open = false;
  516. this.getList();
  517. });
  518. }
  519. /*if (this.form.inspectstatus == 12) {
  520. this.$router.push("/production/accident");
  521. }*/
  522. }
  523. });
  524. },
  525. /** 批量提交按钮 */
  526. batchSubmitForm() {
  527. this.batchForm.ids = this.ids
  528. batchEdit(this.batchForm).then(response => {
  529. this.msgSuccess(this.$t('修改成功'));
  530. this.batch.open = false;
  531. this.getList();
  532. })
  533. },
  534. handleBatch() {
  535. this.batch.open = true
  536. },
  537. /** 删除按钮操作 */
  538. handleDelete(row) {
  539. const ids = row.id || this.ids;
  540. this.$confirm(this.$t('是否确认删除自动喷淋系统编号为"') + ids + this.$t('"的数据项?'), this.$t('警告'), {
  541. confirmButtonText: this.$t('确定'),
  542. cancelButtonText: this.$t('取消'),
  543. type: "warning"
  544. }).then(function() {
  545. return delAutosprinkler(ids);
  546. }).then(() => {
  547. this.getList();
  548. this.msgSuccess(this.$t('删除成功'));
  549. })
  550. },
  551. /** 导出按钮操作 */
  552. handleExport() {
  553. const queryParams = this.queryParams;
  554. this.$confirm(this.$t('是否确认导出所有自动喷淋系统数据项?'), this.$t('警告'), {
  555. confirmButtonText: this.$t('确定'),
  556. cancelButtonText: this.$t('取消'),
  557. type: "warning"
  558. }).then(function() {
  559. return exportAutosprinkler(queryParams);
  560. }).then(response => {
  561. this.download(response.msg);
  562. })
  563. },
  564. /** 导入按钮操作 */
  565. handleImport() {
  566. this.upload.title = this.$t('用户导入');
  567. this.upload.open = true;
  568. },
  569. /** 下载模板操作 */
  570. importTemplate() {
  571. this.$refs['downloadFileForm'].submit()
  572. },
  573. // 文件上传中处理
  574. handleFileUploadProgress(event, file, fileList) {
  575. this.upload.isUploading = true;
  576. },
  577. // 文件上传成功处理
  578. handleFileSuccess(response, file, fileList) {
  579. this.upload.open = false;
  580. this.upload.isUploading = false;
  581. this.$refs.upload.clearFiles();
  582. if (response.data[0] != null) {
  583. this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据') + "," + this.$t('第') + response.data + this.$t('行数据出现错误导入失败')+"。", this.$t('导入结果'), { dangerouslyUseHTMLString: true });
  584. }else {
  585. this.$alert(this.$t('成功导入') + response.msg + this.$t('条数据'), this.$t('导入结果'), { dangerouslyUseHTMLString: true });
  586. }
  587. this.getList();
  588. },
  589. // 提交上传文件
  590. submitFileForm() {
  591. this.$refs.upload.submit();
  592. }
  593. }
  594. };
  595. </script>