index.vue 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393
  1. <template>
  2. <div class="app-container home">
  3. <el-row :gutter="5">
  4. <el-col :sm="24" :lg="17" >
  5. <div class="index_heade">
  6. <img src="../assets/images/icon_more.png" alt="" class="index_headerImg">
  7. <p class="index_headetab">
  8. <span :class="[num == index ? ' spanto' : '']" v-for="(item,index) in editableTabs" :key="index" @click="tabSbu(item.dictValue)">{{item.dictLabel}}</span>
  9. </p>
  10. <div style="height: 87%;">
  11. <ul class="index_headerUl">
  12. <li v-for="(item,index) in configList" :key="index" @click="headerCld(item)">
  13. <img src="../assets/images/icon_list_sj.png" alt="">
  14. <p>{{item.notice_title}}</p>
  15. <span>{{item.create_time}}</span>
  16. </li>
  17. </ul>
  18. <div class="index_haderPagin">
  19. <el-pagination
  20. v-show="total>0"
  21. @size-change="handleSizeChange"
  22. @current-change="handleCurrentChange"
  23. :current-page.sync="currentPage3"
  24. :page-size="queryParams.pageSize"
  25. layout="prev, pager, next, jumper"
  26. :total="total">
  27. </el-pagination>
  28. <span>共 {{total}} 条 每页显示 10 条 </span>
  29. </div>
  30. </div>
  31. </div>
  32. <!-- 列表 -->
  33. <!-- <el-col :sm="24" :lg="24" style="margin-top: 20px;" >
  34. <div class="index_heade index_headeNav" v-show="true">
  35. <img src="../assets/images/icon_more.png" alt="" class="index_headerImg">
  36. <p class="index_headetab">
  37. <span :class="[numlist == index ? ' spanto' : '']" v-for="(item,index) in attendance" :key="index" @click="tabList(index)">{{item}} <p class="tab_i">3</p></span></span>
  38. </p>
  39. <div v-if="num == 0">
  40. <el-table :data="tableDataalid" style="width: 100%;margin-top: 10px;" :stripe="true" >
  41. <el-table-column label="序号" align="center" prop="noticeId" width="60" height="53" max-height="53" />
  42. <el-table-column
  43. label="申请人"
  44. align="center"
  45. prop="name"
  46. :show-overflow-tooltip="true"
  47. width="70"
  48. />
  49. <el-table-column
  50. label="部门"
  51. align="center"
  52. prop="name"
  53. width="70"
  54. />
  55. <el-table-column
  56. label="请假类型"
  57. align="center"
  58. prop="status"
  59. width="75"
  60. />
  61. <el-table-column label="请假事由" align="center" prop="createBy" width="100" :show-overflow-tooltip="true"/>
  62. <el-table-column label="请假时间" align="center" prop="date" width="150"/>
  63. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  64. <template slot-scope="scope">
  65. <el-button
  66. size="small"
  67. type="success"
  68. @click="handleUpdate(scope.row)"
  69. v-hasPermi="['system:notice:edit']"
  70. >详情</el-button>
  71. <el-button
  72. size="small"
  73. type="primary"
  74. @click="handleDelete(scope.row)"
  75. v-hasPermi="['system:notice:remove']"
  76. >同意</el-button>
  77. <el-button
  78. size="small"
  79. type="danger"
  80. @click="handleDelete(scope.row)"
  81. v-hasPermi="['system:notice:remove']"
  82. >驳回</el-button>
  83. </template>
  84. </el-table-column>
  85. </el-table>
  86. <div class="index_haderPagin">
  87. <el-pagination
  88. @size-change="handleSizeChange"
  89. @current-change="handleCurrentChange"
  90. :current-page.sync="currentPage3"
  91. :page-size="pageSize"
  92. layout="prev, pager, next, jumper"
  93. :total="1000">
  94. </el-pagination>
  95. <span>共 85 条 每页显示 5 条 当前 1/17 页</span>
  96. </div>
  97. </div>
  98. </div>
  99. </el-col> -->
  100. <!-- </el-row> -->
  101. <!-- 公司概况 -->
  102. <el-col :sm="24" :lg="24">
  103. <div class="index_heade index_headeProfile">
  104. <img src="../assets/images/icon_tjbj.png" alt="" class="index_headerImg">
  105. <p class="index_headetab">
  106. <span :class="[numprofile == index ? ' spanto' : '']" v-for="(item,index) in editableTabsteo" :key="index" @click="tabSbuprofile(item.dictValue)">{{item.dictLabel}} </span>
  107. </p>
  108. <!-- <el-tabs v-model="activeName" @tab-click="handleClick">
  109. <el-tab-pane label="用户管理" name="first"> -->
  110. <div style="height: 84%;">
  111. <div style="height: 85%;">
  112. <h3 style="text-align: center; margin: 35px 0; margin-bottom: 0;" v-html="tieku"></h3>
  113. <pre>
  114. <div class="index_profilep" v-html="comg"></div>
  115. </pre>
  116. </div>
  117. <!-- {{getLisprofileone[0].info_content}} -->
  118. <div class="index_haderPagin">
  119. <el-pagination
  120. @size-change="handleSizeChangeprofile"
  121. @current-change="handleCurrentChangeprofile"
  122. :current-page.sync="currentPage3"
  123. :page-size="queryParamstabprofile.pageSize"
  124. layout="prev, pager, next, jumper"
  125. :total="totalprofile">
  126. </el-pagination>
  127. <span>共 {{totalprofile}} 条 每页显示 1条 </span>
  128. </div>
  129. </div>
  130. </div>
  131. </el-col>
  132. </el-col>
  133. <el-col :sm="24" :lg="7" style="padding-left: 15px">
  134. <div class="index_nav">
  135. <div class="index_navTime">
  136. <p class="index_navTimep" @click="handleAdd">
  137. <span>日程</span>
  138. <span><i class="el-icon-date" ></i>创建日程</span>
  139. </p>
  140. <el-calendar id="calendar">
  141. <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法-->
  142. <template
  143. slot="dateCell"
  144. slot-scope="{date, data}">
  145. <!--自定义内容-->
  146. <div>
  147. <div class="calendar-day" style="text-align: center">
  148. <el-tooltip v-if="brightDate.indexOf(data.day) != -1" class="item" effect="dark" :content="content(data.day)" placement="right">
  149. <span class="everyDay">{{ data.day.split('-').slice(2).join('-') }}</span>
  150. </el-tooltip>
  151. <span v-else>{{ data.day.split('-').slice(2).join('-') }}</span>
  152. <!-- <p :class="data.isSelected ? 'is-selected' : ''">
  153. {{ data.day.split('-').slice(1).join('-') }} {{ data.isSelected ? '✔️' : ''}}
  154. </p> -->
  155. </div>
  156. </div>
  157. </template>
  158. </el-calendar>
  159. <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
  160. </div>
  161. </div>
  162. <!-- 备忘录 -->
  163. <el-col :sm="24" :lg="24" >
  164. <div class="index_nav index_memoranduNnavTime">
  165. <div class="index_navTime ">
  166. <p class="index_navTimep">
  167. <span>备忘录</span>
  168. <span @click="memoere"><i class="el-icon-date"></i>创建备忘录</span>
  169. </p>
  170. <ul >
  171. <li v-for="(item,index) in getmemorandum" :key="index" >
  172. <p>{{item.memorandum_title}}
  173. </p>
  174. <div class="index_navspande">
  175. <span>
  176. {{item.remind_time}}
  177. </span>
  178. <img src="../assets/images/deletety.png" alt="" v-if="shower" @click="index_deledetfe(item.id)">
  179. </div>
  180. </li>
  181. </ul>
  182. <img src="../assets/images/icon_more.png" alt="" class="imjud">
  183. <!-- <el-calendar v-model="value">
  184. </el-calendar> -->
  185. <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
  186. </div>
  187. </div>
  188. </el-col >
  189. <!-- 通讯录 -->
  190. <el-col :sm="24" :lg="24">
  191. <div class="index_nav index_memoranduMail">
  192. <div class="index_navTime ">
  193. <p class="index_navTimep">
  194. <span>通讯录</span>
  195. <img src="../assets/images/icon_more.png" alt="" class="index_navTimeimgtwo">
  196. <!-- <span><i class="el-icon-date"></i>创建日程</span> -->
  197. </p>
  198. <div class="index_memoranduMailnav">
  199. <div class="tab_tol">
  200. <el-form class="iejgu" :model="queryParamsail" ref="queryForm" :inline="true" >
  201. <dynamic-forms :type="0" :ref="item.columnName" :config="queryParamsail" @inputs="changeFn" :formConfig="item"
  202. v-for="(item,index) in queryDataali.queryList" :key='index' />
  203. <el-form-item style="width: 30%; text-align: right;">
  204. <el-button type="primary" size="mini" @click="handleQuerygty">搜索</el-button>
  205. </el-form-item>
  206. </el-form>
  207. <el-table stripe v-loading="loading" :data="postList.rows" @selection-change="handleSelectionChange">
  208. <el-table-column :width="item.columnComment == 'id'? '40' : item.columnComment == '姓名'? '60' : '110'" :label="item.columnComment" align="left" :prop="item.columnName" v-for="(item,index) in postList.tableHeadList" :key="index" />
  209. </el-table>
  210. </div>
  211. <div class="index_haderPagin index_haderPaginfoiu">
  212. <!-- getLisail -->
  213. <el-pagination
  214. @size-change="handleSizeChangeali"
  215. @current-change="handleCurrentChangeali"
  216. :current-page.sync="currentPage3"
  217. :page-size="queryParamsail.pageSize"
  218. :small= "true"
  219. layout="prev, pager, next, jumper"
  220. :total="totalali">
  221. </el-pagination>
  222. </div>
  223. </div>
  224. <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
  225. </div>
  226. </div>
  227. </el-col>
  228. </el-col>
  229. </el-row>
  230. <!-- <el-divider /> -->
  231. <!-- 添加或修改公告对话框 -->
  232. <el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" width="980px" append-to-body>
  233. <el-form ref="form" :model="form" :rules="queryData.rules" label-width="160px" class="from_index">
  234. <el-row>
  235. <el-col :span="24" >
  236. <dynamic-forms @modelFn="modelFn" :ref="item.columnName" :config="form.fixedData" @inputs = "changeFn" :formConfig="item" v-for="(item,index) in queryData.showData" :key='index' />
  237. </el-col>
  238. </el-row>
  239. </el-form>
  240. <div slot="footer" class="dialog-footer">
  241. <el-button type="primary" @click="handleQuery">确 定</el-button>
  242. <el-button @click="cancel">取 消</el-button>
  243. </div>
  244. </el-dialog>
  245. <!-- 通知公告弹窗 -->
  246. <el-dialog class="index_ese" :close-on-click-modal="false" :title="title" :visible.sync="openety" width="980px" append-to-body>
  247. <div class="index_headertan" >
  248. <p v-html="actingk.notice_title == undefined? '暂无数据' : actingk.notice_title"></p>
  249. <p>{{actingk.create_time == undefined? '暂无数据' : actingk.create_time}} 发布人:{{actingk.create_by}}</p>
  250. <pre>
  251. <div v-html="actingk.notice_content"></div>
  252. </pre>
  253. </div>
  254. </el-dialog>
  255. </div>
  256. </template>
  257. <script>
  258. import { listIndex, getUserProfile, listIndextwo, listIndextherr, listIndexfou, listIndextanl, getConfig, delConfig, addConfig, addConfigindex, updateConfig, clearCache, delIndexnabd,listIndexber, getTableQuery } from "@/api/system/config";
  259. import Editor from '@/components/Editor';
  260. export default {
  261. name: "index",
  262. components: {
  263. Editor
  264. },
  265. data() {
  266. return {
  267. // 版本号
  268. version: "2.5.0",
  269. currentPage3: 1,
  270. total:0,
  271. totalprofile:0,
  272. totalali:0,
  273. pageSize:6,
  274. activeName: 'second',
  275. // 是否显示弹出层
  276. open: false,
  277. // 弹出层标题
  278. title: "",
  279. value: new Date(),
  280. editableTabs: [],
  281. attendance:['待我审批','已办理','我的流程','驳回审批'],
  282. editableTabsteo:[],
  283. configList:[],
  284. queryParams:{
  285. table:'sys_notice',
  286. orderBy:'create_time desc',
  287. pageNo:1,
  288. pageSize:10,
  289. fixedData:{
  290. condition:{
  291. notice_type:1,
  292. status:0
  293. }
  294. }
  295. },
  296. queryParamstab:{
  297. table:'sys_notice',
  298. orderBy:'create_time desc',
  299. pageNo:1,
  300. pageSize:6,
  301. condition:{
  302. notice_type:1
  303. }
  304. },
  305. // 公司概况
  306. queryParamstabprofile:{
  307. table:'sys_info',
  308. orderBy:'create_time desc',
  309. pageNo:1,
  310. pageSize:1,
  311. fixedData:{
  312. condition:{
  313. info_type:1
  314. }
  315. }
  316. },
  317. // 日历
  318. queryParamscalendar:{
  319. table:'sys_schedule',
  320. orderBy:'create_time desc',
  321. pageNo:1,
  322. pageSize:10,
  323. fixedData:{
  324. condition:{
  325. create_by:''
  326. }
  327. }
  328. },
  329. // 备忘录
  330. queryParamstabmemorandum:{
  331. table:'sys_memorandum',
  332. orderBy:'create_time desc',
  333. pageNo:1,
  334. pageSize:6,
  335. fixedData:{
  336. condition:{
  337. create_by:''
  338. }
  339. }
  340. },
  341. // 通讯录
  342. queryParamsail:{
  343. table:'sys_contacts',
  344. orderBy:'create_time desc',
  345. pageNo:1,
  346. pageSize:3,
  347. fixedData:{
  348. condition:{
  349. }
  350. }
  351. },
  352. // 通讯录搜索
  353. queryParamsailss:{
  354. table: '',
  355. pageNo: 1,
  356. isUi: false,
  357. pageSize: 10,
  358. orderBy: 'create_time desc',
  359. fixedData: {
  360. condition: {
  361. }
  362. }
  363. },
  364. queryParamsijeu:{
  365. table:'sys_contacts',
  366. },
  367. num:0,
  368. numlist:0,
  369. numprofile:0,
  370. dictType:'sys_notice_type',
  371. // 公司概况
  372. dictTypetwo:'sys_describe_type',
  373. gettabList:[],
  374. getLisprofileone:[],
  375. // 备忘录
  376. getmemorandum:[],
  377. //通讯录参数
  378. aliemg:{
  379. table:'sys_contacts',
  380. orderBy:'create_time desc',
  381. pageNo:1,
  382. pageSize:4,
  383. },
  384. tableDataalid:[],
  385. getLisaillie:[],
  386. alendarList:[],
  387. calendarData: [
  388. ],
  389. ary:[],
  390. tieku:'',
  391. comg:'',
  392. aekti:'',
  393. // 弹框数据
  394. form:{
  395. },
  396. // 表单校验
  397. rules: {
  398. },
  399. //日历弹框
  400. calendaradd:{
  401. table:'sys_schedule',
  402. isUi:false,
  403. fixedData:{
  404. id:-1
  405. }
  406. },
  407. //备忘录弹框
  408. calendaraddmer:{
  409. table:'sys_memorandum',
  410. isUi:false,
  411. fixedData:{
  412. id:-1
  413. }
  414. },
  415. // input
  416. inputList:[],
  417. // 时间
  418. dataList:[],
  419. //单选框
  420. radiolist:[],
  421. // 复选框
  422. chekbosList:[],
  423. //下拉框
  424. selectList:[],
  425. editorList:[],
  426. queryData: {},
  427. queryDatatwo:{},
  428. queryDatathre:{},
  429. queryDataali:{},
  430. nummer:0 ,//0 是日历 1 是备忘录
  431. forme:{
  432. table:'',
  433. objId:-1,
  434. fixedData:{}
  435. },
  436. rjtu:[],
  437. truew:[],
  438. fales:[],
  439. postList:{},
  440. arr:'2,2,3,3,4,4',
  441. // 删除参数
  442. deledlid:{
  443. table:'sys_memorandum',
  444. idList:[],
  445. user: {
  446. oldPassword: undefined,
  447. newPassword: undefined,
  448. confirmPassword: undefined
  449. },
  450. shower:true, //判断删除图标是否显示
  451. },
  452. titlees:'通知公告',//通知公告弹框
  453. openety:false,
  454. actingk:{}
  455. };
  456. },
  457. created() {
  458. // console.log(this.user)
  459. this.unique(this.arr)
  460. this.getList()
  461. this.getListtab()
  462. this.getLiser()
  463. this.getLisprofile()
  464. // 用户信息
  465. this.getUser()
  466. // this.getLismemorandum() //备忘录
  467. this.getLisail()//通讯录
  468. this.getLisailtwo()
  469. this.init()
  470. },
  471. computed: {
  472. // 时间高亮的数组
  473. brightDate () {
  474. // let ary = []
  475. var that = this
  476. if(that.calendarData.length !==null){
  477. for (var i = 0 ; i < that.calendarData.length; i++) {
  478. that.calendarData[i].love="yu"
  479. if(that.calendarData[i].remind_time !== undefined){
  480. that.ary.push(that.calendarData[i].remind_time)
  481. }
  482. }
  483. }
  484. return that.ary
  485. }
  486. },
  487. methods: {
  488. // 通讯录搜索
  489. init() {
  490. console.log(1243)
  491. getTableQuery({
  492. table: this.queryParamsijeu.table
  493. }).then(res => {
  494. let data = res.data
  495. this.queryDataali = data
  496. })
  497. },
  498. // Tooltip 文字提示
  499. content (date) {
  500. let data = date
  501. let datase = date
  502. let content = ''
  503. let conert = ''
  504. let conertre = ''
  505. let nujue= 0
  506. for (var i = 0 ; i < this.calendarData.length; i++) {
  507. if(this.calendarData[i].schedule_content !== undefined){
  508. this.calendarData[i].schedule_content = this.calendarData[i].schedule_content.replace(/<\/?[^>]*>/g, '')
  509. }
  510. if(data == this.calendarData[i].remind_time){
  511. if(content == this.calendarData[i].schedule_content + '、'){
  512. content = content
  513. }else{
  514. content = content + this.calendarData[i].schedule_content + '、'
  515. }
  516. }
  517. }
  518. return content
  519. },
  520. modelFn(obj, cont) {
  521. this.$set(this.form,obj,cont)
  522. },
  523. //数据 第一部分列表
  524. getList() {
  525. this.loading = true;
  526. this.configList = []
  527. listIndex(this.queryParams).then(response => {
  528. if(response.data.rows !== null){
  529. this.configList = response.data.rows;
  530. }else {
  531. this.configList.push({notice_title: "暂无数据"});
  532. }
  533. this.total = response.data.total;
  534. this.loading = false;
  535. }
  536. );
  537. },
  538. //数据 第二部分列表
  539. getListtabone() {
  540. this.loading = true;
  541. listIndex(this.queryParams).then(response => {
  542. this.configList = response.data.rows;
  543. this.total = response.data.total;
  544. this.loading = false;
  545. }
  546. );
  547. },
  548. //数据 第三部分列表
  549. getLisprofile() {
  550. // this.loading = true;
  551. listIndexber(this.queryParamstabprofile).then(response => {
  552. if(response.data !== undefined){
  553. this.getLisprofileone = response.data.rows;
  554. if(response.data.rows !== null){
  555. this.tieku = this.getLisprofileone[0].info_title
  556. this.comg = this.getLisprofileone[0].info_content
  557. }else {
  558. this.tieku = '暂无数据'
  559. this.comg = '暂无数据'
  560. }
  561. this.totalprofile = response.data.total;
  562. }
  563. this.loading = false;
  564. }
  565. );
  566. },
  567. //数据 日历数据列表
  568. getLisalendar() {
  569. this.loading = true;
  570. this.queryParamscalendar.fixedData.condition.create_by = this.user.userName
  571. listIndex(this.queryParamscalendar).then(response => {
  572. if(response.data !== undefined){
  573. this.calendarData = response.data.rows;
  574. }
  575. this.loading = false;
  576. }
  577. );
  578. },
  579. //数据 备忘录数据列表
  580. getLismemorandum() {
  581. this.loading = true;
  582. this.getmemorandum = []
  583. this.queryParamstabmemorandum.fixedData.condition.create_by = this.user.userName
  584. listIndex(this.queryParamstabmemorandum).then(response => {
  585. if(response.data !== undefined){
  586. if(response.data.rows !== null){
  587. this.shower = true
  588. this.getmemorandum = response.data.rows;
  589. }else{
  590. this.shower = false
  591. this.getmemorandum.push({memorandum_title:'暂无数据',shower:false})
  592. }
  593. }
  594. this.loading = false;
  595. }
  596. );
  597. },
  598. // 数据列表 通讯录数据
  599. getLisailtwo() {
  600. this.loading = true;
  601. listIndex(this.queryParamsail).then(response => {
  602. if(response.data !== undefined){
  603. this.getLisaillie = response.data.rows;
  604. }
  605. this.totalali = response.data.total
  606. this.loading = false;
  607. }
  608. );
  609. },
  610. //tab 公告 栏数据
  611. getListtab() {
  612. this.loading = true;
  613. listIndextwo(this.dictType).then(response => {
  614. this.editableTabs = response.data;
  615. this.queryParams.dictType = response.data[1].dictType
  616. // this.total = response.total;
  617. this.loading = false;
  618. }
  619. )
  620. },
  621. // 公司概况 tab
  622. getLiser() {
  623. this.loading = true;
  624. listIndextherr(this.dictTypetwo).then(response => {
  625. this.editableTabsteo = response.data;
  626. // this.total = response.total;
  627. this.loading = false;
  628. }
  629. )
  630. },
  631. // 通讯录表头
  632. getLisail() {
  633. this.loading = true;
  634. listIndexfou(this.queryParamsail).then(response => {
  635. if(response.data !== undefined){
  636. this.tableDataalid = response.data.tableHeadList;
  637. this.postList = response.data
  638. if(this.postList.rows !== null){
  639. this.postList.rows.filter(route => {
  640. // route.dept_id = route.dept_id.value
  641. for(var item in route){
  642. if(typeof route[item] == 'object'){
  643. route[item]= route[item].value
  644. }
  645. }
  646. })
  647. }
  648. this.totalali = response.data.total;
  649. }
  650. this.loading = false;
  651. }
  652. );
  653. },
  654. //日历新增弹框数据
  655. getLisalendaraddd() {
  656. this.loading = true;
  657. this.queryData = []
  658. listIndextanl(this.calendaradd).then(response => {
  659. if(response.data !== undefined){
  660. this.queryData = response.data
  661. }
  662. this.loading = false;
  663. }
  664. );
  665. },
  666. //备忘录新增弹框数据
  667. getLisalendaradddmer() {
  668. this.loading = true;
  669. this.queryData = []
  670. listIndextanl(this.calendaraddmer).then(response => {
  671. if(response.data !== undefined){
  672. this.queryData = response.data
  673. }
  674. this.loading = false;
  675. }
  676. );
  677. },
  678. goTarget(href) {
  679. window.open(href, "_blank");
  680. },
  681. handleSizeChange(val) {
  682. },
  683. handleCurrentChange(val) {
  684. this.queryParams.pageNo = val
  685. this.getList()
  686. },
  687. // 公司概况
  688. handleSizeChangeprofile(val) {
  689. },
  690. handleCurrentChangeprofile(val) {
  691. this.queryParamstabprofile.pageNo = val
  692. this.getLisprofile()
  693. },
  694. // 通讯录
  695. handleSizeChangeali(val) {
  696. },
  697. handleCurrentChangeali(val) {
  698. this.queryParamsail.pageNo = val
  699. this.getLisail()
  700. },
  701. handleClick(tab, event) {
  702. },
  703. // 第一部分tab点击
  704. tabSbu(index){
  705. this.num = index - 1
  706. this.queryParams.fixedData.condition.notice_type = index
  707. this.getList()
  708. },
  709. // 第二部分tab点击numlist
  710. tabList(index){
  711. this.numlist = index
  712. },
  713. // 第三部分tab点击
  714. tabSbuprofile(index){
  715. this.numprofile = index - 1
  716. this.queryParamstabprofile.fixedData.condition.info_type = index
  717. this.getLisprofile()
  718. },
  719. // 表单重置
  720. reset() {
  721. this.form ={
  722. },
  723. this.resetForm("form");
  724. },
  725. // 取消按钮
  726. cancel() {
  727. this.open = false;
  728. this.openety = false
  729. this.reset();
  730. },
  731. /** 新增按钮操作 */
  732. handleAdd() {
  733. this.nummer = 0
  734. this.reset();
  735. this.form ={
  736. }
  737. this.getLisalendaraddd()
  738. this.open = true;
  739. this.title = "添加日程";
  740. },
  741. /** 提交按钮操作 */
  742. handleQuery() {
  743. for(let item of this.queryData.showData){
  744. if(item.htmlType == 'checkbox' || item.htmlType == 'imageUpload' || item.htmlType == 'fileUpload'){
  745. this.form[item.columnName] = this.$refs[item.columnName][0].config
  746. } else{
  747. this.form[item.columnName] = this.$refs[item.columnName][0].config[item.columnName]
  748. }
  749. }
  750. // this.forme = this.form
  751. if(this.nummer == 0){
  752. this.forme.table = 'sys_schedule'
  753. this.forme.objId = -1
  754. this.forme.fixedData = this.form
  755. // if(this.forme.fixedData.remind_type !== undefined){
  756. // this.forme.fixedData.remind_type = this.forme.fixedData.remind_type.join(',');
  757. // }
  758. //日历
  759. addConfigindex(this.forme).then(response => {
  760. this.msgSuccess("新增成功");
  761. // this.open = false;
  762. this.getLisalendar()
  763. this.cancel();
  764. });
  765. }else if(this.nummer == 1){
  766. // this.form.table = 'sys_memorandum'
  767. this.forme.table = 'sys_memorandum'
  768. this.forme.objId = -1
  769. this.forme.fixedData = this.form
  770. //备忘录
  771. addConfigindex(this.forme).then(response => {
  772. this.msgSuccess("新增成功");
  773. // this.open = false;
  774. this.getLismemorandum()
  775. this.cancel();
  776. });
  777. }
  778. // this.getList();
  779. },
  780. // 弹框
  781. changeFn(obj) {
  782. console.log(obj)
  783. for(let key in obj){
  784. this.form.fixedData[key] = obj[key]
  785. }
  786. },
  787. // 新增备忘录
  788. memoere(){
  789. this.nummer = 1
  790. this.open = true;
  791. this.title = "添加备忘录";
  792. this.getLisalendaradddmer()
  793. },
  794. // 备忘录删除
  795. index_deledetfe(id){
  796. var that = this
  797. that.deledlid.idList = []
  798. that.deledlid.idList.push(id)
  799. this.$confirm('是否确认删除', "警告", {
  800. confirmButtonText: "确定",
  801. cancelButtonText: "取消",
  802. type: "warning"
  803. }).then(function() {
  804. return delIndexnabd(that.deledlid);
  805. }).then(() => {
  806. this.getLismemorandum();
  807. this.msgSuccess("删除成功");
  808. // this.$router.go(-1)
  809. })
  810. },
  811. handleSelectionChange() {
  812. },
  813. // 字符串去重
  814. unique(arr) {
  815. let arfe = []
  816. let serfgt = []
  817. arfe = arr.split(',')
  818. for(var i = 0 ; i < arfe.length; i++){
  819. if (serfgt.indexOf(arfe[i]) === -1) {
  820. serfgt.push(arfe[i])
  821. }
  822. }
  823. // const res = new Map();
  824. // return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1));
  825. },
  826. getUser() {
  827. getUserProfile().then(response => {
  828. this.user = response.data;
  829. this.getLisalendar()
  830. this.getLismemorandum()
  831. });
  832. },
  833. // 通知公告弹窗
  834. headerCld(index){
  835. this.title = '通知公告'
  836. this.openety = true,
  837. this.actingk=index
  838. },
  839. // 搜索
  840. handleQuerygty(){
  841. this.queryParams.pageNo = 1;
  842. this.grabFn(this.queryDataali.queryList, this.queryParamsail.fixedData.condition)
  843. this.getLisail()
  844. },
  845. // 抓取参数
  846. grabFn(arr, parForm) {
  847. for (let item of arr) {
  848. if (item.htmlType == 'checkbox' || item.htmlType == 'imageUpload' || item.htmlType == 'fileUpload') {
  849. if (this.$refs[item.columnName][0].config.length) {
  850. parForm[item.columnName] = this.$refs[item.columnName][0].config
  851. }
  852. } else {
  853. parForm[item.columnName] = this.$refs[item.columnName][0].config[item.columnName]
  854. }
  855. }
  856. },
  857. // 搜索重置 通讯录
  858. resetQuery(){
  859. console.log(12436)
  860. this.queryParamsail.fixedData.condition = {}
  861. this.queryParamsail.pageNo = 1
  862. // this.resetForm("queryParamsail");
  863. console.log(this.queryParamsail)
  864. this.getLisail()
  865. }
  866. },
  867. };
  868. </script>
  869. <style lang="scss">
  870. .iejgu{
  871. .el-form-item__label{
  872. width: 50px !important;
  873. .el-input__inner{
  874. width: 60%;
  875. }
  876. }
  877. .el-form-item{
  878. width: 70%;
  879. }
  880. .el-form--inline .el-form-item{
  881. }
  882. .el-form--inline .el-form-item__content{
  883. width: 70%;
  884. }
  885. }
  886. .index_ese{
  887. .el-dialog__body{
  888. padding-top: 10px !important;
  889. }
  890. }
  891. .home{
  892. .el-tabs__header{
  893. margin-bottom: 5px !important;
  894. }
  895. .el-calendar-table tr td:first-child{
  896. border: 0 !important;
  897. }
  898. .el-calendar-table tr:first-child td{
  899. border: 0 !important;
  900. }
  901. .el-calendar-table td{
  902. border: 0 !important;
  903. }
  904. .el-calendar-table .el-calendar-day{
  905. height: 30px;
  906. text-align: center;
  907. line-height: 30px;
  908. border-radius: 30px;
  909. padding: 0;
  910. // background-color: #0B18E8;
  911. }
  912. .el-calendar-table td.is-selected{
  913. // background-color: #0B18E8;
  914. border-radius: 30px;
  915. }
  916. .el-calendar__header{
  917. border: 0;
  918. padding: 0 20px;
  919. }
  920. .el-calendar__body{
  921. padding-top: 0;
  922. padding-bottom: 0;
  923. }
  924. .el-pagination{
  925. padding-left: 0;
  926. }
  927. .index_headeNav{
  928. .el-tabs__item{
  929. position: relative;
  930. }
  931. }
  932. .el-table th.is-leaf, .el-table td{
  933. border: 0 !important;
  934. }
  935. .el-calendar__title{
  936. font-size: 12px;
  937. }
  938. .el-table td{
  939. padding: 6px 0;
  940. }
  941. .index_haderPaginfoiu{
  942. .el-pagination__jump{
  943. display: block !important;
  944. text-align: center;
  945. margin-left: 0;
  946. }
  947. }
  948. .everyDay {
  949. display: inline-block;
  950. width: 20px;
  951. height: 20px;
  952. line-height: 20px;
  953. background-color: #409eff;
  954. color: #fff;
  955. border-radius: 50%;
  956. margin-top: 5px;
  957. }
  958. }
  959. </style>
  960. <style scoped lang="scss">
  961. .home {
  962. // tab
  963. .index_headetab{
  964. display: flex;
  965. border-bottom: 1px solid #E5E5E5;
  966. height: 65px;
  967. padding-top: 10px;
  968. padding-bottom: 10px;
  969. span{
  970. cursor:pointer;
  971. width: 80px;
  972. // flex: 1;
  973. text-align: center;
  974. line-height: 55px;
  975. height: 55px;
  976. font-size: 15px;
  977. font-family: PingFang SC;
  978. font-weight: bold;
  979. color: #666;
  980. position: relative;
  981. overflow: hidden;
  982. white-space: nowrap;
  983. text-overflow: ellipsis;
  984. // flex: 1;
  985. // border-bottom: ;
  986. }
  987. .span{
  988. content: '';
  989. display: block;
  990. width: 18px;
  991. height: 8px;
  992. border-radius: 3px;
  993. background-color: #3C8DBC;
  994. color: #3C8DBC !important;
  995. // position: absolute;
  996. // border-bottom: ;
  997. }
  998. .spanto{
  999. color:#3C8DBC ;
  1000. border-bottom: 3px solid #3C8DBC;
  1001. }
  1002. }
  1003. p{
  1004. margin: 0;
  1005. }
  1006. ul{
  1007. margin: 0;
  1008. padding: 0;
  1009. }
  1010. background-color: #eef0ff;
  1011. blockquote {
  1012. padding: 10px 20px;
  1013. margin: 0 0 20px;
  1014. font-size: 17.5px;
  1015. border-left: 5px solid #eee;
  1016. }
  1017. .index_heade{
  1018. // border: 1px solid #eee;
  1019. // width: 100%;
  1020. padding: 0 20px;
  1021. height: 570px;
  1022. background-color: #fff;
  1023. position: relative;
  1024. border-radius: 6px;
  1025. .index_headerImg{
  1026. width: 23px;
  1027. height: 6px;
  1028. position: absolute;
  1029. right: 20px;
  1030. top:32px;
  1031. }
  1032. .index_headerUl{
  1033. width: 100%;
  1034. padding: 0;
  1035. margin: 0;
  1036. height: 85%;
  1037. li{
  1038. margin: 0;
  1039. display: flex;
  1040. justify-content: space-between;
  1041. align-items: center;
  1042. height: 43px;
  1043. cursor:pointer;
  1044. img{
  1045. width: 11px;
  1046. height: 13px;
  1047. }
  1048. p{
  1049. font-size: 14px;
  1050. font-family: PingFang SC;
  1051. font-weight: 400;
  1052. color: #343434;
  1053. line-height: 36px;
  1054. margin: 0;
  1055. text-align: left;
  1056. flex: 1;
  1057. padding: 0 18px;
  1058. overflow:hidden;
  1059. text-overflow:ellipsis;
  1060. white-space:nowrap
  1061. }
  1062. span{
  1063. font-size: 14px;
  1064. font-family: PingFang SC;
  1065. font-weight: 400;
  1066. color: #343434;
  1067. line-height: 36px;
  1068. }
  1069. }
  1070. }
  1071. .index_haderPagin{
  1072. display: flex;
  1073. justify-content: space-between;
  1074. align-items: center;
  1075. margin-top: 30px;
  1076. span{
  1077. flex: 1;
  1078. font-size: 12px;
  1079. font-family: PingFang SC;
  1080. font-weight: 400;
  1081. color: #343434;
  1082. text-align: right;
  1083. // line-height: 36px;
  1084. }
  1085. }
  1086. }
  1087. //表格样式
  1088. .index_headeNav{
  1089. padding: 0 20px;
  1090. height: 550px;
  1091. background-color: #fff;
  1092. position: relative;
  1093. border-radius: 6px;
  1094. .tab_i{
  1095. position: absolute;
  1096. right: 1px;
  1097. top:5px;
  1098. border-radius: 50%;
  1099. // display: block;
  1100. width: 15px ;
  1101. height: 15px;
  1102. line-height: 15px;
  1103. text-align: center;
  1104. color: #fff;
  1105. background-color: red;
  1106. overflow:hidden; //超出的文本隐藏
  1107. text-overflow:ellipsis; //溢出用省略号显示
  1108. white-space:nowrap; //溢出不换行
  1109. font-size: 11px;
  1110. font-family: PingFang SC;
  1111. font-weight: bold;
  1112. }
  1113. }
  1114. .index_nav{
  1115. // border: 1px solid #eee;
  1116. background-color: #fff;
  1117. height: 315px;
  1118. box-shadow: 0px 4px 4px 0px rgba(130, 150, 162, 0.64);
  1119. border-radius: 6px;
  1120. .index_navTime{
  1121. height: 270px;
  1122. position: relative;
  1123. }
  1124. .index_navTimeimg{
  1125. height: 47px;
  1126. width: 100%;
  1127. position: absolute;
  1128. bottom: -76px;
  1129. left: 0;
  1130. }
  1131. .index_navTimep{
  1132. padding: 10px 0;
  1133. margin: 0 20px;
  1134. margin-bottom: 10px;
  1135. border-bottom: 1px solid #E5E5E5;
  1136. display: flex;
  1137. justify-content: space-between;
  1138. align-items: center;
  1139. span:nth-child(1){
  1140. font-size: 15px;
  1141. font-family: PingFang SC;
  1142. font-weight: bold;
  1143. color: #3C8DBC;
  1144. }
  1145. span:nth-child(1)::before{
  1146. content: "";
  1147. display: block;
  1148. width: 18px;
  1149. height: 8px;
  1150. background: #3C8DBC;
  1151. border-radius: 3px;
  1152. }
  1153. span:nth-child(2){
  1154. font-size: 12px;
  1155. font-family: PingFang SC;
  1156. font-weight: 400;
  1157. color: #3C8DBC;
  1158. cursor:pointer;
  1159. }
  1160. }
  1161. }
  1162. // 公司概况样式
  1163. .index_headeProfile{
  1164. margin-top: 40px;
  1165. margin-bottom: 20px;
  1166. height: 590px;
  1167. .index_profilep{
  1168. font-size: 12px;
  1169. font-family: PingFang SC;
  1170. font-weight: bold;
  1171. color: #343434;
  1172. line-height: 27px;
  1173. text-indent:2em;
  1174. height: 368px;
  1175. overflow-y: hidden;
  1176. // p{
  1177. // }
  1178. }
  1179. .index_haderPagin{
  1180. margin-top: 25px;
  1181. }
  1182. .index_headerImg{
  1183. width: 21px;
  1184. height: 21px;
  1185. top:19px;
  1186. }
  1187. }
  1188. // 备忘录样式
  1189. .index_memoranduNnavTime{
  1190. height: 335px;
  1191. margin-top: 90px;
  1192. position: relative;
  1193. .index_navTimep{
  1194. padding: 20px 0;
  1195. // margin-bottom: 20px;
  1196. }
  1197. .index_navTimeimg{
  1198. height: 47px;
  1199. width: 100%;
  1200. position: absolute;
  1201. bottom: -76px;
  1202. left: 0;
  1203. bottom: -96px;
  1204. }
  1205. .imjud{
  1206. width: 23px;
  1207. height: 6px;
  1208. position: absolute;
  1209. right: 20px;
  1210. bottom: -50px;
  1211. }
  1212. ul{
  1213. padding: 0 20px;
  1214. li{
  1215. display: flex;
  1216. justify-content: space-between;
  1217. align-items: center;
  1218. border-bottom: 1px dashed #E5E5E5;
  1219. p{
  1220. font-size: 12px;
  1221. font-family: PingFang SC;
  1222. font-weight: 400;
  1223. color: #343434;
  1224. line-height: 36px;
  1225. flex: 1;
  1226. }
  1227. .index_navspande{
  1228. display: flex;
  1229. justify-content: space-between;
  1230. align-items: center;
  1231. span{
  1232. font-size: 12px;
  1233. font-family: PingFang SC;
  1234. font-weight: 400;
  1235. color: #343434;
  1236. line-height: 36px;
  1237. flex: 1;
  1238. }
  1239. img{
  1240. width: 16px;
  1241. height: 16px;
  1242. margin-left: 5px;
  1243. cursor: pointer;
  1244. }
  1245. }
  1246. }
  1247. }
  1248. }
  1249. //通讯录样式
  1250. .index_memoranduMail{
  1251. height: 363px;
  1252. margin-top: 100px;
  1253. .index_navTimeimgtwo{
  1254. width: 23px;
  1255. height: 6px;
  1256. }
  1257. .index_navTimep{
  1258. padding: 20px 0;
  1259. }
  1260. .index_memoranduMailnav{
  1261. padding: 0 20px;
  1262. height: 90%;
  1263. }
  1264. .index_navTimeimg{
  1265. height: 47px;
  1266. width: 100%;
  1267. position: absolute;
  1268. bottom: -76px;
  1269. left: 0;
  1270. bottom: -126px;
  1271. }
  1272. .index_haderPagin{
  1273. margin-top: 10px;
  1274. }
  1275. }
  1276. }
  1277. // table
  1278. .tab_tol{
  1279. // display: flex;
  1280. height: 80%;
  1281. .tr_one{
  1282. display: flex;
  1283. justify-content: space-around;
  1284. width: 100%;
  1285. th{
  1286. flex: 1;
  1287. font-size: 12px;
  1288. font-family: PingFang SC;
  1289. font-weight: bold;
  1290. color: #343434;
  1291. line-height: 36px;
  1292. overflow: hidden;
  1293. text-overflow:ellipsis;
  1294. white-space: nowrap;
  1295. }
  1296. }
  1297. .two_tr{
  1298. display: flex;
  1299. justify-content: space-around;
  1300. font-size: 12px;
  1301. font-family: PingFang SC;
  1302. font-weight: bold;
  1303. color: #343434;
  1304. line-height: 36px;
  1305. td{
  1306. flex: 1;
  1307. overflow: hidden;
  1308. text-overflow:ellipsis;
  1309. white-space: nowrap;
  1310. }
  1311. }
  1312. .two_trtwo{
  1313. background-color: #F2F2F2;
  1314. }
  1315. }
  1316. // 通知公告弹窗
  1317. .index_headertan{
  1318. margin: 0 30px;
  1319. p{
  1320. margin: 0;
  1321. }
  1322. p:nth-child(1){
  1323. font-size: 24px;
  1324. font-family: PingFang SC;
  1325. font-weight: bold;
  1326. color: #343434;
  1327. line-height: 42px;
  1328. text-align: center;
  1329. margin-bottom: 10px;
  1330. text-indent:0em;
  1331. }
  1332. p:nth-child(2){
  1333. font-size: 16px;
  1334. font-family: PingFang SC;
  1335. font-weight: 400;
  1336. color: #666666;
  1337. line-height: 24px;
  1338. text-align: center;
  1339. margin-bottom: 20px;
  1340. text-indent:0em;
  1341. }
  1342. pre{
  1343. font-size: 16px;
  1344. font-family: PingFang SC;
  1345. font-weight: 400;
  1346. color: #343434;
  1347. }
  1348. }
  1349. pre{
  1350. white-space:pre-wrap;
  1351. }
  1352. </style>