index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  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'">
  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. this.ids = selection.map(item => item.id)
  475. this.idsty = selection.map(item => item.message_id)
  476. this.idee = selection
  477. this.single = selection.length != 1
  478. this.multiple = !selection.length
  479. },
  480. changeFn(obj) {
  481. for (let key in obj) {
  482. this.queryParams.fixedData.condition[key] = obj[key]
  483. }
  484. },
  485. // 表单重置
  486. reset() {
  487. this.form = {
  488. table: this.tabName,
  489. objId: '',
  490. fixedData: {
  491. condition: {
  492. }
  493. },
  494. };
  495. this.resetForm("form");
  496. },
  497. resetQuery() {
  498. this.resetForm("queryForm");
  499. this.handleQuery();
  500. },
  501. /** 搜索按钮操作 */
  502. handleQuery() {
  503. this.queryParams.pageNo = 1;
  504. this.grabFn(this.queryData.queryList, this.queryParams.fixedData.condition)
  505. this.getList();
  506. },
  507. // 抓取参数
  508. grabFn(arr, parForm) {
  509. for (let item of arr) {
  510. if (item.htmlType == 'checkbox' || item.htmlType == 'imageUpload' || item.htmlType == 'fileUpload') {
  511. if (this.$refs[item.columnName][0].config.length) {
  512. parForm[item.columnName] = this.$refs[item.columnName][0].config
  513. }
  514. } else {
  515. parForm[item.columnName] = this.$refs[item.columnName][0].config[item.columnName]
  516. }
  517. }
  518. },
  519. getList() {
  520. getQueryList(this.queryParams).then(response => {
  521. this.total = response.data.total;
  522. this.tabData = response.data.tableHeadList
  523. this.postList = response.data.rows;
  524. for(var i = 0 ; i < this.postList.length; i++){
  525. console.log(this.postList[i].leavefrom_photo == '[]')
  526. }
  527. this.loading = false;
  528. });
  529. },
  530. init() {
  531. tableQuery({
  532. table: this.tabName,
  533. }).then(res => {
  534. let data = res.data
  535. this.queryData = data
  536. let buy = data.buttonList
  537. if(this.tabnaem == 1 || this.tabnaem == 'shouwen'){
  538. console.log(this.tabnaem)
  539. console.log(buy)
  540. this.queryData.buttonList = buy
  541. if(this.tabnaem == 'shouwen'){
  542. // this.queryData.buttonList = buy + 'Q'
  543. this.queryData.buttonList = buy
  544. }
  545. }else{
  546. this.queryData.buttonList = 'Q'
  547. }
  548. })
  549. },
  550. handleChange(val) {},
  551. // 点击标题
  552. titey(id,index){
  553. console.log(id)
  554. this.$router.push({
  555. path: '/system/pdf',
  556. query: {
  557. id,
  558. index,
  559. tables:this.tabName,
  560. teiwog:this.tabnaem
  561. },
  562. })
  563. },
  564. // 用户信息
  565. getUser() {
  566. getUserProfile().then(response => {
  567. if(this.tabnaem == 'yidu'){
  568. this.queryParams.fixedData.condition.visible = 'Y'
  569. this.queryParams.fixedData.condition.status = 'Y'
  570. this.queryParams.fixedData.condition.receive_user_id = response.data.id
  571. this.queryParams.fixedData.condition.send_user_id = undefined
  572. console.log(this.queryParams.fixedData.condition.send_user_id)
  573. }else if(this.tabnaem == 'weidu'){
  574. this.queryParams.fixedData.condition.visible = 'Y'
  575. this.queryParams.fixedData.condition.status = 'N'
  576. this.queryParams.fixedData.condition.receive_user_id = response.data.id
  577. this.queryParams.fixedData.condition.send_user_id = undefined
  578. }else if(this.tabnaem == 'shouwen'){
  579. // this.queryParams.fixedData.condition.visible = 'Y'
  580. // this.queryParams.fixedData.condition.receive_user_id = response.data.id
  581. this.queryParams.fixedData.condition.send_user_id = undefined
  582. }
  583. else{
  584. this.queryParams.fixedData.condition.send_user_id = response.data.id
  585. }
  586. // this.queryParams.fixedData.condition.receive_user_id = response.data.id
  587. // this.user = response.data;
  588. // this.getLisalendar()
  589. // this.getLismemorandum()
  590. this.nread.fixedData.condition.send_user_id = response.data.id
  591. this.nreadtwo.fixedData.condition.send_user_id = response.data.id
  592. this.init();
  593. this.getList();
  594. });
  595. },
  596. // 查看流程进度
  597. rogress(row){
  598. this.modalShowdu = true
  599. this.instanceId = row.id
  600. this.nread.fixedData.condition.message_id = row.id
  601. this.nreadtwo.fixedData.condition.message_id = row.id
  602. this.querjtgoe = row
  603. this.weiug()
  604. this.yidue()
  605. },
  606. // 查看未读
  607. weiug(){
  608. this.loading = true;
  609. weiduhegw(this.nread).then(res => {
  610. console.log(res)
  611. this.loading = false
  612. this.listnemd = res.data.rows
  613. })
  614. },
  615. // 查看已读
  616. yidue(){
  617. this.loading = true;
  618. weiduhegw(this.nreadtwo).then(res => {
  619. console.log(res)
  620. this.loading = false
  621. this.listnemrt = res.data.rows
  622. })
  623. },
  624. // 催收文
  625. eceive(row,index){
  626. if (this.multiple && index == undefined) {
  627. this.msgInfo('请勾选一条信息')
  628. return
  629. }
  630. const id = row.id || this.ids.join(',')
  631. let huew = []
  632. if(row !== undefined){
  633. this.idee = []
  634. }
  635. if(this.idee.length > 0){
  636. console.log(345)
  637. for(var j = 0 ; j < this.idee.length; j++ ){
  638. 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:''}
  639. this.eceivelist.dataList[j].message_id = this.idee[j].message_id
  640. this.eceivelist.dataList[j].receive_user_id = this.idee[j].receive_user_id
  641. this.eceivelist.dataList[j].receive_user_name = this.idee[j].receive_user_name
  642. this.eceivelist.dataList[j].message_title = this.querjtgoe.message_title
  643. this.eceivelist.dataList[j].send_user_name = this.querjtgoe.send_user_name
  644. this.eceivelist.dataList[j].send_user_id = this.querjtgoe.send_user_id
  645. this.eceivelist.dataList[j].message_time = this.querjtgoe.message_time
  646. }
  647. }else{
  648. this.eceivelist.dataList =[{message_id:0,receive_user_id:0,receive_user_name:'',message_title:'',send_user_name:'',send_user_id:0,message_time:''}]
  649. this.eceivelist.dataList[0].message_id = row.message_id
  650. this.eceivelist.dataList[0].receive_user_id = row.receive_user_id
  651. this.eceivelist.dataList[0].receive_user_name = row.receive_user_name
  652. this.eceivelist.dataList[0].message_title = this.querjtgoe.message_title
  653. this.eceivelist.dataList[0].send_user_name = this.querjtgoe.send_user_name
  654. this.eceivelist.dataList[0].send_user_id = this.querjtgoe.send_user_id
  655. this.eceivelist.dataList[0].message_time = this.querjtgoe.message_time
  656. }
  657. console.log(this.eceivelist)
  658. this.adege()
  659. // this.querjtgoe
  660. // this.eceivelist.fixedData.message_id = row.message_id
  661. // this.eceivelist.fixedData.recieve_user_id = row.recieve_user_id
  662. // this.eceivelist.fixedData.recieve_user_name = row.recieve_user_name
  663. },
  664. // 催办接口
  665. adege(){
  666. addbjectSawen(this.eceivelist).then(res =>{
  667. console.log(res)
  668. if(res.code == 200){
  669. this.msgSuccess('提交成功');
  670. this.weiug()
  671. }
  672. })
  673. },
  674. },
  675. };
  676. </script>
  677. <style lang="scss">
  678. .el-table .cell, .el-table th div {
  679. // padding-right: 0;
  680. }
  681. .img_icon {
  682. width: 120px;
  683. height: 120px;
  684. cursor: pointer;
  685. object-fit: cover;
  686. }
  687. .table_header {
  688. .el-divider--horizontal {
  689. margin-top: 16px;
  690. }
  691. .table_headerBtun {
  692. margin-bottom: 20px;
  693. }
  694. }
  695. .table_nav {
  696. .el-collapse-item__wrap {
  697. border-bottom: 0;
  698. }
  699. .el-collapse-item__header {
  700. border-bottom: 0;
  701. font-size: 15px;
  702. font-family: PingFang SC;
  703. font-weight: bold;
  704. color: #3C8DBC;
  705. line-height: 36px;
  706. }
  707. // .el-form-item__content {
  708. // width: 55%;
  709. // }
  710. .el-collapse {
  711. border-top: 0;
  712. }
  713. }
  714. </style>
  715. <style scoped lang="scss">
  716. .app-main {
  717. // background-color: #eef0ff !important;
  718. }
  719. .table_total {
  720. background-color: #eef0ff;
  721. min-height: calc(100vh - 94px);
  722. padding: 20px;
  723. // 头部
  724. .table_header {
  725. background-color: #fff;
  726. border-radius: 6px;
  727. padding: 23px 23px 0px;
  728. margin-bottom: 20px;
  729. p {
  730. font-size: 15px;
  731. font-weight: bold;
  732. color: #3C8DBC;
  733. line-height: 36px;
  734. }
  735. p::before {
  736. content: "";
  737. display: block;
  738. width: 18px;
  739. height: 8px;
  740. background: #3C8DBC;
  741. border-radius: 3px;
  742. }
  743. }
  744. // 内容
  745. .table_nav {
  746. background-color: #fff;
  747. border-radius: 6px;
  748. padding: 23px;
  749. }
  750. }
  751. p {
  752. margin: 0;
  753. }
  754. </style>