index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
  4. <el-row>
  5. <el-col :span="8">
  6. <el-form-item label="身份证号" prop="idCard">
  7. <el-input
  8. v-model="queryParams.idCard"
  9. placeholder="请输入身份证号码"
  10. style="width: 100%;"
  11. clearable
  12. @keyup.enter.native="handleQuery"
  13. />
  14. </el-form-item>
  15. </el-col>
  16. <el-col :span="8">
  17. <el-form-item label="人群分类" prop="focusCrowdStyle">
  18. <el-select clearable style="width: 108%;" filterable v-model="queryParams.focusCrowdStyle" placeholder="请选择人群分类">
  19. <el-option
  20. v-for="dict in dict.type.classification_population"
  21. :key="dict.label"
  22. :label="dict.label"
  23. :value="dict.label"
  24. ></el-option>
  25. </el-select>
  26. </el-form-item>
  27. </el-col>
  28. <!-- <el-col :span="8">
  29. <el-form-item label="采集时间" prop="nucleicCollectTime">
  30. <el-date-picker clearable
  31. v-model="queryParams.nucleicCollectTime"
  32. type="datetime"
  33. value-format="yyyy-MM-dd HH:mm:ss"
  34. format="yyyy-MM-dd HH:mm:ss"
  35. style="width: 100%;"
  36. placeholder="请选择核酸采集时间">
  37. </el-date-picker>
  38. </el-form-item>
  39. </el-col> -->
  40. <el-col :span="8">
  41. <el-form-item label="职业类别" prop="jobStyle">
  42. <el-select clearable style="width: 108%;" filterable v-model="queryParams.jobStyle" placeholder="请选择职业类别">
  43. <el-option
  44. v-for="dict in dict.type.occupational_category "
  45. :key="dict.label"
  46. :label="dict.label"
  47. :value="dict.label"
  48. ></el-option>
  49. </el-select>
  50. </el-form-item>
  51. </el-col>
  52. <el-col :span="24">
  53. <el-col :span="8">
  54. <el-form-item :label="'姓' + '\u3000\u3000' + '名'" prop="name">
  55. <el-input
  56. v-model="queryParams.name"
  57. placeholder="请输入姓名"
  58. style="width: 100%;"
  59. clearable
  60. @keyup.enter.native="handleQuery"
  61. />
  62. </el-form-item>
  63. </el-col>
  64. <el-col :span="8">
  65. <el-form-item label="开始时间" prop="startTime">
  66. <el-date-picker clearable
  67. v-model="queryParams.startTime"
  68. type="datetime"
  69. value-format="yyyy-MM-dd HH:mm:ss"
  70. format="yyyy-MM-dd HH:mm:ss"
  71. style="width: 100%;"
  72. placeholder="请选择比对开始时间">
  73. </el-date-picker>
  74. </el-form-item>
  75. </el-col>
  76. <el-col :span="8">
  77. <el-form-item label="采集地点" prop="collectPlace">
  78. <el-input
  79. v-model="queryParams.collectPlace"
  80. placeholder="请输入采集地点"
  81. clearable
  82. style="width: 108%;"
  83. @keyup.enter.native="handleQuery"
  84. />
  85. </el-form-item>
  86. </el-col>
  87. </el-col>
  88. <el-col :span="8">
  89. <el-form-item label="联系号码" prop="phoneNum">
  90. <el-input
  91. v-model="queryParams.phoneNum"
  92. placeholder="请输入联系号码"
  93. style="width: 100%;"
  94. clearable
  95. @keyup.enter.native="handleQuery"
  96. />
  97. </el-form-item>
  98. </el-col>
  99. <el-col :span="8">
  100. <el-form-item label="结束时间" prop="endTime">
  101. <el-date-picker clearable
  102. v-model="queryParams.endTime"
  103. type="datetime"
  104. value-format="yyyy-MM-dd HH:mm:ss"
  105. format="yyyy-MM-dd HH:mm:ss"
  106. style="width: 100%;"
  107. placeholder="请选择比对结束时间">
  108. </el-date-picker>
  109. </el-form-item>
  110. </el-col>
  111. <el-col :span="8">
  112. <el-form-item label="是否正常" prop="detectionResult">
  113. <el-select clearable style="width: 108%;" filterable v-model="queryParams.detectionResult" placeholder="请选择是否正常">
  114. <el-option
  115. v-for="dict in dict.type.whether_abnormal"
  116. :key="dict.label"
  117. :label="dict.label"
  118. :value="dict.label"
  119. ></el-option>
  120. </el-select>
  121. </el-form-item>
  122. </el-col>
  123. <el-col :span="8">
  124. <el-form-item class="nkseydf">
  125. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  126. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  127. </el-form-item>
  128. </el-col>
  129. </el-row>
  130. </el-form>
  131. <el-row :gutter="10" class="mb8">
  132. <el-col :span="18">
  133. <div style="color: #343434; font-size: 20px;">截至 <span style="color: #00b385;">{{gettime}}</span> 止 共计 <span style="color: #00b385;">{{nskeia}}</span> 次核酸</div>
  134. </el-col>
  135. <el-col :span="1.5">
  136. <el-button
  137. type="primary"
  138. plain
  139. icon="el-icon-download"
  140. size="mini"
  141. @click="importTemplate"
  142. >下载模板</el-button>
  143. </el-col>
  144. <el-col :span="1.5">
  145. <el-button
  146. type="info"
  147. plain
  148. icon="el-icon-upload2"
  149. size="mini"
  150. @click="handleImport"
  151. v-hasPermi="['system:info:import']"
  152. >导入</el-button>
  153. </el-col>
  154. <el-col :span="1.5">
  155. <el-button
  156. type="warning"
  157. plain
  158. icon="el-icon-download"
  159. size="mini"
  160. @click="handleExport"
  161. v-hasPermi="['system:info:export']"
  162. >导出</el-button>
  163. </el-col>
  164. <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
  165. </el-row>
  166. <el-table :height="tableMaxHeight" v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
  167. <el-table-column :fixed="rigs" label="姓名" align="center" prop="name" width="110"/>
  168. <el-table-column :fixed="rigs" label="身份证号码" align="center" prop="idCard" width="180"/>
  169. <el-table-column label="联系号码" align="center" prop="phoneNum" width="110"/>
  170. <el-table-column label="核酸采集时间" align="center" prop="nucleicCollectTime" width="157">
  171. <template slot-scope="scope">
  172. <span v-html="scope.row.nucleicCollectTime"></span>
  173. </template>
  174. </el-table-column>
  175. <el-table-column label="核酸结果时间" align="center" prop="nucleicResultsTime" width="157">
  176. <template slot-scope="scope">
  177. <span v-html="scope.row.nucleicResultsTime"></span>
  178. </template>
  179. </el-table-column>
  180. <el-table-column label="采集地点" align="center" width="117">
  181. <template slot-scope="scope">
  182. <span v-html="scope.row.collectPlace"></span>
  183. </template>
  184. </el-table-column>
  185. <el-table-column label="采集结果" align="center" width="117">
  186. <template slot-scope="scope">
  187. <span v-html="scope.row.nucleicResults"></span>
  188. </template>
  189. </el-table-column>
  190. <el-table-column label="职业类别" align="center" prop="jobStyle" width="137"/>
  191. <el-table-column label="重点人群分类" align="center" prop="focusCrowdStyle" width="130"/>
  192. <el-table-column label="检测频次(次/天)" align="center" prop="detectionFrequency" width="115"/>
  193. <el-table-column label="比对开始时间" align="center" prop="startTime" width="157">
  194. <template slot-scope="scope">
  195. <span>{{ scope.row.startTime}}</span>
  196. </template>
  197. </el-table-column>
  198. <el-table-column label="比对结束时间" align="center" prop="endTime" width="157">
  199. <template slot-scope="scope">
  200. <span>{{ scope.row.endTime}}</span>
  201. </template>
  202. </el-table-column>
  203. <el-table-column :fixed="rig" label="进度(已做核酸次数/频次)" align="center" prop="detectionProgress" width="165"/>
  204. <el-table-column :fixed="rig" label="是否异常" align="center" prop="detectionResult" >
  205. <template slot-scope="scope">
  206. <span :class="[scope.row.detectionResult == '正常' ? 'heade_codfr' : 'lndw']">{{ scope.row.detectionResult}}</span>
  207. </template>
  208. </el-table-column>
  209. <el-table-column :fixed="rig" label="操作" align="center" class-name="small-padding fixed-width">
  210. <template slot-scope="scope">
  211. <el-button
  212. size="mini"
  213. type="text"
  214. icon="el-icon-delete"
  215. @click="handleDelete(scope.row)"
  216. v-hasPermi="['system:dept:remove']"
  217. >删除</el-button>
  218. </template>
  219. </el-table-column>
  220. </el-table>
  221. <pagination
  222. v-show="total>0"
  223. :total="total"
  224. :page.sync="queryParams.pageNum"
  225. :limit.sync="queryParams.pageSize"
  226. @pagination="getList"
  227. />
  228. <!-- 用户导入对话框 -->
  229. <el-dialog :title="upload.title" :visible.sync="upload.open" width="600px" append-to-body>
  230. <el-upload
  231. ref="upload"
  232. :limit="1"
  233. accept=".xlsx, .xls"
  234. :headers="upload.headers"
  235. :action="upload.url"
  236. :disabled="upload.isUploading"
  237. :on-progress="handleFileUploadProgress"
  238. :on-success="handleFileSuccess"
  239. :auto-upload="false"
  240. :data="{focusCrowdStyle:upload.focusCrowdStyle,jobStyle:upload.jobStyle,startTime:upload.startTime,endTime:upload.endTime,detectionNumber:upload.detectionNumber,detectionScope:upload.detectionScope}"
  241. drag
  242. class="nhkiu"
  243. >
  244. <i class="el-icon-upload"></i>
  245. <div class="el-upload__text">将文件拖到此处,或<em style="color: #00b385;">点击上传</em></div>
  246. <div class="el-upload__tip text-center" slot="tip">
  247. <div class="el-upload__tip" slot="tip">
  248. <!-- <el-checkbox v-model="upload.updateSupport" /> 是否更新已经存在的用户数据 -->
  249. </div>
  250. <el-row>
  251. <el-form ref="form" :model="upload" :rules="rules" label-width="80px">
  252. <el-col :span="12">
  253. <el-form-item label="开始时间" prop="startTime">
  254. <el-date-picker clearable
  255. v-model="upload.startTime"
  256. type="datetime"
  257. value-format="yyyy-MM-dd HH:mm:ss"
  258. format="yyyy-MM-dd HH:mm:ss"
  259. style="width: 100%;"
  260. placeholder="请选择比对开始时间">
  261. </el-date-picker>
  262. </el-form-item>
  263. </el-col>
  264. <el-col :span="12">
  265. <el-form-item label="结束时间" prop="endTime">
  266. <el-date-picker clearable
  267. v-model="upload.endTime"
  268. type="datetime"
  269. value-format="yyyy-MM-dd HH:mm:ss"
  270. format="yyyy-MM-dd HH:mm:ss"
  271. style="width: 100%;"
  272. placeholder="请选择比对结束时间">
  273. </el-date-picker>
  274. </el-form-item>
  275. </el-col>
  276. <el-col :span="12">
  277. <el-form-item label="职业类别" prop="jobStyle">
  278. <el-select filterable v-model="upload.jobStyle" placeholder="请选择职业类别">
  279. <el-option
  280. v-for="dict in dict.type.occupational_category "
  281. :key="dict.label"
  282. :label="dict.label"
  283. :value="dict.label"
  284. ></el-option>
  285. </el-select>
  286. </el-form-item>
  287. </el-col>
  288. <el-col :span="12">
  289. <el-form-item label="人群分类" prop="focusCrowdStyle">
  290. <el-select filterable v-model="upload.focusCrowdStyle" placeholder="请选择人群分类">
  291. <el-option
  292. v-for="dict in dict.type.classification_population"
  293. :key="dict.label"
  294. :label="dict.label"
  295. :value="dict.label"
  296. ></el-option>
  297. </el-select>
  298. </el-form-item>
  299. </el-col>
  300. <el-col :span="24">
  301. <el-form-item :label="'次' + '\u3000\u3000' + '数'" prop="detectionNumber">
  302. <el-input
  303. v-model="upload.detectionNumber"
  304. placeholder="请输入次数"
  305. min="0"
  306. type="number"
  307. @blur="nhkse"
  308. />
  309. </el-form-item>
  310. </el-col>
  311. <!-- <el-col :span="12">
  312. <el-form-item :label="'天' + '\u3000\u3000' + '数'" prop="detectionScope">
  313. <el-input
  314. v-model="upload.detectionScope"
  315. placeholder="请输入天数"
  316. min="0"
  317. type="number"
  318. @blur="nhksets"
  319. @keyup.enter.native="handleQuery"
  320. />
  321. </el-form-item>
  322. </el-col> -->
  323. </el-form>
  324. </el-row>
  325. <span>仅允许导入xls、xlsx格式文件。</span>
  326. <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline; color: #00b385;" @click="importTemplate">下载模板</el-link>
  327. <div v-if="nlsmeh" style="font-size:16px;vertical-align: baseline; color: red;margin-top: 10px;">正在导入中,请稍后,请勿进行操作......</div>
  328. </div>
  329. </el-upload>
  330. <div slot="footer" class="dialog-footer">
  331. <el-button type="primary" @click="submitFileForm">确 定</el-button>
  332. <el-button @click="nlmse">取 消</el-button>
  333. </div>
  334. </el-dialog>
  335. </div>
  336. </template>
  337. <script>
  338. import { listInfo, getInfo, delInfo, addInfo, updateInfo,listInfohs } from "@/api/system/info";
  339. import { getToken } from "@/utils/auth";
  340. export default {
  341. dicts: ['occupational_category', 'classification_population','whether_abnormal'],
  342. name: "Info",
  343. data() {
  344. return {
  345. // 遮罩层
  346. loading: true,
  347. // 选中数组
  348. ids: [],
  349. // 非单个禁用
  350. single: true,
  351. // 非多个禁用
  352. multiple: true,
  353. // 显示搜索条件
  354. showSearch: true,
  355. // 总条数
  356. total: 0,
  357. // 导入人员信息表格数据
  358. infoList: [],
  359. // 弹出层标题
  360. title: "",
  361. // 是否显示弹出层
  362. open: false,
  363. // 查询参数
  364. queryParams: {
  365. pageNum: 1,
  366. pageSize: 10,
  367. name: null,
  368. idCard: null,
  369. phoneNum: null,
  370. nucleicCollectTime: null,
  371. nucleicResultsTime: null,
  372. jobStyle: null,
  373. focusCrowdStyle: null,
  374. detectionFrequency: null,
  375. startTime: null,
  376. endTime: null,
  377. },
  378. // 表单参数
  379. form: {},
  380. // 表单校验
  381. rules: {
  382. startTime: [
  383. { required: true, message: "开始时间不能为空", trigger: "blur" }
  384. ],
  385. endTime:[
  386. { required: true, message: "结束时间不能为空", trigger: "blur" }
  387. ],
  388. detectionNumber:[
  389. { required: true, message: "次数不能为空", trigger: "blur" }
  390. ],
  391. jobStyle:[
  392. { required: true, message: "职业类别不能为空", trigger: "blur" }
  393. ],
  394. focusCrowdStyle:[
  395. { required: true, message: "人群分类不能为空", trigger: "blur" }
  396. ]
  397. },
  398. // 用户导入参数
  399. upload: {
  400. // 是否显示弹出层(用户导入)
  401. open: false,
  402. // 弹出层标题(用户导入)
  403. title: "",
  404. // 是否禁用上传
  405. isUploading: false,
  406. // 是否更新已经存在的用户数据
  407. detectionNumber:null,
  408. detectionScope:null,
  409. startTime: null,
  410. endTime: null,
  411. jobStyle:null,
  412. focusCrowdStyle:null,
  413. updateSupport: 0,
  414. // 设置上传的请求头部
  415. headers: { Authorization: "Bearer " + getToken() },
  416. // 上传的地址
  417. url: process.env.VUE_APP_BASE_API + "/system/info/importData"
  418. },
  419. postOptions:[],
  420. gettime:'',
  421. nskeia:'',
  422. rig:'right',
  423. rigs:'left',
  424. tableMaxHeight:300,
  425. nlsmeh:false
  426. };
  427. },
  428. created() {
  429. this.getList();
  430. this.getCurrentTime()
  431. this.getLisths()
  432. window.onresize = () => {
  433. this.changeTableMaxHeight()
  434. }
  435. this.changeTableMaxHeight()
  436. },
  437. mounted() {
  438. window.onresize = () => {
  439. this.changeTableMaxHeight()
  440. }
  441. this.changeTableMaxHeight()
  442. },
  443. methods: {
  444. /** 查询导入人员信息列表 */
  445. getList() {
  446. this.loading = true;
  447. listInfo(this.queryParams).then(response => {
  448. this.infoList = response.rows;
  449. this.total = response.total;
  450. this.loading = false;
  451. });
  452. },
  453. /** 查询总核酸次数 */
  454. getLisths() {
  455. // this.loading = true;
  456. listInfohs().then(response => {
  457. this.nskeia = response.data;
  458. // this.total = response.total;
  459. // this.loading = false;
  460. });
  461. },
  462. // 取消按钮
  463. cancel() {
  464. this.open = false;
  465. this.reset();
  466. },
  467. // 表单重置
  468. reset() {
  469. this.form = {
  470. id: null,
  471. name: null,
  472. gender: null,
  473. age: null,
  474. idCard: null,
  475. phoneNum: null,
  476. nucleicCollectTime: null,
  477. nucleicResultsTime: null,
  478. jobStyle: null,
  479. focusCrowdStyle: null,
  480. detectionFrequency: null,
  481. detectionNumber: null,
  482. detectionScope: null,
  483. deptName: null,
  484. startTime: null,
  485. endTime: null,
  486. createBy: null,
  487. createTime: null,
  488. updateBy: null,
  489. updateTime: null,
  490. remark: null
  491. };
  492. this.resetForm("form");
  493. },
  494. /** 搜索按钮操作 */
  495. handleQuery() {
  496. this.queryParams.pageNum = 1;
  497. this.getList();
  498. },
  499. /** 重置按钮操作 */
  500. resetQuery() {
  501. this.resetForm("queryForm");
  502. this.handleQuery();
  503. },
  504. // 多选框选中数据
  505. handleSelectionChange(selection) {
  506. this.ids = selection.map(item => item.id)
  507. this.single = selection.length!==1
  508. this.multiple = !selection.length
  509. },
  510. /** 新增按钮操作 */
  511. handleAdd() {
  512. this.reset();
  513. this.open = true;
  514. this.title = "添加导入人员信息";
  515. },
  516. /** 修改按钮操作 */
  517. handleUpdate(row) {
  518. this.reset();
  519. const id = row.id || this.ids
  520. getInfo(id).then(response => {
  521. this.form = response.data;
  522. this.open = true;
  523. this.title = "修改导入人员信息";
  524. });
  525. },
  526. /** 提交按钮 */
  527. submitForm() {
  528. this.$refs["form"].validate(valid => {
  529. if (valid) {
  530. if (this.form.id != null) {
  531. updateInfo(this.form).then(response => {
  532. this.$modal.msgSuccess("修改成功");
  533. this.open = false;
  534. this.getList();
  535. });
  536. } else {
  537. addInfo(this.form).then(response => {
  538. this.$modal.msgSuccess("新增成功");
  539. this.open = false;
  540. this.getList();
  541. });
  542. }
  543. }
  544. });
  545. },
  546. /** 删除按钮操作 */
  547. handleDelete(row) {
  548. const ids = row.id || this.ids;
  549. this.$modal.confirm('是否确认删除信息').then(function() {
  550. return delInfo(ids);
  551. }).then(() => {
  552. this.getList();
  553. this.$modal.msgSuccess("删除成功");
  554. }).catch(() => {});
  555. },
  556. /** 导出按钮操作 */
  557. handleExport() {
  558. this.download('system/info/export', {
  559. ...this.queryParams
  560. }, `info_${new Date().getTime()}.xlsx`)
  561. },
  562. /** 导入按钮操作 */
  563. handleImport() {
  564. this.upload.title = "导入信息";
  565. this.upload.open = true;
  566. },
  567. /** 下载模板操作 */
  568. importTemplate() {
  569. window.open("https://yqfk.qs163.cn/muban/muban.xlsx")
  570. },
  571. // 文件上传中处理
  572. handleFileUploadProgress(event, file, fileList) {
  573. this.upload.isUploading = true;
  574. this.nlsmeh = true
  575. },
  576. // 文件上传成功处理
  577. handleFileSuccess(response, file, fileList) {
  578. // if(response.code == 200){
  579. this.nlsmeh = false
  580. this.upload.open = false;
  581. this.upload.isUploading = false;
  582. this.$refs.upload.clearFiles();
  583. this.upload.detectionNumber = null
  584. this.upload.startTime=null
  585. this.upload.endTime= null
  586. this.upload.jobStyle= null
  587. this.upload.focusCrowdStyle= null
  588. // }
  589. this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true });
  590. this.getList();
  591. },
  592. // 提交上传文件
  593. submitFileForm() {
  594. this.$refs["form"].validate(valid => {
  595. if (valid) {
  596. this.$refs.upload.submit();
  597. }
  598. });
  599. },
  600. // 次数失去焦点事件
  601. nhkse(value){
  602. console.log(this.upload.detectionNumber)
  603. if(this.upload.detectionNumber < 0){
  604. this.upload.detectionNumber = 0
  605. }
  606. },
  607. // 天数失去焦点事件
  608. nhksets(){
  609. if(this.upload.detectionScope < 0){
  610. this.upload.detectionScope = 0
  611. }
  612. },
  613. // 取消
  614. nlmse(){
  615. this.upload.open = false
  616. this.upload.detectionNumber = null
  617. this.upload.startTime=null
  618. this.upload.endTime= null
  619. this.upload.jobStyle= null
  620. this.upload.focusCrowdStyle= null
  621. },
  622. getCurrentTime() {
  623. //获取当前时间并打印
  624. var _this = this;
  625. console.log(3)
  626.   let yy = new Date().getFullYear();
  627.   let mm = new Date().getMonth()+1;
  628.   let dd = new Date().getDate();
  629.   let hh = new Date().getHours();
  630.   let mf = new Date().getMinutes()<10 ? '0'+new Date().getMinutes() : new Date().getMinutes();
  631.   let ss = new Date().getSeconds()<10 ? '0'+new Date().getSeconds() : new Date().getSeconds();
  632.   _this.gettime = yy+'-'+mm+'-'+dd;
  633.   console.log(_this.gettime)
  634. },
  635. // 获取屏幕高度
  636. showFilterForm () {
  637. this.filterActive = !this.filterActive
  638. this.changeTableMaxHeight()
  639. },
  640. changeTableMaxHeight () {
  641. let height = document.body.offsetHeight // 网页可视区域高度
  642. // if (this.filterActive) {
  643. // this.tableMaxHeight = height - 320
  644. // } else {
  645. this.tableMaxHeight = height - 380
  646. // }
  647. console.log(height)
  648. },
  649. }
  650. };
  651. </script>
  652. <style type="text/css" lang="scss">
  653. .nhkiu{
  654. .el-upload-dragger{
  655. width: 560px !important;
  656. margin-bottom: 20px;
  657. }
  658. }
  659. .nkseydf{
  660. .el-button--primary{
  661. background-color: #00b385 !important;
  662. border-color: #00b385 !important;
  663. }
  664. }
  665. .lndw{
  666. color: red;
  667. }
  668. .heade_codfr{
  669. color: #00b385;
  670. }
  671. </style>