formedit.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. let s4 = new SM4Util();
  2. let detailVue = new Vue({
  3. el: "#detailBox",
  4. data: {
  5. apiurl: apiurl,//基础的页面请求地址
  6. userId: "", //用户id
  7. userName: "", //用户中文名
  8. token: "",
  9. nowTab: "tab1",
  10. routeid: "",
  11. routeinfoid: "",
  12. directionid: "",
  13. formeditid: "",
  14. docmode: "",
  15. dotype: "",
  16. type: "",
  17. routerList: [],
  18. fileList: [],
  19. isEnd: false,
  20. startX: 0,
  21. endX: 0,
  22. deleteSlider: '',//滑动时的效果
  23. readonly: {
  24. ////新设置字段
  25. HYSJ: false,
  26. HYDD: false,
  27. CHRY: false,
  28. HYNR: false,
  29. LDYJ: false,
  30. HYWJ: false,
  31. BZ: false
  32. },
  33. form: {
  34. ID: "", //多一个id
  35. ///新设置字段
  36. APPCODE:"",
  37. HYSJ:"",
  38. HYSJ_KSSJ:"",
  39. HYSJ_JSSJ:"",
  40. HYBT:"",
  41. HYDD:"",
  42. CHRY:"",
  43. HYNR:"",
  44. BZ:"",
  45. TBR:"",
  46. TBUSERID:"",
  47. LRSJ:""
  48. },
  49. LDYJ: [],
  50. LDYJEDIT: true,
  51. arrayFile:[],
  52. optionType: "",
  53. optionContent: "",
  54. showSave: false,
  55. buttonList: []
  56. },
  57. methods: {
  58. dateFtt: (fmt, date) => {
  59. var o = {
  60. "M+": date.getMonth() + 1, //月份
  61. "d+": date.getDate(), //日
  62. "h+": date.getHours(), //小时
  63. "m+": date.getMinutes(), //分
  64. "s+": date.getSeconds(), //秒
  65. "q+": Math.floor((date.getMonth() + 3) / 3), //季度
  66. "S": date.getMilliseconds() //毫秒
  67. };
  68. if (/(y+)/.test(fmt))
  69. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
  70. for (var k in o)
  71. if (new RegExp("(" + k + ")").test(fmt))
  72. fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  73. return fmt;
  74. },
  75. changeTab: (tabCode) => {
  76. _this.nowTab = tabCode;
  77. if (_this.nowTab == "tab1") {
  78. } else if (_this.nowTab == "tab2") {
  79. _this.getFileList();
  80. } else if (_this.nowTab == "tab3") {
  81. _this.getRouterList();
  82. }
  83. },
  84. getRouterList: () => {
  85. _this.routerList = [];
  86. let postData = {
  87. directionid: _this.directionid,
  88. userid: _this.userId,
  89. routeid: _this.routeid,
  90. routeinfoid: _this.routeinfoid,
  91. }
  92. $http({
  93. method: 'post',
  94. baseURL: _this.apiurl,
  95. url: "g2app/abase/queryDataRouteList",
  96. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  97. headers: {
  98. 'Content-Type': 'application/json',
  99. 'Authorization': "Bearer " + _this.token
  100. }
  101. }).then(res => {
  102. let response = _this.utils.strToJson(s4.decryptData_CBC(res.data.data));
  103. response.data.forEach(function (item) {
  104. item.mainUser = [];
  105. item.copyUsers = [];
  106. item.isNow = false;
  107. item.USERS.forEach(function (item2) {
  108. if (item2.KIND == 0) {
  109. item.mainUser.push(item2.USERNAME);
  110. } else {
  111. item.copyUsers.push(item2.USERNAME);
  112. }
  113. })
  114. item.NAME = "【" + item.STARTNODENAME + "】转" + "【" + item.ENDNODENAME + "】"
  115. item.mainUser = item.mainUser.join(",");
  116. item.copyUsers = item.copyUsers.join(",");
  117. })
  118. _this.routerList = response.data;
  119. if (_this.routerList[_this.routerList.length - 1].ENDNODENAME == '结束') {
  120. _this.isEnd = true;
  121. _this.routerList[_this.routerList.length - 1].isNow = false;
  122. } else {
  123. _this.routerList[_this.routerList.length - 1].isNow = true;
  124. _this.isEnd = false;
  125. }
  126. })
  127. },
  128. ///附件列表
  129. getFileList: () => {
  130. _this.fileList = [];
  131. let postData = {
  132. tablename: "FILE_ATTACH",
  133. colums: "*",
  134. order: "ID desc",
  135. sqlwhere: {ROUTEINFOID: _this.routeinfoid},
  136. sqlinwhere: "",
  137. sqllikewhere: ""
  138. }
  139. $http({
  140. method: 'post',
  141. baseURL: _this.apiurl,
  142. url: "g2app/dataabase/queryDataByCol",
  143. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  144. headers: {
  145. 'Content-Type': 'application/json',
  146. 'Authorization': "Bearer " + _this.token
  147. }
  148. }).then(res => {
  149. let response = _this.utils.strToJson(s4.decryptData_CBC(res.data.data));
  150. response.data.forEach(function (item) {
  151. item.deleteSlider = "transform:translateX(0px)";
  152. })
  153. _this.fileList = response.data;
  154. console.log(_this.fileList);
  155. })
  156. },
  157. touchStart(e) {
  158. _this.startX = e.touches[0].clientX;
  159. },
  160. touchEnd(e) {
  161. let index = e.currentTarget.dataset.index;
  162. // 当前滑动的父级元素
  163. _this.endX = e.changedTouches[0].clientX;
  164. // 左滑
  165. if (_this.startX - _this.endX > 30) {
  166. _this.fileList.forEach(function (item) {
  167. item.deleteSlider = "transform:translateX(0px)";
  168. })
  169. _this.fileList[index].deleteSlider = "transform:translateX(-120px)";
  170. }
  171. // 右滑
  172. if (_this.startX - _this.endX < -30) {
  173. _this.fileList.forEach(function (item) {
  174. item.deleteSlider = "transform:translateX(0px)";
  175. })
  176. }
  177. _this.startX = 0;
  178. _this.endX = 0;
  179. },
  180. downLoad: (item) => {
  181. window.open(_this.apiurl + "g2work/files/" + item.FILEURL.slice(7));
  182. },
  183. deleteFile: (item) => {
  184. if (_this.dotype != 0) {
  185. _this.$nextTick(() => {
  186. $.confirm("您确定要删除当前附件吗?", "确认删除?", function () {
  187. let postData = {
  188. tablename: "FILE_ATTACH",
  189. id: item.ID
  190. };
  191. $http({
  192. method: 'post',
  193. baseURL: _this.apiurl,
  194. url: "g2app/dataabase/delDataById",
  195. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  196. headers: {
  197. 'Content-Type': 'application/json',
  198. 'Authorization': "Bearer " + _this.token
  199. }
  200. }).then(res => {
  201. let response = _this.utils.strToJson(s4.decryptData_CBC(res.data.data));
  202. if (response.success) {
  203. _this.getFileList();
  204. } else {
  205. $.alert("删除失败,请联系管理员!", "温馨提示");
  206. }
  207. })
  208. }, function () {
  209. //取消操作
  210. });
  211. })
  212. } else {
  213. _this.$nextTick(() => {
  214. $.alert("当前模式下无法删除附件", "温馨提示");
  215. })
  216. }
  217. },
  218. ////转发
  219. sendBtn: () => {
  220. if (_this.dotype != 0) {
  221. _this.form.HYSJ=_this.form.HYSJ_KSSJ+"—"+_this.form.HYSJ_JSSJ;
  222. let formData = { };
  223. for (let key in _this.form) {
  224. if (key.indexOf("_") == -1) {
  225. formData[key] = _this.form[key]
  226. }
  227. }
  228. let arrayData = [];
  229. arrayData.push(formData)
  230. let postData = {
  231. ckey: "SX_HYFK",
  232. id: _this.form.ID,
  233. routeid: _this.routeid,
  234. routeinfoid: _this.routeinfoid,
  235. routeinfotitle: _this.form.HYBT.replace(/\n/g, '').replace(/\s/g, ''),//self.data.HYBT,
  236. directionid: _this.directionid,
  237. formeditid: _this.formeditid,
  238. data: JSON.stringify(arrayData)
  239. };
  240. // console.log({data: s4.encryptData_CBC(JSON.stringify(postData))})
  241. $http({
  242. method: 'post',
  243. baseURL: _this.apiurl,
  244. url: "g2app/abase/saveData",
  245. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  246. headers: {
  247. 'Content-Type': 'application/json',
  248. 'Authorization': "Bearer " + _this.token
  249. }
  250. }).then(res => {
  251. let response = _this.utils.strToJson(s4.decryptData_CBC(res.data.data));
  252. console.log(response);
  253. if (response.success) {
  254. location.href = "sendedit.html?routeid=" + _this.routeid + "&routeinfoid=" + _this.routeinfoid + "&directionid=" + _this.directionid + "&formeditid=" + _this.formeditid + "&docmode=" + _this.docmode + "&dotype=" + _this.dotype + "&type" + _this.type;
  255. } else {
  256. $.alert("保存表单失败,无法进行转发,请联系管理员!", "温馨提示");
  257. }
  258. })
  259. } else {
  260. _this.$nextTick(() => {
  261. $.alert("当前模式下无法进行转发", "温馨提示");
  262. })
  263. }
  264. },
  265. getItemCodeTable: (tablename) => {
  266. let postData = {
  267. ckey: tablename,
  268. routeinfoid: _this.routeinfoid
  269. }
  270. return $http({
  271. method: 'post',
  272. baseURL: _this.apiurl,
  273. url: "g2app/abase/queryDataCode",
  274. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  275. headers: {
  276. 'Content-Type': 'application/json',
  277. 'Authorization': "Bearer " + _this.token
  278. }
  279. })
  280. },
  281. getAllCodeTable: () => {
  282. $http.all([_this.getItemCodeTable('CODE_SECRET'), _this.getItemCodeTable('CODE_EMERGENCY'), _this.getItemCodeTable('CODE_SFDB')]).then($http.spread((first, second, third) => {
  283. let response1 = _this.utils.strToJson(s4.decryptData_CBC(first.data.data));
  284. let response2 = _this.utils.strToJson(s4.decryptData_CBC(second.data.data));
  285. let response3 = _this.utils.strToJson(s4.decryptData_CBC(third.data.data));
  286. _this.MIJI = response1.data.CODE_SECRET;
  287. _this.JJQK = response2.data.CODE_EMERGENCY;
  288. _this.SFDB = response3.data.CODE_SFDB;
  289. _this.getFormDetail();
  290. }))
  291. },
  292. ////获取表单详情数据
  293. getFormDetail: () => {
  294. let postData = {
  295. ckey: "SX_HYFK",
  296. id: 0,
  297. directionid: _this.directionid,
  298. formeditid: _this.formeditid,
  299. routeid: _this.routeid,
  300. routeinfoid: _this.routeinfoid
  301. }
  302. $http({
  303. method: 'post',
  304. baseURL: _this.apiurl,
  305. url: "g2app/abase/queryData",
  306. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  307. headers: {
  308. 'Content-Type': 'application/json',
  309. 'Authorization': "Bearer " + _this.token
  310. }
  311. }).then(res => {
  312. let response = _this.utils.strToJson(s4.decryptData_CBC(res.data.data));
  313. //0表单禁用
  314. if (_this.dotype == '0') {
  315. _this.readonly = {
  316. HYSJ: true,
  317. HYDD: true,
  318. CHRY: true,
  319. HYNR: true,
  320. LDYJ: true,
  321. HYWJ: true,
  322. BZ: true
  323. }
  324. } else {
  325. _this.readonly = {
  326. HYSJ: response.data.SX_HYFK["HYSJ.EREADONLY"] == "true",
  327. HYBT: response.data.SX_HYFK["HYBT.EREADONLY"] == "true",
  328. HYDD: response.data.SX_HYFK["HYDD.EREADONLY"] == "true",
  329. CHRY: response.data.SX_HYFK["CHRY.EREADONLY"] == "true",
  330. HYNR: response.data.SX_HYFK["HYNR.EREADONLY"] == "true",
  331. LDYJ: response.data.SX_HYFK["LDYJ.EREADONLY"] == "true",
  332. HYWJ: response.data.SX_HYFK["HYWJ.EREADONLY"] == "true",
  333. BZ: response.data.SX_HYFK["BZ.EREADONLY"] == "true"
  334. }
  335. }
  336. _this.form = {
  337. ID: response.data.SX_HYFK.ID,
  338. ///新加的
  339. APPCODE:response.data.SX_HYFK.ID,
  340. HYSJ:response.data.SX_HYFK.HYSJ == "" ? "" : response.data.SX_HYFK.HYSJ,
  341. HYSJ_KSSJ:(response.data.SX_HYFK.HYSJ == "" || response.data.SX_HYFK.HYSJ == null || response.data.SX_HYFK.HYSJ == undefined) ? _this.utils.datefmt("yyyy-MM-dd HH:mm:ss", _this.utils.getLocalDate1()) : _this.utils.datefmt("yyyy-MM-dd HH:mm:ss", response.data.SX_HYFK.HYSJ.split("—")[0]),
  342. HYSJ_JSSJ:(response.data.SX_HYFK.HYSJ == "" || response.data.SX_HYFK.HYSJ == null || response.data.SX_HYFK.HYSJ == undefined) ? _this.utils.datefmt("yyyy-MM-dd HH:mm:ss", _this.utils.getLocalDate1()) : _this.utils.datefmt("yyyy-MM-dd HH:mm:ss", response.data.SX_HYFK.HYSJ.split("—")[1]),
  343. HYBT: response.data.SX_HYFK.HYBT,
  344. HYDD: response.data.SX_HYFK.HYDD,
  345. CHRY: response.data.SX_HYFK.CHRY,
  346. HYNR: response.data.SX_HYFK.HYNR,
  347. BZ: response.data.SX_HYFK.BZ,
  348. TBR: response.data.SX_HYFK.TBR == "" ? _this.userName : response.data.SX_HYFK.TBR,
  349. TBUSERID: response.data.SX_HYFK.TBUSERID == "" ? _this.userId : response.data.SX_HYFK.TBUSERID,
  350. LRSJ: response.data.SX_HYFK.LRSJ == "" ? _this.utils.datefmt("yyyy-MM-dd HH:mm:ss", _this.utils.getLocalDate1()) : response.data.SX_HYFK.LRSJ
  351. }
  352. if (response.data.SX_HYFK.HYWJ && response.data.SX_HYFK.HYWJ != "") {
  353. _this.arrayFile = JSON.parse(response.data.SX_HYFK.HYWJ);
  354. }
  355. _this.getAllOption();
  356. _this.$nextTick(() => {
  357. _this.initInputPlug();
  358. })
  359. })
  360. },
  361. initInputPlug: () => {
  362. $("#HYSJ_KSSJ").calendar({
  363. onChange: function (p, values, displayValues) {
  364. _this.form.HYSJ_KSSJ = values[0];
  365. }
  366. });
  367. $("#HYSJ_JSSJ").calendar({
  368. onChange: function (p, values, displayValues) {
  369. _this.form.HYSJ_JSSJ = values[0];
  370. }
  371. });
  372. },
  373. ////保存事件
  374. saveBtn: () => {
  375. if (_this.dotype != 0) {
  376. _this.form.HYSJ=_this.form.HYSJ_KSSJ+"—"+_this.form.HYSJ_JSSJ;
  377. let formData = {};
  378. for (let key in _this.form) {
  379. if (key.indexOf("_") == -1) {
  380. formData[key] = _this.form[key]
  381. }
  382. }
  383. let arrayData = [];
  384. arrayData.push(formData)
  385. let postData = {
  386. ckey: "SX_HYFK",
  387. id: _this.form.ID,
  388. routeid: _this.routeid,
  389. routeinfoid: _this.routeinfoid,
  390. routeinfotitle: _this.form.HYBT.replace(/\n/g, '').replace(/\s/g, ''),//self.data.HYBT,
  391. directionid: _this.directionid,
  392. formeditid: _this.formeditid,
  393. data: JSON.stringify(arrayData)
  394. };
  395. // console.log(JSON.stringify(arrayData));
  396. $http({
  397. method: 'post',
  398. baseURL: _this.apiurl,
  399. url: "g2app/abase/saveData",
  400. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  401. headers: {
  402. 'Content-Type': 'application/json',
  403. 'Authorization': "Bearer " + _this.token
  404. }
  405. }).then(res => {
  406. let response = _this.utils.strToJson(s4.decryptData_CBC(res.data.data));
  407. if (response.success) {
  408. $.alert("保存成功!", "温馨提示");
  409. _this.getFormDetail();
  410. } else {
  411. $.alert("保存失败,请联系管理员!", "温馨提示");
  412. }
  413. })
  414. } else {
  415. _this.$nextTick(() => {
  416. $.alert("当前模式下无法进行保存", "温馨提示");
  417. })
  418. }
  419. },
  420. ////意见业务*****************************************************************************************start
  421. getItemOption: (code) => {
  422. let postData = data = {
  423. cmanid: _this.userId,
  424. routeinfoid: _this.routeinfoid,
  425. routeid: _this.routeid,
  426. tableid: "SX_HYFK",
  427. colid: code
  428. }
  429. return $http({
  430. method: 'post',
  431. baseURL: _this.apiurl,
  432. url: "g2app/abase/queryDataOpinion",
  433. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  434. headers: {
  435. 'Content-Type': 'application/json',
  436. 'Authorization': "Bearer " + _this.token
  437. }
  438. })
  439. },
  440. getAllOption: () => {
  441. _this.LDYJ = [];
  442. // _this.LDYJEDIT = false;
  443. $http.all([_this.getItemOption('LDYJ')]).then($http.spread((first) => {
  444. let response1 = _this.utils.strToJson(s4.decryptData_CBC(first.data.data));
  445. _this.LDYJ = response1.data;
  446. let editLDYJ = 0;
  447. _this.LDYJ.forEach(function (item) {
  448. if (item.ROUTEID == _this.routeid) {
  449. editLDYJ++
  450. }
  451. });
  452. if (editLDYJ > 0) {
  453. _this.LDYJEDIT = true;
  454. } else {
  455. _this.LDYJEDIT = false;
  456. }
  457. }))
  458. },
  459. deleteOption: (code) => {
  460. $.confirm("您确定要删除当前意见吗?", "确认删除?", function () {
  461. let postData = {
  462. cmanid: _this.userId,
  463. routeid: _this.routeid,
  464. tableid: "SX_HYFK",
  465. colid: code,
  466. };
  467. $http({
  468. method: 'post',
  469. baseURL: _this.apiurl,
  470. url: "g2app/abase/deleteDataOpinion",
  471. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  472. headers: {
  473. 'Content-Type': 'application/json',
  474. 'Authorization': "Bearer " + _this.token
  475. }
  476. }).then(res => {
  477. let response = _this.utils.strToJson(s4.decryptData_CBC(res.data.data));
  478. if (response.success) {
  479. _this.getAllOption();
  480. } else {
  481. $.alert("删除失败,请联系管理员!", "温馨提示");
  482. }
  483. })
  484. }, function () {
  485. //取消操作
  486. });
  487. },
  488. editOption: (type, index) => {
  489. _this.optionType = type;
  490. let nowEditObj = _this[type][index];
  491. if (_this.optionType == "") {
  492. $.alert("初始化失败,请联系管理员!", "温馨提示");
  493. } else {
  494. _this.optionContent = nowEditObj.OPINION;
  495. $(".open-popup").eq(0).click();
  496. }
  497. },
  498. addOption: (type) => {
  499. _this.optionType = type;
  500. _this.optionContent = "";
  501. if (_this.optionType == "") {
  502. $.alert("初始化失败,请联系管理员!", "温馨提示");
  503. } else {
  504. $(".open-popup").eq(0).click();
  505. }
  506. },
  507. saveOption: () => {
  508. $(".close-popup").eq(0).click();
  509. let postData = {
  510. cmanid: _this.userId,
  511. routeinfoid: _this.routeinfoid,
  512. routeid: _this.routeid,
  513. tableid: "SX_HYFK",
  514. colid: _this.optionType,
  515. opiniontype: 0,
  516. cresult: "",
  517. opinion: _this.optionContent,
  518. opinionimage: ""
  519. };
  520. $http({
  521. method: 'post',
  522. baseURL: _this.apiurl,
  523. url: "g2app/abase/saveDataOpinion",
  524. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  525. headers: {
  526. 'Content-Type': 'application/json',
  527. 'Authorization': "Bearer " + _this.token
  528. }
  529. }).then(res => {
  530. let response = _this.utils.strToJson(s4.decryptData_CBC(res.data.data));
  531. if (response.success) {
  532. _this.getAllOption();
  533. } else {
  534. $.alert("删除失败,请联系管理员!", "温馨提示");
  535. }
  536. })
  537. },
  538. ////意见业务*****************************************************************************************end
  539. getBtnList: () => {
  540. let postData = {
  541. ckey: "SX_HYFK",
  542. id: 0,
  543. directionid: _this.directionid,
  544. formeditid: _this.formeditid,
  545. routeid: _this.routeid,
  546. routeinfoid: _this.routeinfoid
  547. }
  548. $http({
  549. method: 'post',
  550. baseURL: _this.apiurl,
  551. url: "g2app/abase/queryData",
  552. data: {data: s4.encryptData_CBC(JSON.stringify(postData))},
  553. headers: {
  554. 'Content-Type': 'application/json',
  555. 'Authorization': "Bearer " + _this.token
  556. }
  557. }).then(res => {
  558. let response = _this.utils.strToJson(s4.decryptData_CBC(res.data.data));
  559. _this.buttonList = _this.dotype == 0 ? [] : response.data["SX_HYFK.FUNCLIST"];
  560. _this.buttonList.forEach(function (item) {
  561. if (item.CODE == "SAVEITEM") {
  562. _this.showSave = true;
  563. }
  564. })
  565. })
  566. },
  567. //调用打开永中的嵌入页
  568. openOfficePage: (item, type) => {
  569. let postData={
  570. type:type,
  571. obj:item
  572. }
  573. let dataString = s4.encryptData_CBC(JSON.stringify(postData));
  574. let goUrl = "officeedit.html?dataString=" + dataString;
  575. location.href = goUrl;
  576. }
  577. },
  578. created: function () {
  579. _this = this;
  580. let token = localStorage.getItem("mobile-token", _this.token);
  581. let userName = localStorage.getItem("mobile-userName", _this.userName);
  582. let userId = localStorage.getItem("mobile-userId", _this.userId);
  583. _this.userId = userId;
  584. _this.token = token;
  585. _this.userName = userName;
  586. _this.routeid = _this.utils.getUrlName("routeid");
  587. _this.routeinfoid = _this.utils.getUrlName("routeinfoid");
  588. _this.directionid = _this.utils.getUrlName("directionid");
  589. _this.formeditid = _this.utils.getUrlName("formeditid");
  590. _this.docmode = _this.utils.getUrlName("docmode");
  591. _this.dotype = _this.utils.getUrlName("dotype");
  592. _this.type = _this.utils.getUrlName("type");
  593. },
  594. mounted: function () {
  595. _this.getAllCodeTable();
  596. _this.getBtnList();
  597. }
  598. })