index.vue 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  1. <template>
  2. <div class="app-container home">
  3. <el-row :gutter="5">
  4. <el-col :sm="24" :lg="17" style="padding-left: 15px">
  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 >
  11. <ul class="index_headerUl">
  12. <li v-for="(item,index) in configList" :key="index">
  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="pageSize"
  25. layout="prev, pager, next, jumper"
  26. :total="total">
  27. </el-pagination>
  28. <span>共 {{total}} 条 每页显示 6 条 </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">
  35. <img src="../assets/images/icon_more.png" alt="" class="index_headerImg">
  36. <p class="index_headetab">
  37. <span :class="[num == index ? ' spanto' : '']" v-for="(item,index) in editableTabs" :key="index" @click="tabSbu(index)">{{item.title}} <p class="tab_i">3</p></span></span>
  38. </p>
  39. <!-- <el-tabs v-model="activeName" @tab-click="handleClick" > -->
  40. <!-- <el-tab-pane name="first">
  41. <span slot="label" class="index_heseviewed"><p class="tab_i">3</p> 我的行程</span> -->
  42. <div v-if="num == 0">
  43. <el-table :data="tableDataalid" style="width: 100%;margin-top: 10px;" :stripe="true" >
  44. <!-- <el-table-column type="selection" width="55" align="center" /> -->
  45. <el-table-column label="序号" align="center" prop="noticeId" width="60" height="53" max-height="53" />
  46. <el-table-column
  47. label="申请人"
  48. align="center"
  49. prop="name"
  50. :show-overflow-tooltip="true"
  51. width="70"
  52. />
  53. <el-table-column
  54. label="部门"
  55. align="center"
  56. prop="name"
  57. width="70"
  58. />
  59. <!-- :formatter="typeFormat" -->
  60. <el-table-column
  61. label="请假类型"
  62. align="center"
  63. prop="status"
  64. width="75"
  65. />
  66. <!-- :formatter="statusFormat" -->
  67. <el-table-column label="请假事由" align="center" prop="createBy" width="100" :show-overflow-tooltip="true"/>
  68. <el-table-column label="请假时间" align="center" prop="date" width="150"/>
  69. <!-- <template slot-scope="scope">
  70. <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
  71. </template> -->
  72. <!-- </el-table-column> -->
  73. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  74. <template slot-scope="scope">
  75. <el-button
  76. size="small"
  77. type="success"
  78. @click="handleUpdate(scope.row)"
  79. v-hasPermi="['system:notice:edit']"
  80. >详情</el-button>
  81. <el-button
  82. size="small"
  83. type="primary"
  84. @click="handleDelete(scope.row)"
  85. v-hasPermi="['system:notice:remove']"
  86. >同意</el-button>
  87. <el-button
  88. size="small"
  89. type="danger"
  90. @click="handleDelete(scope.row)"
  91. v-hasPermi="['system:notice:remove']"
  92. >驳回</el-button>
  93. </template>
  94. </el-table-column>
  95. </el-table>
  96. <div class="index_haderPagin">
  97. <el-pagination
  98. @size-change="handleSizeChange"
  99. @current-change="handleCurrentChange"
  100. :current-page.sync="currentPage3"
  101. :page-size="pageSize"
  102. layout="prev, pager, next, jumper"
  103. :total="1000">
  104. </el-pagination>
  105. <span>共 85 条 每页显示 5 条 当前 1/17 页</span>
  106. </div>
  107. </div>
  108. </div>
  109. </el-col>
  110. <!-- </el-row> -->
  111. <!-- 公司概况 -->
  112. <el-col :sm="24" :lg="24">
  113. <div class="index_heade index_headeProfile">
  114. <img src="../assets/images/icon_tjbj.png" alt="" class="index_headerImg">
  115. <p class="index_headetab">
  116. <span :class="[numprofile == index ? ' spanto' : '']" v-for="(item,index) in editableTabsteo" :key="index" @click="tabSbuprofile(item.dictValue)">{{item.dictLabel}} </span>
  117. </p>
  118. <!-- <el-tabs v-model="activeName" @tab-click="handleClick">
  119. <el-tab-pane label="用户管理" name="first"> -->
  120. <div >
  121. <h3 style="text-align: center;">{{tieku}}</h3>
  122. <!-- {{getLisprofileone[0].info_title}} -->
  123. <p class="index_profilep" > {{comg}} </p>
  124. <!-- {{getLisprofileone[0].info_content}} -->
  125. <div class="index_haderPagin">
  126. <el-pagination
  127. @size-change="handleSizeChangeprofile"
  128. @current-change="handleCurrentChangeprofile"
  129. :current-page.sync="currentPage3"
  130. :page-size="queryParamstabprofile.pageSize"
  131. layout="prev, pager, next, jumper"
  132. :total="totalprofile">
  133. </el-pagination>
  134. <span>共 {{totalprofile}} 条 每页显示 1条 </span>
  135. </div>
  136. </div>
  137. </div>
  138. </el-col>
  139. </el-col>
  140. <el-col :sm="24" :lg="7" style="padding-left: 15px">
  141. <div class="index_nav">
  142. <div class="index_navTime">
  143. <p class="index_navTimep" @click="handleAdd">
  144. <span>日程</span>
  145. <span><i class="el-icon-date" ></i>创建日程</span>
  146. </p>
  147. <el-calendar id="calendar">
  148. <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法-->
  149. <template
  150. slot="dateCell"
  151. slot-scope="{date, data}">
  152. <!--自定义内容-->
  153. <div>
  154. <div class="calendar-day" style="text-align: center">
  155. <el-tooltip v-if="brightDate.indexOf(data.day) != -1" class="item" effect="dark" :content="content(data.day)" placement="right">
  156. <span class="everyDay">{{ data.day.split('-').slice(2).join('-') }}</span>
  157. </el-tooltip>
  158. <span v-else>{{ data.day.split('-').slice(2).join('-') }}</span>
  159. <!-- <p :class="data.isSelected ? 'is-selected' : ''">
  160. {{ data.day.split('-').slice(1).join('-') }} {{ data.isSelected ? '✔️' : ''}}
  161. </p> -->
  162. </div>
  163. </div>
  164. </template>
  165. </el-calendar>
  166. <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
  167. </div>
  168. </div>
  169. <!-- 备忘录 -->
  170. <el-col :sm="24" :lg="24" >
  171. <div class="index_nav index_memoranduNnavTime">
  172. <div class="index_navTime ">
  173. <p class="index_navTimep">
  174. <span>备忘录</span>
  175. <span @click="memoere"><i class="el-icon-date"></i>创建备忘录</span>
  176. </p>
  177. <ul >
  178. <li v-for="(item,index) in getmemorandum" :key="index">
  179. <p>{{item.memorandum_title}}
  180. </p>
  181. <span>{{item.remind_time}}</span>
  182. </li>
  183. </ul>
  184. <img src="../assets/images/icon_more.png" alt="">
  185. <!-- <el-calendar v-model="value">
  186. </el-calendar> -->
  187. <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
  188. </div>
  189. </div>
  190. </el-col >
  191. <!-- 通讯录 -->
  192. <el-col :sm="24" :lg="24">
  193. <div class="index_nav index_memoranduMail">
  194. <div class="index_navTime ">
  195. <p class="index_navTimep">
  196. <span>通讯录</span>
  197. <img src="../assets/images/icon_more.png" alt="" class="index_navTimeimgtwo">
  198. <!-- <span><i class="el-icon-date"></i>创建日程</span> -->
  199. </p>
  200. <div class="index_memoranduMailnav">
  201. <div class="tab_tol">
  202. <tr class="tr_one">
  203. <th style=" text-align: center;" v-for="(item,index) in tableDataalid" :key="index">{{item.columnComment}}</th>
  204. </tr>
  205. <tr v-for="(item,index) in getLisaillie" :key="index" :class=" [index%2 ==0 ? 'two_tr two_trtwo':'two_tr']" @click="chakn(item)">
  206. <td style=" text-align: center;" >{{ item.contacts_name }}</td>
  207. <td style="text-align: center;">{{ item.dept_id }}</td>
  208. <td style=" text-align: center;" >{{ item.phone }}</td>
  209. <td style=" text-align: center;" >{{ item.is_del == 1? '删除' : '未删除'}}</td>
  210. <td style="text-align: center; " >{{ item.remark}}</td>
  211. </tr>
  212. </div>
  213. <div class="index_haderPagin index_haderPaginfoiu">
  214. <el-pagination
  215. @size-change="handleSizeChangeali"
  216. @current-change="handleCurrentChangeali"
  217. :current-page.sync="currentPage3"
  218. :page-size="queryParamsail.pageSize"
  219. :small= "true"
  220. layout="prev, pager, next, jumper"
  221. :total="totalali">
  222. </el-pagination>
  223. </div>
  224. </div>
  225. <img src="../assets/images/pic_kpbg.png" alt="" class="index_navTimeimg">
  226. </div>
  227. </div>
  228. </el-col>
  229. </el-col>
  230. </el-row>
  231. <!-- <el-divider /> -->
  232. <!-- 添加或修改公告对话框 -->
  233. <el-dialog :title="title" :visible.sync="open" width="980px" append-to-body>
  234. <!-- if(){ -->
  235. <!-- 日历 -->
  236. <dynamic-forms v-if="nummer == 0" :config="form" @inputs = "changeFn" :formConfig="queryData" :open="open" @submitForm="submitForm($event)" @cancel="cancel($event)" :nummer = "nummer" />
  237. <!-- }else if(){ -->
  238. <!-- 备忘录 -->
  239. <memoran-dum v-if="nummer == 1" :config="form" @inputs = "changeFn" :formConfig="queryDatatwo" :open="open" @cancel="cancel($event)" :nummer = "nummer" />
  240. <!-- } -->
  241. </el-dialog>
  242. </div>
  243. </template>
  244. <script>
  245. import { listIndex, listIndextwo, listIndextherr, listIndexfou, listIndextanl, getConfig, delConfig, addConfig, updateConfig, clearCache } from "@/api/system/config";
  246. import Editor from '@/components/Editor';
  247. export default {
  248. name: "index",
  249. components: {
  250. Editor
  251. },
  252. data() {
  253. return {
  254. // 版本号
  255. version: "2.5.0",
  256. currentPage3: 1,
  257. total:0,
  258. totalprofile:0,
  259. totalali:0,
  260. pageSize:6,
  261. activeName: 'second',
  262. // 是否显示弹出层
  263. open: false,
  264. // 弹出层标题
  265. title: "",
  266. value: new Date(),
  267. editableTabs: [],
  268. editableTabsteo:[],
  269. configList:[],
  270. queryParams:{
  271. table:'sys_notice',
  272. orderBy:'create_time desc',
  273. pageNo:1,
  274. pageSize:6,
  275. condition:{
  276. notice_type:1
  277. }
  278. },
  279. queryParamstab:{
  280. table:'sys_notice',
  281. orderBy:'create_time desc',
  282. pageNo:1,
  283. pageSize:6,
  284. condition:{
  285. notice_type:1
  286. }
  287. },
  288. // 公司概况
  289. queryParamstabprofile:{
  290. table:'sys_info',
  291. orderBy:'create_time desc',
  292. pageNo:1,
  293. pageSize:1,
  294. condition:{
  295. notice_type:1
  296. }
  297. },
  298. // 日历
  299. queryParamscalendar:{
  300. table:'sys_schedule',
  301. orderBy:'create_time desc',
  302. pageNo:1,
  303. pageSize:10,
  304. },
  305. // 备忘录
  306. queryParamstabmemorandum:{
  307. table:'sys_memorandum',
  308. orderBy:'create_time desc',
  309. pageNo:1,
  310. pageSize:6,
  311. },
  312. // 通讯录
  313. queryParamsail:{
  314. table:'sys_contacts',
  315. orderBy:'create_time desc',
  316. pageNo:1,
  317. pageSize:6,
  318. },
  319. num:0,
  320. numprofile:0,
  321. dictType:'sys_notice_type',
  322. // 公司概况
  323. dictTypetwo:'sys_describe_type',
  324. gettabList:[],
  325. getLisprofileone:[],
  326. // 备忘录
  327. getmemorandum:[],
  328. //通讯录参数
  329. aliemg:{
  330. table:'sys_memorandum'
  331. },
  332. tableDataalid:[],
  333. getLisaillie:[],
  334. alendarList:[],
  335. calendarData: [
  336. ],
  337. ary:[],
  338. tieku:'',
  339. comg:'',
  340. aekti:'',
  341. // 弹框数据
  342. form:{
  343. },
  344. // 表单校验
  345. rules: {
  346. },
  347. //日历弹框
  348. calendaradd:{
  349. table:'sys_schedule'
  350. },
  351. //备忘录弹框
  352. calendaraddmer:{
  353. table:'sys_memorandum'
  354. },
  355. // input
  356. inputList:[],
  357. // 时间
  358. dataList:[],
  359. //单选框
  360. radiolist:[],
  361. // 复选框
  362. chekbosList:[],
  363. //下拉框
  364. selectList:[],
  365. editorList:[],
  366. queryData: {},
  367. queryDatatwo:{},
  368. nummer:0 //0 是日历 1 是备忘录
  369. };
  370. },
  371. created() {
  372. this.getLisalendar()//日历
  373. this.getList()
  374. this.getListtab()
  375. this.getLiser()
  376. this.getLisprofile()
  377. this.getLismemorandum() //备忘录
  378. this.getLisail()//通讯录
  379. this.getLisailtwo()
  380. },
  381. computed: {
  382. // 时间高亮的数组
  383. brightDate () {
  384. // let ary = []
  385. var that = this
  386. console.log(that.calendarData,887)
  387. for (var i = 0 ; i < that.calendarData.length; i++) {
  388. // that.ary.push(that.calendarData[i].startDate)
  389. // that.ary.push(that.calendarData[i].begin_time.slice(0,10))
  390. // that.ary.push(that.calendarData[i].all_date.split(','))
  391. if(that.calendarData[i].all_date !== undefined){
  392. that.ary.push(that.calendarData[i].all_date.join(','))
  393. console.log(that.calendarData[i].all_date.join(','),754)
  394. }
  395. // console.log(that.calendarData[i].all_date,754)
  396. }
  397. console.log(that.ary)
  398. return that.ary
  399. }
  400. },
  401. methods: {
  402. // Tooltip 文字提示
  403. content (date) {
  404. console.log(date,37645)
  405. let content = ''
  406. // console.log(data,37645)
  407. for (var i = 0 ; i < this.calendarData.length; i++) {
  408. // this.calendarData[i].begin_time = this.calendarData[i].begin_time.slice(0,10)
  409. console.log(this.calendarData[i].begin_time,123)
  410. // if (date === this.calendarData[i].begin_time) {
  411. if(this.calendarData[i].all_date !== undefined){
  412. content = this.calendarData[i].remind_type
  413. }
  414. // }
  415. }
  416. console.log(content)
  417. return content
  418. },
  419. //数据 第一部分列表
  420. getList() {
  421. this.loading = true;
  422. listIndex(this.queryParams).then(response => {
  423. this.configList = response.data.rows;
  424. console.log(this.configList)
  425. this.total = response.data.total;
  426. this.loading = false;
  427. }
  428. );
  429. },
  430. //数据 第二部分列表
  431. getListtabone() {
  432. this.loading = true;
  433. listIndex(this.queryParams).then(response => {
  434. this.configList = response.data.rows;
  435. console.log(this.configList)
  436. this.total = response.data.total;
  437. this.loading = false;
  438. }
  439. );
  440. },
  441. //数据 第三部分列表
  442. getLisprofile() {
  443. this.loading = true;
  444. listIndex(this.queryParamstabprofile).then(response => {
  445. if(response.data !== undefined){
  446. this.getLisprofileone = response.data.rows;
  447. this.tieku = this.getLisprofileone[0].info_title
  448. this.comg = this.getLisprofileone[0].info_content
  449. console.log(this.getLisprofileone[0].info_title,98)
  450. this.totalprofile = response.data.total;
  451. }
  452. this.loading = false;
  453. }
  454. );
  455. },
  456. //数据 日历数据列表
  457. getLisalendar() {
  458. this.loading = true;
  459. listIndex(this.queryParamscalendar).then(response => {
  460. if(response.data !== undefined){
  461. this.calendarData = response.data.rows;
  462. console.log(this.calendarData,9845765)
  463. }
  464. this.loading = false;
  465. }
  466. );
  467. },
  468. //数据 备忘录数据列表
  469. getLismemorandum() {
  470. this.loading = true;
  471. listIndex(this.queryParamstabmemorandum).then(response => {
  472. if(response.data !== undefined){
  473. this.getmemorandum = response.data.rows;
  474. console.log(this.getmemorandum,98765)
  475. }
  476. this.loading = false;
  477. }
  478. );
  479. },
  480. // 数据列表 通讯录数据
  481. getLisailtwo() {
  482. this.loading = true;
  483. listIndex(this.queryParamsail).then(response => {
  484. if(response.data !== undefined){
  485. this.getLisaillie = response.data.rows;
  486. // console.log(this.configList)
  487. }
  488. this.totalali = response.data.total
  489. this.loading = false;
  490. }
  491. );
  492. },
  493. //tab 公告 栏数据
  494. getListtab() {
  495. this.loading = true;
  496. listIndextwo(this.dictType).then(response => {
  497. this.editableTabs = response.data;
  498. this.queryParams.dictType = response.data[1].dictType
  499. console.log(this.editableTabs)
  500. // this.total = response.total;
  501. this.loading = false;
  502. }
  503. )
  504. },
  505. // 公司概况 tab
  506. getLiser() {
  507. this.loading = true;
  508. listIndextherr(this.dictTypetwo).then(response => {
  509. this.editableTabsteo = response.data;
  510. console.log(this.editableTabsteo)
  511. // this.total = response.total;
  512. this.loading = false;
  513. }
  514. )
  515. },
  516. // 通讯录表头
  517. getLisail() {
  518. this.loading = true;
  519. listIndexfou(this.aliemg).then(response => {
  520. if(response.data !== undefined){
  521. this.tableDataalid = response.data.tableHeadList;
  522. console.log(this.tableDataalid,67)
  523. this.totalprofile = response.data.total;
  524. }
  525. this.loading = false;
  526. }
  527. );
  528. },
  529. //日历新增弹框数据
  530. getLisalendaraddd() {
  531. this.loading = true;
  532. listIndextanl(this.calendaradd).then(response => {
  533. if(response.data !== undefined){
  534. this.queryData = response.data
  535. this.queryData.columns.filter(route => {
  536. // console.log(route)
  537. if(route.htmlType == "input" || route.htmlType == 'textarea'){
  538. this.inputList.push(route)
  539. }else if(route.htmlType == "select"){
  540. this.selectList.push(route)
  541. }else if(route.htmlType == "datetime"){
  542. this.dataList.push(route)
  543. }else if(route.htmlType == "editor"){
  544. this.editorList.push(route)
  545. }
  546. })
  547. // console.log(this.selectList)
  548. }
  549. this.loading = false;
  550. }
  551. );
  552. },
  553. //备忘录新增弹框数据
  554. getLisalendaradddmer() {
  555. this.loading = true;
  556. listIndextanl(this.calendaraddmer).then(response => {
  557. if(response.data !== undefined){
  558. this.queryDatatwo = response.data
  559. this.queryDatatwo.columns.filter(route => {
  560. // console.log(route)
  561. if(route.htmlType == "input" || route.htmlType == 'textarea'){
  562. this.inputList.push(route)
  563. }else if(route.htmlType == "select"){
  564. this.selectList.push(route)
  565. }else if(route.htmlType == "datetime"){
  566. this.dataList.push(route)
  567. }else if(route.htmlType == "editor"){
  568. this.editorList.push(route)
  569. }
  570. })
  571. // console.log(this.selectList)
  572. }
  573. this.loading = false;
  574. }
  575. );
  576. },
  577. goTarget(href) {
  578. window.open(href, "_blank");
  579. },
  580. handleSizeChange(val) {
  581. console.log(`每页 ${val} 条`);
  582. },
  583. handleCurrentChange(val) {
  584. this.queryParams.pageNo = val
  585. this.getList()
  586. console.log(`当前页: ${val}`);
  587. },
  588. // 公司概况
  589. handleSizeChangeprofile(val) {
  590. console.log(`每页 ${val} 条`);
  591. },
  592. handleCurrentChangeprofile(val) {
  593. this.queryParamstabprofile.pageNo = val
  594. this.getLisprofile()
  595. console.log(`当前页: ${val}`);
  596. },
  597. // 通讯录
  598. handleSizeChangeali(val) {
  599. console.log(`每页 ${val} 条`);
  600. },
  601. handleCurrentChangeali(val) {
  602. this.queryParamsail.pageNo = val
  603. this.getLisailtwo()
  604. console.log(`当前页: ${val}`);
  605. },
  606. handleClick(tab, event) {
  607. console.log(tab, event);
  608. },
  609. // 第一部分tab点击
  610. tabSbu(index){
  611. console.log(index)
  612. this.num = index - 1
  613. this.queryParams.condition.notice_type = index
  614. this.getList()
  615. },
  616. // 第三部分tab点击
  617. tabSbuprofile(index){
  618. this.numprofile = index - 1
  619. this.queryParamstabprofile.condition.notice_type = index
  620. this.getLisprofile()
  621. },
  622. // 表单重置
  623. reset() {
  624. this.form = {
  625. };
  626. this.resetForm("form");
  627. },
  628. // 取消按钮
  629. cancel() {
  630. this.open = false;
  631. this.reset();
  632. },
  633. /** 新增按钮操作 */
  634. handleAdd() {
  635. this.nummer = 0
  636. console.log(this.open)
  637. this.reset();
  638. this.getLisalendaraddd()
  639. this.open = true;
  640. this.title = "添加日历";
  641. },
  642. /** 提交按钮 */
  643. submitForm: function(data) {
  644. console.log(this.form,data)
  645. // this.$refs["form"].validate(valid => {
  646. // if (valid) {
  647. // if (this.form.id != undefined) {
  648. // updateNotice(this.form).then(response => {
  649. // this.msgSuccess("修改成功");
  650. // this.open = false;
  651. // this.getList();
  652. // });
  653. // } else {
  654. // addNotice(this.form).then(response => {
  655. // this.msgSuccess("新增成功");
  656. // this.open = false;
  657. // this.getList();
  658. // });
  659. // }
  660. // }
  661. // });
  662. },
  663. // 弹框
  664. changeFn(obj) {
  665. console.log(obj)
  666. for(let key in obj){
  667. this.form[key] = obj[key]
  668. }
  669. },
  670. // 新增备忘录
  671. memoere(){
  672. this.nummer = 1
  673. this.open = true;
  674. this.title = "添加备忘录";
  675. this.getLisalendaradddmer()
  676. }
  677. },
  678. };
  679. </script>
  680. <style lang="scss">
  681. .home{
  682. .el-tabs__header{
  683. margin-bottom: 5px !important;
  684. }
  685. .el-calendar-table tr td:first-child{
  686. border: 0 !important;
  687. }
  688. .el-calendar-table tr:first-child td{
  689. border: 0 !important;
  690. }
  691. .el-calendar-table td{
  692. border: 0 !important;
  693. }
  694. .el-calendar-table .el-calendar-day{
  695. height: 30px;
  696. text-align: center;
  697. line-height: 30px;
  698. border-radius: 30px;
  699. padding: 0;
  700. // background-color: #0B18E8;
  701. }
  702. .el-calendar-table td.is-selected{
  703. // background-color: #0B18E8;
  704. border-radius: 30px;
  705. }
  706. .el-calendar__header{
  707. border: 0;
  708. padding: 0 20px;
  709. }
  710. .el-calendar__body{
  711. padding-top: 0;
  712. padding-bottom: 0;
  713. }
  714. .el-pagination{
  715. padding-left: 0;
  716. }
  717. .index_headeNav{
  718. .el-tabs__item{
  719. position: relative;
  720. }
  721. }
  722. .el-table th.is-leaf, .el-table td{
  723. border: 0 !important;
  724. }
  725. .el-calendar__title{
  726. font-size: 12px;
  727. }
  728. .el-table td{
  729. padding: 6px 0;
  730. }
  731. .index_haderPaginfoiu{
  732. .el-pagination__jump{
  733. display: block !important;
  734. text-align: center;
  735. margin-left: 0;
  736. }
  737. }
  738. .everyDay {
  739. display: inline-block;
  740. width: 20px;
  741. height: 20px;
  742. line-height: 20px;
  743. background-color: #409eff;
  744. color: #fff;
  745. border-radius: 50%;
  746. margin-top: 5px;
  747. }
  748. }
  749. </style>
  750. <style scoped lang="scss">
  751. .home {
  752. // tab
  753. .index_headetab{
  754. display: flex;
  755. border-bottom: 1px solid #E5E5E5;
  756. height: 53px;
  757. padding-top: 10px;
  758. padding-bottom: 10px;
  759. span{
  760. width: 70px;
  761. text-align: center;
  762. line-height: 43px;
  763. height: 43px;
  764. font-size: 15px;
  765. font-family: PingFang SC;
  766. font-weight: bold;
  767. color: #666;
  768. position: relative;
  769. // flex: 1;
  770. // border-bottom: ;
  771. }
  772. .span{
  773. content: '';
  774. display: block;
  775. width: 18px;
  776. height: 8px;
  777. border-radius: 3px;
  778. background-color: #3C8DBC;
  779. color: #3C8DBC !important;
  780. // position: absolute;
  781. // border-bottom: ;
  782. }
  783. .spanto{
  784. color:#3C8DBC ;
  785. border-bottom: 3px solid #3C8DBC;
  786. }
  787. }
  788. p{
  789. margin: 0;
  790. }
  791. ul{
  792. margin: 0;
  793. padding: 0;
  794. }
  795. background-color: #eef0ff;
  796. blockquote {
  797. padding: 10px 20px;
  798. margin: 0 0 20px;
  799. font-size: 17.5px;
  800. border-left: 5px solid #eee;
  801. }
  802. .index_heade{
  803. // border: 1px solid #eee;
  804. // width: 100%;
  805. padding: 0 20px;
  806. height: 386px;
  807. background-color: #fff;
  808. position: relative;
  809. border-radius: 6px;
  810. .index_headerImg{
  811. width: 23px;
  812. height: 6px;
  813. position: absolute;
  814. right: 20px;
  815. top:25px;
  816. }
  817. .index_headerUl{
  818. width: 100%;
  819. padding: 0;
  820. margin: 0;
  821. li{
  822. margin: 0;
  823. display: flex;
  824. justify-content: space-between;
  825. align-items: center;
  826. height: 43px;
  827. img{
  828. width: 11px;
  829. height: 13px;
  830. }
  831. p{
  832. font-size: 14px;
  833. font-family: PingFang SC;
  834. font-weight: 400;
  835. color: #343434;
  836. line-height: 36px;
  837. margin: 0;
  838. text-align: left;
  839. flex: 1;
  840. padding: 0 18px;
  841. }
  842. span{
  843. font-size: 14px;
  844. font-family: PingFang SC;
  845. font-weight: 400;
  846. color: #343434;
  847. line-height: 36px;
  848. }
  849. }
  850. }
  851. .index_haderPagin{
  852. display: flex;
  853. justify-content: space-between;
  854. align-items: center;
  855. margin-top: 30px;
  856. span{
  857. flex: 1;
  858. font-size: 12px;
  859. font-family: PingFang SC;
  860. font-weight: 400;
  861. color: #343434;
  862. text-align: right;
  863. // line-height: 36px;
  864. }
  865. }
  866. }
  867. //表格样式
  868. .index_headeNav{
  869. padding: 0 20px;
  870. height: 550px;
  871. background-color: #fff;
  872. position: relative;
  873. border-radius: 6px;
  874. .tab_i{
  875. position: absolute;
  876. right: 1px;
  877. top:5px;
  878. border-radius: 50%;
  879. // display: block;
  880. width: 15px ;
  881. height: 15px;
  882. line-height: 15px;
  883. text-align: center;
  884. color: #fff;
  885. background-color: red;
  886. overflow:hidden; //超出的文本隐藏
  887. text-overflow:ellipsis; //溢出用省略号显示
  888. white-space:nowrap; //溢出不换行
  889. font-size: 11px;
  890. font-family: PingFang SC;
  891. font-weight: bold;
  892. }
  893. }
  894. .index_nav{
  895. // border: 1px solid #eee;
  896. background-color: #fff;
  897. height: 315px;
  898. box-shadow: 0px 4px 4px 0px rgba(130, 150, 162, 0.64);
  899. border-radius: 6px;
  900. .index_navTime{
  901. height: 270px;
  902. position: relative;
  903. }
  904. .index_navTimeimg{
  905. height: 47px;
  906. width: 100%;
  907. position: absolute;
  908. bottom: -76px;
  909. left: 0;
  910. }
  911. .index_navTimep{
  912. padding: 10px 0;
  913. margin: 0 20px;
  914. margin-bottom: 10px;
  915. border-bottom: 1px solid #E5E5E5;
  916. display: flex;
  917. justify-content: space-between;
  918. align-items: center;
  919. span:nth-child(1){
  920. font-size: 15px;
  921. font-family: PingFang SC;
  922. font-weight: bold;
  923. color: #3C8DBC;
  924. }
  925. span:nth-child(1)::before{
  926. content: "";
  927. display: block;
  928. width: 18px;
  929. height: 8px;
  930. background: #3C8DBC;
  931. border-radius: 3px;
  932. }
  933. span:nth-child(2){
  934. font-size: 12px;
  935. font-family: PingFang SC;
  936. font-weight: 400;
  937. color: #3C8DBC;
  938. }
  939. }
  940. }
  941. // 公司概况样式
  942. .index_headeProfile{
  943. margin-top: 20px;
  944. margin-bottom: 20px;
  945. height: 316px;
  946. .index_profilep{
  947. font-size: 12px;
  948. font-family: PingFang SC;
  949. font-weight: bold;
  950. color: #343434;
  951. line-height: 27px;
  952. }
  953. .index_haderPagin{
  954. margin-top: 25px;
  955. }
  956. .index_headerImg{
  957. width: 21px;
  958. height: 21px;
  959. top:9px;
  960. }
  961. }
  962. // 备忘录样式
  963. .index_memoranduNnavTime{
  964. height: 335px;
  965. margin-top: 90px;
  966. position: relative;
  967. .index_navTimep{
  968. padding: 20px 0;
  969. // margin-bottom: 20px;
  970. }
  971. .index_navTimeimg{
  972. height: 47px;
  973. width: 100%;
  974. position: absolute;
  975. bottom: -76px;
  976. left: 0;
  977. bottom: -96px;
  978. }
  979. img{
  980. width: 23px;
  981. height: 6px;
  982. position: absolute;
  983. right: 20px;
  984. bottom: -50px;
  985. }
  986. ul{
  987. padding: 0 20px;
  988. li{
  989. display: flex;
  990. justify-content: space-between;
  991. align-items: center;
  992. border-bottom: 1px dashed #E5E5E5;
  993. p{
  994. font-size: 12px;
  995. font-family: PingFang SC;
  996. font-weight: 400;
  997. color: #343434;
  998. line-height: 36px;
  999. flex: 1;
  1000. }
  1001. span{
  1002. font-size: 12px;
  1003. font-family: PingFang SC;
  1004. font-weight: 400;
  1005. color: #343434;
  1006. line-height: 36px;
  1007. }
  1008. }
  1009. }
  1010. }
  1011. //通讯录样式
  1012. .index_memoranduMail{
  1013. height: 363px;
  1014. margin-top: 100px;
  1015. .index_navTimeimgtwo{
  1016. width: 23px;
  1017. height: 6px;
  1018. }
  1019. .index_navTimep{
  1020. padding: 20px 0;
  1021. }
  1022. .index_memoranduMailnav{
  1023. padding: 0 20px;
  1024. }
  1025. .index_navTimeimg{
  1026. height: 47px;
  1027. width: 100%;
  1028. position: absolute;
  1029. bottom: -76px;
  1030. left: 0;
  1031. bottom: -126px;
  1032. }
  1033. .index_haderPagin{
  1034. margin-top: 10px;
  1035. }
  1036. }
  1037. }
  1038. // table
  1039. .tab_tol{
  1040. // display: flex;
  1041. .tr_one{
  1042. display: flex;
  1043. justify-content: space-around;
  1044. width: 100%;
  1045. th{
  1046. flex: 1;
  1047. font-size: 12px;
  1048. font-family: PingFang SC;
  1049. font-weight: bold;
  1050. color: #343434;
  1051. line-height: 36px;
  1052. overflow: hidden;
  1053. text-overflow:ellipsis;
  1054. white-space: nowrap;
  1055. }
  1056. }
  1057. .two_tr{
  1058. display: flex;
  1059. justify-content: space-around;
  1060. font-size: 12px;
  1061. font-family: PingFang SC;
  1062. font-weight: bold;
  1063. color: #343434;
  1064. line-height: 36px;
  1065. td{
  1066. flex: 1;
  1067. overflow: hidden;
  1068. text-overflow:ellipsis;
  1069. white-space: nowrap;
  1070. }
  1071. }
  1072. .two_trtwo{
  1073. background-color: #F2F2F2;
  1074. }
  1075. }
  1076. </style>