index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. <template>
  2. <div v-if="refreshPage" style="min-width:1200px">
  3. <div style="margin:10px 10px 0 10px;border-radius:5px;position:relative" class="container normal-panel sticky" @click="closeTags">
  4. <div class="flex-align-start flex-between normal-margin" style="flex-wrap:nowrap">
  5. <div>
  6. <p class="main_title mt-10">{{titleText?$t(titleText):'##'}}</p>
  7. <tagTemp v-if="activeApp.isdatatag" ref="tag" :categories="editData.categories" :modelName="modelName" :ownertable="ownertable?ownertable:idname.slice(0, this.idname.length - 2)" @onSuccess="onSuccess" @sysTag="sysTag"></tagTemp>
  8. </div>
  9. <div class="flex-align-center" style="display:flex;flex-wrap: wrap;">
  10. <div class="mt-10">
  11. <slot name="customOperationBef"></slot>
  12. </div>
  13. <cpEdit class="mt-10" v-if="tool.checkAuth($route.name,'update')" :formPath="formPath" :oldFormPath="oldFormPath" :data="editData" btnType="default" @onAddSuccess="onSuccess" v-on="$listeners"></cpEdit>
  14. <!-- 打印 -->
  15. <reportCenter size="mini" position="detail" class="inline-16 mt-10" :data="reportCenterLsit.filter(item => item.type == 'printinfo')" v-if="reportCenterLsit.filter(item => item.type == 'printinfo').length > 0 && systemappid != 163" :btnName="btnNameReport">
  16. <template v-slot:print="scope2">
  17. <el-button @click="printBtn($route.query.id,scope2.data)" type="text" size="mini">{{$t('打 印')}}</el-button>
  18. </template>
  19. </reportCenter>
  20. <div class="mt-10">
  21. <slot name="customOperation" class="inline-16"></slot>
  22. </div>
  23. <el-button v-if="(isAdmin || (tool.checkAuth($route.name,'delete') && delApiId)) && !delHide" :type="checkDisabled()?'':'primary'" class="inline-16" size="mini" :disabled="checkDisabled()" @click="deleteData" style="margin-top: -10px">{{$t('删 除')}}</el-button>
  24. <div v-if="!pageChange" class="mt-10">
  25. <el-button size="mini" icon="el-icon-arrow-left" @click="previous()" :disabled="$route.query.rowindex == 1"></el-button>
  26. <el-button size="mini" @click="next()" :disabled="turnTotal?$route.query.rowindex == turnTotal:false"><i class="el-icon-arrow-right" ></i></el-button>
  27. </div>
  28. </div>
  29. </div>
  30. <div>
  31. <slot name="d_head"></slot>
  32. </div>
  33. <div v-show="isTop">
  34. <el-descriptions :column="column?column:5" size="mini">
  35. <el-descriptions-item label-class-name="my-label-layout" content-class-name="my-content" v-for="item in mainAData" :key="item.index" >
  36. <template slot="label">
  37. {{$t(item.label)}}
  38. <el-tooltip class="item" effect="dark" :content="item.tooltip" placement="top-start" v-if="item.tooltip">
  39. <img
  40. width="14px"
  41. height="14px"
  42. src="../../../assets/icons/prompt_icon.svg"
  43. />
  44. </el-tooltip>
  45. </template>
  46. <span v-if="item.label === '关联应用数据'" :style="item.style?item.style():''">
  47. <span v-if="item.value !== ''">
  48. <el-button v-if="item.value !== '--'" type="text" @click="onGoto()" style="margin: 0;padding: 0">
  49. {{$t(item.value)}}
  50. </el-button>
  51. <span v-else>--</span>
  52. </span>
  53. <span v-else>--</span>
  54. </span>
  55. <span v-else-if="item.label === '关联合同'" :style="item.style?item.style():''">
  56. <span v-if="item.value !== ''" >
  57. <el-button v-if="item.value !== '--'" type="text" @click="onGoContract" style="margin: 0;padding: 0;width:200px;word-break:break-all;white-space: normal;text-align: left">
  58. {{$t(item.value)}}
  59. </el-button>
  60. <span v-else>--</span>
  61. </span>
  62. <span v-else>--</span>
  63. </span>
  64. <span v-else-if="item.label == '订单号' && isGoDetail">
  65. <el-button v-if="item.value !== '--'" type="text" @click="onGoDetail" style="margin: 0;padding: 0">
  66. {{$t(item.value)}}
  67. </el-button>
  68. <span v-else>--</span>
  69. </span>
  70. <span v-else :style="item.style?item.style():''">{{item.value !== ''?$t(item.value):'--'}}</span>
  71. </el-descriptions-item>
  72. </el-descriptions>
  73. <el-descriptions :column="1" size="mini">
  74. <el-descriptions-item label-class-name="my-label-layout" content-class-name="my-content" v-for="item in mainAData2" :key="item.index" :label="$t(item.label)">
  75. <span :style="item.style?item.style():''">{{item.value !== ''?$t(item.value):'--'}}</span>
  76. </el-descriptions-item>
  77. </el-descriptions>
  78. <slot name="headerBottom"></slot>
  79. </div>
  80. <span @click="isTop=!isTop" style="color:#3874f6;position:absolute;right:10px;bottom:10px;cursor: pointer;">
  81. <i :class="isTop ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"></i>
  82. {{ isTop ? $t('收起') : $t('展开') }}
  83. </span>
  84. </div>
  85. <div style="box-sizing: border-box;padding:10px">
  86. <el-row class="flex-align-stretch no-wrap" :gutter="activeApp.isdatateam?10:activeApp.isdatafollowup?10:0">
  87. <el-col style="flex:1 0 auto;" :span="activeApp.isdatateam?18:activeApp.isdatafollowup?18:24">
  88. <slot name="customBefore"></slot>
  89. <tabTemp ref="tabRef" :disabled="disabled" :status="status" :tabs="tabs" :editData="editData" :idname="idname" :attachmentDisabled="attachmentDisabled" :ownertable="ownertable?ownertable:idname.slice(0, this.idname.length - 2)"
  90. @onTabClick="onTabClick" @newFollow="newFollow" @hrMain="hrMain" :isFollow="activeApp.isdatafollowup" :tabName="tabName">
  91. <div :slot="'slot' + index" v-for="(tab,index) in tabs" :key="tab.index">
  92. <slot :name="'slot' + index"></slot>
  93. </div>
  94. </tabTemp>
  95. <slot name="custom"></slot>
  96. </el-col>
  97. <el-col v-if="collapse" :span="6">
  98. <taskTemp ref="task" v-if="activeApp.istask" :status="status" :disabled="disabled" :ownertable="ownertable?ownertable:idname.slice(0, this.idname.length - 2)" :typeTask="typeTask" :editData="editData" :idname="idname">
  99. <el-button slot="collapse" type="text" icon="el-icon-s-unfold" class="inline-16" @click="onCollapse"></el-button>
  100. </taskTemp>
  101. <group v-if="activeApp.isdatateam" :isGroup="isGroup" :status="status" :disabled="disabled" ref="group" style="margin-bottom:10px" :justsaler="justsaler" :ownertable="ownertable?ownertable:idname.slice(0, this.idname.length - 2)" @onSuccess="onSuccess" @teamList="teamList">
  102. <el-button slot="collapse" type="text" icon="el-icon-s-unfold" class="inline-16" @click="onCollapse"></el-button>
  103. </group>
  104. <follow-up v-if="activeApp.isdatafollowup" :status="status" ref="follow" :disabled="disabled" :ownertable="ownertable?ownertable:idname.slice(0, this.idname.length - 2)" :editData="editData" :idname="idname" @logSuccess="logSuccess" @onMore="onMore"
  105. @followAdd="followAdd" :bindData="{ ownertable: ownertable, ownerid: editData[idname], usetype: 'default' }">
  106. <el-button slot="collapse" type="text" icon="el-icon-s-unfold" class="inline-16" @click="onCollapse"></el-button>
  107. </follow-up>
  108. </el-col>
  109. <div v-else style="text-align-center" class="container normal-panel">
  110. <el-button slot="collapse" type="text" icon="el-icon-s-fold" @click="onCollapse"></el-button>
  111. </div>
  112. </el-row>
  113. </div>
  114. <el-drawer
  115. :visible.sync="drawer"
  116. :with-header="false"
  117. direction="rtl"
  118. size="90%"
  119. append-to-body
  120. >
  121. <div class="detail__panel">
  122. <router-view :key='$route.path'/>
  123. </div>
  124. </el-drawer>
  125. </div>
  126. </template>
  127. <script>
  128. import cpEdit from '../modules/cpEdit.vue'
  129. import followUp from './modules/followUp/followUp.vue'
  130. import tagTemp from './modules/tags/tag.vue'
  131. import tabTemp from './modules/tabs/tab.vue'
  132. import group from './modules/group/group.vue'
  133. import taskTemp from './modules/task/index.vue'
  134. import reportCenter from '../reportCenter/index'
  135. import {mapGetters} from 'vuex'
  136. export default {
  137. props:['titleText','mainAreaData','turnPageId','delApiId','idname','ownertable','formPath','oldFormPath','editData','tags','tabs','statusCheck','pageChange','justsaler',
  138. 'mainData','status','typeTask','isGroup','isBatch','modelName','isDelete','column','attachmentDisabled','disabled','isGoDetail','detailPath','nowDetailPath','detailId',
  139. 'isAdmin','btnNameReport','delHide','tabName','SalesmanQ'],
  140. data () {
  141. return {
  142. drawer:false,
  143. isTop:true,
  144. routerName:'',
  145. rowindex:0,
  146. total:0,
  147. isPrevious:false,
  148. turnTotal:sessionStorage.getItem('total'),
  149. param:{
  150. "id": '',
  151. "content": {
  152. "isExport":false,
  153. "pageNumber": 1,
  154. "pageSize": 1,
  155. "nocache": true,
  156. "where": {
  157. "condition": ""
  158. }
  159. }
  160. },
  161. collapse:true,
  162. refreshPage:true,
  163. reportCenterLsit:[],
  164. systemappid:JSON.parse(sessionStorage.getItem('activeApp')).systemappid,
  165. time:null
  166. }
  167. },
  168. computed:{
  169. mainAData () {
  170. try {
  171. let data = this.mainAreaData.filter(e=>{
  172. if(e.label != '备注' && e.label != '对外备注' && e.label != '对内备注' && e.label != '优势信息' && e.label != '劣势信息') {
  173. return e
  174. }
  175. })
  176. data = data.filter(e=>e.label != '')
  177. return data
  178. } catch (error) {
  179. }
  180. },
  181. mainAData2 () {
  182. try {
  183. let data = this.mainAreaData.filter(e=>{
  184. if(e.label == '备注' || e.label == '优势信息' || e.label == '劣势信息' || e.label == '对外备注' || e.label == '对内备注') {
  185. return e
  186. }
  187. })
  188. data = data.filter(e=>e.label != '')
  189. return data
  190. } catch (error) {
  191. }
  192. },
  193. ...mapGetters({
  194. activeApp:"activeApp",
  195. svlistData:'svlistData'
  196. })
  197. },
  198. components:{
  199. cpEdit,
  200. followUp,
  201. group,
  202. tagTemp,
  203. tabTemp,
  204. taskTemp,
  205. reportCenter
  206. },
  207. methods:{
  208. // async queryData (pageNumber) {
  209. // this.$emit('updateParam',this.param)
  210. // this.param.id = this.turnPageId
  211. // this.param.content.pageNumber = pageNumber
  212. // const res = await this.$api.requested(this.param)
  213. // this.total = res.total
  214. // this.$refs['tag']?this.$refs['tag'].queryTag():''
  215. // this.refresh()
  216. // },
  217. async nextData(param,fn) {
  218. this.rowStatus = null
  219. const res = await this.$api.requested(param)
  220. this.$store.dispatch('saveListData',{listData:res.data,param:param,pageTotal:res.pageTotal})
  221. fn?fn():''
  222. },
  223. /* 获取是否有报表数据 */
  224. async getSystemAppid () {
  225. let res = await this.$api.requested({
  226. "id":20221213094401,
  227. "content": {
  228. "systemappid":this.systemappid,
  229. }
  230. })
  231. this.reportCenterLsit = res.data || []
  232. console.log('报表',this.reportCenterLsit);
  233. },
  234. async printBtn (data,data2) {
  235. let res = await this.$api.requested({
  236. "id":20221213094501,
  237. "content": {
  238. sys_reportid:data2.sys_reportid,
  239. dataid:data[this.idName]
  240. }
  241. })
  242. this.tool.showMessage(res,() => {
  243. window.open(this.tool.getBaseUrl() + res.data + `&${this.idname}=${data}`)
  244. })
  245. },
  246. async next () {
  247. if (this.$route.query.listqueryid === 'undefined' || !this.$route.query.listqueryid){
  248. this.nextOld()
  249. }else {
  250. let listqueryid = sessionStorage.getItem('listqueryid')
  251. if (this.time !== null) {
  252. clearTimeout(this.time)
  253. }
  254. this.time = setTimeout(() => {
  255. this.upPageData(1,listqueryid)
  256. }, 0);
  257. }
  258. },
  259. async previous () {
  260. if (this.$route.query.listqueryid === 'undefined' || !this.$route.query.listqueryid){
  261. this.previousOld()
  262. }else {
  263. let rowindex = this.$route.query.rowindex
  264. let listqueryid = sessionStorage.getItem('listqueryid')
  265. if (rowindex >= 1) {
  266. if (rowindex = 1){
  267. if (this.time !== null) {
  268. clearTimeout(this.time)
  269. }
  270. this.time = setTimeout(() => {
  271. this.upPageData(0,listqueryid)
  272. }, 0);
  273. this.isPrevious = true
  274. }else {
  275. if (this.time !== null) {
  276. clearTimeout(this.time)
  277. }
  278. this.time = setTimeout(() => {
  279. this.upPageData(0,listqueryid)
  280. }, 0);
  281. this.isPrevious = false
  282. }
  283. } else {
  284. /*message.warn('已经是第一条了!')*/
  285. this.isPrevious = true
  286. }
  287. }
  288. },
  289. async nextOld () {
  290. const rs = await this.checkPaginationData()
  291. if (rs == 0 && this.svlistData.listData.length == 1) return false
  292. if (rs == 1 && this.svlistData.param.content.pageNumber == this.svlistData.pageTotal) return false
  293. let fun = (rs) =>{
  294. let nowId = this.$route.query.id
  295. let changeId = ''
  296. if (rs == 1) {
  297. changeId = this.svlistData.listData[0][this.idname]
  298. } else {
  299. this.svlistData.listData.forEach((e,index)=>{
  300. if (e[this.idname] == nowId) {
  301. changeId = this.svlistData.listData[index + 1][this.idname]
  302. }
  303. })
  304. }
  305. this.$emit('pageChange',changeId,this.idx)
  306. this.refresh()
  307. }
  308. if (rs == 1) {
  309. this.svlistData.param.content.pageNumber ++
  310. this.nextData(this.svlistData.param,(rs)=>{
  311. fun(1)
  312. })
  313. } else {
  314. fun()
  315. }
  316. },
  317. async previousOld () {
  318. const res = await this.checkPaginationData()
  319. if (res == 0 && this.svlistData.param.content.pageNumber == 1) return false
  320. const fun = (rs)=>{
  321. let nowId = this.$route.query.id
  322. let changeId = ''
  323. if (rs == 0) {
  324. changeId = this.svlistData.listData[this.svlistData.listData.length - 1][this.idname]
  325. } else {
  326. this.svlistData.listData.forEach((e,index)=>{
  327. if (e[this.idname] == nowId) {
  328. changeId = this.svlistData.listData[index - 1][this.idname]
  329. }
  330. })
  331. }
  332. this.$emit('pageChange',changeId,this.idx)
  333. this.refresh()
  334. }
  335. if (res == 0) {
  336. this.svlistData.param.content.pageNumber --
  337. this.nextData(this.svlistData.param,()=>{
  338. fun(0)
  339. })
  340. } else {
  341. fun()
  342. }
  343. },
  344. async upPageData (forward,listqueryid){
  345. /*const hide = message.loading({content:'正在查询数据,请稍等..',duration:0,key:1});*/
  346. const res = await this.$api.requested({
  347. "classname": "system.tools",
  348. "method":"querylistdatabyrowindex",
  349. "content": {
  350. "uniqueid":this.$route.query.id,
  351. "rowindex": this.$route.query.rowindex,
  352. "forward":forward,
  353. "listqueryid": listqueryid,
  354. "fieldname":this.$route.query.fieldname
  355. }
  356. })
  357. if (res.data.data) {
  358. sessionStorage.setItem('total',res.data.total)
  359. this.$router.replace({path:this.$route.path,query:{id:res.data.data,rowindex:res.data.rowindex,listqueryid:listqueryid,fieldname:this.$route.query.fieldname}})
  360. this.$emit('pageChange',res.data.data,this.$route.query.rowindex)
  361. } else {
  362. /* message.warn('已经是最后一条了!')*/
  363. }
  364. },
  365. onSuccess () {
  366. this.$emit('onEditSuccess')
  367. },
  368. deleteData () {
  369. this.$confirm(this.$t('确定删除当前数据吗') + '?', this.$t('提示'), {
  370. confirmButtonText: this.$t('确定'),
  371. cancelButtonText: this.$t('取消'),
  372. type: 'warning'
  373. }).then(async () => {
  374. let param = {
  375. "id": this.delApiId,
  376. "content":{}
  377. }
  378. if (this.isBatch === false){
  379. param.content[`${this.idname}`] = this.editData[this.idname]
  380. }else {
  381. if (this.idname instanceof Array) { //判断传入的类型是多个还是单个idname
  382. let obj = {}
  383. this.idname.forEach(e=>{
  384. obj[e] = ''
  385. })
  386. param.content[`${this.idname[0]}s`] = [Object.keys(obj).map((key,item)=>{
  387. obj[key] = this.editData[key]
  388. })]
  389. } else if(this.isDelete){
  390. param.content[`${this.idname}`] = this.editData[this.idname]
  391. } else {
  392. param.content[`${this.idname}s`] = [this.editData[this.idname]]
  393. }
  394. }
  395. const res = await this.$api.requested(param)
  396. this.tool.showMessage(res,()=>{
  397. this.$store.dispatch('changeDetailDrawer',false)
  398. })
  399. }).catch((err) => {
  400. console.log(err)
  401. this.$message({
  402. type: 'info',
  403. message: this.$t('已取消删除')
  404. });
  405. });
  406. },
  407. checkDisabled () {
  408. if (this.isAdmin){
  409. const accountno = JSON.parse(sessionStorage.getItem('active_account')).accountno
  410. if (accountno == 'admin' || accountno == 'hyadmin' || accountno == 'tzadmin' || accountno == 'nbadmin'){
  411. return false
  412. }else {
  413. if (this.statusCheck) {
  414. let _isSame = this.statusCheck.some(item=>item.value === this.editData[item.key])
  415. return _isSame
  416. } else {
  417. return false
  418. }
  419. }
  420. }else {
  421. if (this.statusCheck) {
  422. let _isSame = this.statusCheck.some(item=>item.value === this.editData[item.key])
  423. return _isSame
  424. } else {
  425. return false
  426. }
  427. }
  428. },
  429. onTabClick (val) {
  430. this.$emit('onTabClick',val)
  431. },
  432. onCollapse () {
  433. this.collapse?this.collapse = false:this.collapse = true
  434. },
  435. refresh () {
  436. this.refreshPage = false
  437. setTimeout(() => {
  438. this.refreshPage = true
  439. }, 10);
  440. },
  441. refreshTag () {
  442. this.$refs.tag.queryTag()
  443. },
  444. closeTags() {
  445. this.$refs.tag?this.$refs.tag.closeTag():''
  446. },
  447. checkPaginationData () {
  448. return new Promise((reslove,reject)=>{
  449. let id = this.$route.query.id
  450. let n = 0
  451. this.svlistData.listData.filter((e,index)=>{
  452. if (e[this.idname] == id){
  453. n = index
  454. }
  455. })
  456. if (n == 0) {
  457. reslove(0)
  458. } else if (n == this.svlistData.listData.length - 1) {
  459. reslove(1)
  460. } else {
  461. reslove(-1)
  462. }
  463. })
  464. },
  465. sysTag(val){
  466. this.$emit('sysTag',val)
  467. },
  468. /*任务页面跳转*/
  469. onGoto(){
  470. let path = this.mainData.path
  471. let route = this.$route
  472. if (route.path !== path.slice(1)){
  473. this.oldRoute = {path:route.path,query:route.query}
  474. this.$store.dispatch('setHistoryRouter',this.oldRoute)
  475. }
  476. this.$router.push({
  477. path:path,
  478. query:{
  479. id:this.mainData.ownerid,
  480. rowindex:this.mainData.rowindex
  481. }
  482. })
  483. },
  484. /*任务协助人*/
  485. teamList(val){
  486. this.$emit('teamList',val)
  487. },
  488. onGoContract(){
  489. this.$store.dispatch('changeDetailDrawer',false)
  490. this.$nextTick(()=>{
  491. setTimeout(()=>{
  492. let route = this.$route
  493. if (route.path !== 'orderdetail' || route.path !== 'saler_orderDetails') {
  494. this.oldRoute = {path:route.path,query:route.query}
  495. this.$store.dispatch('setHistoryRouter',this.oldRoute)
  496. }
  497. let type = this.editData.contract_type == '项目'?this.editData.contract_typemx == '直销'?'直销项目':'经销项目':this.editData.contract_type
  498. this.$router.push({
  499. path:'/contractDetail',
  500. query:{id:this.editData.sa_contractid,rowindex:this.editData.rowindex, type:type}
  501. })
  502. this.$store.dispatch('changeDetailDrawer',true)
  503. },500)
  504. })
  505. },
  506. onGoDetail(){
  507. let route = this.$route
  508. if (route.path == this.nowDetailPath) {
  509. this.oldRoute = {path:route.path,query:route.query}
  510. this.$store.dispatch('setHistoryRouter',this.oldRoute)
  511. }
  512. this.$router.push({
  513. path:this.detailPath,
  514. query:{id:this.detailId,rowindex:this.editData.rowindex}
  515. })
  516. },
  517. logSuccess(){
  518. this.$emit('logSuccess')
  519. },
  520. newFollow(){
  521. setTimeout(()=>{
  522. this.$refs.follow.queryLogs()
  523. },1000)
  524. },
  525. onMore(val){
  526. this.$refs.tabRef.$refs.followRef.listData()
  527. if (val == '查看更多'){
  528. this.$refs.tabRef.activeName = 'follow'
  529. }
  530. },
  531. followAdd(){
  532. this.$emit('followAdd')
  533. },
  534. hrMain(data){
  535. this.$emit('hrMain',data)
  536. }
  537. },
  538. mounted () {
  539. // this.checkPaginationData()
  540. this.idx = this.$route.query.rowindex
  541. },
  542. created () {
  543. this.$emit('detailCreate',this.param)
  544. this.routerName = this.$route.meta.title
  545. this.rowindex = Number(this.$route.query.rowindex)
  546. this.getSystemAppid()
  547. },
  548. watch:{
  549. mainAreaData () {
  550. // console.log(this.mainAData,'mainAData')
  551. // this.checkPaginationData()
  552. }
  553. }
  554. }
  555. </script>
  556. <style>
  557. .detail__head__label{
  558. display: inline-block;
  559. width: 70px;
  560. }
  561. .my-label-layout{
  562. font-size: 14px;
  563. color: #999;
  564. }
  565. </style>
  566. <style scoped>
  567. .appname{
  568. display: inline;
  569. background: #FA8C19;
  570. color:#fff;
  571. border-radius: 4px;
  572. padding: 2px 10px;
  573. font-size: 12px;
  574. }
  575. .my-tabs{
  576. background:#eeeeee
  577. }
  578. .sticky{
  579. position: sticky;
  580. top:0;
  581. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  582. }
  583. .no-wrap{
  584. flex-wrap:nowrap !important;
  585. }
  586. .main_title{
  587. font-size:30px;
  588. font-weight:300;
  589. margin-right:16px;
  590. line-height: 32px;
  591. }
  592. </style>