index.vue 38 KB

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