Home.vue 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239
  1. <template>
  2. <el-row class="container">
  3. <v-tour name="myTour" :steps="steps" :options="myOptions" :callbacks="myCallbacks" v-if="tourFlg"></v-tour>
  4. <el-col :span="24" class="header">
  5. <div class="contentMask" v-if="vTourFlg"></div>
  6. <el-col :span="10" class="logo" :class="collapsed?'logo-collapse-width':'logo-width'" :style="collapsed?'padding:0':''">
  7. <img v-if="collapsed" class="headImg" src="../assets/image/head_logo.png" />
  8. <div v-else class="logo-sys">
  9. <img class="headImg" src="../assets/image/head_logo.png" />
  10. <!-- <span>{{$t('workingHoursHousekeeper')}}</span> -->
  11. <span>{{ themesType == 'dark' ? '临床工时通' : '工时管家' }}</span>
  12. </div>
  13. </el-col>
  14. <el-col :span="6">
  15. <div class="tools" style="position: relative;">
  16. <i class="fa fa-align-justify" @click.prevent="collapse" style="position: relative;z-index: 10;"></i>
  17. <div class="gongshimingz">
  18. {{user.companyName}}
  19. <i v-if="user.roleName == '超级管理员' && user.companyName != '成都明夷电子科技有限公司'" class="el-icon-edit" @click="editCompanyNamedialog=true,companyForm.name = user.companyName" style="position: relative;z-index: 15; margin-left: 5px;"></i>
  20. </div>
  21. </div>
  22. </el-col>
  23. <el-col :span="12" class="userinfo" style="display: flex;align-items: center;justify-content: flex-end;">
  24. <!-- 中英文切换入口 -->
  25. <!-- <el-dropdown trigger="click" @command="langChange" style="margin-right:30px;">
  26. <span class="el-dropdown-link userinfo-inner">
  27. {{language}} <i class="el-icon-caret-bottom"></i>
  28. </span>
  29. <el-dropdown-menu slot="dropdown">
  30. <el-dropdown-item divided command="zh">中文</el-dropdown-item>
  31. <el-dropdown-item divided command="en">English</el-dropdown-item>
  32. </el-dropdown-menu>
  33. </el-dropdown> -->
  34. <el-dropdown trigger="hover" style="margin-right:30px;">
  35. <span class="el-dropdown-link userinfo-inner">
  36. <i class="el-icon-user" style="font-size:18px" ></i>
  37. <!-- {{$t('other.customerService')}} -->
  38. {{ $t('bangZhuZhongXin') }}
  39. </span>
  40. <el-dropdown-menu slot="dropdown">
  41. <el-dropdown-item >
  42. <div v-if="!isCorpWX">
  43. <!-- <div>{{$t('other.sweepWeChatYards')}}</div> -->
  44. <!-- <div>扫码添加企业微信客服</div> -->
  45. <div>{{ $t('ke-fu-wei-xin') }}</div>
  46. <img
  47. style="width: 120px; height: 120px"
  48. src="../assets/image/code.jpg" />
  49. </div>
  50. <div v-if="isCorpWX">
  51. <div>{{ $t('saoMaTianJiaQiYeWeiXinKeFu') }}</div>
  52. <img
  53. style="width: 153px; height: 153px"
  54. src="../assets/image/qwcode.png" />
  55. </div>
  56. <div>
  57. <div>
  58. <el-link type="primary" :underline="false" href="https://www.ttkuaiban.com/download/%E5%B7%A5%E6%97%B6%E7%AE%A1%E5%AE%B6%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E%E4%B9%A6.pdf">{{ $t('dianJiChaKanCaoZuoShouCe') }}</el-link>
  59. </div>
  60. </div>
  61. </el-dropdown-item>
  62. </el-dropdown-menu>
  63. </el-dropdown>
  64. {{$t('time.dueDate')}}:{{remainingTime}}
  65. <el-badge class="itemNew" :value="num" :hidden="num == 0">
  66. <i class="el-icon-message-solid" style="font-size:24px" v-popover:popover1 @click="drawer = true"></i>
  67. </el-badge>
  68. <el-drawer :title="$t('other.messageCenter')" :visible.sync="drawer" direction="rtl" :with-header="false" size="35%">
  69. <el-table :data="popoverData" :height="tableHeight" size="small">
  70. <el-table-column property="type" :label="$t('other.messageContent')" align="left">
  71. <template slot-scope="scope">
  72. <el-link type="primary" :underline="false" @click="locationHerf(scope.row.id,scope.row.content, scope.row.type)">
  73. <span style="font-size:13px;">
  74. <span v-if="scope.row.msg == null">
  75. {{msgTypeTxt[scope.row.type]}}
  76. </span>
  77. <span v-else>
  78. <span v-if="user.userNameNeedTranslate != 1">
  79. {{scope.row.msg}}
  80. </span>
  81. <span v-if="user.userNameNeedTranslate == 1">
  82. {{scope.row.omg.textOne}}
  83. <TranslationOpenDataText v-if="user.corpwxUserid != null" type='userName' :openid='scope.row.omg.textTwo'></TranslationOpenDataText>
  84. <dt-open-data v-if="user.dingdingUserid != null" open-type='userName' :open-id='scope.row.omg.textTwo'></dt-open-data>
  85. {{scope.row.omg.textThree}}
  86. </span>
  87. </span>
  88. <!-- {{scope.row.msg==null?msgTypeTxt[scope.row.type]:scope.row.msg}} -->
  89. </span>
  90. </el-link>
  91. </template>
  92. </el-table-column>
  93. <el-table-column property="type" :label="$t('state.states')" align="center" width="60">
  94. <template slot-scope="scope">
  95. <span v-if="scope.row.checked == 0" style="color:red">{{$t('other.unread')}}</span>
  96. <span v-else style="color:green">{{$t('other.read')}}</span>
  97. </template>
  98. </el-table-column>
  99. <el-table-column property="time" :label="$t('time.times')" align="center" width="120"></el-table-column>
  100. </el-table>
  101. </el-drawer>
  102. <el-dropdown trigger="hover" style="margin-left:10px;">
  103. <span class="el-dropdown-link userinfo-inner">
  104. <img src="../assets/image/userHead.png" />
  105. <!-- <span v-if="user.userNameNeedTranslate == 1">
  106. <TranslationOpenDataText type='userName' :openid='sysUserName'></TranslationOpenDataText>
  107. </span>
  108. <span v-if="user.dingdingUserid">
  109. <dt-open-data open-type='userName' :open-id='user.dingdingUserid'></dt-open-data>
  110. </span>
  111. <span v-if="user.userNameNeedTranslate != 1">
  112. {{sysUserName}}
  113. </span> -->
  114. <TranslationOpenData :configurationItems="{ openType: 'userName', openId: sysUserName, renderIndex: 0 }" />
  115. <!-- {{sysUserName}} -->
  116. </span>
  117. <el-dropdown-menu slot="dropdown">
  118. <!-- <el-dropdown-item disabled ><span style="font-size:12px;"><i class="el-icon-view" ></i>{{roleArray[user.role]}}</span></el-dropdown-item> -->
  119. <el-dropdown-item disabled ><span style="font-size:12px;"><i class="el-icon-view" ></i>{{user.roleName}}</span></el-dropdown-item>
  120. <el-dropdown-item disabled ><span style="font-size:12px;"><i class="el-icon-medal" v-if="user.jobNumber"></i>{{user.jobNumber}}</span></el-dropdown-item>
  121. <el-dropdown-item @click.native="reset" v-if="user.userNameNeedTranslate != 1">{{$t('other.changeThePassword')}}</el-dropdown-item>
  122. <!-- <el-dropdown-item @click.native="editInfoOpen">修改信息</el-dropdown-item> -->
  123. <el-dropdown-item divided @click.native="logout" v-if="!isCorpWX" >{{$t('other.launchTheLogin')}}</el-dropdown-item>
  124. </el-dropdown-menu>
  125. </el-dropdown>
  126. </el-col>
  127. </el-col>
  128. <el-col :span="24" class="main">
  129. <aside :class="collapsed?'menu-collapsed':'menu-expanded'">
  130. <el-scrollbar style="height:100%">
  131. <!--导航菜单-->
  132. <el-menu :default-active="$route.path" class="el-menu-vertical-demo" unique-opened router v-if="!collapsed" :default-openeds="['zhan']">
  133. <template v-for="(item, index) in $router.options.routes" v-if="!item.hidden">
  134. <!-- <el-submenu :index="index+''" v-if="!item.leaf"> -->
  135. <el-submenu :index="'zhan'" v-if="!item.leaf">
  136. <template slot="title">
  137. <i :class="item.iconCls"></i>
  138. <!-- <span class="itemName">{{item.name}}</span> -->
  139. <span class="itemName bosx" v-if="$t(item.meta.text).length < 16">{{$t(item.meta.text)}}</span>
  140. <el-tooltip class="itemName bosx" v-if="$t(item.meta.text).length > 16" effect="dark" :content="$t(item.meta.text)" placement="top">
  141. <span>{{$t(item.meta.text)}}</span>
  142. </el-tooltip>
  143. </template>
  144. <el-menu-item v-for="child in item.children" :index="child.path" :key="child.path" v-if="!child.hidden" :data-v-step="child.path"><i :class="child.iconCls"></i>
  145. <!-- {{child.name}} -->
  146. <span class="bosx" v-if="$t(child.meta.text).length < 16">{{$t(child.meta.text)}}</span>
  147. <el-tooltip class="bosx" v-if="$t(child.meta.text).length > 16" effect="dark" :content="$t(child.meta.text)" placement="top">
  148. <span>{{$t(child.meta.text)}}</span>
  149. </el-tooltip>
  150. </el-menu-item>
  151. </el-submenu>
  152. <el-menu-item v-if="item.leaf && item.children.length > 0" :index="item.children[0].path" :data-v-step="item.children[0].path">
  153. <i :class="item.iconCls"></i>
  154. <!-- {{item.children[0].name}} -->
  155. <span class="bosx" v-if="$t(item.meta.text).length <= 16">{{$t(item.meta.text)}}</span>
  156. <el-tooltip class="itemName bosx" v-if="$t(item.meta.text).length > 16" effect="dark" :content="$t(item.meta.text)" placement="top">
  157. <span>{{$t(item.meta.text)}}</span>
  158. </el-tooltip>
  159. <!-- {{$t('navigation.reports')}} -->
  160. <!-- this.$t('navigation.reports')  // js-->
  161. </el-menu-item>
  162. </template>
  163. </el-menu>
  164. <!--导航菜单-折叠后-->
  165. <ul class="el-menu el-menu-vertical-demo collapsed" v-if="collapsed" ref="menuCollapsed">
  166. <li v-for="(item,index) in $router.options.routes" v-if="!item.hidden" class="el-submenu item" :style="{overflow:!item.leaf?'':'hidden'}">
  167. <template v-if="!item.leaf">
  168. <div class="el-submenu__title" style="padding-left: 20px;" @mouseover="showMenu(index,true)" @mouseout="showMenu(index,false)">
  169. <i :class="item.iconCls"></i>
  170. </div>
  171. <ul class="el-menu submenu" :class="'submenu-hook-'+index" @mouseover="showMenu(index,true)" @mouseout="showMenu(index,false)">
  172. <li v-for="child in item.children" v-if="!child.hidden" :key="child.path" class="el-menu-item" style="padding-left: 40px;" :class="$route.path==child.path?'is-active':''" @click="$router.push(child.path)">
  173. {{child.name}}
  174. </li>
  175. </ul>
  176. </template>
  177. <template v-else>
  178. <li class="el-submenu">
  179. <div class="el-submenu__title el-menu-item" :class="$route.path==item.children[0].path?'is-active':''" @click="$router.push(item.children[0].path)"
  180. style="padding-left: 20px;height: 56px;line-height: 56px;padding: 0 20px;">
  181. <i :class="item.iconCls"></i>
  182. </div>
  183. </li>
  184. </template>
  185. </li>
  186. </ul>
  187. </el-scrollbar>
  188. </aside>
  189. <section class="content-container">
  190. <div class="contentMask" v-if="vTourFlg"></div>
  191. <div class="grid-content h-full bg-purple-light">
  192. <el-col :span="24" class="content-wrapper h-full">
  193. <transition name="fade" mode="out-in">
  194. <router-view></router-view>
  195. </transition>
  196. </el-col>
  197. </div>
  198. <!--修改密码-->
  199. <el-dialog :title="$t('other.changeThePassword')" width='450px' v-if="editPassWord" :visible.sync="editPassWord" :close-on-click-modal="false" customClass="customWidth">
  200. <el-form :model="addForm" label-width="auto" :rules="passRule" ref="addForm">
  201. <el-form-item :label="$t('lable.originalPassword')" prop="originPassword">
  202. <el-input v-model="addForm.originPassword" autocomplete="off" :placeholder="$t('defaultText.pleaseEnterTheOldPassword')" show-password></el-input>
  203. </el-form-item>
  204. <el-form-item :label="$t('lable.newPassword')" prop="newPassword">
  205. <el-input v-model="addForm.newPassword" autocomplete="off" :placeholder="$t('defaultText.pleaseEnterTheNewPassword')" show-password></el-input>
  206. </el-form-item>
  207. </el-form>
  208. <div slot="footer" class="dialog-footer">
  209. <el-button @click.native="editPassWord = false">{{$t('btn.cancel')}}</el-button>
  210. <el-button type="primary" @click.native="resetPwd" :loading="editLoading">{{$t('btn.submit')}}</el-button>
  211. </div>
  212. </el-dialog>
  213. <!--修改信息-->
  214. <el-dialog :title="$t('title.modifyTheInformation')" width='450px' v-if="editInformation" :visible.sync="editInformation" :close-on-click-modal="false" customClass="customWidth">
  215. <el-form :model="editInfoForm" label-width="auto" :rules="passRule" ref="editInfoForm">
  216. <el-form-item :label="$t('lable.name')" prop="username">
  217. <el-input v-model="editInfoForm.username" autocomplete="off" :placeholder="$t('defaultText.PleaseEnterYourName')"></el-input>
  218. </el-form-item>
  219. </el-form>
  220. <el-form :model="editInfoForm" label-width="auto" :rules="passRule" ref="editInfoForm">
  221. <el-form-item :label="$t('lable.phone')" prop="mobile">
  222. <el-input v-model="editInfoForm.mobile" autocomplete="off" :placeholder="$t('defaultText.PleaseEnterYourPhone')" :disabled="true"></el-input>
  223. </el-form-item>
  224. </el-form>
  225. <div slot="footer" class="dialog-footer">
  226. <el-button @click.native="editInformation = false">{{$t('btn.cancel')}}</el-button>
  227. <el-button type="primary" @click.native="editInfo" :loading="editLoading2">{{$t('btn.submit')}}</el-button>
  228. </div>
  229. </el-dialog>
  230. <el-dialog
  231. :title="$t('xiuGaiGongSiMingCheng')"
  232. :visible.sync="editCompanyNamedialog"
  233. width="30%">
  234. <el-form :model="companyForm" :rules="rules" ref="companyForm" label-width="100px" class="demo-ruleForm">
  235. <el-form-item :label="$t('gongSiMingCheng')" prop="name">
  236. <el-input v-model.trim="companyForm.name"></el-input>
  237. </el-form-item>
  238. </el-form>
  239. <span slot="footer" class="dialog-footer">
  240. <el-button @click="editCompanyNamedialog = false">{{ $t('quXiao') }}</el-button>
  241. <el-button type="primary" @click="editCompanyName('companyForm')">{{ $t('queDing') }}</el-button>
  242. </span>
  243. </el-dialog>
  244. </section>
  245. </el-col>
  246. <!-- 完善工号弹窗 -->
  247. <el-dialog :title="$t('wanShanGongHao')" :visible.sync="perfectJobNumber" width="500px" :show-close="false">
  248. <el-form :model="perfectForm" :rules="rules" ref="perfectForm" label-width="80px" class="demo-ruleForm">
  249. <el-form-item :label="$t('Worknumber')" prop="jobNumber">
  250. <el-input v-model.trim="perfectForm.jobNumber"></el-input>
  251. </el-form-item>
  252. </el-form>
  253. <span slot="footer" class="dialog-footer">
  254. <el-button type="primary" @click="editPerfectJobNumber('perfectForm')">{{ $t('queDing') }}</el-button>
  255. </span>
  256. </el-dialog>
  257. <!-- 完善名称弹窗 -->
  258. <el-dialog :title="$t('wanShanXingMing')" :visible.sync="perfectName" width="500px" :show-close="false">
  259. <el-form :model="perfectFormName" :rules="rules" ref="perfectFormName" label-width="80px" class="demo-ruleForm">
  260. <el-form-item :label="$t('lable.name')" prop="userName">
  261. <el-input v-model.trim="perfectFormName.userName"></el-input>
  262. </el-form-item>
  263. </el-form>
  264. <span slot="footer" class="dialog-footer">
  265. <el-button type="primary" @click="editPerfectName('perfectFormName')">{{$t('queDing')}}</el-button>
  266. </span>
  267. </el-dialog>
  268. </el-row>
  269. </template>
  270. <script>
  271. import util from "../common/js/util";
  272. export default {
  273. // 引用 app.vue reloads 方法
  274. inject:['reloads'],
  275. data() {
  276. return {
  277. themesType: 'default',
  278. textLength: 16,
  279. companyForm:{
  280. name: '',
  281. },
  282. perfectForm:{
  283. jobNumber: '',
  284. },
  285. perfectFormName: {
  286. userName: '',
  287. },
  288. rules: {
  289. name: [
  290. { required: true, message: this.$t('qingShuRuGongSiMingCheng'), trigger: 'blur' },
  291. { min: 1, max: 20, message: this.$t('changDuWei_120GeZiFu'), trigger: 'blur' }
  292. ],
  293. jobNumber: [
  294. { required: true, message: this.$t('qingShuRuGongHao'), trigger: 'blur' }
  295. ],
  296. userName: [
  297. { required: true, message: this.$t('defaultText.PleaseEnterYourName'), trigger: 'blur' }
  298. ]
  299. },
  300. tourFlg: false,
  301. editCompanyNamedialog:false,
  302. firstTourFalse: localStorage.getItem('firstTourFalse') | true, // 是否需要新手指导
  303. steps: [
  304. {
  305. target: '[data-v-step="/timetype"]',
  306. content: `第一步,查看基础设置,按照企业情况进行调整`,
  307. params: {
  308. placement: 'right',
  309. highlight: true
  310. }
  311. },{
  312. target: '[data-v-step="/list"]',
  313. content: `第二步,创建项目和任务`,
  314. params: {
  315. placement: 'right',
  316. highlight: true
  317. }
  318. },{
  319. target: '[data-v-step="/daily"]',
  320. content: `第三步,填写每日工时报告`,
  321. params: {
  322. placement: 'right',
  323. highlight: true
  324. }
  325. },{
  326. target: '[data-v-step="/review"]',
  327. content: `第四步,项目报告审核`,
  328. params: {
  329. placement: 'right',
  330. highlight: true
  331. }
  332. },{
  333. target: '[data-v-step="/cost"]',
  334. content: `第五步,查看工时成本统计结果`,
  335. params: {
  336. placement: 'right',
  337. highlight: true
  338. }
  339. },{
  340. target: '[data-v-step="/finance"]',
  341. content: `第六步,导入薪资,校准成本并生成财务报表`,
  342. params: {
  343. placement: 'right',
  344. highlight: true
  345. }
  346. }
  347. ],
  348. myOptions:{
  349. useKeyboardNavigation: false, //不使用←、→和ESC键来导航tour
  350. startTimeout: 1000, //1秒后执行
  351. highlight: true,
  352. labels: {
  353. buttonSkip: this.$t('tiaoGuo'),
  354. buttonPrevious: this.$t('btn.previousstep'),
  355. buttonNext: this.$t('btn.nextStep'),
  356. buttonStop: this.$t('Shutdown')
  357. }
  358. },
  359. myCallbacks: {
  360. onSkip: this.onSkip, //在data中定义两个回调
  361. onFinish: this.onFinish
  362. },
  363. isCorpWX: false,
  364. // roleArray:["普通员工","超级管理员", "系统管理员", "公司高层","财务管理员", "项目管理员","公司领导"],
  365. roleArray:[this.$t('role.ordinaryEmployees'),this.$t('role.superAdministrator'),this.$t('role.systemAdministrator'),this.$t('role.companyTop'),this.$t('role.financialAdministrator'),this.$t('role.projectManager'),this.$t('role.companyLeadership')],
  366. helpImg: '../assets/image/userHead.png',
  367. user: sessionStorage.getItem("user"),
  368. collapsed: sessionStorage.collapsed!=null?(sessionStorage.collapsed=='true'?true:false):false,
  369. sysUserName: "",
  370. menu: [],
  371. // msgTypeTxt:["审批未通过","有新任务啦","任务有新进展","项目日报审核通过"],
  372. msgTypeTxt:[this.$t('state.notApproved'),this.$t('state.ThereIsAnewTask'),this.$t('state.TheresBeen'),this.$t('state.approvedProject')],
  373. editInformation: false,
  374. editPassWord: false,
  375. editLoading: false,
  376. editLoading2: false,
  377. addForm: {
  378. id: "",
  379. originPassword: "",
  380. newPassword: ""
  381. },
  382. editInfoForm: {
  383. id: "",
  384. username: "",
  385. mobile: "",
  386. companyName: ""
  387. },
  388. passRule: {
  389. originPassword: [{ required: true, message: this.$t('defaultText.pleaseEnterTheOldPassword'), trigger: "blur" }],
  390. newPassword: [{ required: true, message: this.$t('defaultText.pleaseEnterTheNewPassword'), trigger: "blur" }],
  391. username: [{ required: true, message: this.$t('defaultText.PleaseEnterYourName'), trigger: "blur" }]
  392. },
  393. //时间
  394. activeDate: new Date(),
  395. timer: null,
  396. remainingTime: '',
  397. drawer: false,
  398. tableHeight: 0,
  399. popoverData: [],
  400. num: 0,
  401. language: '',
  402. setTimeLoad: null,
  403. // 遮罩
  404. vTourFlg: false,
  405. perfectJobNumber: false, // 完善工号弹窗
  406. perfectName: false, // 完成名称弹窗
  407. jobNumberCheckCompanyId: [936], // 定制需求,需要完善工号的公司id
  408. };
  409. },
  410. created() {
  411. this.firstTourFalse = localStorage.getItem('firstTourFalse') || true
  412. console.log(this.firstTourFalse, '数据书数据')
  413. console.log(localStorage.getItem('firstTourFalse'))
  414. },
  415. methods: {
  416. getSkipGuidance() {
  417. this.http.post('/user/skipGuidance', {},
  418. res => {
  419. if (res.code == "ok") {
  420. let users = JSON.parse(sessionStorage.getItem("user"))
  421. users.isFirstLogin == 0
  422. sessionStorage.setItem("user", JSON.stringify(users))
  423. }
  424. },
  425. error => {
  426. });
  427. },
  428. onSkip(currentStep) {
  429. console.log('看看')
  430. this.vTourFlg = false
  431. this.firstTourFalse = false
  432. localStorage.setItem('firstTourFalse', false)
  433. console.log(this.user, '用户信息')
  434. if(this.user.corpwxUserid != null) {
  435. this.getSkipGuidance()
  436. }
  437. },
  438. onFinish(currentStep) {
  439. console.log('数据')
  440. this.vTourFlg = false
  441. this.firstTourFalse = false
  442. localStorage.setItem('firstTourFalse', false)
  443. this.getSkipGuidance()
  444. if(this.user.corpwxUserid != null) {
  445. this.getSkipGuidance()
  446. }
  447. },
  448. // 中英文切换
  449. langChange(command) {
  450. let flg = this.language
  451. this.$i18n.locale = command
  452. localStorage.setItem("lang", command)
  453. if(command == 'en') {
  454. this.language = 'English'
  455. } else if (command == 'zh') {
  456. this.language = '中文'
  457. }
  458. if(flg != this.language) {
  459. this.reloads()
  460. }
  461. },
  462. //退出登录
  463. logout: function() {
  464. var _this = this;
  465. this.$confirm(this.$t('other.confirmExit') + '?', this.$t('other.prompts'), {
  466. //type: 'warning'
  467. confirmButtonText: this.$t('btn.submit'),
  468. cancelButtonText: this.$t('btn.cancel'),
  469. }).then(() => {
  470. sessionStorage.removeItem("user");
  471. location.reload();
  472. _this.$router.push("/login");
  473. });
  474. },
  475. //折叠导航栏
  476. collapse: function() {
  477. this.collapsed = !this.collapsed;
  478. sessionStorage.collapsed = this.collapsed;
  479. },
  480. showMenu(i, status) {
  481. this.$refs.menuCollapsed.getElementsByClassName(
  482. "submenu-hook-" + i
  483. )[0].style.display = status ? "block" : "none";
  484. },
  485. //打开编辑信息界面
  486. editInfoOpen() {
  487. this.editInformation = true;
  488. this.editInfoForm.id = JSON.parse(sessionStorage.getItem("user")).id;
  489. this.editInfoForm.username = JSON.parse(
  490. sessionStorage.getItem("user")
  491. ).username;
  492. this.editInfoForm.mobile = JSON.parse(
  493. sessionStorage.getItem("user")
  494. ).account;
  495. this.editInfoForm.companyName = JSON.parse(
  496. sessionStorage.getItem("user")
  497. ).companyName;
  498. },
  499. //编辑信息
  500. editInfo() {
  501. this.$refs.editInfoForm.validate(valid => {
  502. if (valid) {
  503. this.editLoading2 = true;
  504. this.http.post(
  505. this.port.pwd.resetPwd,
  506. { id: this.editInfoForm.id, username: this.editInfoForm.username },
  507. res => {
  508. this.editLoading2 = false;
  509. this.editInformation = false;
  510. if (res.code == "ok") {
  511. this.$message({
  512. message: this.$t('message.modifyTheSuccess'),
  513. type: "success"
  514. });
  515. //读取并覆盖session storage
  516. var userObject = JSON.parse(sessionStorage.getItem("user"));
  517. userObject.username = this.editInfoForm.username;
  518. sessionStorage.setItem("user", JSON.stringify(userObject));
  519. this.sysUserName = this.editInfoForm.username;
  520. } else {
  521. this.$message({
  522. message: res.msg,
  523. type: "error"
  524. });
  525. }
  526. },
  527. error => {
  528. this.editLoading2 = false;
  529. this.editInformation = false;
  530. this.$message({
  531. message: error,
  532. type: "error"
  533. });
  534. }
  535. );
  536. }
  537. });
  538. },
  539. //编辑公司名称
  540. editCompanyName(companyForm){
  541. this.$refs[companyForm].validate((valid) => {
  542. if (valid) {
  543. this.http.post("/company/editCompanyName", {name:this.companyForm.name},
  544. res => {
  545. if (res.code == "ok") {
  546. this.editCompanyNamedialog = false;
  547. let list = JSON.parse(sessionStorage.getItem("user") || '[]')
  548. sessionStorage.removeItem('user')
  549. this.user.companyName = this.companyForm.name
  550. list.companyName = this.companyForm.name
  551. sessionStorage.setItem("user",JSON.stringify(list))
  552. this.$message({
  553. message: res.msg,
  554. type: "success"
  555. });
  556. } else {
  557. this.$message({
  558. message: res.msg,
  559. type: "error"
  560. });
  561. }
  562. },
  563. error => {
  564. this.$message({
  565. message: error,
  566. type: "error"
  567. });
  568. });
  569. } else {
  570. return false;
  571. }
  572. });
  573. },
  574. reset() {
  575. this.editPassWord = true;
  576. this.addForm.id = JSON.parse(sessionStorage.getItem("user")).id;
  577. this.addForm.account = JSON.parse(sessionStorage.getItem("user")).account;
  578. },
  579. resetPwd() {
  580. this.$refs.addForm.validate(valid => {
  581. if (valid) {
  582. this.editLoading = true;
  583. this.http.post( this.port.manage.editPassword, this.addForm,
  584. res => {
  585. this.editLoading = false;
  586. this.editPassWord = false;
  587. if (res.code == "ok") {
  588. this.$message({
  589. // message: "修改成功,请重新登录",
  590. message: this.$t('message.logAganin'),
  591. type: "success"
  592. });
  593. this.$router.push("/login");
  594. } else {
  595. this.$message({
  596. message: res.msg,
  597. type: "error"
  598. });
  599. }
  600. },
  601. error => {
  602. this.editLoading = false;
  603. this.editPassWord = false;
  604. this.$message({
  605. message: error,
  606. type: "error"
  607. });
  608. });
  609. }
  610. });
  611. },
  612. setTime() {
  613. var d = util.formatDate.cdTime(new Date(new Date().getTime() + this.user.remainingTime), new Date(), 'd');
  614. var h = util.formatDate.cdTime(new Date(new Date().getTime() + this.user.remainingTime), new Date(), 'h');
  615. var m = util.formatDate.cdTime(new Date(new Date().getTime() + this.user.remainingTime), new Date(), 'm');
  616. var s = util.formatDate.cdTime(new Date(new Date().getTime() + this.user.remainingTime), new Date(), 's');
  617. this.remainingTime = d+this.$t('time.day')+h+this.$t('shi')+m+this.$t('fen')+s+this.$t('miao');
  618. },
  619. // 加载消息
  620. loadNotice() {
  621. this.http.post( this.port.manage.msgList, {},
  622. res => {
  623. if (res.code == "ok") {
  624. var list = res.data;
  625. if(this.user.userNameNeedTranslate == 1) {
  626. let msgArr = res.data
  627. for(var i in msgArr) {
  628. if(msgArr[i].msg) {
  629. let caozuo = JSON.parse(JSON.stringify(msgArr[i].msg))
  630. if(caozuo.indexOf('$userName=') != '-1') {
  631. let textOne = caozuo.split('$userName=')[0]
  632. let textTwo = caozuo.split('$userName=')[1].split('$')[0]
  633. let textThree = caozuo.split('$userName=')[1].split('$')[1]
  634. msgArr[i].omg = {
  635. textOne: textOne,
  636. textTwo: textTwo,
  637. textThree: textThree
  638. }
  639. } else {
  640. msgArr[i].omg = {
  641. textOne: msgArr[i].msg,
  642. textTwo: '',
  643. textThree: ''
  644. }
  645. }
  646. } else {
  647. msgArr[i].omg = {
  648. textOne: '',
  649. textTwo: '',
  650. textThree: ''
  651. }
  652. }
  653. }
  654. }
  655. this.popoverData = res.data;
  656. var num = 0;
  657. for(var i in list) {
  658. if(list[i].checked != 1) {
  659. num ++;
  660. }
  661. }
  662. this.num = num;
  663. } else {
  664. this.$message({
  665. message: res.msg,
  666. type: "error"
  667. });
  668. }
  669. },
  670. error => {
  671. this.$message({
  672. message: error,
  673. type: "error"
  674. });
  675. });
  676. },
  677. //点击消息的跳转
  678. locationHerf(id, date, type) {
  679. this.http.post( this.port.manage.check, { id: id },
  680. res => {
  681. if (res.code == "ok") {
  682. this.loadNotice();
  683. if (type == 0) {
  684. //审批未通过的消息, 也包括审批通过的通知
  685. sessionStorage.msg = date;
  686. sessionStorage.from = 1;
  687. //本页面再点的话强制转移一下
  688. var currentRoute = this.$route.path.split("/");
  689. if (currentRoute[1] == "daily") {
  690. this.$router.go(0);
  691. this.drawer = false;
  692. return false;
  693. }
  694. this.$router.push("/daily");
  695. this.drawer = false;
  696. } else if (type == 1) {
  697. //1- 有新任务待执行
  698. this.$router.push("/projectInside/"+date);
  699. this.drawer = false;
  700. } else if (type == 2) {
  701. //2- 任务有新进展
  702. this.$router.push("/projectInside/"+date);
  703. this.drawer = false;
  704. } else if (type == 3) {
  705. //3- 费用报销
  706. this.$router.push("/expense");
  707. this.drawer = false;
  708. } else if (type == 4) {
  709. //4- 请假消息
  710. this.$router.push("/leave");
  711. this.drawer = false;
  712. } else if (type == 5) {
  713. //5- 出差消息
  714. this.$router.push("/awayOffice");
  715. this.drawer = false;
  716. } else if (type == 6 || type == 7 || type == 8) {
  717. // 6、7 合同通过、驳回
  718. this.$router.push("/contract");
  719. this.drawer = false;
  720. } else if (type == 10) {
  721. // 10 预估工时审核 通过 驳回
  722. var action = '';
  723. //跳转进入项目的任务看板
  724. date = decodeURIComponent(date);
  725. if (date.includes('@adjustBudget-')) {
  726. //需要打开分组预估工时设置
  727. action = date.split('@')[1];
  728. date = date.split('@')[0];
  729. }
  730. sessionStorage.action = action
  731. this.$router.push("/projectInside/"+date);
  732. this.drawer = false;
  733. }
  734. } else {
  735. this.$message({
  736. message: res.msg,
  737. type: "error"
  738. });
  739. }
  740. },
  741. error => {
  742. this.$message({
  743. message: error,
  744. type: "error"
  745. });
  746. });
  747. },
  748. // 获取企业微信的参数
  749. agentConfig() {
  750. var isCorpWX = true
  751. var ua = navigator.userAgent.toLowerCase();
  752. if (ua.indexOf("wxwork") > 0) {
  753. isCorpWX = false;
  754. }
  755. var curUrl = location.href.split("#")[0];
  756. this.http.post("/wxcorp/getCorpWXConfig", {url: curUrl, token: this.user.id}, (res) => {
  757. if (res.code == "ok") {
  758. wx.config({
  759. beta: true,
  760. debug: isCorpWX, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  761. appId: res.data.appid, // 必填,公众号的唯一标识
  762. timestamp: res.data.timestamp, // 必填,生成签名的时间戳
  763. nonceStr: res.data.noncestr, // 必填,生成签名的随机串
  764. signature: res.data.sign, // 必填,签名,见附录1
  765. jsApiList: ['chooseImage','previewImage','uploadImage','downloadImage','previewFile','getLocation','agentConfig', 'getLocalImgData']
  766. });
  767. var that = this;
  768. wx.ready(function(){
  769. // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中。
  770. that.http.post("/wxcorp/getCorpWXAgentConfig", {url: curUrl, token: that.user.id}, (res) => {
  771. if (res.code == "ok") {
  772. console.log()
  773. wx.agentConfig({
  774. corpid: res.data.corpid, // 必填,企业微信的corpid,必须与当前登录的企业一致
  775. agentid: res.data.agentid, // 必填,企业微信的应用id (e.g. 1000247)
  776. timestamp: res.data.timestamp, // 必填,生成签名的时间戳
  777. nonceStr: res.data.nonceStr, // 必填,生成签名的随机串
  778. signature: res.data.signature, // 必填,签名,见附录-JS-SDK使用权限签名算法
  779. jsApiList: ['selectExternalContact', 'selectEnterpriseContact', 'openAppManage'], //必填,传入需要使用的接口名称
  780. success: function (result) {
  781. console.log(result, '请求微信成功')
  782. console.log(window, 'window')
  783. // wx.agentConfig成功回调后,WWOpenData 才会注入到 window 对象上面
  784. if(window.WWOpenData) {
  785. window.WWOpenData.bind(document.querySelector('TranslationOpenDataText'))
  786. if (WWOpenData.initCanvas) {
  787. WWOpenData.initCanvas()
  788. console.log('我企业微信 canvas 应该执行了吧')
  789. }
  790. }
  791. },
  792. fail: function (res) {
  793. console.log('查看错误信息', res)
  794. if (res.errMsg.indexOf('function not exist') > -1) {
  795. alert(that.$t('banBenGuoDiQingShengJi'))
  796. }
  797. },
  798. })
  799. }
  800. }, (error) => {
  801. console.log('查看错误信息' + res)
  802. if (error.errMsg.indexOf('function not exist') > -1) {
  803. alert(that.$t('banBenGuoDiQingShengJi'))
  804. }
  805. })
  806. });
  807. }
  808. }, (error) => {
  809. console.log(error, '哦耶')
  810. })
  811. },
  812. // 完善工号
  813. editPerfectJobNumber(perfectForm) {
  814. this.$refs[perfectForm].validate((valid) => {
  815. if (valid) {
  816. const { id } = this.user
  817. this.http.post("/user/updateUserJobNumber", {
  818. jobNumber: this.perfectForm.jobNumber,
  819. userId: id
  820. },
  821. res => {
  822. if (res.code == "ok") {
  823. this.perfectJobNumber = false
  824. let nerUser = {
  825. ...this.user,
  826. jobNumber: this.perfectForm.jobNumber
  827. }
  828. sessionStorage.setItem('user', JSON.stringify(nerUser));
  829. this.$message({
  830. message: this.$t('operationissuccessful'),
  831. type: "success"
  832. });
  833. } else {
  834. this.$message({
  835. message: res.msg,
  836. type: "error"
  837. });
  838. }
  839. },
  840. error => {
  841. this.$message({
  842. message: error,
  843. type: "error"
  844. });
  845. });
  846. } else {
  847. return false;
  848. }
  849. });
  850. },
  851. // 完善姓名
  852. editPerfectName(perfectForm) {
  853. this.$refs[perfectForm].validate((valid) => {
  854. if (valid) {
  855. this.http.post("/user/userRename", {
  856. newName: this.perfectFormName.userName,
  857. },
  858. res => {
  859. if (res.code == "ok") {
  860. this.perfectName = false
  861. let nerUser = {
  862. ...this.user,
  863. name: this.perfectFormName.userName
  864. }
  865. sessionStorage.setItem('user', JSON.stringify(nerUser));
  866. this.$message({
  867. message: this.$t('operationissuccessful'),
  868. type: "success"
  869. });
  870. } else {
  871. this.$message({
  872. message: res.msg,
  873. type: "error"
  874. });
  875. }
  876. },
  877. error => {
  878. this.$message({
  879. message: error,
  880. type: "error"
  881. });
  882. });
  883. } else {
  884. return false;
  885. }
  886. });
  887. },
  888. setDDOpenData() {
  889. const ddUrl = new URL(window.location.href);
  890. const ddCorpid = ddUrl.searchParams.get("corpid") || ''
  891. let ddOpenDataInit = window.DTOpenData.init(ddCorpid)
  892. console.log(ddOpenDataInit, '<=== 钉钉执行 window.DTOpenData.init(ddCorpid) 的判断')
  893. if (ddOpenDataInit) {
  894. setTimeout(() => {
  895. console.log('<==== 执行 window.DTOpenData.update(document.querySelectorAll(dt-open-data))')
  896. window.DTOpenData.update(document.querySelectorAll('dt-open-data'));
  897. }, 300)
  898. }else {
  899. console.log('钉钉没有触发')
  900. }
  901. }
  902. },
  903. mounted() {
  904. var ua = navigator.userAgent.toLowerCase();
  905. this.themesType = localStorage.getItem('themes') || 'default';
  906. if (ua.indexOf("wxwork") > 0) {
  907. this.isCorpWX = true;
  908. }
  909. let langse = localStorage.getItem("lang") || 'zh'
  910. if(langse == 'en') {
  911. this.language = 'English'
  912. } else if (langse == 'zh') {
  913. this.language = '中文'
  914. }
  915. let height = window.innerHeight;
  916. this.tableHeight = height - 15;
  917. const that = this;
  918. window.onresize = function temp() {
  919. that.tableHeight = window.innerHeight - 15;
  920. };
  921. if (this.user) {
  922. var user = JSON.parse(this.user);
  923. this.user = user;
  924. this.sysUserName = user.name || "";
  925. this.loadNotice();
  926. if(this.user.remainingTime != "" && this.user.remainingTime != 0) {
  927. this.remainingTime = util.formatDate.format(new Date(new Date().getTime() + this.user.remainingTime), "yyyy-MM-dd")
  928. } else {
  929. this.remainingTime = this.$t('other.expired');
  930. clearInterval(this.timer);
  931. }
  932. } else {
  933. this.$router.push("/login");
  934. }
  935. // console.log('啊,我被触发了呀')
  936. // 获取企业微信参数
  937. if(this.user.userNameNeedTranslate == '1') {
  938. this.agentConfig()
  939. }
  940. // 判断是否为新用户
  941. if(this.user.isFirstLogin == 1 && this.user.roleName == this.$t('role.superAdministrator') && this.firstTourFalse != 'false' && this.user.createTime[0] > '2022') {
  942. var thats = this
  943. this.tourFlg = true
  944. setTimeout(() => {
  945. thats.$tours['myTour'].start()
  946. setTimeout(() => {
  947. thats.vTourFlg = true
  948. }, 1000)
  949. }, 200)
  950. }
  951. // 检查是否有工号
  952. const { jobNumber, companyId, userNameNeedTranslate, name, dingdingUserid } = this.user
  953. if(this.jobNumberCheckCompanyId.includes(companyId) && !jobNumber) {
  954. this.perfectJobNumber = true
  955. }
  956. // 检查是否需要完成姓名
  957. if(userNameNeedTranslate == 0 && (name == dingdingUserid)) {
  958. this.perfectName = true
  959. }
  960. if(this.user.dingdingUserid) {
  961. this.setDDOpenData()
  962. }
  963. // 中英文显示字符长度
  964. if(this.language == '中文') {
  965. this.textLength = 16
  966. } else {
  967. this.textLength = 17
  968. }
  969. },
  970. };
  971. </script>
  972. <style scoped lang="scss">
  973. @import "../assets/scss/handle";
  974. .contentMask {
  975. width: 100%;
  976. height: 100%;
  977. position: absolute;
  978. top: 0;
  979. left: 0;
  980. background: #000;
  981. opacity: .4;
  982. z-index: 99;
  983. // box-shadow: 0 0 0 99999px rgba(0,0,0,.4) !important;
  984. }
  985. .gongshimingz {
  986. width: 100%;
  987. position: absolute;
  988. left: 0px;
  989. display: inline-block;
  990. overflow: hidden;
  991. white-space: nowrap;
  992. text-overflow: ellipsis;
  993. box-sizing: border-box;
  994. padding-left: 60px;
  995. }
  996. .el-menu-vertical-demo i {
  997. margin-right: 10px;
  998. }
  999. .container {
  1000. position: absolute;
  1001. top: 0px;
  1002. bottom: 0px;
  1003. width: 100%;
  1004. .header {
  1005. height: 60px;
  1006. line-height: 60px;
  1007. @include background_color("background_color");
  1008. color: #fff;
  1009. position: relative;
  1010. .userinfo {
  1011. text-align: right;
  1012. padding-right: 35px;
  1013. float: right;
  1014. .userinfo-inner {
  1015. cursor: pointer;
  1016. color: #fff;
  1017. img {
  1018. width: 40px;
  1019. height: 40px;
  1020. border-radius: 20px;
  1021. margin: 10px 10px 10px 10px;
  1022. float: left;
  1023. }
  1024. }
  1025. .itemNew {
  1026. height: 25px;
  1027. margin: 0 0 0 10px;
  1028. i {
  1029. vertical-align: top;
  1030. }
  1031. }
  1032. }
  1033. .logo {
  1034. height: 60px;
  1035. font-size: 21px;
  1036. padding-left: 20px;
  1037. padding-right: 20px;
  1038. border-color: rgba(238, 241, 146, 0.3);
  1039. border-right-width: 1px;
  1040. border-right-style: solid;
  1041. img {
  1042. width: 40px;
  1043. float: left;
  1044. margin: 10px 10px 10px 18px;
  1045. }
  1046. img.headImg {
  1047. margin: 0;
  1048. width: 40px;
  1049. height: 40px;
  1050. margin: 10px 0 0 10px;
  1051. }
  1052. .logo-sys {
  1053. height: 100%;
  1054. line-height: 100%;
  1055. img.headImg {
  1056. width: 40px;
  1057. height: 40px;
  1058. margin: 7.5px 0 0 10px;
  1059. vertical-align: middle;
  1060. }
  1061. span {
  1062. display: inline-block;
  1063. height: 100%;
  1064. line-height: 60px;
  1065. margin-left: 15px;
  1066. font-size: 18px;
  1067. // margin: 20px 0 0 15px;
  1068. vertical-align: middle;
  1069. }
  1070. }
  1071. .txt {
  1072. color: #fff;
  1073. }
  1074. }
  1075. .logo-width {
  1076. width: 200px;
  1077. }
  1078. .logo-collapse-width {
  1079. width: 60px;
  1080. }
  1081. .tools {
  1082. padding: 0px 23px;
  1083. // width: 14px;
  1084. height: 60px;
  1085. line-height: 60px;
  1086. cursor: pointer;
  1087. }
  1088. }
  1089. .main {
  1090. display: flex;
  1091. position: absolute;
  1092. top: 60px;
  1093. bottom: 0px;
  1094. overflow: hidden;
  1095. .h-full {
  1096. height: 100%;
  1097. }
  1098. aside {
  1099. flex: 0 0 230px;
  1100. width: 230px;
  1101. .el-menu {
  1102. height: 100%;
  1103. }
  1104. .collapsed {
  1105. width: 60px;
  1106. .item {
  1107. position: relative;
  1108. }
  1109. .submenu {
  1110. position: absolute;
  1111. top: 0px;
  1112. left: 60px;
  1113. z-index: 99999;
  1114. height: auto;
  1115. display: none;
  1116. box-shadow: 5px 5px 10px #ddd;
  1117. }
  1118. }
  1119. }
  1120. .menu-collapsed {
  1121. flex: 0 0 60px;
  1122. width: 60px;
  1123. }
  1124. .menu-expanded {
  1125. flex: 0 0 200px;
  1126. width: 200px;
  1127. }
  1128. .content-container {
  1129. flex: 1;
  1130. width: 80%;
  1131. overflow-y: auto;
  1132. overflow-x: hidden;
  1133. // position: relative;
  1134. .breadcrumb-container {
  1135. .title {
  1136. width: 200px;
  1137. float: left;
  1138. color: #475669;
  1139. }
  1140. .breadcrumb-inner {
  1141. float: right;
  1142. }
  1143. }
  1144. .content-wrapper {
  1145. background-color: #fff;
  1146. box-sizing: border-box;
  1147. // position: relative;
  1148. }
  1149. }
  1150. }
  1151. }
  1152. .popover-item {
  1153. padding: 10px;
  1154. border-bottom: 1px #eee solid;
  1155. }
  1156. .popover-item > div > p {
  1157. margin: 0;
  1158. line-height: 18px;
  1159. }
  1160. .popover-title {
  1161. // color: #409eff;
  1162. @include font_color("color");
  1163. padding-bottom: 8px;
  1164. }
  1165. .popover-type {
  1166. color: #aaa;
  1167. font-size: 8px;
  1168. float: right;
  1169. }
  1170. .popover-button {
  1171. font-weight: 900;
  1172. padding: 10px;
  1173. text-align: center;
  1174. cursor: pointer;
  1175. }
  1176. .isRead {
  1177. color: #999 !important;
  1178. }
  1179. .bosx {
  1180. width: 110px;
  1181. display: inline-block;
  1182. overflow: hidden;
  1183. white-space: nowrap;
  1184. text-overflow: ellipsis;
  1185. }
  1186. </style>