index.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  1. <template>
  2. <div>
  3. <van-nav-bar title="查看日报" left-text="返回" @click-left="back" fixed left-arrow />
  4. <div class="login_form">
  5. <van-sticky :offset-top="43">
  6. <van-cell title="时间选择" clickable :value="nowTime" @click="showPicker = true" />
  7. </van-sticky>
  8. <div v-if="user.manageDeptId != 0 || reportsCompany || reportsDept">
  9. <van-sticky :offset-top="85">
  10. <van-cell title="选择部门" clickable :value="departmentText" @click="selectDepartmentShow = true">
  11. <template #extra>
  12. <van-icon v-if="departmentText" name="close" class="clearSeach"
  13. @click.stop="selectUserClear('dept')" />
  14. </template>
  15. <template #default>
  16. <span v-if="user.userNameNeedTranslate == '1'">
  17. <span v-if="departmentText">
  18. <ww-open-data type='departmentName' :openid='departmentText'></ww-open-data>
  19. </span>
  20. </span>
  21. <span v-else>{{ departmentText }}</span>
  22. </template>
  23. </van-cell>
  24. </van-sticky>
  25. <van-sticky :offset-top="127" class="one_report_select">
  26. <van-cell title="选择人员" clickable :value="userNameValue" @click="showUserPopu()"
  27. value-class="userNameValue">
  28. <template #extra>
  29. <van-icon v-if="selectPeopleVal.name" name="close" class="clearSeach"
  30. @click.stop="selectUserClear('user')" />
  31. </template>
  32. <template #default>
  33. <span v-if="user.userNameNeedTranslate == '1'">
  34. <span v-if="selectPeopleVal.name">
  35. <ww-open-data type='userName' :openid='selectPeopleVal.name'></ww-open-data>
  36. </span>
  37. </span>
  38. <span v-else>{{ selectPeopleVal.name }}</span>
  39. </template>
  40. </van-cell>
  41. </van-sticky>
  42. </div>
  43. <van-popup v-model="showPicker" position="bottom">
  44. <van-datetime-picker v-model="currentDate" type="date" :min-date="minDate" :max-date="maxDate"
  45. @confirm="changeTime" @cancel="showPicker = false" />
  46. </van-popup>
  47. <!--分页,加载更多-->
  48. <van-pull-refresh v-model="isDownloading" @refresh="onDownRefresh">
  49. <van-list v-model="isUpLoading" :finished="upFinished" :immediate-check="false" :offset="100" finished-text="没有更多了" @load="onLoadList">
  50. <van-skeleton :v-if="report.length != 0" v-for="(item, index) in report" title avatar :row="3" :loading="false"
  51. :key="index">
  52. <van-panel class="one_report" :title="item.name" :status="statusTxt[item.state]">
  53. <template #header>
  54. <div class="van-cell van-panel__header">
  55. <div class="van-cell__title">
  56. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName'
  57. :openid='item.name'></ww-open-data></span>
  58. <span v-else>{{ item.name }}</span>
  59. </div>
  60. <div class="van-cell__value van-panel__header-value">
  61. <span>{{ statusTxt[item.state] }}</span>
  62. </div>
  63. </div>
  64. </template>
  65. <div class="form_text">
  66. <span style="margin-right:20px;margin-left:5px;font-size:14px;">
  67. 总填报:
  68. <span>{{ parseFloat(item.reportTime).toFixed(1) }}h</span>
  69. </span>
  70. </div>
  71. <div v-if="user.timeType.enableNewWeeklyfill == 1 && item.summary != null" style="margin-left:20px;"
  72. v-html="'<b>' + item.summaryTitle + '</b><br>' + item.summary.replace(/\r\n/g, '<br>')">
  73. </div>
  74. <div v-for="(item1, index1) in item.data" class="one_report_data" :key="index1">
  75. <div class="project_title" style="font-weight:bold;">项目:{{ item1.project }} <span
  76. :style="'color:' + statusColor[item1.state]">[
  77. <span v-if="item1.state == 0">
  78. <span v-if="item1.isDeptAudit == 0">
  79. <span v-if="item1.projectAuditState == 0">
  80. 待项目审核人<span v-if="item1.projectAuditorName != null">(
  81. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName'
  82. :openid='item1.projectAuditorName'></ww-open-data></span>
  83. <span v-else>{{ item1.projectAuditorName }}</span>
  84. )</span>审核
  85. </span>
  86. <span style="color:#32CD32;" v-else-if="item1.projectAuditState == 1">
  87. 项目审核人<span v-if="item1.projectAuditorName != null">(
  88. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName'
  89. :openid='item1.projectAuditorName'></ww-open-data></span>
  90. <span v-else>{{ item1.projectAuditorName }}</span>
  91. )</span>审核通过
  92. </span>
  93. </span>
  94. <span v-else-if="item1.isDeptAudit == 1">
  95. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='departmentName'
  96. :openid='item1.auditDeptName'></ww-open-data></span>
  97. <span v-else>{{ item1.auditDeptName }}</span>
  98. 审核
  99. </span>
  100. </span>
  101. <span v-else>
  102. {{ statusTxt[item1.state] }}
  103. </span>
  104. <!-- {{statusTxt[item1.state]}} -->
  105. ] </span></div>
  106. <div style="color:red;" v-if="item1.state == 2 && item1.rejectReason != null">原因:{{
  107. item1.rejectReason }}
  108. </div>
  109. <div class="project_title" v-if="item1.subProjectName != null && user.companyId != yuzhongCompId">
  110. 子项目:{{ item1.subProjectName }}</div>
  111. <div class="project_title" v-if="user.companyId == yuzhongCompId">
  112. 角色:{{ item1.extraField1 ? roleList.find(r => r.value == item1.extraField1).label : '' }}</div>
  113. <div class="project_title" v-if="user.company.packageProject == 1 && item1.groupName != null">
  114. 任务分组:{{ item1.groupName }}</div>
  115. <div class="project_title" v-if="user.companyId == yuzhongCompId">
  116. 工作职责:{{ item1.extraField2 ? item1.extraField2Name : '' }}</div>
  117. <div class="project_title" v-if="user.companyId == yuzhongCompId">
  118. 工作内容:{{ item1.extraField3 ? item1.extraField3Name : '' }}</div>
  119. <div class="project_title" v-if="user.company.packageProject == 1 && item1.stage != '-'">
  120. 投入阶段:{{ item1.stage }}</div>
  121. <!--自定义维度 -->
  122. <div class="project_title" v-if="user.timeType.customDegreeActive == 1">
  123. {{ user.timeType.customDegreeName }}:{{ item1.degreeName }}</div>
  124. <div class="project_title" v-if="user.timeType.customDataActive == 1">
  125. {{ user.timeType.customDataName }}:{{ item1.customData }}</div>
  126. <div class="project_title" v-if="user.timeType.customTextActive == 1">
  127. {{ user.timeType.customTextName }}:{{ item1.customText }}</div>
  128. <div class="project_title" v-if="user.company.packageEngineering == 1">
  129. 专业进度:
  130. <span style="margin-right:10px;" v-for="progressItem in item1.professionProgress"
  131. :key="progressItem.id">{{ progressItem.professionName }}({{ progressItem.progress }}%)
  132. </span>
  133. </div>
  134. <div class="project_title" v-if="item1.taskId">任务:{{ item1.taskName }}</div>
  135. <!--根据类型选择使用的模板 -->
  136. <div v-if="item1.multiWorktime == 0">
  137. <div class="project_time">时长:
  138. <span v-if="item1.reportTimeType == 0" style="margin-right:10px;">{{
  139. fullDayTxt[item1.timeType] }}</span>
  140. <span v-if="item1.reportTimeType == 2" style="margin-right:10px;">{{ item1.startTime + '-' +
  141. item1.endTime }}</span>{{ item1.time.toFixed(1) }}h
  142. <div class="button" v-if="item1.isOvertime == 1">加班<span v-if="item1.overtimeHours">{{
  143. item1.overtimeHours.toFixed(1) }}h</span></div>
  144. </div>
  145. <div class="project_content">事项:<span v-html="item1.content"></span></div>
  146. </div>
  147. <div v-if="item1.multiWorktime == 1">
  148. <div>项目时长:<span style="margin-right:10px;">{{ item1.time.toFixed(1) }}h</span>
  149. <div class="button" v-if="item1.isOvertime == 1">加班<span v-if="item1.overtimeHours">{{
  150. item1.overtimeHours.toFixed(1) }}h</span></div>
  151. </div>
  152. <div style="position:relative;border:#ccc 0.5px solid;padding:3px;margin:5px 0px;"
  153. v-for="(timeItem, index) in item1.worktimeList" :key="index">
  154. <div class="project_time">时长:
  155. <!-- <span v-if="timeItem.reportTimeType == 0" style="margin-right:10px;">{{fullDayTxt[item1.timeType]}}</span> -->
  156. <span style="margin-right:10px;">{{ timeItem.startTime + '-' + timeItem.endTime
  157. }}</span>{{ timeItem.time.toFixed(1) }}h
  158. </div>
  159. <div class="project_content">事项:<span v-html="timeItem.content"></span></div>
  160. </div>
  161. </div>
  162. <div style="padding:5px;text-align:center;" v-if="item1.pics != null && item1.pics.length > 0">
  163. <span v-for="(p, index) in item1.pics" :key="p" style="margin-right:10px;">
  164. <img :src="p" style="width:80px; height:80px;" @click="showLargeImg(item1.pics, index)" />
  165. </span>
  166. </div>
  167. <van-divider />
  168. </div>
  169. <van-popup v-model="imgShow" position="bottom" closeable>
  170. <van-swipe class="my-swipe" indicator-color="white">
  171. <van-swipe-item v-for="(picItem, index) in tmpPics" :key="index">
  172. <img :src="picItem" style="width:100%;" />
  173. </van-swipe-item>
  174. </van-swipe>
  175. </van-popup>
  176. <!-- 编辑 -->
  177. <div slot="footer" class="foot">
  178. <van-button size="small" type="primary" @click="editor(item)"
  179. v-if="item.id == user.id && (item.state == 2 || item.state == 3)">编辑日报</van-button>
  180. </div>
  181. </van-panel>
  182. </van-skeleton>
  183. </van-list>
  184. </van-pull-refresh>
  185. <van-empty v-if="report.length == 0" description="暂无日报">
  186. <van-button round type="primary" class="bottom-button" @click="toWriteReport()">去填写</van-button>
  187. </van-empty>
  188. <!-- 人员选择 -->
  189. <van-popup v-model="selectUserShow" position="bottom" style="height: 90%">
  190. <div class="popupDiv">
  191. <div class="popupSearch">
  192. <van-search v-model.trim="searchInputValue" placeholder="输入员工姓名搜索" @clear="userListSearch"
  193. @search="userListSearch" shape="round" background="#F4F4F4"></van-search>
  194. </div>
  195. <div class="popupCon conBorder" style="flex: 1;background-color: #fff;">
  196. <div class="popupConBox">
  197. <van-radio-group v-model="selectPeopleVal">
  198. <van-radio v-for="uitem in showUserList" :key="uitem.id" :name="uitem" style="padding:10px"
  199. class="popupItem marginNone borderNone">
  200. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName'
  201. :openid='uitem.name'></ww-open-data></span>
  202. <span v-else>{{ uitem.name ? uitem.name : '' }}</span>
  203. </van-radio>
  204. </van-radio-group>
  205. </div>
  206. </div>
  207. <div class="popupBtn">
  208. <van-button style="width:100%;background: #1989fa;color: #ffffff;" round
  209. @click="selectUserConfirm()">确定</van-button>
  210. </div>
  211. </div>
  212. </van-popup>
  213. <!-- 部门选择 -->
  214. <van-popup v-model="selectDepartmentShow" position="bottom" style="height: 90%">
  215. <div class="popupDiv">
  216. <div class="comPaceholder">
  217. 已选择部门:
  218. <span v-if="user.userNameNeedTranslate != '1'">
  219. {{ selectDepartmentText.length > 0 ? selectDepartmentText[0].label : '请选择部门' }}
  220. </span>
  221. <span v-else>
  222. <span v-if="selectDepartmentText.length > 0">
  223. <ww-open-data type='departmentName' :openid='selectDepartmentText[0].label'></ww-open-data>
  224. </span>
  225. <span v-else>请选择部门</span>
  226. </span>
  227. </div>
  228. <div class="popupCon conBorder comTree popupTree" style="flex: 1;">
  229. <el-tree :data="departmentList" :props="defaultProps" @node-click="treeNodeClick">
  230. <span class="custom-tree-node" slot-scope="{ node }">
  231. <span v-if="user.userNameNeedTranslate == '1'">
  232. <span>
  233. <ww-open-data type='departmentName' :openid='node.label'></ww-open-data>
  234. </span>
  235. </span>
  236. <span v-if="user.userNameNeedTranslate != '1'">
  237. {{ node.label }}
  238. </span>
  239. </span>
  240. </el-tree>
  241. </div>
  242. <div class="popupBtn">
  243. <van-button style="width:100%;background: #1989fa;color: #ffffff;" round
  244. @click="treeBtn">确定</van-button>
  245. </div>
  246. </div>
  247. </van-popup>
  248. </div>
  249. </div>
  250. </template>
  251. <script>
  252. export default {
  253. components: {},
  254. data() {
  255. return {
  256. isDownloading: false,
  257. isUpLoading: false, // 上拉加载
  258. upFinished: false, // 上拉加载完毕
  259. pageIndex: 0,
  260. hasMore: true,
  261. yuzhongCompId: 3385,
  262. roleList: [{ value: 1, label: 'CRC&LM' }, { value: 2, label: 'PM' }],
  263. tmpPics: [],
  264. imgShow: false,
  265. hasWaiting: false,
  266. state: 0,
  267. statusColor: ['orange', 'green', 'red'],
  268. user: JSON.parse(localStorage.userInfo),
  269. minDate: new Date(2010, 0, 1),
  270. maxDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate()),
  271. currentDate: new Date(),
  272. nowTime: this.format(new Date(new Date()), "yyyy-MM-dd"),
  273. showPicker: false,
  274. report: [],
  275. fullDayTxt: ['全天', '上午', '下午'],
  276. statusTxt: ["待审核", "已通过", "已驳回", "待提交"],
  277. selectUserShow: false,
  278. searchInputValue: '',
  279. userList: [],
  280. showUserList: [],
  281. firstUserList: [],
  282. userIdList: '',
  283. userNameValue: '',
  284. selectPeopleVal: {},
  285. selectDepartmentShow: false,
  286. selectDepartmentText: [],
  287. departmentText: '',
  288. departmentList: [],
  289. defaultProps: {
  290. children: 'children',
  291. label: 'label'
  292. },
  293. reportsCompany: false,
  294. reportsDept: false
  295. };
  296. },
  297. created() {
  298. },
  299. methods: {
  300. onDownRefresh() {
  301. this.pageIndex = 1
  302. this.upFinished = false // 不写这句会导致你上拉到底过后在下拉刷新将不能触发下拉加载事件
  303. this.getReport();
  304. },
  305. onLoadList() {
  306. if(!this.hasMore) {
  307. this.upFinished = true
  308. this.isUpLoading = false
  309. return
  310. }
  311. this.pageIndex++;
  312. this.requestHttpReports();
  313. },
  314. requestHttpReports() {
  315. this.hasWaiting = false;
  316. let pames = {
  317. date: this.nowTime,
  318. }
  319. if (this.selectPeopleVal.id) {
  320. pames.userId = this.selectPeopleVal.id
  321. }
  322. if (this.departmentText && this.selectDepartmentText.length > 0) {
  323. pames.deptId = this.selectDepartmentText[0].id
  324. }
  325. pames.pageIndex = this.pageIndex;
  326. this.$axios.post("/report/getReportList", pames)
  327. .then(res => {
  328. if (res.code == "ok") {
  329. this.report = this.report.concat(res.data.data);
  330. this.hasMore = res.data.hasMore;
  331. this.isUpLoading = false;
  332. this.isDownloading = false;
  333. //计算状态
  334. for (var i = 0; i < this.report.length; i++) {
  335. var item = this.report[i];
  336. if (item.state == 0) {
  337. this.hasWaiting = true;
  338. }
  339. }
  340. } else {
  341. this.$toast.clear();
  342. this.$toast.fail('获取失败:' + res.msg);
  343. }
  344. }).catch(err => { this.$toast.clear(); });
  345. },
  346. showLargeImg(item, index) {
  347. this.imgShow = true;
  348. this.tmpPics = item;
  349. },
  350. // 返回
  351. back() {
  352. history.back();
  353. },
  354. getUsers(flag = true) {
  355. let deptId = this.selectDepartmentText[0] && this.selectDepartmentText[0].id
  356. this.$axios.post("/user/getEmployeeList", {
  357. departmentId: deptId || -1,
  358. pageIndex: 1,
  359. pageSize: -1
  360. })
  361. .then(res => {
  362. if (res.code == "ok") {
  363. if(flag) {
  364. this.userList = res.data.records;
  365. this.showUserList = res.data.records
  366. this.firstUserList = res.data.records
  367. } else {
  368. this.userList = res.data.records;
  369. this.showUserList = res.data.records
  370. }
  371. } else {
  372. this.$toast.fail('获取失败');
  373. }
  374. }).catch(err => { this.$toast.clear(); });
  375. },
  376. getDepartmentList() {
  377. this.$axios.post("/department/list", {})
  378. .then(res => {
  379. if (res.code == "ok") {
  380. this.departmentList = res.data;
  381. } else {
  382. this.$toast.fail('获取失败');
  383. }
  384. }).catch(err => { this.$toast.clear(); });
  385. },
  386. userListSearch(val) {
  387. const { userNameNeedTranslate } = this.user
  388. if (!this.searchInputValue) {
  389. this.showUserList = JSON.parse(JSON.stringify(this.userList))
  390. return
  391. }
  392. if (userNameNeedTranslate != 1) {
  393. const newUserList = JSON.parse(JSON.stringify(this.userList))
  394. this.showUserList = newUserList.filter(item => item.name.indexOf(this.searchInputValue) != -1)
  395. }
  396. if (userNameNeedTranslate == 1) {
  397. let deptId = this.selectDepartmentText[0] && this.selectDepartmentText[0].id
  398. this.$axios.post("/user/getEmployeeList", {
  399. departmentId: deptId || -1,
  400. pageIndex: 1, pageSize: -1,
  401. keyword: this.searchInputValue, status: '',
  402. roleId: '', cursor: '', onlyDirect: 0, matchingType: 0
  403. })
  404. .then(res => {
  405. if (res.code == "ok") {
  406. const dataList = res.data.records
  407. const userNameList = dataList.map(item => item.name)
  408. const newUserList = JSON.parse(JSON.stringify(this.userList))
  409. this.showUserList = newUserList.filter(item => userNameList.some(uItem => uItem.includes(item.name)))
  410. console.log(userNameList)
  411. } else {
  412. this.$toast.fail('搜索失败');
  413. }
  414. }).catch(err => { this.$toast.clear(); });
  415. }
  416. },
  417. selectUserConfirm() {
  418. console.log(this.selectPeopleVal)
  419. this.selectUserShow = false
  420. this.getReport()
  421. },
  422. selectUserClear(str) {
  423. if (str == 'user') {
  424. this.selectPeopleVal = {}
  425. }
  426. if (str == 'dept') {
  427. this.departmentText = ''
  428. this.selectDepartmentText = []
  429. }
  430. this.getReport()
  431. },
  432. showUserPopu() {
  433. if (!this.departmentText) {
  434. this.showUserList = JSON.parse(JSON.stringify(this.firstUserList))
  435. } else {
  436. this.showUserList = JSON.parse(JSON.stringify(this.userList))
  437. }
  438. this.searchInputValue = ''
  439. this.selectUserShow = true
  440. },
  441. treeNodeClick(item) {
  442. this.selectDepartmentText = [item]
  443. },
  444. treeBtn() {
  445. if (this.selectDepartmentText.length <= 0) {
  446. this.$toast('请选择部门');
  447. return
  448. }
  449. this.departmentText = this.selectDepartmentText[0].label
  450. this.selectDepartmentShow = false
  451. this.getUsers(false)
  452. this.getReport()
  453. },
  454. // 时间转换
  455. format(date, pattern) {
  456. pattern = pattern || "yyyy-MM-dd";
  457. var _this = this;
  458. return pattern.replace(/([yMdhsm])(\1*)/g, function ($0) {
  459. switch ($0.charAt(0)) {
  460. case 'y': return _this.padding(date.getFullYear(), $0.length);
  461. case 'M': return _this.padding(date.getMonth() + 1, $0.length);
  462. case 'd': return _this.padding(date.getDate(), $0.length);
  463. case 'w': return date.getDay() + 1;
  464. case 'h': return _this.padding(date.getHours(), $0.length);
  465. case 'm': return _this.padding(date.getMinutes(), $0.length);
  466. case 's': return _this.padding(date.getSeconds(), $0.length);
  467. }
  468. });
  469. },
  470. padding(s, len) {
  471. var len = len - (s + '').length;
  472. for (var i = 0; i < len; i++) { s = '0' + s; }
  473. return s;
  474. },
  475. // 改变时间
  476. changeTime(time) {
  477. this.nowTime = this.format(new Date(time), "yyyy-MM-dd");
  478. this.currentDate = time;
  479. this.showPicker = false;
  480. this.getReport();
  481. },
  482. // 获取日报
  483. getReport() {
  484. this.pageIndex = 0;
  485. this.isUpLoading = false;
  486. this.report = [];
  487. this.requestHttpReports();
  488. },
  489. // 点击编辑
  490. editor(item) {
  491. var path = '/edit';
  492. if (this.user.timeType.enableNewWeeklyfill == 1) {
  493. //物奇要填到按周填报
  494. path = '/weekEdit';
  495. }
  496. this.$router.push({
  497. path: path,
  498. query: {
  499. date: this.nowTime
  500. }
  501. });
  502. },
  503. // 去填写日报
  504. toWriteReport() {
  505. var path = '/edit';
  506. if (this.user.timeType.enableNewWeeklyfill == 1) {
  507. //物奇要填到按周填报
  508. path = '/weekEdit';
  509. }
  510. this.$router.push({
  511. path: path,
  512. query: {
  513. date: this.nowTime
  514. }
  515. });
  516. }
  517. },
  518. mounted() {
  519. if (sessionStorage.targetDate != null) {
  520. this.nowTime = sessionStorage.targetDate;
  521. sessionStorage.removeItem('targetDate');
  522. }
  523. const { functionList } = this.user
  524. for (var i in functionList) {
  525. if (functionList[i].name == '查看全公司工时') {
  526. this.reportsCompany = true
  527. }
  528. if (functionList[i].name == '查看本部门工时') {
  529. this.查看本部门工时 = true
  530. }
  531. }
  532. this.getReport();
  533. this.getUsers()
  534. this.getDepartmentList()
  535. }
  536. };
  537. </script>
  538. <style lang="less" scoped>
  539. .popupTree {
  540. font-size: 20px;
  541. padding: 20px 10px;
  542. /deep/ .el-tree-node {
  543. margin-bottom: 10px;
  544. }
  545. /deep/ .el-tree-node__content>.el-tree-node__expand-icon {
  546. font-size: 20px;
  547. }
  548. }
  549. .login_form {
  550. margin-top: 46px;
  551. }
  552. .one_report {
  553. margin-bottom: 15px;
  554. font-size: 14px;
  555. }
  556. .one_report_select {
  557. margin-bottom: 15px;
  558. }
  559. .form_text {
  560. margin: 15px 0 15px;
  561. padding: 0 12px;
  562. }
  563. .form_btn {
  564. text-align: right;
  565. }
  566. .form_btn button {
  567. margin-left: 10px;
  568. }
  569. .one_report_data {
  570. margin-bottom: 10px;
  571. padding: 0 22px;
  572. div {
  573. line-height: 30px;
  574. }
  575. }
  576. .comPaceholder {
  577. margin: 10px 15px;
  578. background: #fff;
  579. padding: 10px 10px;
  580. border-radius: 6px;
  581. font-size: 20px;
  582. color: #606266;
  583. }
  584. .comTree {
  585. background: #ffffff;
  586. }
  587. </style>
  588. <style lang="less">
  589. .van-nav-bar .van-icon,
  590. .van-nav-bar__text {
  591. color: #20a0ff;
  592. }
  593. .button {
  594. float: right;
  595. width: 80px;
  596. height: 25px;
  597. line-height: 25px;
  598. text-align: center;
  599. border: 1px solid red;
  600. color: red;
  601. box-sizing: border-box;
  602. border-radius: 10px;
  603. font-size: 14px;
  604. display: flex;
  605. justify-content: center;
  606. align-items: center;
  607. }
  608. .foot {
  609. width: 100%;
  610. display: flex;
  611. justify-content: end;
  612. }
  613. .bottom-button {
  614. width: 160px;
  615. height: 40px;
  616. background-color: rgb(53, 130, 245);
  617. border-color: rgb(53, 130, 245);
  618. }
  619. .clearSeach {
  620. line-height: 0.64rem;
  621. position: relative;
  622. left: 5px;
  623. }
  624. .userNameValue {
  625. white-space: nowrap;
  626. text-overflow: ellipsis;
  627. }
  628. </style>