leaderhomeTask.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. <template>
  2. <div style="display: flex; justify-content: space-between">
  3. <div class="taskbox">
  4. <div class="tit">
  5. <span class="span1" @click="tabboxclick1">我的待办 ({{ this.daitotal }})</span>
  6. <span class="span2" @click="tabboxclick2">我的已办</span>
  7. <span class="span3" @click="tabboxclick3">我的发起</span>
  8. <!-- <span class="span" @click="more">更多>></span> -->
  9. </div>
  10. <div class="fatherbox">
  11. <div class="tabbox">
  12. <!-- 我的待办列表 -->
  13. <el-table :header-cell-style="{
  14. background: '#F2F2F2',
  15. 'text-align': 'center',
  16. }" :cell-style="{ background: '#FaFaFa' }" v-if="tabbox1" class="com-table" ref="multipleTable"
  17. :data="niticList" tooltip-effect="dark" size="small"
  18. style="width: 100%; font-size: 16px; background: '#FaFaFa'" height="442px">
  19. <el-table-column prop="woTitle" label="工单标题" align="left" :show-overflow-tooltip="true">
  20. <template slot-scope="scope">
  21. <span :title="scope.row.woTitle" @click="RowTitle(scope.row)" :style="
  22. scope.row.woTypeDesc == '预警工单'
  23. ? 'cursor: pointer;color:red;'
  24. : 'cursor: pointer;color:blue;'
  25. ">
  26. <!-- <span style="float: left; color: #afb2d8;margin-right:5px"
  27. >•</span> -->
  28. {{ scope.row.woTitle }}
  29. </span>
  30. </template>
  31. </el-table-column>
  32. <el-table-column prop="procName" label="流程名称" align="center" width="180" :show-overflow-tooltip="true">
  33. <template slot-scope="scope">
  34. <span :title="scope.row.procName">{{
  35. scope.row.procName
  36. }}</span>
  37. </template>
  38. </el-table-column>
  39. <el-table-column prop="assigneName" label="上一步处理人" align="center" width="120" :show-overflow-tooltip="true">
  40. <template slot-scope="scope">
  41. <span :title="scope.row.assigneName">{{
  42. scope.row.assigneName
  43. }}</span>
  44. </template>
  45. </el-table-column>
  46. <el-table-column prop="clsj" label="上一步处理时间" align="center" width="135" :show-overflow-tooltip="true">
  47. <template slot-scope="scope">
  48. <span :title="scope.row.clsj">{{ scope.row.clsj }}</span>
  49. </template>
  50. </el-table-column>
  51. <el-table-column prop="opName" label="发起人" align="center" width="100">
  52. <template slot-scope="scope">
  53. <span>{{ scope.row.opName }}</span>
  54. </template>
  55. </el-table-column>
  56. <el-table-column prop="createTime" label="发起时间" align="center" width="130" :show-overflow-tooltip="true">
  57. <template slot-scope="scope">
  58. <span :title="scope.row.createTime">{{ scope.row.createTime }}</span>
  59. </template>
  60. </el-table-column>
  61. </el-table>
  62. <!-- <el-pagination class="pageBox" @current-change="currchangeDdaiban" layout="total,prev, pager, next" background
  63. page-size="10" :total="totalDaiban" v-if="tabbox1">
  64. </el-pagination> -->
  65. <el-pagination @current-change="currchangeDdaiban" :current-page="daipage" :page-size="daisize"
  66. layout="total,prev, pager, next" :total="daitotal" v-if="tabbox1">
  67. </el-pagination>
  68. </div>
  69. <div class="tabbox">
  70. <!-- 我的已办列表 -->
  71. <el-table :header-cell-style="{
  72. background: '#F2F2F2',
  73. 'text-align': 'center',
  74. }" :cell-style="{ background: '#FaFaFa' }" class="com-table" ref="tableDatayj" v-if="tabbox2"
  75. :data="tableDatayj" tooltip-effect="dark" size="small"
  76. style="width: 100%; font-size: 16px; background: '#FaFaFa'" height="442px">
  77. <el-table-column prop="woTitle" label="工单标题" align="left" :show-overflow-tooltip="true">
  78. <template slot-scope="scope">
  79. <!-- <span style="float: left; color: #afb2d8;margin-right:5px"
  80. >•</span
  81. > -->
  82. <span @click="RowDoneTitle(scope.row)" :title="scope.row.woTitle"
  83. style="cursor: pointer; color: blue">{{ scope.row.woTitle }}</span>
  84. </template>
  85. </el-table-column>
  86. <el-table-column prop="procName" label="流程名称" align="center" width="180" :show-overflow-tooltip="true">
  87. <template slot-scope="scope">
  88. <span :title="scope.row.procName">{{
  89. scope.row.procName
  90. }}</span>
  91. </template>
  92. </el-table-column>
  93. <el-table-column prop="opName" label="发起人" align="center" width="120">
  94. <template slot-scope="scope">
  95. <span>{{ scope.row.opName }}</span>
  96. </template>
  97. </el-table-column>
  98. <el-table-column prop="createTime" label="发起时间" align="center" width="180">
  99. <template slot-scope="scope">
  100. <span>{{ scope.row.createTime }}</span>
  101. </template>
  102. </el-table-column>
  103. </el-table>
  104. <!-- <el-pagination class="pageBox" @current-change="currchangeDone"
  105. layout="total,prev, pager, next" background :total="totalDone" page-size="10">
  106. </el-pagination> -->
  107. <el-pagination @current-change="currchangeyiban" :current-page="yibanpage" :page-size="yibansize"
  108. layout="total,prev, pager, next" :total="yibantotal" v-if="tabbox2">
  109. </el-pagination>
  110. </div>
  111. <div class="tabbox">
  112. <!-- 我的发起列表 -->
  113. <el-table :header-cell-style="{
  114. background: '#F2F2F2',
  115. 'text-align': 'center',
  116. }" :cell-style="{ background: '#FaFaFa' }" class="com-table" ref="OpList" :data="OpList" v-if="tabbox3"
  117. tooltip-effect="dark" size="small" style="width: 100%; font-size: 16px; background: '#FaFaFa'"
  118. height="442px">
  119. <el-table-column prop="woTitle" label="工单标题" align="left" :show-overflow-tooltip="true">
  120. <template slot-scope="scope">
  121. <!-- <span style="float: left; color: #afb2d8;margin-right:5px"
  122. >•</span
  123. > -->
  124. <span :title="scope.row.woTitle" @click="RowlaunchTitle(scope.row)"
  125. style="cursor: pointer; color: blue">{{ scope.row.woTitle }}</span>
  126. </template>
  127. </el-table-column>
  128. <el-table-column prop="procName" label="流程名称" align="center" :show-overflow-tooltip="true">
  129. <template slot-scope="scope">
  130. <span :title="scope.row.procName">{{
  131. scope.row.procName
  132. }}</span>
  133. </template>
  134. </el-table-column>
  135. <el-table-column prop="createTime" label="发起时间" align="center" width="180">
  136. <template slot-scope="scope">
  137. <span>{{ scope.row.createTime }}</span>
  138. </template>
  139. </el-table-column>
  140. <el-table-column
  141. align="center"
  142. width="80"
  143. label="操作"
  144. >
  145. <template slot-scope="scope">
  146. <el-button
  147. size="mini"
  148. :disabled="scope.row.flag == '1' ? true : false"
  149. @click="handleEdit(scope.$index, scope.row)">催办</el-button>
  150. </template>
  151. </el-table-column>
  152. </el-table>
  153. <!-- <el-pagination class="pageBox" @current-change="currchangeOp" layout="total,prev, pager, next" background
  154. :total="totalOp" v-if="tabbox3" page-size="10">
  155. </el-pagination> -->
  156. <el-pagination @current-change="currchangefaqi" :current-page="faqipage" :page-size="faqisize"
  157. layout="total,prev, pager, next" :total="faqitotal" v-if="tabbox3">
  158. </el-pagination>
  159. </div>
  160. </div>
  161. <!-- 查看待办弹窗 -->
  162. <el-dialog title="查看" :visible.sync="WorkOrderStatus" width="50%" :close-on-press-escape="false"
  163. :show-close="true" :destroy-on-close="true" :modal-append-to-body="false" :close-on-click-modal="false">
  164. <div>
  165. <el-form :inline="true" :model="StatusList" class="demo-form-inline">
  166. <el-form-item label="工单标题">
  167. <el-input v-model="StatusList.woTitle" placeholder="工单标题" disabled />
  168. </el-form-item>
  169. <el-form-item label="流程名称">
  170. <el-input v-model="StatusList.procName" placeholder="流程名称" disabled />
  171. </el-form-item>
  172. </el-form>
  173. <h3>流程轨迹</h3>
  174. <el-table :data="WorkOrderList" style="width: 100%" max-height="350" height="300">
  175. <el-table-column prop="createTime" label="节点开始时间" />
  176. <el-table-column prop="stepName" label="节点名称" width="180" />
  177. <el-table-column prop="assigneeName" label="处理角色" width="180" />
  178. <el-table-column prop="opTime" label="处理时间" />
  179. </el-table>
  180. </div>
  181. <div class="diobtn">
  182. <el-button @click="dlogStatus()">处理</el-button>
  183. </div>
  184. </el-dialog>
  185. <!-- 查看已办弹窗 -->
  186. <el-dialog title="查看" :visible.sync="DoneStatus" width="50%" :close-on-press-escape="false" :show-close="true"
  187. :destroy-on-close="true" :modal-append-to-body="false" :close-on-click-modal="false">
  188. <div>
  189. <el-form :inline="true" :model="StatusList" class="demo-form-inline">
  190. <el-form-item label="工单标题">
  191. <el-input v-model="StatusList.woTitle" placeholder="工单标题" disabled />
  192. </el-form-item>
  193. <el-form-item label="流程名称">
  194. <el-input v-model="StatusList.procName" placeholder="流程名称" disabled />
  195. </el-form-item>
  196. </el-form>
  197. <h3>流程轨迹</h3>
  198. <el-table :data="DoneList" style="width: 100%" max-height="350" height="300">
  199. <el-table-column prop="createTime" label="节点开始时间" />
  200. <el-table-column prop="stepName" label="节点名称" width="180" />
  201. <el-table-column prop="assigneeName" label="处理角色" width="180" />
  202. <el-table-column prop="opTime" label="处理时间" />
  203. </el-table>
  204. </div>
  205. <div class="diobtn">
  206. <el-button @click="dlogStatus()">查看详情</el-button>
  207. </div>
  208. </el-dialog>
  209. <!-- 查看发起弹窗 -->
  210. <el-dialog title="查看" :visible.sync="launchStatus" width="50%" :close-on-press-escape="false" :show-close="true"
  211. :destroy-on-close="true" :modal-append-to-body="false" :close-on-click-modal="false">
  212. <div>
  213. <el-form :inline="true" :model="StatusList" class="demo-form-inline">
  214. <el-form-item label="工单标题">
  215. <el-input v-model="StatusList.woTitle" placeholder="工单标题" disabled />
  216. </el-form-item>
  217. <el-form-item label="流程名称">
  218. <el-input v-model="StatusList.procName" placeholder="流程名称" disabled />
  219. </el-form-item>
  220. </el-form>
  221. <h3>流程轨迹</h3>
  222. <el-table :data="launchList" style="width: 100%" max-height="350" height="300">
  223. <el-table-column prop="createTime" label="节点开始时间" />
  224. <el-table-column prop="stepName" label="节点名称" width="180" />
  225. <el-table-column prop="assigneeName" label="处理角色" width="180" />
  226. <el-table-column prop="opTime" label="处理时间" />
  227. </el-table>
  228. </div>
  229. </el-dialog>
  230. <!-- 处理弹窗 -->
  231. <el-dialog title="处理" :visible.sync="WorkOrderStatus1" width="40%" :close-on-press-escape="false"
  232. :show-close="true" :destroy-on-close="true" :modal-append-to-body="false" :close-on-click-modal="false">
  233. <div style="height: 450px">
  234. <iframe height="100%" width="100%" :src="dialogdiv" frameborder="0"></iframe>
  235. </div>
  236. </el-dialog>
  237. <div>
  238. <el-dialog title="有您的催办工单" :visible.sync="dialogTableVisible" :modal="false" >
  239. <el-table :data="gridData">
  240. <el-table-column property="woTitle"
  241. label="工单标题" width="625"
  242. show-overflow-tooltip=true
  243. >
  244. <template slot-scope="scope">
  245. <span
  246. @click="urgedDeal(scope.row)"
  247. :title="scope.row.woTitle"
  248. style="cursor: pointer; color: blue"
  249. >{{ scope.row.woTitle }}</span
  250. >
  251. </template>
  252. </el-table-column>
  253. <el-table-column
  254. align="center"
  255. width="100"
  256. label="操作"
  257. >
  258. <!-- <el-form-item> -->
  259. <template slot-scope="scope">
  260. <el-button
  261. size="mini"
  262. @click="handleEdit1(scope.$index, scope.row)">已阅</el-button>
  263. </template>
  264. <!-- </el-form-item> -->
  265. </el-table-column>
  266. </el-table>
  267. </el-dialog>
  268. </div>
  269. </div>
  270. </div>
  271. </template>
  272. <script>
  273. export default {
  274. components: {},
  275. // props:["tableDatayj","niticList"],
  276. data() {
  277. return {
  278. gridData:[],//催办列表
  279. dialogTableVisible: false,//催办弹窗是否显示
  280. tabbox1: true, //待办
  281. tabbox2: false, //已办
  282. tabbox3: false, //发起
  283. niticList: [], //待办列表
  284. tableDatayj: [], //已办列表
  285. OpList: [], //我的发起列表
  286. WorkOrderStatus: false, //查看待办弹窗
  287. launchStatus: false, //查看我的发起弹窗
  288. DoneStatus: false, //查看已办弹窗
  289. WorkOrderStatus1: false, //处理弹窗
  290. dialogdiv: "", //iframe
  291. StatusList: [], //form表单里列表
  292. WorkOrderList: [], //我的待办流程节点
  293. DoneList: [], //我的已办流程节点
  294. launchList: [], //我的发起流程节点
  295. urlllll: "", //跳转路由
  296. totalDone: 0, //已办分页
  297. totalDaiban: 0, //已办分页
  298. totalOp: 0, //已办分页
  299. params: {},
  300. pageSize: 1,
  301. pagesize: 10,
  302. pageSizeDone: 1,
  303. pageSizeDdaiban: 1,
  304. pageSizeOp: 1,
  305. daipage: 1, //第几页
  306. daisize: 10, //一页多少条
  307. daitotal: 0, //总条目数
  308. yibanpage: 1, //第几页
  309. yibansize: 10, //一页多少条
  310. yibantotal: 0, //总条目数
  311. faqipage: 1, //第几页
  312. faqisize: 10, //一页多少条
  313. faqitotal: 0, //总条目数
  314. };
  315. },
  316. methods: {
  317. //处理按钮
  318. dlogStatus() {
  319. // this.WorkOrderStatus = false;
  320. // this.WorkOrderStatus1 = true;
  321. this.$router.push(this.urlllll);
  322. console.log(this.urlllll);
  323. },
  324. //查看标题按钮按钮
  325. RowTitle(v) {
  326. this.StatusList = v;
  327. console.log(v.actionUrl);
  328. if (v.taskName) {
  329. this.WorkOrderStatus = true;
  330. this.$http({
  331. url: "/market/cwo/queryProcStepByWono",
  332. method: "post",
  333. headers: {
  334. "Content-Type": "application/json",
  335. },
  336. data: {
  337. woNo: v.woNo,
  338. },
  339. }).then((res) => {
  340. this.WorkOrderList = res.data;
  341. });
  342. this.$http({
  343. url: "/market/cwo/redirectDealPage",
  344. method: "post",
  345. headers: {
  346. "Content-Type": "application/json",
  347. },
  348. data: {
  349. procId: v.procId,
  350. },
  351. }).then((res) => {
  352. this.urlllll = res.data[0].jspUrl;
  353. // console.log(this.urlllll)
  354. // if(this.urlllll=="#"){
  355. // this.urlllll=res.data[1].jspUrl
  356. // }
  357. console.log(this.urlllll);
  358. });
  359. } else {
  360. this.$router.push(v.actionUrl);
  361. }
  362. },
  363. //我的已办查看按钮
  364. RowDoneTitle(v) {
  365. this.StatusList = v;
  366. console.log(v.actionUrl);
  367. if (v.taskName) {
  368. this.DoneStatus = true;
  369. this.$http({
  370. url: "/market/cwo/queryProcStepByWono",
  371. method: "post",
  372. headers: {
  373. "Content-Type": "application/json",
  374. },
  375. data: {
  376. woNo: v.woNo,
  377. },
  378. }).then((res) => {
  379. this.DoneList = res.data;
  380. });
  381. this.$http({
  382. url: "/market/cwo/redirectDealPage",
  383. method: "post",
  384. headers: {
  385. "Content-Type": "application/json",
  386. },
  387. data: {
  388. procId: v.procId,
  389. },
  390. }).then((res) => {
  391. this.urlllll = res.data[0].jspUrl;
  392. // console.log(this.urlllll)
  393. // if(this.urlllll=="#"){
  394. // this.urlllll=res.data[1].jspUrl
  395. // }
  396. console.log(this.urlllll);
  397. });
  398. } else {
  399. this.$router.push(v.actionUrl);
  400. }
  401. },
  402. //我的发起查看按钮
  403. RowlaunchTitle(v) {
  404. this.StatusList = v;
  405. console.log(v.actionUrl);
  406. if (v.taskName) {
  407. this.launchStatus = true;
  408. this.$http({
  409. url: "/market/cwo/queryProcStepByWono",
  410. method: "post",
  411. headers: {
  412. "Content-Type": "application/json",
  413. },
  414. data: {
  415. woNo: v.woNo,
  416. },
  417. }).then((res) => {
  418. this.launchList = res.data;
  419. });
  420. } else {
  421. this.$router.push(v.actionUrl);
  422. }
  423. },
  424. //催办按钮
  425. handleEdit(index, row) {
  426. this.open(row);
  427. },
  428. //已阅按钮
  429. handleEdit1(index, row) {
  430. this.haveRead(row); //点已阅后返回数据给后台
  431. },
  432. //催办按钮弹窗
  433. open(row) {
  434. this.$confirm('催办此条工单, 是否继续?', '提示', {
  435. confirmButtonText: '确定',
  436. cancelButtonText: '取消',
  437. type: 'warning'
  438. }).then(() => {
  439. this.urgedDeal(row);
  440. this.$message({
  441. type: 'success',
  442. message: '催办成功!'
  443. });
  444. }).catch(() => {
  445. this.$message({
  446. type: 'info',
  447. message: '已取消催办'
  448. });
  449. });
  450. },
  451. //催办向后台返回数据
  452. urgedDeal(row) {
  453. let list = {}
  454. list.id = row.id;
  455. list.woNo = row.woNo;
  456. list.woTitle = row.woTitle;
  457. list.nextNo = row.assigneeNo;
  458. list.nextName = row.assigneeName;
  459. list.sts = row.sts;
  460. list.actionUrl = row.actionUrl;
  461. console.log(row);
  462. this.$http({
  463. url: "/market/remind/add",
  464. method: "post",
  465. headers: {
  466. "Content-Type": "application/json",
  467. },
  468. data: list,
  469. }).then((res) => {
  470. });
  471. },
  472. //已阅向后台返回数据
  473. haveRead(row) {
  474. let list = {}
  475. list.id = row.id;
  476. list.woNo = row.woNo;
  477. list.woTitle = row.woTitle;
  478. list.nextNo = row.assigneeNo;
  479. list.nextName = row.assigneeName;
  480. list.sts = row.sts;
  481. console.log(row);
  482. this.$http({
  483. url: "/market/remind/update",
  484. method: "post",
  485. headers: {
  486. "Content-Type": "application/json",
  487. },
  488. data: list,
  489. }).then((res) => {
  490. this.popupWindow();
  491. });
  492. },
  493. //接收数据判断是否弹窗
  494. popupWindow(){
  495. this.$http({
  496. url: "/market/remind/queryListByNo",
  497. method: "post",
  498. headers: {
  499. "Content-Type": "application/json",
  500. },
  501. }).then((res) => {
  502. console.log(res);
  503. console.log(res.data.length);
  504. if(res.data.length == 0){
  505. this.dialogTableVisible = false;
  506. }else{
  507. this.dialogTableVisible = true;
  508. }
  509. this.gridData = res.data
  510. });
  511. },
  512. //更多按钮
  513. more() {
  514. console.log(11);
  515. },
  516. //待办列表初始化
  517. daiban(v, n) {
  518. this.pageSizeDdaiban = n;
  519. this.$http({
  520. url: "/market/cwo/queryQaToDoList",
  521. method: "post",
  522. headers: {
  523. "Content-Type": "application/json",
  524. page: '{"pageNo":"' + '1' + '","pageSize":"100"}',
  525. },
  526. data: '{"pageNo":"' + '1' + '","pageSize":"100"}',
  527. }).then((res) => {
  528. // this.niticList = res.data.data;
  529. let data = JSON.parse(JSON.stringify(res.data.data))
  530. this.niticList = data.splice(
  531. (this.daipage - 1) * this.daisize,
  532. this.daisize
  533. );
  534. this.daitotal = res.data.data.length
  535. // this.totalDaiban = res.data.totalRecord;
  536. });
  537. },
  538. //已办列表初始化
  539. getListyj(v, n) {
  540. this.pageSizeDone = n;
  541. let _this = this;
  542. this.$http({
  543. url: "/market/cwo/queryQaFinishList",
  544. method: "post",
  545. headers: {
  546. "Content-Type": "application/json",
  547. page: '{"pageNo":"' + '1' + '","pageSize":"100"}',
  548. },
  549. data: '{"pageNo":"' + '1' + '","pageSize":"100"}',
  550. }).then((res) => {
  551. // this.tableDatayj = res.data.data;
  552. // this.totalDone = res.data.totalRecord;
  553. let data = JSON.parse(JSON.stringify(res.data.data))
  554. this.tableDatayj = data.splice(
  555. (this.yibanpage - 1) * this.yibansize,
  556. this.yibansize
  557. );
  558. this.yibantotal = res.data.data.length
  559. });
  560. },
  561. //待办分页
  562. currchangeDdaiban(val) {
  563. console.log("翻页,当前为第几页", val);
  564. this.daipage = val;
  565. // this.getTabelData2();
  566. // this.pageSizeDdaiban = v;
  567. this.daiban(this.params, this.pageSizeDdaiban);
  568. },
  569. //已办分页
  570. currchangeyiban(val) {
  571. // this.pageSizeDone = v;
  572. this.yibanpage = val;
  573. this.getListyj(this.params, this.pageSizeDone);
  574. },
  575. //发起分页
  576. currchangefaqi(val) {
  577. // this.pageSizeOp = v;
  578. this.faqipage = val;
  579. this.getOPlist(this.params, this.pageSizeOp);
  580. },
  581. //我的发起列表初始化
  582. getOPlist(v, n) {
  583. this.pageSizeOp = n;
  584. this.$http({
  585. url: "/market/cwo/queryOpList",
  586. method: "post",
  587. headers: {
  588. "Content-Type": "application/json",
  589. page: '{"pageNo":"' + '1' + '","pageSize":"100"}',
  590. },
  591. data: '{"pageNo":"' + '1' + '","pageSize":"100"}',
  592. }).then((res) => {
  593. // this.OpList = res.data.data;
  594. // this.totalOp = res.data.totalRecord;
  595. let data = JSON.parse(JSON.stringify(res.data.data))
  596. this.OpList = data.splice(
  597. (this.faqipage - 1) * this.faqisize,
  598. this.faqisize
  599. );
  600. this.faqitotal = res.data.data.length
  601. });
  602. },
  603. tabboxclick1() {
  604. this.tabbox1 = true;
  605. this.tabbox2 = false;
  606. this.tabbox3 = false;
  607. document.querySelector(".span1").style.color = "blue";
  608. document.querySelector(".span2").style.color = "black";
  609. document.querySelector(".span2").style.border = 0;
  610. document.querySelector(".span1").style.borderBottom = "2px solid blue";
  611. document.querySelector(".span3").style.color = "black";
  612. document.querySelector(".span3").style.border = 0;
  613. document.querySelector(".com-table").style.backgroundColor = "#FaFaFa";
  614. },
  615. tabboxclick2() {
  616. this.tabbox1 = false;
  617. this.tabbox2 = true;
  618. this.tabbox3 = false;
  619. document.querySelector(".com-table").style.backgroundColor = "#FaFaFa";
  620. document.querySelector(".span1").style.border = 0;
  621. document.querySelector(".span2").style.borderBottom = "2px solid blue";
  622. document.querySelector(".span2").style.color = "blue";
  623. document.querySelector(".span1").style.color = "black";
  624. document.querySelector(".span3").style.color = "black";
  625. document.querySelector(".span3").style.border = 0;
  626. },
  627. tabboxclick3() {
  628. this.tabbox1 = false;
  629. this.tabbox2 = false;
  630. this.tabbox3 = true;
  631. document.querySelector(".com-table").style.backgroundColor = "#FaFaFa";
  632. document.querySelector(".span1").style.color = "black";
  633. document.querySelector(".span2").style.color = "black";
  634. document.querySelector(".span1").style.border = 0;
  635. document.querySelector(".span2").style.border = 0;
  636. document.querySelector(".span3").style.borderBottom = "2px solid blue";
  637. document.querySelector(".span3").style.color = "blue";
  638. },
  639. },
  640. mounted() {
  641. this.daiban({}, 1);
  642. this.getListyj({}, 1);
  643. this.getOPlist({}, 1);
  644. this.userInfo = JSON.parse(window.sessionStorage.userInfo);
  645. },
  646. created() {
  647. this.popupWindow();
  648. },
  649. };
  650. </script>
  651. <style lang="scss" scoped>
  652. .diobtn {
  653. position: relative;
  654. text-align: right;
  655. // display: flex;
  656. // justify-content: end;
  657. margin-top: 10px;
  658. }
  659. .taskbox {
  660. width: 100%;
  661. display: inline-block;
  662. }
  663. .tit {
  664. margin-top: 10px;
  665. clear: both;
  666. height: 47px;
  667. // background: #fff;
  668. background-image: linear-gradient(#fafafa, #d4edfd);
  669. line-height: 47px;
  670. padding: 0 20px;
  671. font-size: 16px;
  672. border-top-left-radius: 5px;
  673. border-top-right-radius: 5px;
  674. justify-content: space-between;
  675. .com-table {
  676. background: "#FaFaFa";
  677. }
  678. .span {
  679. float: right;
  680. color: orange;
  681. }
  682. .span1 {
  683. display: inline-block;
  684. color: blue;
  685. text-align: center;
  686. height: 46px;
  687. font-weight: 900;
  688. width: 120px;
  689. border-bottom: 2px solid blue;
  690. }
  691. .span2 {
  692. display: inline-block;
  693. text-align: center;
  694. height: 46px;
  695. width: 120px;
  696. font-weight: 900;
  697. }
  698. .span3 {
  699. display: inline-block;
  700. text-align: center;
  701. height: 46px;
  702. width: 120px;
  703. font-weight: 900;
  704. }
  705. span {
  706. cursor: pointer;
  707. }
  708. }
  709. .info-line {
  710. width: 100%;
  711. display: block;
  712. padding-left: 20px;
  713. div {
  714. width: 50%;
  715. display: inline-block;
  716. overflow: hidden;
  717. }
  718. span {
  719. width: 80px;
  720. display: inline-block;
  721. text-align: left;
  722. float: left;
  723. i {
  724. color: red;
  725. display: inline-block;
  726. padding-right: 5px;
  727. }
  728. }
  729. .el-select,
  730. .el-input {
  731. width: calc(100% - 100px);
  732. margin-left: 20px;
  733. }
  734. }
  735. .fatherbox {
  736. background: #fafafa;
  737. padding: 10px;
  738. height: 484px;
  739. border-bottom-left-radius: 5px;
  740. border-bottom-right-radius: 5px;
  741. width: 100%;
  742. }
  743. .pageBox {}
  744. ::v-deep .gutter {
  745. background: #fafafa;
  746. }
  747. ::v-deep .is-scrolling-none {
  748. background: #fafafa;
  749. }
  750. // ::v-deep .el-table--scrollable-y .el-table__body-wrapper {
  751. // overflow: hidden;
  752. // }
  753. // ::v-deep .el-table th>.cell{
  754. // padding:0px;
  755. // }
  756. // ::v-deep .el-table__body-wrapper .is-scrolling-left{
  757. // overflow-x: hidden;
  758. // }
  759. </style>