processInitiation.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <template>
  2. <div class="pmain">
  3. <div class="layui-col-md6" v-for="(ite, index) in funcData" :key="index">
  4. <div class="bg-style">
  5. <div class="mc-nomal-title mc-padding-no">{{ ite.lineName }}</div>
  6. <div class="mc-function-box">
  7. <div v-for="item in ite.unitList" :key="item.unitName" class="function-box">
  8. <div class="f-box-tit">{{ item.unitName }}</div>
  9. <div v-for="items in item.modList" :key="items.moduleName" class="f-box-info">
  10. <el-badge :value="items.noTaskNum" :max="99" :hidden="items.noTaskNum == 0">
  11. <i @click="jumpTo(items)" class="el-icon-document" v-if="items.sts == '0' && items.moduleName == '竞争对手信息上报'" style="background: #0b82ff"></i>
  12. <i @click="jumpTo(items)" class="el-icon-user" v-if="items.sts == '0' && items.moduleName == '广告宣传设计审批'" style="background: #0b82ff"></i>
  13. <i @click="jumpTo(items)" class="el-icon-files" v-if="items.sts == '0' && items.moduleName == '广告发布审批及验收'" style="background: #0b82ff"></i>
  14. <i @click="jumpTo(items)" class="el-icon-document" v-if="items.sts == '0' && items.moduleName == '绩效管理'" style="background: #0b82ff"></i>
  15. <i @click="jumpTo(items)" class="el-icon-user" v-if="items.sts == '0' && items.moduleName == '预算管理'" style="background: #0b82ff"></i>
  16. <i @click="jumpTo(items)" class="el-icon-files" v-if="items.sts == '0' && items.moduleName == '科室绩效管理'" style="background: #0b82ff"></i>
  17. <i @click="jumpTo(items)" class="el-icon-location-information" v-if="items.sts == '0' && items.moduleName == '重点工作清单'" style="background: #0b82ff"></i>
  18. <i @click="jumpTo(items)" class="el-icon-user" v-if="items.sts == '0' && items.moduleName == '测试资源管理'" style="background: #0b82ff"></i>
  19. <i :class="'iconfont icon-tongji'" v-if="items.sts != '0'" style="background: #ddd"></i>
  20. <el-tooltip class="item" effect="dark" :content="items.moduleName" placement="bottom">
  21. <span>{{ items.moduleName }}</span>
  22. </el-tooltip>
  23. </el-badge>
  24. </div>
  25. <div class="f-box-info" v-if="item.modList.length == 0"></div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. funcData: [],
  37. boxHeight: {
  38. height: "auto",
  39. },
  40. };
  41. },
  42. methods: {
  43. getList() {
  44. let loginNo = JSON.parse(window.sessionStorage.userInfo).loginNo;
  45. this.$http({
  46. url: "/market/cmkline/queryInfo",
  47. method: "post",
  48. headers: {
  49. "Content-Type": "application/json",
  50. },
  51. data: {},
  52. }).then((res) => {
  53. this.funcData = res.data.lineList;
  54. });
  55. },
  56. hAuto() {
  57. let boxLinel = this.$refs.boxLinel.offsetHeight;
  58. let boxLiner = this.$refs.boxLiner.offsetHeight;
  59. if (boxLinel > boxLiner) {
  60. this.boxHeight.height = boxLinel + "px";
  61. } else {
  62. this.boxHeight.height = boxLiner + "px";
  63. }
  64. },
  65. jumpTo(v) {
  66. if (v.moduleUrl) {
  67. this.$router.push({
  68. path: v.moduleUrl,
  69. });
  70. }
  71. },
  72. },
  73. mounted() {},
  74. created() {
  75. this.getList();
  76. },
  77. };
  78. </script>
  79. <style scoped lang="scss">
  80. .mc-red {
  81. color: #ff6060;
  82. }
  83. .mc-padding-no {
  84. padding-left: 20px;
  85. }
  86. .pmain {
  87. display: flex;
  88. flex-wrap: wrap;
  89. justify-content: space-between;
  90. .layui-col-md6 {
  91. display: inline-block;
  92. margin-top: 15px;
  93. width: 32.5%;
  94. background: #fff;
  95. }
  96. // .layui-col-md6:nth-child(2n) {
  97. // }
  98. .box-scoll {
  99. height: 350px;
  100. width: 100%;
  101. overflow-y: scroll;
  102. padding-right: 25px;
  103. }
  104. }
  105. .mc-nomal-title {
  106. font-size: 20px;
  107. font-weight: 500;
  108. color: #333;
  109. padding-bottom: 10px;
  110. }
  111. .mc-nomal-checked {
  112. color: #999;
  113. font-size: 12px;
  114. }
  115. .mc-title-box {
  116. display: flex;
  117. justify-content: space-between;
  118. }
  119. .mc-nomal-show-num {
  120. display: flex;
  121. justify-content: space-between;
  122. text-align: center;
  123. margin-top: 10px;
  124. .num-box {
  125. margin-right: 40px;
  126. }
  127. }
  128. .mc-right-title {
  129. margin-top: 10px;
  130. text-align: right;
  131. // width: 55%;
  132. padding-right: 20px;
  133. }
  134. .mc-nomal-num {
  135. font-size: 20px;
  136. }
  137. .bg-style {
  138. /*background-color: white;*/
  139. padding: 25px 10px;
  140. .custom-tree-node {
  141. width: 100%;
  142. }
  143. .tree-box {
  144. overflow: hidden;
  145. height: 26px;
  146. width: 100%;
  147. img {
  148. width: 26px;
  149. height: 26px;
  150. float: left;
  151. }
  152. div {
  153. display: inline-block;
  154. height: 26px;
  155. line-height: 26px;
  156. span {
  157. padding-left: 10px;
  158. }
  159. }
  160. }
  161. }
  162. .mc-function-box {
  163. margin-top: 10px;
  164. .function-box {
  165. .f-box-tit {
  166. font-size: 16px;
  167. margin: 10px 0 15px 20px;
  168. // font-weight: bold;
  169. color: #4949a2;
  170. }
  171. .f-box-info {
  172. display: inline-block;
  173. height: 100px;
  174. width: 33%;
  175. text-align: center;
  176. i {
  177. width: 40px;
  178. height: 40px;
  179. border-radius: 18px;
  180. display: block;
  181. color: #fff;
  182. text-align: center;
  183. line-height: 40px;
  184. cursor: pointer;
  185. margin: 0 30px;
  186. }
  187. span {
  188. font-size: 12px;
  189. display: block;
  190. text-align: center;
  191. width: 100px;
  192. height: 40px;
  193. line-height: 20px;
  194. margin-top: 5px;
  195. overflow: hidden;
  196. text-overflow: ellipsis;
  197. }
  198. .mybadge {
  199. top: 0;
  200. right: 40px;
  201. }
  202. }
  203. }
  204. }
  205. </style>