index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  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;">
  6. <el-button style="float: right;margin-top: 10px;" type="primary" @click="dialogCheck(3)">添加</el-button>
  7. <el-button style="float: right;margin-top: 10px;margin-right: 20px;" type="primary" @click="getStanding">台账</el-button>
  8. </div>
  9. <div class="tabbox">
  10. <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" :data="tableData"
  11. tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
  12. <el-table-column prop="woTitle" label="业务名称">
  13. </el-table-column>
  14. <el-table-column prop="opName" label="申请姓名">
  15. </el-table-column>
  16. <el-table-column prop="createTime" label="申请时间">
  17. </el-table-column>
  18. <el-table-column prop="stsDesc" label="状态">
  19. </el-table-column>
  20. <el-table-column label="操作" width="120px" align="center">
  21. <template slot-scope="scope">
  22. <el-button size="mini" type="primary" @click="dialogCheck(1,scope.row)">查看</el-button>
  23. <el-button size="mini" type="danger" v-if="scope.row.sts != 1"
  24. @click="dialogCheck(2,scope.row)">处理</el-button>
  25. <!-- <el-button size="mini" type="danger" @click="delLine(scope.row)">删除</el-button> -->
  26. </template>
  27. </el-table-column>
  28. </el-table>
  29. <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
  30. :total="total">
  31. </el-pagination>
  32. </div>
  33. </div>
  34. <el-dialog :title="titname" :visible.sync="dialogStatus" width="50%" :destroy-on-close="true"
  35. :modal-append-to-body="false" :close-on-click-modal="false" :before-close="closedia" :fullscreen="true">
  36. <div v-loading="loadinged">
  37. <el-form :model="infolist" ref="infolist" :rules="rules" style="height: calc(100vh - 180px);overflow-y: scroll;">
  38. <div class="info-line">
  39. <el-form-item prop="woName">
  40. <span>工单名称</span>
  41. <el-input v-model="infolist.woName" placeholder="工单名称" :disabled="disableStatus">
  42. </el-input>
  43. </el-form-item>
  44. <el-form-item prop="terminal">
  45. <span>申请流程</span>
  46. <el-select clearable v-model="terminal" placeholder="申请流程" disabled>
  47. <el-option v-for="items in options" :key="items.procId" :label="items.procName"
  48. :value="items.procId">
  49. </el-option>
  50. </el-select>
  51. </el-form-item>
  52. <el-form-item>
  53. <span>合作伙伴</span>
  54. <el-input v-model="infolist.factoryName" placeholder="合作伙伴名称" :disabled="disableStatus">
  55. </el-input>
  56. </el-form-item>
  57. <el-form-item>
  58. <span>是否新接口</span>
  59. <el-select clearable v-model="infolist.woType" placeholder="是否新接口" :disabled="disableStatus">
  60. <el-option v-for="items in ifopt" :key="items.id" :label="items.name"
  61. :value="items.id">
  62. </el-option>
  63. </el-select>
  64. </el-form-item>
  65. </div>
  66. <el-form-item class="info-line online">
  67. <span>正文内容</span>
  68. <el-input v-model="infolist.textContent" placeholder="正文内容" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
  69. :disabled="disableStatus">
  70. </el-input>
  71. </el-form-item>
  72. <el-form-item class="info-line online">
  73. <span>开发功能概要</span>
  74. <el-input v-model="infolist.devFunc" placeholder="开发功能概要" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
  75. :disabled="disableStatus">
  76. </el-input>
  77. </el-form-item>
  78. <div class="info-line">
  79. <el-form-item>
  80. <span>开发工单名称</span>
  81. <el-input v-model="infolist.itWoName" placeholder="IT开发工单名称" :disabled="!infolist.woType||vision == '记录开发信息'">
  82. </el-input>
  83. </el-form-item>
  84. <el-form-item>
  85. <span>开发工单编号</span>
  86. <el-input v-model="infolist.itWoNo" placeholder="IT开发工单编号" :disabled="!infolist.woType||vision == '记录开发信息'">
  87. </el-input>
  88. </el-form-item>
  89. <el-form-item>
  90. <span>提交时间</span>
  91. <el-date-picker :disabled="!infolist.woType||vision == '记录开发信息'" v-model="infolist.itSubTime" type="date"
  92. placeholder="提交时间">
  93. </el-date-picker>
  94. </el-form-item>
  95. </div>
  96. <div class="info-line" v-if="vision == '记录开发信息'">
  97. <el-form-item>
  98. <span>需求工单名称</span>
  99. <el-input v-model="infolist.elecWoName" placeholder="线上渠道业务需求工单名称" :disabled="titname != '审批'">
  100. </el-input>
  101. </el-form-item>
  102. <el-form-item>
  103. <span>需求工单编号</span>
  104. <el-input v-model="infolist.elecWoNo" placeholder="线上渠道业务需求工单编号" :disabled="titname != '审批'">
  105. </el-input>
  106. </el-form-item>
  107. <el-form-item>
  108. <span>提交时间</span>
  109. <el-date-picker :disabled="titname != '审批'" v-model="infolist.elecSubTime" type="date"
  110. placeholder="提交时间">
  111. </el-date-picker>
  112. </el-form-item>
  113. </div>
  114. <div style="padding:0 20px 0 120px;margin-bottom: 20px;" v-if="disableStatus">
  115. <uploadDown :datalist="datalist" :dialogStatus="uploadstatus"></uploadDown>
  116. </div>
  117. <div style="padding-left: 100px" v-if="!disableStatus">
  118. <myUpload @uploadBack="uploadBack" :fileInfo="fileInfo" :fileList="fileInfo.fileList">
  119. </myUpload>
  120. </div>
  121. <el-form-item class="info-line online" v-if="vision == '审批'">
  122. <span>审批说明</span>
  123. <el-input v-model="remark" placeholder="审批说明" type="textarea" :autosize="{ minRows: 3, maxRows: 10}"
  124. :disabled="titname == '查看'">
  125. </el-input>
  126. </el-form-item>
  127. <div style="margin-bottom: 20px;padding: 0 20px;" v-if="titname != '添加'">
  128. <el-table class="com-table" ref="multipleTable" :data="rovaList" tooltip-effect="dark"
  129. size="small" border style="width: 100%">
  130. <el-table-column prop="taskId" label="编号">
  131. </el-table-column>
  132. <el-table-column prop="taskName" label="环节">
  133. </el-table-column>
  134. <el-table-column prop="assigneeName" label="处理人">
  135. </el-table-column>
  136. <el-table-column prop="assigneeNo" label="处理人工号">
  137. </el-table-column>
  138. <el-table-column prop="opTime" label="处理时间">
  139. </el-table-column>
  140. <!-- <el-table-column prop="remark" label="备注">
  141. </el-table-column> -->
  142. </el-table>
  143. </div>
  144. </el-form>
  145. <div slot="footer" class="dialog-footer myfooter">
  146. <el-button v-if="titname != '查看' && vision == '记录开发信息'" type="primary" @click="dialogCli(2)">确 定
  147. </el-button>
  148. <el-button v-if="titname == '添加'" type="primary" @click="checkexa = true">确 定</el-button>
  149. <el-button v-if="vision == '结束'||titname == '查看'" @click="dialogCli(3)">确 定</el-button>
  150. <el-button @click="dialogCli(3)">取 消</el-button>
  151. </div>
  152. </div>
  153. </el-dialog>
  154. <el-dialog title="选择审批人" :visible.sync="checkexa" width="50%" :destroy-on-close="true"
  155. :modal-append-to-body="false" :close-on-click-modal="false">
  156. <div>
  157. <el-form :model="infolist" ref="infolist" :rules="rules">
  158. <el-form-item prop="visiblec" class="info-line online">
  159. <span>审批人员</span>
  160. <deptTreeOnly class="tree" @treeCheck="treeCheckonly" :defaultList="defaultList"
  161. :type="depttype" :closeList="closeList"></deptTreeOnly>
  162. <div class="tree treeUser">
  163. <p>{{treeListonly.leaderAuditName}}
  164. <i v-if="treeListonly.leaderAuditName" @click="deletes()"
  165. class="el-icon-error"></i>
  166. </p>
  167. </div>
  168. </el-form-item>
  169. </el-form>
  170. <div slot="footer" style="text-align: right;padding-bottom: 20px;">
  171. <el-button type="primary" @click="dialogCliadd" v-if="!visionchonly">确 定</el-button>
  172. <el-button type="primary" @click="dialogCli(2)" v-if="visionchonly">确 定</el-button>
  173. <el-button @click="checkexa = false">取 消</el-button>
  174. </div>
  175. </div>
  176. </el-dialog>
  177. <myMessage :messTit='messTit' @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible"
  178. v-if="centerDialogVisible"></myMessage>
  179. </fullscreen>
  180. </template>
  181. <script>
  182. import mySearch from "../../../components/search.vue";
  183. import myMessage from "../../../components/myMessage.vue"
  184. import toolList from '../../../components/toolList'
  185. import myUpload from '../../../components/upload'
  186. import uploadDown from '../../../components/uploadDown.vue'
  187. import deptTreeOnly from "../../../components/deptTreeOnly.vue"
  188. export default {
  189. components: {
  190. mySearch,
  191. myMessage,
  192. toolList,
  193. myUpload,
  194. uploadDown,
  195. deptTreeOnly
  196. },
  197. data() {
  198. const woName = (rule, value, callback) => {
  199. if (!this.infolist.woName) {
  200. callback(new Error('不能为空'))
  201. } else {
  202. callback()
  203. }
  204. }
  205. const terminal = (rule, value, callback) => {
  206. if (!this.terminal) {
  207. callback(new Error('不能为空'))
  208. } else {
  209. callback()
  210. }
  211. }
  212. return {
  213. rules: {
  214. woName: [{
  215. required: true,
  216. trigger: 'blur',
  217. validator: woName
  218. }],
  219. terminal: [{
  220. required: true,
  221. trigger: 'change',
  222. validator: terminal
  223. }],
  224. },
  225. tooltit: '线上合作渠道合作开发',
  226. fullscreen: false,
  227. total: 0,
  228. pageSize: 1,
  229. tableData: [{}],
  230. dialogStatus: false,
  231. disableStatus: false,
  232. titname: '',
  233. infolist: {
  234. itSubTime:'',
  235. elecSubTime:''
  236. },
  237. userInfo: {},
  238. params: {},
  239. centerDialogVisible: false,
  240. messTit: '',
  241. delid: '',
  242. loading: false,
  243. loadinged: false,
  244. fileInfo: {
  245. limit: 5,
  246. url: '/bpm/api/upload',
  247. fileList: []
  248. },
  249. rovaList: [],
  250. vision: '',
  251. datalist: {
  252. url: '/bpm/api/download',
  253. type: 1
  254. },
  255. uploadstatus: false,
  256. rovaList: [],
  257. mydisable: 1,
  258. opname: '',
  259. opno: '',
  260. attList: [],
  261. options: [],
  262. // terminal:'720193003341541376',
  263. terminal:'720549298208940032',
  264. remark:'',
  265. visionsts:'1',
  266. ifopt:[
  267. {
  268. id:1,
  269. name:'是'
  270. },{
  271. id:0,
  272. name:'否'
  273. }
  274. ],
  275. checkexa: false,
  276. treeListonly: {},
  277. defaultList: [],
  278. closeList: false,
  279. visionchonly: false,
  280. depttype: 0,
  281. }
  282. },
  283. methods: {
  284. deletes() {
  285. this.treeListonly = {};
  286. this.closeList = !this.closeList;
  287. },
  288. treeCheckonly(v) {
  289. this.treeListonly = v;
  290. },
  291. closedia() {
  292. this.infolist = {};
  293. this.attList = [];
  294. this.fileInfo.fileList = [];
  295. this.dialogStatus = false;
  296. this.checkexa = false;
  297. },
  298. //获取列表
  299. getList(v, n) {
  300. this.pageSize = n;
  301. let _this = this;
  302. this.loading = true;
  303. v.procName = "合作开发流程";
  304. this.$http({
  305. url: "/bpm/api/queryToDoAndFinishTaskList",
  306. method: "post",
  307. headers: {
  308. "Content-Type": "application/json",
  309. "page": '{"pageNo":"' + n + '","pageSize":"10"}'
  310. },
  311. data: v,
  312. }).then((res) => {
  313. this.tableData = res.data.data;
  314. this.total = res.data.totalRecord;
  315. this.loading = false;
  316. });
  317. },
  318. // 分页
  319. currchange(v) {
  320. this.pageSize = v;
  321. this.getList(this.params, this.pageSize);
  322. },
  323. //申请
  324. dialogCheck(v, n) {
  325. this.infolist.itSubTime = '';
  326. this.infolist.elecSubTime = '';
  327. this.dialogStatus = true;
  328. let infolist = Object.assign({}, n);
  329. this.vision = '';
  330. this.visionsts = '';
  331. if (v === 1) {
  332. this.titname = '查看';
  333. this.disableStatus = true;
  334. } else if (v === 2) {
  335. this.titname = '审批';
  336. this.disableStatus = true;
  337. } else if (v === 3) {
  338. this.titname = '添加';
  339. this.disableStatus = false;
  340. return
  341. }
  342. this.$http({
  343. url: '/bpm/api/taskInit',
  344. method: "post",
  345. headers: {
  346. "Content-Type": "application/json",
  347. },
  348. data: {
  349. woNo: n.woNo
  350. },
  351. }).then((res) => {
  352. // this.infolist = Object.assign({}, res.data);
  353. this.terminal = infolist.procId;
  354. this.opname = res.data.opName;
  355. this.opno = res.data.opNo;
  356. this.infolist = JSON.parse(res.data.params.terminalRes);
  357. this.infolist.procId=infolist.procId;
  358. this.infolist.procVersion=infolist.procVersion;
  359. this.remark=infolist.remark;
  360. this.infolist.stepId=infolist.stepId;
  361. this.infolist.taskId=infolist.taskId;
  362. this.infolist.taskName=infolist.taskName;
  363. this.infolist.opName=infolist.opName;
  364. this.infolist.opNo=infolist.opNo;
  365. this.infolist.opTime=infolist.opTime;
  366. this.infolist.woNo=infolist.woNo;
  367. this.visionchonly = false;
  368. if (res.data.taskList[res.data.taskList.length - 1].taskName == '流程发起') {
  369. this.disableStatus = false;
  370. this.vision = '流程发起';
  371. this.visionchonly = true;
  372. }else if (res.data.taskList[res.data.taskList.length - 1].taskName == '记录开发信息') {
  373. this.vision = '记录开发信息';
  374. }
  375. this.datalist.attList = JSON.parse(res.data.params.attList);
  376. this.attList = [];
  377. this.fileInfo.fileList = [];
  378. this.datalist.attList.forEach(item => {
  379. item.id = item.attchFileId;
  380. this.fileInfo.fileList.push({
  381. name: item.fileName,
  382. url: '',
  383. id: item.id,
  384. attchFileId: item.attchFileId,
  385. fileName: item.fileName
  386. });
  387. this.attList.push({
  388. name: item.fileName,
  389. url: '',
  390. id: item.id,
  391. attchFileId: item.attchFileId,
  392. fileName: item.fileName
  393. });
  394. })
  395. this.rovaList = res.data.taskList;
  396. this.uploadstatus = true;
  397. });
  398. },
  399. //审批
  400. dialogCli(v) {
  401. this.dialogStatus = false;
  402. if (v === 3) {
  403. this.infolist = {};
  404. this.attList = [];
  405. this.fileInfo.fileList = [];
  406. this.checkexa = false;
  407. return
  408. }
  409. let _this = this;
  410. this.infolist.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD")
  411. this.infolist.itSubTime?this.infolist.itSubTime = _this.$formatDate(this.infolist.itSubTime, "YYYY-MM-DD"):'';
  412. this.infolist.elecSubTime?this.infolist.elecSubTime = _this.$formatDate(this.infolist.elecSubTime, "YYYY-MM-DD"):'';
  413. if (v === 1) {
  414. // let params = {
  415. // dealType: '1',
  416. // dealTypeDesc: '打回',
  417. // procId: this.infolist.procId,
  418. // procVersion: this.infolist.procVersion,
  419. // remark: this.remark,
  420. // stepId: this.infolist.stepId,
  421. // taskId: this.infolist.taskId,
  422. // taskName: this.infolist.taskName,
  423. // opName: this.infolist.opName,
  424. // opNo: this.opno,
  425. // opTime: this.infolist.opTime,
  426. // params: {
  427. // procExeCondiVal: '不同意',
  428. // terminalRes: JSON.stringify(this.infolist),
  429. // assigneeNo: this.opno,
  430. // assigneeName: this.opname,
  431. // },
  432. // woNo: this.infolist.woNo,
  433. // }
  434. // this.submitInfo("/bpm/api/submitTask", params);
  435. } else if (v === 2) {
  436. let param = {
  437. dealType: '0',
  438. dealTypeDesc: '提交',
  439. procId: this.infolist.procId,
  440. procVersion: this.infolist.procVersion,
  441. remark: this.remark,
  442. stepId: this.infolist.stepId,
  443. taskId: this.infolist.taskId,
  444. taskName: this.infolist.taskName,
  445. opName: this.infolist.opName,
  446. opNo: this.infolist.opNo,
  447. opTime: this.infolist.opTime,
  448. params: {
  449. woType: this.infolist.woType,
  450. terminalRes: JSON.stringify(this.infolist)
  451. },
  452. woNo: this.infolist.woNo,
  453. }
  454. if(this.vision != '记录开发信息'){
  455. param.params.assigneeNo = this.treeListonly.leaderAuditNo;
  456. param.params.assigneeName = this.treeListonly.leaderAuditName;
  457. }
  458. if(this.vision == '流程发起'){
  459. let attList = [];
  460. for (let i = 0; i < this.attList.length; i++) {
  461. attList.push({
  462. id: this.attList[i].id,
  463. fileCode: this.attList[i].fileCode,
  464. fileName: this.attList[i].fileName,
  465. opName: this.attList[i].opName,
  466. opNo: this.attList[i].opNo,
  467. opTime: this.attList[i].opTime,
  468. woNo: this.infolist.woNo,
  469. attchFileId: this.attList[i].attchFileId,
  470. });
  471. }
  472. param.params.attList = JSON.stringify(attList)
  473. }
  474. this.submitInfo("/bpm/api/submitTask", param);
  475. }
  476. },
  477. //添加
  478. dialogCliadd(v) {
  479. let _this = this;
  480. let info = {};
  481. info.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD");
  482. info.opNo = this.userInfo.loginNo;
  483. info.opName = this.userInfo.loginName;
  484. info.woTitle = this.infolist.woName;
  485. info.params = {};
  486. info.params.terminalRes = this.infolist;
  487. info.params.assigneeNo = this.treeListonly.leaderAuditNo;
  488. info.params.assigneeName = this.treeListonly.leaderAuditName;
  489. info.procId = this.terminal;
  490. for (let i = 0; i < this.options.length; i++) {
  491. if (this.terminal == this.options[i].procId) {
  492. info.procName = this.options[i].procName;
  493. info.procVersion = this.options[i].procVersion;
  494. }
  495. }
  496. let attList = [];
  497. for (let i = 0; i < this.attList.length; i++) {
  498. attList.push({
  499. id: this.attList[i].id,
  500. fileCode: this.attList[i].fileCode,
  501. fileName: this.attList[i].fileName,
  502. opName: this.attList[i].opName,
  503. opNo: this.attList[i].opNo,
  504. opTime: this.attList[i].opTime,
  505. woNo: this.infolist.woNo,
  506. attchFileId: this.attList[i].attchFileId,
  507. });
  508. }
  509. info.params.attList = JSON.stringify(attList)
  510. info.params.terminalRes = JSON.stringify(info.params.terminalRes);
  511. this.submitInfo("/bpm/api/startProc", info);
  512. },
  513. submitInfo(u, v) {
  514. let _this = this;
  515. this.$refs.infolist.validate(valid => {
  516. if (valid) {
  517. this.$http({
  518. url: u,
  519. method: "post",
  520. headers: {
  521. "Content-Type": "application/json",
  522. },
  523. data: v,
  524. }).then((res) => {
  525. if (res.data.result === 1) {
  526. _this.$message({
  527. message: res.data.desc,
  528. type: 'error'
  529. });
  530. } else {
  531. _this.$message({
  532. message: '成功',
  533. type: 'success'
  534. });
  535. _this.closedia();
  536. _this.infolist = {};
  537. _this.attList = [];
  538. _this.fileInfo.fileList = [];
  539. _this.checkexa = false;
  540. _this.getList(this.params, this.pageSize);
  541. }
  542. });
  543. }
  544. })
  545. },
  546. getStanding(){
  547. this.$router.push({
  548. path: '/dStanding',
  549. });
  550. this.setabList('开发流程台账', '/dStanding');
  551. },
  552. setabList(n, p) {
  553. let params = {
  554. children: "",
  555. name: n,
  556. rountPath: p,
  557. target: "_self",
  558. };
  559. for (let i = 0; i < this.$store.state.tabList.length; i++) {
  560. if (this.$store.state.tabList[i].name === params.name) {
  561. this.$store.state.tabList[i] = params;
  562. }
  563. }
  564. let set = new Set([...this.$store.state.tabList, params]);
  565. set.add(params);
  566. this.$store.commit("setDefaultActive", params.rountPath);
  567. this.$store.commit("setTabList", Array.from(set));
  568. },
  569. //流程
  570. getTermianl() {
  571. this.$http({
  572. url: "/bpm/api/queryBpmProcList",
  573. method: "post",
  574. headers: {
  575. "Content-Type": "application/json",
  576. "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  577. },
  578. data: {},
  579. }).then((res) => {
  580. this.options = res.data.data;
  581. });
  582. },
  583. closeMessage(v) {
  584. this.centerDialogVisible = false;
  585. let _this = this;
  586. if (v === 1) {
  587. _this.$http({
  588. url: "/bpm/api/deleteBpmPrePlugin",
  589. method: "post",
  590. headers: {
  591. "Content-Type": "application/json",
  592. },
  593. data: {
  594. id: this.delid
  595. },
  596. }).then((res) => {
  597. if (res.data.result === 1) {
  598. _this.$message({
  599. message: res.data.desc,
  600. type: 'error'
  601. });
  602. } else {
  603. _this.$message({
  604. message: '删除成功',
  605. type: 'success'
  606. });
  607. _this.getList(this.params, this.pageSize);
  608. }
  609. });
  610. }
  611. },
  612. //删除
  613. delLine(v) {
  614. this.centerDialogVisible = true;
  615. this.messTit = '即将删除此条数据, 是否删除?';
  616. this.delid = v.id;
  617. },
  618. //文件返回值
  619. uploadBack(v) {
  620. this.attList = v;
  621. },
  622. //功能栏
  623. iconCli(v) {
  624. if (v === 1) {
  625. this.getList(this.params, this.pageSize);
  626. }
  627. if (v === 2) {
  628. this.fullscreen = !this.fullscreen
  629. }
  630. },
  631. getUser() {
  632. this.userInfo = JSON.parse(window.sessionStorage.userInfo);
  633. }
  634. },
  635. mounted() {
  636. this.getList({}, 1);
  637. this.getUser();
  638. this.getTermianl();
  639. },
  640. created() {
  641. }
  642. }
  643. </script>
  644. <style scoped lang="scss">
  645. .onetab {
  646. margin-bottom: 20px;
  647. padding: 0 20px;
  648. }
  649. .titbox {
  650. div {
  651. float: right;
  652. i {
  653. font-size: 22px;
  654. margin-left: 20px;
  655. cursor: pointer;
  656. }
  657. }
  658. }
  659. .tabbox {
  660. margin-top: 15px;
  661. }
  662. .pageBox {
  663. text-align: right;
  664. margin-top: 10px;
  665. }
  666. .info-line {
  667. width: 100%;
  668. display: block;
  669. padding-left: 20px;
  670. div {
  671. width: 50%;
  672. display: inline-block;
  673. }
  674. span {
  675. width: 100px;
  676. display: inline-block;
  677. text-align: left;
  678. i {
  679. color: red;
  680. display: inline-block;
  681. padding-right: 5px;
  682. }
  683. }
  684. .el-select,
  685. .el-input {
  686. width: calc(100% - 120px);
  687. }
  688. }
  689. .online {
  690. width: 100%;
  691. .el-select {
  692. width: calc(100% - 100px);
  693. }
  694. span {
  695. vertical-align: top;
  696. }
  697. .el-textarea {
  698. width: calc(100% - 120px);
  699. }
  700. .tree {
  701. width: calc(50% - 60px);
  702. display: inline-block;
  703. margin-right: 20px;
  704. height: 300px;
  705. overflow-y: scroll;
  706. .el-icon-error {
  707. float: right;
  708. font-size: 20px;
  709. margin-top: 9px;
  710. cursor: pointer;
  711. }
  712. }
  713. .treeUser {
  714. margin: 0;
  715. border: 1px solid #ddd;
  716. p {
  717. background: #f4f4f4;
  718. padding: 0 20px;
  719. margin-bottom: 5px;
  720. }
  721. }
  722. .treeUserb {
  723. width: calc(100% - 100px);
  724. border: 1px solid #ddd;
  725. background: #f4f4f4;
  726. border-radius: 3px;
  727. height: auto;
  728. overflow: hidden;
  729. p {
  730. display: inline-block;
  731. padding: 0 20px;
  732. margin-bottom: 5px;
  733. }
  734. }
  735. }
  736. .adv-type {
  737. margin-top: 20px;
  738. display: flex;
  739. justify-content: space-between;
  740. flex-wrap: wrap;
  741. // border: 1px solid #ddd;
  742. border-radius: 5px;
  743. padding: 20px;
  744. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
  745. div {
  746. width: 33%;
  747. text-align: center;
  748. height: 80px;
  749. overflow: hidden;
  750. min-width: 100px;
  751. cursor: pointer;
  752. padding-top: 10px;
  753. margin: 10px 0;
  754. }
  755. div:hover {
  756. background: #CFE8FC;
  757. border-radius: 5px;
  758. }
  759. span {
  760. width: 100%;
  761. display: inline-block;
  762. height: 40px;
  763. // line-height: 40px;
  764. i {
  765. color: #0074D9;
  766. font-size: 36px;
  767. }
  768. }
  769. }
  770. </style>