index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. <template>
  2. <div class="table_total">
  3. <div class="table_header">
  4. <!-- <p>单表</p>
  5. <el-divider></el-divider> -->
  6. <div class="table_headerBtun" v-if="queryData.buttonList">
  7. <el-button :type=" item == 'A' ? 'primary' : item == 'M' ? 'success' : item == 'D' ? 'danger' : 'primary'" :icon="item == 'A' ? 'el-icon-plus' : item == 'M' ? 'el-icon-edit' : item == 'D' ? 'el-icon-delete' : 'el-icon-view'" plain @click="headerBtn(item)" size="small" v-for="(item,index) in queryData.buttonList.split('').filter((res) => {return res!='S'})"
  8. :key="index +'name'">{{item | btnConversion}}</el-button>
  9. <el-button v-if="tabnaem == 1" type="warning" plain @click="headerBtn('H')" icon="el-icon-d-arrow-left" size="small" >撤回</el-button>
  10. </div>
  11. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch">
  12. <dynamic-forms :type="0" :ref="item.columnName" :config="queryParams" @inputs="changeFn" :formConfig="item"
  13. v-for="(item,index) in queryData.queryList" :key='index' />
  14. <el-form-item>
  15. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  16. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  17. </el-form-item>
  18. </el-form>
  19. </div>
  20. <!-- 内容 -->
  21. <div class="table_nav">
  22. <el-table stripe v-loading="loading" :data="postList" @selection-change="handleSelectionChange" @row-click="rowclid">
  23. <el-table-column type="selection" width="45" style="color: red;" align="center" />
  24. <template v-for="(item, index) in tabData" >
  25. <el-table-column :width="item.columnName =='message_title'? '200' : tabData.length>13?zjFn(item.columnComment)*19:'auto'" :label="item.columnComment" align="center" :prop="item.columnName" :key="index" show-overflow-tooltip v-if="item.columnName !== 'send_user_id' && item.columnName !== 'message_id' && item.columnName !== 'receive_user_id'">
  26. <!-- :style="scope.row.list_class" scope.row[scope.column.property] -->
  27. <template slot-scope="scope" style="width: 100%;" >
  28. <img class="img_icon" v-if="item.htmlType=='imageUpload' && scope.row[scope.column.property] && scope.row[scope.column.property] !== '[]'" @click="imgBtn(JSON.parse(scope.row[scope.column.property])[0].url)"
  29. :src="scope.row[scope.column.property] == '[]' ? '' : JSON.parse(scope.row[scope.column.property])[0].url " alt="">
  30. <span :style="scope.row.list_class" v-else-if="item.htmlType=='imageUpload' && scope.row[scope.column.property] && scope.row[scope.column.property] == '[]'">暂无图片</span>
  31. <span :style="scope.row.list_class" v-else-if="item.columnName == 'status' ">{{ scope.row[scope.column.property] }}</span>
  32. <!-- && tabnaem == 'yidu' || tabnaem == 'weidu' -->
  33. <div v-else-if="item.columnName == 'message_title' && tabnaem == 'yidu' || tabnaem == 'weidu' " @click="titey(scope.row.message_id,scope.row.id)">
  34. {{scope.row[scope.column.property]}}
  35. </div>
  36. <div v-else style="width: 100%;">
  37. <span v-if="item.fkInfo">{{scope.row[scope.column.property].value}}</span>
  38. <span v-else>{{scope.row[scope.column.property]}}</span>
  39. </div>
  40. </template>
  41. </el-table-column>
  42. </template>
  43. <el-table-column v-if="tabnaem == 1" label="操作" align="center" class-name="small-padding fixed-width">
  44. <template slot-scope="scope">
  45. <el-button type="text" :icon="item == 'A' ? 'el-icon-plus' : item == 'M' ? 'el-icon-edit' : item == 'D' ? 'el-icon-delete' : 'el-icon-view'" plain @click.stop="headerBtn(item,scope.row)" size="small" v-for="(item,index) in queryData.buttonList.split('').filter((res) => {return res!='S' && res!='A'})"
  46. :key="index +'name'">{{item | btnConversion}}</el-button>
  47. <el-button
  48. size="mini"
  49. type="text"
  50. icon="el-icon-delete"
  51. @click.stop="rogress(scope.row)"
  52. >查看进度</el-button>
  53. </template>
  54. </el-table-column>
  55. </el-table>
  56. <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
  57. @pagination="getList" />
  58. </div>
  59. <BigPicture ref="BigPicture" :urls="pir_imgs"></BigPicture>
  60. <!-- 流程进度 -->
  61. <el-dialog :close-on-click-modal="false" title="流程进度" :visible.sync="modalShowdu" width="1180px" append-to-body>
  62. <div style="display: flex;">
  63. <div style="width: 60%;">
  64. <el-row :gutter="10" class="mb8">
  65. <el-col :span="1.5">
  66. <span style="margin-right: 10px;">未读收文</span>
  67. <el-button
  68. type="primary"
  69. plain
  70. size="mini"
  71. @click="eceive"
  72. >一键催收文</el-button>
  73. </el-col>
  74. </el-row>
  75. <el-table v-loading="loading" :data="listnemd" @selection-change="handleSelectionChange" stripe>
  76. <el-table-column type="selection" width="55" align="center" />
  77. <el-table-column label="姓名" align="center" prop="receive_user_name" />
  78. <el-table-column label="部门" align="center" prop="receive_dept_name" />
  79. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  80. <template slot-scope="scope">
  81. <el-button
  82. size="mini"
  83. type="text"
  84. @click="eceive(scope.row,2)"
  85. >催收文</el-button>
  86. </template>
  87. </el-table-column>
  88. </el-table>
  89. </div>
  90. <div style="width: 100%; margin-left: 20px;" >
  91. <el-row :gutter="10" class="mb8">
  92. <el-col style="margin-bottom: 8px;" :span="1.5">
  93. <span >已读收文</span>
  94. </el-col>
  95. </el-row>
  96. <el-table :border="false" v-loading="loading" :data="listnemrt" >
  97. <el-table-column label="姓名" align="center" prop="receive_user_name" />
  98. <el-table-column label="部门" align="center" prop="receive_dept_name" />
  99. <el-table-column width="180px" label="收文时间" align="center" prop="send_message_time" />
  100. </el-table>
  101. </div>
  102. <Flowshoe :instanceId="instanceId"></Flowshoe>
  103. </div>
  104. </el-dialog>
  105. </div>
  106. </template>
  107. <script>
  108. import {
  109. tableQuery,
  110. getQueryList,
  111. addbjectSave,
  112. getByTableName,
  113. delMenu,
  114. getObject,
  115. isech
  116. } from '@/api/system/table.js'
  117. import Flowshoe from '@/components/flowshoe'
  118. import { weiduhegw,addbjectSawen } from "@/api/system/isses";
  119. import {getUserProfile} from "@/api/system/config";
  120. import {
  121. mapGetters,
  122. mapState
  123. } from "vuex";
  124. export default {
  125. name: "index",
  126. components: {Flowshoe },
  127. data() {
  128. return {
  129. pir_imgs: '', // 图片链接
  130. // jue:'color: red;',
  131. tabData: [],
  132. multiple: true,
  133. single: true,
  134. open: false,
  135. // 遮罩层
  136. loading: true,
  137. total: 0,
  138. // 岗位表格数据
  139. postList: [],
  140. // 显示搜索条件
  141. showSearch: true,
  142. activeNames: ['1'],
  143. title: '',
  144. queryData: {},
  145. tabName: '',
  146. form: {
  147. table: '',
  148. objId: -1,
  149. fixedData: {
  150. condition: {
  151. }
  152. }
  153. },
  154. // 查询参数
  155. queryParams: {
  156. table: '',
  157. pageNo: 1,
  158. isUi: false,
  159. pageSize: 10,
  160. orderBy: 'create_time desc',
  161. fixedData: {
  162. condition: {
  163. }
  164. }
  165. },
  166. tabnaem:'',
  167. opeid:0,
  168. modalShowdu:false,
  169. listnemd:[],
  170. listnemrt:[],
  171. nread:{
  172. "table": "boman_message_receive",
  173. "orderBy": "create_time desc",
  174. pageNo:1,
  175. pageSize:30,
  176. fixedData:{
  177. condition:{
  178. message_id:0,
  179. status:'N',
  180. visible:'Y',
  181. send_user_id:0,
  182. }
  183. }
  184. },
  185. nreadtwo:{
  186. "table": "boman_message_receive",
  187. "orderBy": "create_time desc",
  188. pageNo:1,
  189. pageSize:30,
  190. fixedData:{
  191. condition:{
  192. message_id:0,
  193. status:'Y',
  194. visible:'Y',
  195. send_user_id:0,
  196. }
  197. }
  198. },
  199. eceivelist:{
  200. tableName: "urge_read_message",
  201. objId:-1,
  202. dataList:[{
  203. message_id:0,
  204. message_title:'',
  205. send_user_name:'',
  206. message_time:'',
  207. recieve_user_id:'',
  208. recieve_user_name:''
  209. }]
  210. },
  211. instanceId: 0,
  212. };
  213. },
  214. filters: {
  215. btnConversion(val) {
  216. switch (val) {
  217. case 'A':
  218. return '新增';
  219. case 'M':
  220. return '修改';
  221. case 'D':
  222. return '删除';
  223. case 'Q':
  224. return '查看';
  225. case 'S':
  226. return '提交';
  227. case 'U':
  228. return '反提交';
  229. case 'I':
  230. return '导入';
  231. case 'E':
  232. return '导出';
  233. }
  234. }
  235. },
  236. computed: {
  237. ...mapGetters(["sidebarRouters", "sidebar", "tabIndex"]),
  238. },
  239. mounted() {
  240. this.getUser()
  241. const route = this.$route;
  242. const {
  243. meta,
  244. path,
  245. sysTableName
  246. } = route;
  247. let items = this.sidebarRouters.filter(res => {
  248. return res.path == ('/' + path.split('/')[1])
  249. })[0].children.filter(res => {
  250. return res.path == path.split('/')[2]
  251. })[0]
  252. let naem = route.name.split('/')
  253. let nmaelist = naem[naem.length - 1]
  254. this.tabnaem = nmaelist
  255. console.log(nmaelist)
  256. // this.tabName = items.sysTableName
  257. this.tabName = naem[naem.length - 2]
  258. this.queryParams.table = naem[naem.length - 2]
  259. console.log( route)
  260. if(nmaelist == 1){
  261. this.queryParams.fixedData.condition.message_situation = nmaelist
  262. }else if(nmaelist == 'shouwen'){
  263. // this.queryParams.fixedData.condition.receive_user_id = this.queryParams.fixedData.condition.send_user_id
  264. // this.queryParams.fixedData.condition.send_user_id = undefined
  265. // this.queryParams.fixedData.condition.visible = 'Y'
  266. }else if(nmaelist == 'shenqingzhong'){
  267. this.queryParams.fixedData.condition.status = 4
  268. }else if(nmaelist == 2){
  269. this.queryParams.fixedData.condition.message_situation = 3
  270. }
  271. else if(nmaelist == 3){
  272. this.queryParams.fixedData.condition.message_situation = 4
  273. }
  274. else{
  275. this.queryParams.fixedData.condition.message_situation = undefined
  276. }
  277. // this.queryParams.fixedData.condition.message_situation
  278. this.form.table = items.sysTableName
  279. },
  280. methods: {
  281. zjFn(str) {
  282. let bytesCount = 0;
  283. for (var i = 0; i < str.length; i++)
  284. {
  285. var c = str.charAt(i);
  286. if (/^[\u0000-\u00ff]$/.test(c)) //匹配双字节
  287. {
  288. bytesCount += 1;
  289. }
  290. else
  291. {
  292. bytesCount += 2;
  293. }
  294. }
  295. return bytesCount
  296. },
  297. imgBtn(url) {
  298. this.pir_imgs = url
  299. this.$refs.BigPicture.hidden.status = true
  300. },
  301. routerFn(id, tables,index) {
  302. console.log(this.tabnaem)
  303. if (this.tabnaem == 'shouwen' ) {
  304. console.log(34)
  305. this.$router.push({
  306. path: '/business/collection',
  307. query: {
  308. id,
  309. tables,
  310. tabname:'shouwen'
  311. },
  312. })
  313. } else if (this.tabnaem == 1) {
  314. this.$router.push({
  315. path: '/business/issue',
  316. query: {
  317. id,
  318. tables,
  319. tabname:this.tabnaem
  320. },
  321. })
  322. } else if(this.tabnaem == 'yidu' || this.tabnaem == 'weidu'){
  323. this.$router.push({
  324. path: '/system/pdf',
  325. query: {
  326. id:this.opeid,
  327. index:id,
  328. tables:this.tabName,
  329. teiwog:this.tabnaem
  330. },
  331. })
  332. }
  333. else {
  334. this.$router.push({
  335. path: '/business/issue',
  336. query: {
  337. id,
  338. tables,
  339. },
  340. })
  341. }
  342. },
  343. headerBtn(item,inhe) {
  344. console.log(inhe)
  345. const _this = this
  346. switch (item) {
  347. case 'A':
  348. {
  349. this.routerFn(-1, this.tabName)
  350. return
  351. }
  352. case 'M':
  353. {
  354. if (this.single && inhe == undefined) {
  355. this.msgInfo('请勾选一条信息')
  356. return
  357. }
  358. // const id = inhe.id || this.ids.join(',')
  359. let id = []
  360. if(inhe !== undefined){
  361. let jie = []
  362. jie.push(inhe.id)
  363. id = jie
  364. }else{
  365. id = _this.ids
  366. console.log(id)
  367. }
  368. this.routerFn(id, this.tabName)
  369. return
  370. }
  371. case 'H':
  372. {
  373. if (this.multiple) {
  374. this.msgInfo('请勾选一条信息')
  375. return
  376. }
  377. // _this.ids = _this.ids.join(',')
  378. const id = _this.ids.join(',')
  379. this.$confirm('是否确认撤回数据项?', "警告", {
  380. confirmButtonText: "确定",
  381. cancelButtonText: "取消",
  382. type: "warning"
  383. }).then(function() {
  384. console.log(id)
  385. return isech(
  386. id
  387. );
  388. }).then(() => {
  389. _this.getList();
  390. _this.msgSuccess("撤回成功");
  391. })
  392. return
  393. }
  394. case 'D':
  395. {
  396. if (this.multiple && inhe == undefined) {
  397. this.msgInfo('请勾选一条信息')
  398. return
  399. }
  400. // console.log(_this.ids.join(','))
  401. let id = []
  402. if(inhe !== undefined){
  403. let jie = []
  404. jie.push(inhe.id)
  405. id = jie
  406. }else{
  407. id = _this.ids
  408. console.log(id)
  409. }
  410. console.log(id)
  411. this.$confirm('是否确认删除?', "警告", {
  412. confirmButtonText: "确定",
  413. cancelButtonText: "取消",
  414. type: "warning"
  415. }).then(function() {
  416. return delMenu({
  417. table: _this.tabName,
  418. idList: id
  419. });
  420. }).then(() => {
  421. _this.getList();
  422. _this.msgSuccess("删除成功");
  423. })
  424. return
  425. }
  426. case 'Q':
  427. {
  428. if (this.single) {
  429. this.msgInfo('请勾选一条信息')
  430. return
  431. }
  432. // const id = this.idsty.join(',')
  433. const id = this.ids.join(',')
  434. const index = this.idsty.join(',')
  435. this.opeid = index
  436. // const id = -1
  437. this.routerFn(id, this.tabName)
  438. // this.handleQuery()
  439. return
  440. }
  441. case 'S':
  442. {
  443. return
  444. }
  445. case 'U':
  446. {
  447. return
  448. }
  449. case 'E':
  450. {
  451. this.handleExport()
  452. return
  453. }
  454. }
  455. },
  456. rowclid(row){
  457. console.log(row)
  458. this.opeid = row.message_id
  459. this.routerFn(row.id,this.tabName)
  460. },
  461. // 取消按钮
  462. cancel() {
  463. this.open = false;
  464. this.reset();
  465. },
  466. /** 导出按钮操作 */
  467. handleExport() {
  468. this.download('system/post/export', {
  469. ...this.queryParams
  470. }, `post_${new Date().getTime()}.xlsx`)
  471. },
  472. // 多选框选中数据
  473. handleSelectionChange(selection) {
  474. console.log(selection)
  475. this.ids = selection.map(item => item.id)
  476. this.idsty = selection.map(item => item.message_id)
  477. this.idee = selection
  478. this.single = selection.length != 1
  479. this.multiple = !selection.length
  480. },
  481. changeFn(obj) {
  482. for (let key in obj) {
  483. this.queryParams.fixedData.condition[key] = obj[key]
  484. }
  485. },
  486. // 表单重置
  487. reset() {
  488. this.form = {
  489. table: this.tabName,
  490. objId: '',
  491. fixedData: {
  492. condition: {
  493. }
  494. },
  495. };
  496. this.resetForm("form");
  497. },
  498. resetQuery() {
  499. this.resetForm("queryForm");
  500. this.handleQuery();
  501. },
  502. /** 搜索按钮操作 */
  503. handleQuery() {
  504. this.queryParams.pageNo = 1;
  505. this.grabFn(this.queryData.queryList, this.queryParams.fixedData.condition)
  506. this.getList();
  507. },
  508. // 抓取参数
  509. grabFn(arr, parForm) {
  510. for (let item of arr) {
  511. if (item.htmlType == 'checkbox' || item.htmlType == 'imageUpload' || item.htmlType == 'fileUpload') {
  512. if (this.$refs[item.columnName][0].config.length) {
  513. parForm[item.columnName] = this.$refs[item.columnName][0].config
  514. }
  515. } else {
  516. parForm[item.columnName] = this.$refs[item.columnName][0].config[item.columnName]
  517. }
  518. }
  519. },
  520. getList() {
  521. getQueryList(this.queryParams).then(response => {
  522. this.total = response.data.total;
  523. this.tabData = response.data.tableHeadList
  524. this.postList = response.data.rows;
  525. for(var i = 0 ; i < this.postList.length; i++){
  526. console.log(this.postList[i].leavefrom_photo == '[]')
  527. }
  528. this.loading = false;
  529. });
  530. },
  531. init() {
  532. tableQuery({
  533. table: this.tabName,
  534. }).then(res => {
  535. let data = res.data
  536. this.queryData = data
  537. let buy = data.buttonList
  538. if(this.tabnaem == 1 || this.tabnaem == 'shouwen'){
  539. console.log(this.tabnaem)
  540. console.log(buy)
  541. this.queryData.buttonList = buy
  542. if(this.tabnaem == 'shouwen'){
  543. // this.queryData.buttonList = buy + 'Q'
  544. this.queryData.buttonList = buy
  545. }
  546. }else{
  547. this.queryData.buttonList = 'Q'
  548. }
  549. })
  550. },
  551. handleChange(val) {},
  552. // 点击标题
  553. titey(id,index){
  554. console.log(id)
  555. this.$router.push({
  556. path: '/system/pdf',
  557. query: {
  558. id,
  559. index,
  560. tables:this.tabName,
  561. teiwog:this.tabnaem
  562. },
  563. })
  564. },
  565. // 用户信息
  566. getUser() {
  567. getUserProfile().then(response => {
  568. if(this.tabnaem == 'yidu'){
  569. this.queryParams.fixedData.condition.visible = 'Y'
  570. this.queryParams.fixedData.condition.status = 'Y'
  571. this.queryParams.fixedData.condition.receive_user_id = response.data.id
  572. this.queryParams.fixedData.condition.send_user_id = undefined
  573. console.log(this.queryParams.fixedData.condition.send_user_id)
  574. }else if(this.tabnaem == 'weidu'){
  575. this.queryParams.fixedData.condition.visible = 'Y'
  576. this.queryParams.fixedData.condition.status = 'N'
  577. this.queryParams.fixedData.condition.receive_user_id = response.data.id
  578. this.queryParams.fixedData.condition.send_user_id = undefined
  579. }else if(this.tabnaem == 'shouwen'){
  580. // this.queryParams.fixedData.condition.visible = 'Y'
  581. // this.queryParams.fixedData.condition.receive_user_id = response.data.id
  582. this.queryParams.fixedData.condition.send_user_id = undefined
  583. }
  584. else{
  585. this.queryParams.fixedData.condition.send_user_id = response.data.id
  586. }
  587. // this.queryParams.fixedData.condition.receive_user_id = response.data.id
  588. // this.user = response.data;
  589. // this.getLisalendar()
  590. // this.getLismemorandum()
  591. this.nread.fixedData.condition.send_user_id = response.data.id
  592. this.nreadtwo.fixedData.condition.send_user_id = response.data.id
  593. this.init();
  594. this.getList();
  595. });
  596. },
  597. // 查看流程进度
  598. rogress(row){
  599. this.modalShowdu = true
  600. this.instanceId = row.id
  601. this.nread.fixedData.condition.message_id = row.id
  602. this.nreadtwo.fixedData.condition.message_id = row.id
  603. this.querjtgoe = row
  604. this.weiug()
  605. this.yidue()
  606. },
  607. // 查看未读
  608. weiug(){
  609. this.loading = true;
  610. weiduhegw(this.nread).then(res => {
  611. console.log(res)
  612. this.loading = false
  613. this.listnemd = res.data.rows
  614. })
  615. },
  616. // 查看已读
  617. yidue(){
  618. this.loading = true;
  619. weiduhegw(this.nreadtwo).then(res => {
  620. console.log(res)
  621. this.loading = false
  622. this.listnemrt = res.data.rows
  623. })
  624. },
  625. // 催收文
  626. eceive(row,index){
  627. if (this.multiple && index == undefined) {
  628. this.msgInfo('请勾选一条信息')
  629. return
  630. }
  631. console.log(row)
  632. const id = row.id || this.ids.join(',')
  633. let huew = []
  634. // if(row !== undefined){
  635. // this.idee = []
  636. // }
  637. if(this.idee.length > 0){
  638. console.log(345)
  639. for(var j = 0 ; j < this.idee.length; j++ ){
  640. this.eceivelist.dataList[j] = {message_id:0,receive_user_id:0,receive_user_name:'',message_title:'',send_user_name:'',send_user_id:0,message_time:'',}
  641. this.eceivelist.dataList[j].message_id = this.idee[j].message_id
  642. this.eceivelist.dataList[j].receive_user_id = this.idee[j].receive_user_id
  643. this.eceivelist.dataList[j].receive_user_name = this.idee[j].receive_user_name
  644. this.eceivelist.dataList[j].message_title = this.querjtgoe.message_title
  645. this.eceivelist.dataList[j].send_user_name = this.querjtgoe.send_user_name
  646. this.eceivelist.dataList[j].send_user_id = this.querjtgoe.send_user_id
  647. this.eceivelist.dataList[j].message_time = this.querjtgoe.message_time
  648. }
  649. }else{
  650. this.eceivelist.dataList =[{message_id:0,receive_user_id:0,receive_user_name:'',message_title:'',send_user_name:'',send_user_id:0,message_time:''}]
  651. this.eceivelist.dataList[0].message_id = row.message_id
  652. this.eceivelist.dataList[0].receive_user_id = row.receive_user_id
  653. this.eceivelist.dataList[0].receive_user_name = row.receive_user_name
  654. this.eceivelist.dataList[0].message_title = this.querjtgoe.message_title
  655. this.eceivelist.dataList[0].send_user_name = this.querjtgoe.send_user_name
  656. this.eceivelist.dataList[0].send_user_id = this.querjtgoe.send_user_id
  657. this.eceivelist.dataList[0].message_time = this.querjtgoe.message_time
  658. }
  659. console.log(this.eceivelist)
  660. this.adege()
  661. // this.querjtgoe
  662. // this.eceivelist.fixedData.message_id = row.message_id
  663. // this.eceivelist.fixedData.recieve_user_id = row.recieve_user_id
  664. // this.eceivelist.fixedData.recieve_user_name = row.recieve_user_name
  665. },
  666. // 催办接口
  667. adege(){
  668. addbjectSawen(this.eceivelist).then(res =>{
  669. console.log(res)
  670. if(res.code == 200){
  671. this.msgSuccess('提交成功');
  672. this.weiug()
  673. }
  674. })
  675. },
  676. },
  677. };
  678. </script>
  679. <style lang="scss">
  680. .el-table .cell, .el-table th div {
  681. // padding-right: 0;
  682. }
  683. .img_icon {
  684. width: 120px;
  685. height: 120px;
  686. cursor: pointer;
  687. object-fit: cover;
  688. }
  689. .table_header {
  690. .el-divider--horizontal {
  691. margin-top: 16px;
  692. }
  693. .table_headerBtun {
  694. margin-bottom: 20px;
  695. }
  696. }
  697. .table_nav {
  698. .el-collapse-item__wrap {
  699. border-bottom: 0;
  700. }
  701. .el-collapse-item__header {
  702. border-bottom: 0;
  703. font-size: 15px;
  704. font-family: PingFang SC;
  705. font-weight: bold;
  706. color: #3C8DBC;
  707. line-height: 36px;
  708. }
  709. // .el-form-item__content {
  710. // width: 55%;
  711. // }
  712. .el-collapse {
  713. border-top: 0;
  714. }
  715. }
  716. </style>
  717. <style scoped lang="scss">
  718. .app-main {
  719. // background-color: #eef0ff !important;
  720. }
  721. .table_total {
  722. background-color: #eef0ff;
  723. min-height: calc(100vh - 94px);
  724. padding: 20px;
  725. // 头部
  726. .table_header {
  727. background-color: #fff;
  728. border-radius: 6px;
  729. padding: 23px 23px 0px;
  730. margin-bottom: 20px;
  731. p {
  732. font-size: 15px;
  733. font-weight: bold;
  734. color: #3C8DBC;
  735. line-height: 36px;
  736. }
  737. p::before {
  738. content: "";
  739. display: block;
  740. width: 18px;
  741. height: 8px;
  742. background: #3C8DBC;
  743. border-radius: 3px;
  744. }
  745. }
  746. // 内容
  747. .table_nav {
  748. background-color: #fff;
  749. border-radius: 6px;
  750. padding: 23px;
  751. }
  752. }
  753. p {
  754. margin: 0;
  755. }
  756. </style>