index.vue 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096
  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><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="880px" append-to-body>
  234. <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  235. <el-row>
  236. <el-col :span="12" v-for="(item,index) in inputList" :key="index">
  237. <el-form-item :label="item.columnComment" prop="noticeTitle">
  238. <el-input :type="item.html_type" v-model="item.columnName" placeholder="请输入" />
  239. </el-form-item>
  240. </el-col>
  241. <el-col :span="12" v-for="(item,index) in dataList" :key="item.columnComment">
  242. <el-form-item :label="item.columnComment" prop="noticeTitle">
  243. <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
  244. </el-form-item>
  245. </el-col>
  246. <el-col :span="12" v-for="(item,index) in selectList" :key="item.columnComment">
  247. <el-form-item label="公告类型" prop="noticeType">
  248. <el-select v-model="form.noticeType" placeholder="请选择">
  249. <!-- <el-option
  250. v-for="dict in typeOptions"
  251. :key="dict.dictValue"
  252. :label="dict.dictLabel"
  253. :value="dict.dictValue"
  254. ></el-option> -->
  255. </el-select>
  256. </el-form-item>
  257. </el-col>
  258. <el-col :span="24" v-for="(item,index) in radiolist " :key="item.columnComment">
  259. <el-form-item label="状态">
  260. <el-radio-group v-model="form.status">
  261. <el-radio
  262. v-for="dict in statusOptions"
  263. :key="dict.dictValue"
  264. :label="dict.dictValue"
  265. >{{dict.dictLabel}}</el-radio>
  266. </el-radio-group>
  267. </el-form-item>
  268. </el-col>
  269. <el-col :span="24" v-for="(item,index) in chekbosList " :key="item.columnComment">
  270. <el-form-item label="状态">
  271. <!-- <el-radio-group v-model="form.status">
  272. <el-radio
  273. v-for="dict in statusOptions"
  274. :key="dict.dictValue"
  275. :label="dict.dictValue"
  276. >{{dict.dictLabel}}</el-radio>
  277. </el-radio-group> -->
  278. <el-checkbox-group v-model="form.type">
  279. <el-checkbox label="美食/餐厅线上活动" name="type"></el-checkbox>
  280. </el-checkbox-group>
  281. </el-form-item>
  282. </el-col>
  283. <el-col :span="24" v-for="(item,index) in editorList" :key="item.columnComment">
  284. <el-form-item label="内容">
  285. <editor v-model="form.noticeContent" :min-height="192"/>
  286. </el-form-item>
  287. </el-col>
  288. </el-row>
  289. </el-form>
  290. <div slot="footer" class="dialog-footer">
  291. <el-button type="primary" @click="submitForm">确 定</el-button>
  292. <el-button @click="cancel">取 消</el-button>
  293. </div>
  294. </el-dialog>
  295. </div>
  296. </template>
  297. <script>
  298. import { listIndex, listIndextwo, listIndextherr, listIndexfou, listIndextanl, getConfig, delConfig, addConfig, updateConfig, clearCache } from "@/api/system/config";
  299. import Editor from '@/components/Editor';
  300. export default {
  301. name: "index",
  302. components: {
  303. Editor
  304. },
  305. data() {
  306. return {
  307. // 版本号
  308. version: "2.5.0",
  309. currentPage3: 1,
  310. total:0,
  311. totalprofile:0,
  312. totalali:0,
  313. pageSize:6,
  314. activeName: 'second',
  315. // 是否显示弹出层
  316. open: false,
  317. // 弹出层标题
  318. title: "",
  319. value: new Date(),
  320. editableTabs: [],
  321. editableTabsteo:[],
  322. configList:[],
  323. queryParams:{
  324. table:'sys_notice',
  325. orderBy:'create_time desc',
  326. pageNo:1,
  327. pageSize:6,
  328. condition:{
  329. notice_type:1
  330. }
  331. },
  332. queryParamstab:{
  333. table:'sys_notice',
  334. orderBy:'create_time desc',
  335. pageNo:1,
  336. pageSize:6,
  337. condition:{
  338. notice_type:1
  339. }
  340. },
  341. // 公司概况
  342. queryParamstabprofile:{
  343. table:'sys_info',
  344. orderBy:'create_time desc',
  345. pageNo:1,
  346. pageSize:1,
  347. condition:{
  348. notice_type:1
  349. }
  350. },
  351. // 日历
  352. queryParamscalendar:{
  353. table:'sys_schedule',
  354. orderBy:'create_time desc',
  355. pageNo:1,
  356. pageSize:10,
  357. },
  358. // 备忘录
  359. queryParamstabmemorandum:{
  360. table:'sys_memorandum',
  361. orderBy:'create_time desc',
  362. pageNo:1,
  363. pageSize:6,
  364. },
  365. // 通讯录
  366. queryParamsail:{
  367. table:'sys_contacts',
  368. orderBy:'create_time desc',
  369. pageNo:1,
  370. pageSize:6,
  371. },
  372. num:0,
  373. numprofile:0,
  374. dictType:'sys_notice_type',
  375. // 公司概况
  376. dictTypetwo:'sys_describe_type',
  377. gettabList:[],
  378. getLisprofileone:[],
  379. // 备忘录
  380. getmemorandum:[],
  381. //通讯录参数
  382. aliemg:{
  383. table:'sys_contacts'
  384. },
  385. tableDataalid:[],
  386. getLisaillie:[],
  387. alendarList:[],
  388. calendarData: [
  389. ],
  390. ary:[],
  391. tieku:'',
  392. comg:'',
  393. aekti:'',
  394. // 弹框数据
  395. form:{
  396. },
  397. // 表单校验
  398. rules: {
  399. },
  400. //日历弹框
  401. calendaradd:{
  402. table:'sys_schedule'
  403. },
  404. // input
  405. inputList:[],
  406. // 时间
  407. dataList:[],
  408. //单选框
  409. radiolist:[],
  410. // 复选框
  411. chekbosList:[],
  412. //下拉框
  413. selectList:[],
  414. editorList:[]
  415. };
  416. },
  417. created() {
  418. this.getLisalendar()//日历
  419. this.getList()
  420. this.getListtab()
  421. this.getLiser()
  422. this.getLisprofile()
  423. this.getLismemorandum() //备忘录
  424. this.getLisail()//通讯录
  425. this.getLisailtwo()
  426. },
  427. computed: {
  428. // 时间高亮的数组
  429. brightDate () {
  430. // let ary = []
  431. var that = this
  432. console.log(that.calendarData)
  433. for (var i = 0 ; i < that.calendarData.length; i++) {
  434. // that.ary.push(that.calendarData[i].startDate)
  435. that.ary.push(that.calendarData[i].begin_time.slice(0,10))
  436. console.log(that.calendarData[i].begin_time)
  437. }
  438. console.log(that.ary)
  439. return that.ary
  440. }
  441. },
  442. methods: {
  443. // Tooltip 文字提示
  444. content (date) {
  445. console.log(date,37645)
  446. let content = ''
  447. // console.log(data,37645)
  448. for (var i = 0 ; i < this.calendarData.length; i++) {
  449. this.calendarData[i].begin_time = this.calendarData[i].begin_time.slice(0,10)
  450. console.log(this.calendarData[i].begin_time,123)
  451. if (date === this.calendarData[i].begin_time) {
  452. content = this.calendarData[i].schedule_title + ` ` + this.calendarData[i].schedule_type
  453. }
  454. }
  455. console.log(content)
  456. return content
  457. },
  458. //数据 第一部分列表
  459. getList() {
  460. this.loading = true;
  461. listIndex(this.queryParams).then(response => {
  462. this.configList = response.data.rows;
  463. console.log(this.configList)
  464. this.total = response.data.total;
  465. this.loading = false;
  466. }
  467. );
  468. },
  469. //数据 第二部分列表
  470. getListtabone() {
  471. this.loading = true;
  472. listIndex(this.queryParams).then(response => {
  473. this.configList = response.data.rows;
  474. console.log(this.configList)
  475. this.total = response.data.total;
  476. this.loading = false;
  477. }
  478. );
  479. },
  480. //数据 第三部分列表
  481. getLisprofile() {
  482. this.loading = true;
  483. listIndex(this.queryParamstabprofile).then(response => {
  484. if(response.data !== undefined){
  485. this.getLisprofileone = response.data.rows;
  486. this.tieku = this.getLisprofileone[0].info_title
  487. this.comg = this.getLisprofileone[0].info_content
  488. console.log(this.getLisprofileone[0].info_title,98)
  489. this.totalprofile = response.data.total;
  490. }
  491. this.loading = false;
  492. }
  493. );
  494. },
  495. //数据 日历数据列表
  496. getLisalendar() {
  497. this.loading = true;
  498. listIndex(this.queryParamscalendar).then(response => {
  499. if(response.data !== undefined){
  500. this.calendarData = response.data.rows;
  501. console.log(this.calendarData,9845765)
  502. }
  503. this.loading = false;
  504. }
  505. );
  506. },
  507. //数据 备忘录数据列表
  508. getLismemorandum() {
  509. this.loading = true;
  510. listIndex(this.queryParamstabmemorandum).then(response => {
  511. if(response.data !== undefined){
  512. this.getmemorandum = response.data.rows;
  513. console.log(this.getmemorandum,98765)
  514. }
  515. this.loading = false;
  516. }
  517. );
  518. },
  519. // 数据列表 通讯录数据
  520. getLisailtwo() {
  521. this.loading = true;
  522. listIndex(this.queryParamsail).then(response => {
  523. if(response.data !== undefined){
  524. this.getLisaillie = response.data.rows;
  525. // console.log(this.configList)
  526. }
  527. this.totalali = response.data.total
  528. this.loading = false;
  529. }
  530. );
  531. },
  532. //tab 公告 栏数据
  533. getListtab() {
  534. this.loading = true;
  535. listIndextwo(this.dictType).then(response => {
  536. this.editableTabs = response.data;
  537. this.queryParams.dictType = response.data[1].dictType
  538. console.log(this.editableTabs)
  539. // this.total = response.total;
  540. this.loading = false;
  541. }
  542. )
  543. },
  544. // 公司概况 tab
  545. getLiser() {
  546. this.loading = true;
  547. listIndextherr(this.dictTypetwo).then(response => {
  548. this.editableTabsteo = response.data;
  549. console.log(this.editableTabsteo)
  550. // this.total = response.total;
  551. this.loading = false;
  552. }
  553. )
  554. },
  555. // 通讯录表头
  556. getLisail() {
  557. this.loading = true;
  558. listIndexfou(this.aliemg).then(response => {
  559. if(response.data !== undefined){
  560. this.tableDataalid = response.data.tableHeadList;
  561. console.log(this.tableDataalid,67)
  562. this.totalprofile = response.data.total;
  563. }
  564. this.loading = false;
  565. }
  566. );
  567. },
  568. //日历新增弹框数据
  569. getLisalendaraddd() {
  570. this.loading = true;
  571. listIndextanl(this.calendaradd).then(response => {
  572. if(response.data !== undefined){
  573. this.form = response.data
  574. this.form.columns.filter(route => {
  575. // console.log(route)
  576. if(route.htmlType == "input" || route.htmlType == 'textarea'){
  577. this.inputList.push(route)
  578. }else if(route.htmlType == "select"){
  579. this.selectList.push(route)
  580. }else if(route.htmlType == "datetime"){
  581. this.dataList.push(route)
  582. }else if(route.htmlType == "editor"){
  583. this.editorList.push(route)
  584. }
  585. })
  586. console.log(this.selectList)
  587. }
  588. this.loading = false;
  589. }
  590. );
  591. },
  592. goTarget(href) {
  593. window.open(href, "_blank");
  594. },
  595. handleSizeChange(val) {
  596. console.log(`每页 ${val} 条`);
  597. },
  598. handleCurrentChange(val) {
  599. this.queryParams.pageNo = val
  600. this.getList()
  601. console.log(`当前页: ${val}`);
  602. },
  603. // 公司概况
  604. handleSizeChangeprofile(val) {
  605. console.log(`每页 ${val} 条`);
  606. },
  607. handleCurrentChangeprofile(val) {
  608. this.queryParamstabprofile.pageNo = val
  609. this.getLisprofile()
  610. console.log(`当前页: ${val}`);
  611. },
  612. // 通讯录
  613. handleSizeChangeali(val) {
  614. console.log(`每页 ${val} 条`);
  615. },
  616. handleCurrentChangeali(val) {
  617. this.queryParamsail.pageNo = val
  618. this.getLisailtwo()
  619. console.log(`当前页: ${val}`);
  620. },
  621. handleClick(tab, event) {
  622. console.log(tab, event);
  623. },
  624. // 第一部分tab点击
  625. tabSbu(index){
  626. console.log(index)
  627. this.num = index - 1
  628. this.queryParams.condition.notice_type = index
  629. this.getList()
  630. },
  631. // 第三部分tab点击
  632. tabSbuprofile(index){
  633. this.numprofile = index - 1
  634. this.queryParamstabprofile.condition.notice_type = index
  635. this.getLisprofile()
  636. },
  637. // 表单重置
  638. reset() {
  639. this.form = {
  640. };
  641. this.resetForm("form");
  642. },
  643. // 取消按钮
  644. cancel() {
  645. this.open = false;
  646. this.reset();
  647. },
  648. /** 新增按钮操作 */
  649. handleAdd() {
  650. console.log(this.open)
  651. this.reset();
  652. this.getLisalendaraddd()
  653. this.open = true;
  654. this.title = "添加日程";
  655. },
  656. /** 提交按钮 */
  657. submitForm: function() {
  658. console.log(this.inputList)
  659. // this.$refs["form"].validate(valid => {
  660. // if (valid) {
  661. // if (this.form.id != undefined) {
  662. // updateNotice(this.form).then(response => {
  663. // this.msgSuccess("修改成功");
  664. // this.open = false;
  665. // this.getList();
  666. // });
  667. // } else {
  668. // addNotice(this.form).then(response => {
  669. // this.msgSuccess("新增成功");
  670. // this.open = false;
  671. // this.getList();
  672. // });
  673. // }
  674. // }
  675. // });
  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>