index.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <template>
  2. <fullscreen :fullscreen.sync="fullscreen" class="container">
  3. <div class="container-box">
  4. <toolList @iconCli='iconCli' :tooltit='tooltit'></toolList>
  5. <div style="overflow: hidden;margin: 10px 0;" v-if="exa">
  6. <el-button class="btn-check" style="float: right;" size="medium" type="primary" @click="dialogCheck(2)">
  7. 添加
  8. </el-button>
  9. </div>
  10. <div class="tabbox">
  11. <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" :data="tableData"
  12. tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
  13. <el-table-column prop="deployName" label="清单表名称">
  14. </el-table-column>
  15. <el-table-column prop="opName" label="创建姓名">
  16. </el-table-column>
  17. <el-table-column prop="opNo" label="创建工号">
  18. </el-table-column>
  19. <el-table-column prop="opTime" label="创建时间">
  20. </el-table-column>
  21. <el-table-column label="操作" width="160px" align="center">
  22. <template slot-scope="scope">
  23. <el-button size="mini" type="primary" @click="dialogCheck(1,scope.row)">查看</el-button>
  24. </template>
  25. </el-table-column>
  26. </el-table>
  27. <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
  28. :total="total">
  29. </el-pagination>
  30. </div>
  31. </div>
  32. </fullscreen>
  33. </template>
  34. <script>
  35. import mySearch from "../../../components/search.vue";
  36. import myUpload from '../../../components/upload'
  37. import uploadDown from '../../../components/uploadDown'
  38. import myMessage from "../../../components/myMessage.vue"
  39. import toolList from '../../../components/toolList'
  40. export default {
  41. components: {
  42. mySearch,
  43. myUpload,
  44. uploadDown,
  45. myMessage,
  46. toolList
  47. },
  48. data() {
  49. return {
  50. tooltit: '会议部署工作清单',
  51. fullscreen: false,
  52. total: 0,
  53. pageSize: 1,
  54. tableData: [{}],
  55. dialogStatus: false,
  56. disableStatus: false,
  57. titname: '',
  58. infolist: {},
  59. userInfo: {},
  60. params: {},
  61. centerDialogVisible: false,
  62. messTit: '',
  63. delid: '',
  64. loading: false,
  65. loadinged: false,
  66. exa: false
  67. }
  68. },
  69. methods: {
  70. //获取列表
  71. getList(v, n) {
  72. this.pageSize = n;
  73. let _this = this;
  74. this.loading = true;
  75. this.tableData = [];
  76. this.$http({
  77. url: "/market/busiDeploy/queryPage",
  78. method: "post",
  79. headers: {
  80. "Content-Type": "application/json",
  81. "page": '{"pageNo":"' + n + '","pageSize":"10"}'
  82. },
  83. data: v,
  84. }).then((res) => {
  85. console.log(res)
  86. this.tableData = res.data.data;
  87. this.total = res.data.totalRecord;
  88. this.loading = false;
  89. });
  90. },
  91. // 分页
  92. currchange(v) {
  93. this.pageSize = v;
  94. this.getList(this.params, this.pageSize);
  95. },
  96. //申请
  97. dialogCheck(v, n) {
  98. if (v == 1) {
  99. this.$router.push({
  100. path: '/checkclubwork?id=' + n.id,
  101. });
  102. this.setabList('会议部署工作清单', '/checkclubwork?id=' + n.id);
  103. } else {
  104. this.$router.push({
  105. path: '/checkclubwork',
  106. });
  107. this.setabList('会议部署工作清单', '/checkclubwork');
  108. }
  109. },
  110. setabList(n, p) {
  111. let params = {
  112. children: "",
  113. name: n,
  114. rountPath: p,
  115. target: "_self",
  116. };
  117. for (let i = 0; i < this.$store.state.tabList.length; i++) {
  118. if (this.$store.state.tabList[i].name === params.name) {
  119. this.$store.state.tabList[i] = params;
  120. }
  121. }
  122. let set = new Set([...this.$store.state.tabList, params]);
  123. set.add(params);
  124. this.$store.commit("setDefaultActive", params.rountPath);
  125. this.$store.commit("setTabList", Array.from(set));
  126. },
  127. //功能栏
  128. iconCli(v) {
  129. if (v === 1) {
  130. this.getList(this.params, this.pageSize);
  131. }
  132. if (v === 2) {
  133. this.fullscreen = !this.fullscreen
  134. }
  135. },
  136. ctrlbtn() {
  137. let menus = JSON.parse(window.sessionStorage.childrenMenus);
  138. for (let i = 0; i < menus.length; i++) {
  139. if (menus[i].jspUrl === '/ecClubWorkexa' && menus[i].systemflag === '1') {
  140. this.exa = true;
  141. return
  142. }
  143. }
  144. },
  145. getUser() {
  146. let menus = JSON.parse(window.sessionStorage.menus);
  147. this.ctrlbtn(menus);
  148. this.userInfo = JSON.parse(window.sessionStorage.userInfo);
  149. this.infolist = {
  150. opNo: '',
  151. opName: '',
  152. };
  153. this.infolist.opNo = this.userInfo.loginNo;
  154. this.infolist.opName = this.userInfo.loginName;
  155. }
  156. },
  157. mounted() {
  158. this.getList({}, 1);
  159. this.getUser();
  160. },
  161. created() {
  162. }
  163. }
  164. </script>
  165. <style scoped lang="scss">
  166. .onetab {
  167. margin-bottom: 20px;
  168. padding: 0 20px;
  169. }
  170. .titbox {
  171. div {
  172. float: right;
  173. i {
  174. font-size: 22px;
  175. margin-left: 20px;
  176. cursor: pointer;
  177. }
  178. }
  179. }
  180. .tabbox {
  181. margin-top: 15px;
  182. }
  183. .pageBox {
  184. text-align: right;
  185. margin-top: 10px;
  186. }
  187. .info-line {
  188. width: 100%;
  189. display: block;
  190. padding-left: 20px;
  191. div {
  192. width: 50%;
  193. display: inline-block;
  194. }
  195. span {
  196. width: 80px;
  197. display: inline-block;
  198. text-align: left;
  199. i {
  200. color: red;
  201. display: inline-block;
  202. padding-right: 5px;
  203. }
  204. }
  205. .el-select,
  206. .el-input {
  207. width: calc(100% - 100px);
  208. }
  209. }
  210. .online {
  211. width: 100%;
  212. .el-select {
  213. width: calc(100% - 100px);
  214. }
  215. span {
  216. vertical-align: top;
  217. }
  218. .el-textarea {
  219. width: calc(100% - 100px);
  220. }
  221. }
  222. </style>