index.vue 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458
  1. <template>
  2. <div class="app-container">
  3. <div class="jeuhgs">
  4. <h3 style="text-align: center; font-size: 30px; color: red; margin-bottom: 20px;">潜山市教育局{{titlet}}稿纸</h3>
  5. <el-row :gutter="10" class="mb8">
  6. <el-col :span="1.5">
  7. <el-button
  8. type="primary"
  9. plain
  10. size="mini"
  11. @click="rogress"
  12. v-if="objeuisd !== -1"
  13. style="padding: 9px 15px; font-size: 12px; border-radius: 3px;"
  14. >查看进度</el-button>
  15. </el-col>
  16. </el-row>
  17. <el-form :model="querjtgoe" ref="querjtgoe" :rules="rules" v-show="showSearch" :inline="true" label-width="90px">
  18. <el-row :gutter="10" class="mb8">
  19. <el-col :span="12" style="border: 1px solid red; border-bottom: 0; padding: 15px 0 15px 10px;" >
  20. <el-form-item :label="titlet + '字号:'" prop="message_code">
  21. <el-input placeholder="请输入内容" v-model="querjtgoe.message_code">
  22. <el-button style="padding: 9px 15px; font-size: 12px; border-radius: 3px;" slot="append" @click="ziao">历史字号</el-button>
  23. </el-input>
  24. </el-form-item>
  25. </el-col>
  26. <el-col :span="12" style="border: 1px solid red; border-bottom: 0; border-left: 0; padding: 15px 0 15px 10px;">
  27. <el-form-item :label="titlet + '日期:'" prop="message_time">
  28. <el-date-picker :disabled="false" @change="iChange" v-model="querjtgoe.message_time" value-format="yyyy-MM-dd" style="width: 100%" type="date" :placeholder="'请输入'">
  29. </el-date-picker>
  30. </el-form-item>
  31. </el-col>
  32. <el-col :span="24" style="border: 1px solid red; border-bottom: 0; padding: 15px 0 15px 10px;">
  33. <el-form-item label="文件标题:" prop="message_title">
  34. <el-input
  35. v-model="querjtgoe.message_title"
  36. placeholder="请输入文件标题"
  37. clearable
  38. size="small"
  39. style="width: 100%"
  40. @keyup.enter.native="handleQuery"
  41. />
  42. </el-form-item>
  43. </el-col>
  44. <el-col :span="24" style="border: 1px solid red; border-bottom: 0; padding: 15px 0 5px 10px;">
  45. <el-form-item class="renhdys" label="正文上传:" prop="roleName">
  46. <el-upload :disabled="false" class="upload-demo" :headers="{Authorization: 'Bearer ' + getToken()}"
  47. :action="process + '/boman-file/upload'" :on-change="handleChangert"
  48. :on-success="upImageFn" :on-error="err" :on-remove="reseImage" :file-list="config" :on-preview="handlePictureCardPreview" :before-upload="befors">
  49. <el-button size="small" type="primary">点击上传</el-button>
  50. </el-upload>
  51. <div class="el-upload__tip" style="margin-left: 5px; color: red; margin-top: 0;">
  52. 请上传pdf文档,且不超过100MB
  53. </div>
  54. </el-form-item>
  55. </el-col>
  56. <el-col :span="24" style="border: 1px solid red; border-bottom: 0; padding: 15px 0 5px 10px;">
  57. <el-form-item class="renhdys" style="padding-bottom: 0;" label="附件上传:" prop="roleName">
  58. <el-upload :disabled="false" class="upload-demo" :headers="{Authorization: 'Bearer ' + getToken()}"
  59. :action="process + '/boman-file/upload'" :on-change="handleChangert"
  60. :on-preview="handlePictureCardPreview" :on-success="upImageFntwo" :on-error="err" :on-remove="reseImagetwo" :file-list="configtwo">
  61. <el-button size="small" type="primary">点击上传</el-button>
  62. </el-upload>
  63. <div class="el-upload__tip" style="margin-left: 5px; color: red; margin-top: 0; ">
  64. 只能上传jpg/png/txt/word/pdf/exe/RAR/ZIP/ofd/Excel文件,且不超过100MB
  65. </div>
  66. </el-form-item>
  67. </el-col>
  68. <el-col :span="24" style="border: 1px solid red; border-bottom: 0; padding: 15px 0 15px 10px;">
  69. <el-form-item class="renhdys" style="width: 100%;" label="分发人员:" prop="roleName">
  70. <el-input v-model="messageReun" :disabled="true" >
  71. <el-button style="padding: 9px 15px; font-size: 12px; border-radius: 3px;" size="small" type="primary" slot="prepend" @click="changeren">选择人员</el-button>
  72. </el-input>
  73. <!-- <p style="display: flex; justify-content: space-between;">
  74. <span style="width: 80%;">23</span>
  75. <el-button size="small" type="primary">点击上传</el-button>
  76. </p> -->
  77. </el-form-item>
  78. </el-col>
  79. <el-col :span="24" style="border: 1px solid red; border-bottom: 0; padding: 15px 0 15px 10px;">
  80. <el-form-item class="renhdys renhdytwo" style="display: flex; align-content: center;" label="分发单位:" prop="ompany">
  81. <!-- <el-input
  82. type="textarea"
  83. autosize
  84. :disabled="true"
  85. placeholder="请输入内容"
  86. v-model="mpany.ompany">
  87. </el-input> infinite-list infinite-listty-->
  88. <ul class="infinite-listopma " v-infinite-scroll="load" style="overflow:auto">
  89. <li v-for="item in mpany.ompany" :key = 'item'>{{item}}</li>
  90. </ul>
  91. <!-- <p><span>34</span></p> -->
  92. </el-form-item>
  93. </el-col>
  94. <el-col :span="24" style="border: 1px solid red; border-bottom: 0; padding: 15px 0 15px 10px;">
  95. <el-form-item class="renhdys renhdytwo" style="display: flex; align-content: center;" label="人员姓名:" prop="name">
  96. <ul class="infinite-listopma " v-infinite-scroll="load" style="overflow:auto">
  97. <li v-for="item in mpany.name" :key = 'item'>{{item}}</li>
  98. </ul>
  99. </el-form-item>
  100. </el-col>
  101. <el-col :span="24" style="border: 1px solid red; padding: 20px 0 20px 10px;">
  102. <el-form-item class="renhdys" label="备注:" prop="message_remark">
  103. <el-input
  104. type="textarea"
  105. autosize
  106. placeholder="请输入内容"
  107. v-model="querjtgoe.message_remark">
  108. </el-input>
  109. </el-form-item>
  110. </el-col>
  111. <el-col :span="24" style="text-align: right; padding-top: 20px;">
  112. <el-button type="danger" :disabled="taegshouw" @click="submitForm">提交</el-button>
  113. </el-col>
  114. </el-row>
  115. </el-form>
  116. </div>
  117. <!-- 添加或修改角色配置对话框 -->
  118. <el-dialog :close-on-click-modal="false" title="选择字号" :visible.sync="shouew" width="980px" append-to-body>
  119. <el-table @cell-click= 'cellClick' v-loading="loading" :data="postList" @selection-change="handleSelectionChange">
  120. <el-table-column label="字号" align="center" prop="message_code" />
  121. </el-table>
  122. <pagination
  123. v-show="total>0"
  124. :total="total"
  125. :page.sync="queryParams.pageNum"
  126. :limit.sync="queryParams.pageSize"
  127. @pagination="getList"
  128. />
  129. </el-dialog>
  130. <!-- 分配角色数据权限对话框 -->
  131. <el-dialog :close-on-click-modal="false" title="选择人员" :visible.sync="modalShow" width="980px" append-to-body>
  132. <!-- <Flowshoe :instanceId="instanceId"></Flowshoe> -->
  133. <div class="tab_bott">
  134. <div class="tabBot_oje">
  135. <el-tabs type="border-card" v-model="activeName" @tab-click="handleClick">
  136. <!-- :setCheckedKeys='setCheckedKeys' :getCheckedKeys = "getCheckedKeys" -->
  137. <el-tab-pane label="按部门" name="first">
  138. <div class="head-container">
  139. <el-input
  140. v-model="deptName"
  141. placeholder="请输入部门名称"
  142. clearable
  143. size="small"
  144. prefix-icon="el-icon-search"
  145. style="margin-bottom: 20px"
  146. />
  147. </div>
  148. <div class="head-container">
  149. <el-tree
  150. :data="deptOptions"
  151. :props="defaultProps"
  152. :expand-on-click-node="false"
  153. :filter-node-method="filterNode"
  154. ref="tree"
  155. default-expand-all
  156. @node-click="handleNodeClick"
  157. />
  158. </div>
  159. </el-tab-pane>
  160. <el-tab-pane label="按角色" name="second" style="height: 400px;">
  161. <treeselect v-model="form.parentId" :options="deptOptionstwo" :normalizer="normalizer" :flat="true" :maxHeight="150" @select="djieskle" placeholder="点击选择角色" />
  162. </el-tab-pane>
  163. <el-tab-pane label="按组" name="third" style="height: 400px;">
  164. <treeselect v-model="form.parentIdty" :options="deptOptionsthre" :normalizer="normalizerty" :flat="true" @select="djieskletwo" :maxHeight="350" placeholder="点击选择组" />
  165. </el-tab-pane>
  166. </el-tabs>
  167. </div>
  168. <div class="tabBot_two">
  169. <el-card class="box-card box-cardtt" shadow="always">
  170. <div slot="header" class="clearfix">
  171. <span>人员</span>
  172. <el-button style=" float: right; padding: 3px 10px;" type="danger" plain @click="eledelte">删除</el-button>
  173. <el-button style=" float: right; padding: 3px 10px;margin-right: 20px;" type="primary" plain @click="quande">全选</el-button>
  174. </div>
  175. <ul class="infinite-list infinite-listty" v-infinite-scroll="load" style="overflow:auto">
  176. <li
  177. v-for="(item, index) in liseh"
  178. :class="[ quandet==true? 'infinite-list-itemty infinite-list-itemss' : item.id == idneese.id ? 'infinite-list-itemty infinite-list-itemss' : 'infinite-list-itemty']"
  179. :key="index"
  180. @click="reyantt(item)"
  181. >
  182. {{ item.nickName }}
  183. </li>
  184. </ul>
  185. </el-card>
  186. <el-card class="box-card box-cardtt" shadow="always">
  187. <div slot="header" class="clearfix">
  188. <span>已选择</span>
  189. <el-button style="float: right; padding: 3px 0" type="text" @click = 'determine'>确定</el-button>
  190. </div>
  191. <ul class="infinite-list infinite-listty" v-infinite-scroll="load" style="overflow:auto">
  192. <li v-for="item in lisehtwo" @click="lidele(item)" :key="item.id" class="infinite-list-item">
  193. {{ item.nickName }}
  194. <img src="../../../assets/images/dele.png" alt="" class="index_navTimeimg" />
  195. </li>
  196. </ul>
  197. </el-card>
  198. </div>
  199. </div>
  200. </el-dialog>
  201. <!-- 图片预览 -->
  202. <el-dialog :close-on-click-modal="false" title="预览" :visible.sync="imashow" width="1200px" append-to-body>
  203. <div class="demo-image__preview">
  204. <img v-if="!shouewhu" :src="dialogImageUrl" alt="" style="width: 100%;">
  205. <iframe v-if="shouewhu" :src="dialogImageUrl" frameborder="0" style="width: 100%; height: 100vh;"></iframe>
  206. </div>
  207. </el-dialog>
  208. <!-- 流程进度 -->
  209. <el-dialog :close-on-click-modal="false" title="流程进度" :visible.sync="modalShowdu" width="1180px" append-to-body>
  210. <div style="display: flex;">
  211. <div style="width: 60%;">
  212. <el-row :gutter="10" class="mb8">
  213. <el-col :span="1.5">
  214. <span style="margin-right: 10px;">未读收文</span>
  215. <el-button
  216. type="primary"
  217. plain
  218. size="mini"
  219. @click="eceive"
  220. >一键催收文</el-button>
  221. </el-col>
  222. </el-row>
  223. <el-table v-loading="loading" :data="listnemd" @selection-change="handleSelectionChange" stripe>
  224. <el-table-column type="selection" width="55" align="center" />
  225. <el-table-column label="姓名" align="center" prop="receive_user_name" />
  226. <el-table-column label="部门" align="center" prop="receive_dept_name" />
  227. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  228. <template slot-scope="scope">
  229. <el-button
  230. size="mini"
  231. type="text"
  232. @click="eceive(scope.row,2)"
  233. >催收文</el-button>
  234. </template>
  235. </el-table-column>
  236. </el-table>
  237. </div>
  238. <div style="width: 100%; margin-left: 20px;" >
  239. <el-row :gutter="10" class="mb8">
  240. <el-col style="margin-bottom: 8px;" :span="1.5">
  241. <span >已读收文</span>
  242. </el-col>
  243. </el-row>
  244. <el-table :border="false" v-loading="loading" :data="listnemrt" @selection-change="handleSelectionChange">
  245. <el-table-column label="姓名" align="center" prop="receive_user_name" />
  246. <el-table-column label="部门" align="center" prop="receive_dept_name" />
  247. <el-table-column width="180px" label="收文时间" align="center" prop="send_message_time" />
  248. </el-table>
  249. </div>
  250. <Flowshoe :instanceId="instanceId"></Flowshoe>
  251. </div>
  252. </el-dialog>
  253. </div>
  254. </template>
  255. <script>
  256. import Flowshoe from '@/components/flowshoe'
  257. import { listRoles,listIndex, delRole, addRole,addbjectSave, updateRole, exportRole, dataScope, changeRoleStatus, buent,issdanelist,issdaneid,weiduhegw,addbjectSawen } from "@/api/system/isses";
  258. import {
  259. getToken
  260. } from "@/utils/auth";
  261. import {getUserProfile} from "@/api/system/config";
  262. import {tabsubm} from "@/api/system/table";
  263. import { group , getRole, getPersonnel, getMembers,delRoleses } from '@/api/system/election';
  264. import { listDept } from "@/api/system/dept";
  265. import { listRole } from "@/api/system/role";
  266. import { treeselect } from "@/api/system/dept";
  267. import Treeselect from "@riophae/vue-treeselect";
  268. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  269. export default {
  270. name: "Role",
  271. components: { Treeselect,Flowshoe },
  272. data() {
  273. return {
  274. // 遮罩层
  275. loading: true,
  276. // 选中数组
  277. ids: [],
  278. // 非单个禁用
  279. single: true,
  280. // 无限滚动
  281. count: 0,
  282. // 非多个禁用
  283. multiple: true,
  284. // 显示搜索条件
  285. showSearch: true,
  286. // 总条数
  287. total: 0,
  288. // 部门名称
  289. deptName: undefined,
  290. // 角色表格数据
  291. roleList: [],
  292. // 弹出层标题
  293. title: "",
  294. // 是否显示弹出层
  295. open: false,
  296. // 是否显示弹出层(数据权限)
  297. openDataScope: false,
  298. menuExpand: false,
  299. menuNodeAll: false,
  300. deptExpand: true,
  301. deptNodeAll: false,
  302. // 日期范围
  303. dateRange: [],
  304. instanceId: 0,
  305. // 状态数据字典
  306. statusOptions: [],
  307. // 数据范围选项
  308. dataScopeOptions: [
  309. {
  310. value: "1",
  311. label: "全部数据权限"
  312. },
  313. {
  314. value: "2",
  315. label: "自定数据权限"
  316. },
  317. {
  318. value: "3",
  319. label: "本部门数据权限"
  320. },
  321. {
  322. value: "4",
  323. label: "本部门及以下数据权限"
  324. },
  325. {
  326. value: "5",
  327. label: "仅本人数据权限"
  328. }
  329. ],
  330. // 菜单列表
  331. menuOptions: [],
  332. // 部门列表
  333. deptOptions: [],
  334. // 角色
  335. deptOptionstwo:[],
  336. deptOptionsthre:[],
  337. // 查询参数
  338. queryParams: {
  339. },
  340. // 表单参数
  341. form: {},
  342. // 单位 名称
  343. mpany:{
  344. ompany:[],
  345. name:[]
  346. },
  347. defaultProps: {
  348. children: "children",
  349. label: "label"
  350. },
  351. // 表单校验
  352. rules: {
  353. message_code: [
  354. { required: true, message: "发文字号不能为空", trigger: "blur" }
  355. ],
  356. message_time: [
  357. { required: true, message: "发文日期不能为空", trigger: "blur" }
  358. ],
  359. message_title: [
  360. { required: true, message: "文件标题不能为空", trigger: "blur" }
  361. ]
  362. },
  363. dialogImageUrl: '',
  364. process: process.env.VUE_APP_BASE_API,
  365. dialogVisible: false,
  366. disabled: false,
  367. filterList: [],
  368. config: [],
  369. configtwo: [],
  370. shouew:false,
  371. modalShow:false,
  372. forew:{
  373. table:'',
  374. fixedData:{
  375. id:-1
  376. }
  377. },
  378. list:[],
  379. activeName:'first',
  380. querjtgoe:{
  381. message_code:'',
  382. message_title:'',
  383. message_remark:'',
  384. send_time:''
  385. },
  386. liseh: [
  387. ],
  388. queryParamsser:{
  389. table:'',
  390. orderBy:'create_time desc',
  391. pageSize:10,
  392. pageNo:1,
  393. showData:['message_code']
  394. },
  395. tabData:[],
  396. postList:[],
  397. faerform:{
  398. table: '',
  399. objId: -1,
  400. fixedData: {},
  401. children:[{
  402. table: '',
  403. objId: -1,
  404. fixedData:{}
  405. }]
  406. },
  407. lisehtwo:[
  408. ],
  409. data: [],
  410. deptList: [],
  411. rtuer: false,
  412. showtabc: 0,
  413. showche: false,
  414. idneese: {},
  415. quandet:false,
  416. dhiuw:[],
  417. // 组id
  418. elezu:0,
  419. fileList: [],
  420. titlet:'',
  421. tabled:'',
  422. objeuisd:-1,
  423. messageReun:'',
  424. frowtse:{
  425. },
  426. taegshouw:false,
  427. jeuiygqa:'',
  428. soufa:false,
  429. url:'',
  430. srcList:[],
  431. imashow:false,
  432. shouewhu:false,
  433. modalShowdu:false,
  434. listnemd:[],
  435. listnemrt:[],
  436. nread:{
  437. "table": "boman_message_receive",
  438. "orderBy": "create_time desc",
  439. pageNo:1,
  440. pageSize:10,
  441. fixedData:{
  442. condition:{
  443. message_id:0,
  444. status:'N',
  445. visible:'Y',
  446. send_user_id:0,
  447. }
  448. }
  449. },
  450. nreadtwo:{
  451. "table": "boman_message_receive",
  452. "orderBy": "create_time desc",
  453. pageNo:1,
  454. pageSize:10,
  455. fixedData:{
  456. condition:{
  457. message_id:0,
  458. status:'Y',
  459. visible:'Y',
  460. send_user_id:0,
  461. }
  462. }
  463. },
  464. eceivelist:{
  465. tableName: "urge_read_message",
  466. objId:-1,
  467. dataList:[{
  468. message_id:0,
  469. message_title:'',
  470. send_user_name:'',
  471. message_time:'',
  472. recieve_user_id:'',
  473. recieve_user_name:''
  474. }]
  475. },
  476. jeogq:{}
  477. };
  478. },
  479. created() {
  480. this.forew.table = this.$route.query.tables;
  481. this.queryParamsser.table = this.$route.query.tables;
  482. this.tabled = this.$route.query.tables;
  483. this.objeuisd = this.$route.query.id - 0;
  484. this.forew.fixedData.id = this.$route.query.id - 0;
  485. this.instanceId = this.$route.query.id- 0;
  486. this.faerform.objId = this.$route.query.id - 0;
  487. this.faerform.table = this.$route.query.tables;
  488. this.nread.fixedData.condition.message_id = this.$route.query.id - 0;
  489. this.nreadtwo.fixedData.condition.message_id = this.$route.query.id - 0;
  490. this.frowtse.businessTypeName = this.$route.query.tables;
  491. this.frowtse.dbname = this.$route.query.tables;
  492. this.querjtgoe.message_situation = this.$route.query.tabname - 0;
  493. this.jeuiygqa = this.$route.query.tabname
  494. if(this.$route.query.tabname == 'shouwen'){
  495. this.titlet = '收文'
  496. this.soufa = true
  497. // if(this.$route.query.tabname == 1)
  498. }else {
  499. this.titlet = '发文'
  500. this.soufa = false
  501. }
  502. if(this.objeuisd !== -1){
  503. this.frowtse.businessType = this.$route.query.id - 0;
  504. this.issdane()
  505. }
  506. this.getUser()
  507. this.gerdw()
  508. // this.getList();
  509. this.getTreeselect()
  510. this.getDicts("sys_normal_disable").then(response => {
  511. this.statusOptions = response.data;
  512. });
  513. },
  514. methods: {
  515. /** 查询角色列表 */
  516. getList() {
  517. this.loading = true;
  518. console.log(this.forew)
  519. listRoles(this.forew).then(
  520. res => {
  521. console.log(res)
  522. if(res.data !== undefined){
  523. this.querjtgoe = res.data
  524. if(res.data.message_upload !== undefined && res.data.message_upload !== null ){
  525. this.config = JSON.parse(res.data.message_upload)
  526. // this.configtwo = res.data.message_enclosure
  527. }
  528. if(res.data.message_enclosure !== undefined && res.data.message_enclosure !== null ){
  529. // this.config = res.data.message_upload
  530. this.configtwo = JSON.parse(res.data.message_enclosure)
  531. }
  532. console.log(this.jeuiygqa)
  533. if(res.data.status == '未提交' && this.jeuiygqa == 1){
  534. this.taegshouw = false
  535. }else{
  536. this.taegshouw = true
  537. }
  538. }else{
  539. if(this.jeuiygqa == 1){
  540. this.taegshouw = false
  541. }else{
  542. this.taegshouw = true
  543. }
  544. }
  545. }
  546. );
  547. },
  548. // 分发单位 人员名称查询
  549. issdane(){
  550. console.log(346)
  551. this.loading = false;
  552. let jueg = []
  553. let nese = []
  554. issdanelist(this.objeuisd).then(response => {
  555. if(response.code == 200){
  556. this.lisehtwo = response.data
  557. this.messageReun = '已选择' + response.data.length +'人'
  558. this.lisehtwo.filter(route=>{
  559. jueg.push(route.receive_dept_name)
  560. nese.push(route.receive_user_name)
  561. route.nickName = route.receive_user_name
  562. })
  563. this.mpany.ompany = jueg
  564. this.mpany.name = nese
  565. }
  566. // this.total = response.data.total;
  567. // this.tabData = response.data.tableHeadList;
  568. // this.postList = response.data.rows;
  569. // for(var i = 0 ; i < this.postList.length; i++){
  570. // console.log(this.postList[i].leavefrom_photo == '[]')
  571. // }
  572. this.loading = false;
  573. });
  574. },
  575. // 历史字号数据查询
  576. lishiList(){
  577. console.log(346)
  578. this.loading = false;
  579. listIndex(this.queryParamsser).then(response => {
  580. this.total = response.data.total;
  581. this.tabData = response.data.tableHeadList;
  582. this.postList = response.data.rows;
  583. for(var i = 0 ; i < this.postList.length; i++){
  584. console.log(this.postList[i].leavefrom_photo == '[]')
  585. }
  586. this.loading = false;
  587. });
  588. },
  589. // 取消按钮
  590. cancel() {
  591. this.open = false;
  592. this.reset();
  593. },
  594. // 取消按钮(数据权限)
  595. cancelDataScope() {
  596. this.openDataScope = false;
  597. this.reset();
  598. },
  599. // 表单重置
  600. reset() {
  601. if (this.$refs.menu != undefined) {
  602. this.$refs.menu.setCheckedKeys([]);
  603. }
  604. this.menuExpand = false,
  605. this.menuNodeAll = false,
  606. this.deptExpand = true,
  607. this.deptNodeAll = false,
  608. this.form = {
  609. roleId: undefined,
  610. roleName: undefined,
  611. roleKey: undefined,
  612. roleSort: 0,
  613. status: "0",
  614. menuIds: [],
  615. deptIds: [],
  616. menuCheckStrictly: true,
  617. deptCheckStrictly: true,
  618. remark: undefined
  619. };
  620. this.resetForm("form");
  621. },
  622. /** 搜索按钮操作 */
  623. handleQuery() {
  624. this.queryParams.pageNum = 1;
  625. this.getList();
  626. },
  627. /** 重置按钮操作 */
  628. resetQuery() {
  629. this.dateRange = [];
  630. this.resetForm("queryForm");
  631. this.handleQuery();
  632. },
  633. // 多选框选中数据
  634. handleSelectionChange(selection) {
  635. this.ids = selection.map(item => item.id)
  636. this.idee = selection
  637. console.log(this.idee)
  638. this.single = selection.length!=1
  639. this.multiple = !selection.length
  640. },
  641. // 树权限(展开/折叠)
  642. handleCheckedTreeExpand(value, type) {
  643. if (type == 'menu') {
  644. let treeList = this.menuOptions;
  645. for (let i = 0; i < treeList.length; i++) {
  646. this.$refs.menu.store.nodesMap[treeList[i].id].expanded = value;
  647. }
  648. } else if (type == 'dept') {
  649. let treeList = this.deptOptions;
  650. for (let i = 0; i < treeList.length; i++) {
  651. this.$refs.dept.store.nodesMap[treeList[i].id].expanded = value;
  652. }
  653. }
  654. },
  655. /** 提交按钮 */
  656. submitForm: function() {
  657. // 获取当前时间戳
  658. var date1 =new Date();
  659. // let tmie = Date.parse(date1) / 1000
  660. let tmie = this.dateFormat()
  661. console.log(tmie)
  662. if(this.lisehtwo.length == 0){
  663. this.msgSuccess("请选择分发人员");
  664. return false
  665. }
  666. for(var i = 0 ; i < this.lisehtwo.length; i++){
  667. this.faerform.children[i] = {table:'',objId:'',fixedData:{}}
  668. this.faerform.children[i].table = 'boman_message_receive'
  669. if(this.objeuisd == -1){
  670. this.faerform.children[i].objId = this.objeuisd
  671. }else{
  672. this.faerform.children[i].objId = this.lisehtwo[i].id
  673. }
  674. // this.faerform.children[i].fixedData.receive_user_id = this.lisehtwo[i]
  675. this.faerform.children[i].fixedData.from_dept_name = this.jeogq.dept.deptName
  676. this.faerform.children[i].fixedData.message_id = 'fk.boman_message'
  677. this.faerform.children[i].fixedData.send_message_time = tmie
  678. if(this.objeuisd == -1){
  679. this.faerform.children[i].fixedData.receive_user_id = this.lisehtwo[i].id
  680. }else{
  681. this.faerform.children[i].fixedData.receive_user_id = this.lisehtwo[i].receive_user_id
  682. }
  683. this.faerform.children[i].fixedData.receive_user_name = this.lisehtwo[i].userName
  684. this.faerform.children[i].fixedData.send_user_name = this.jeogq.userName
  685. this.faerform.children[i].fixedData.send_user_id = this.jeogq.id
  686. this.faerform.children[i].fixedData.from_dept_name = this.jeogq.dept.deptName
  687. this.faerform.children[i].fixedData.message_title = this.querjtgoe.message_title
  688. if(this.lisehtwo[i].dept !== undefined && this.lisehtwo[i].dept !==null){
  689. this.faerform.children[i].fixedData.receive_dept_name = this.lisehtwo[i].dept.deptName
  690. }else{
  691. this.faerform.children[i].fixedData.receive_dept_name = this.lisehtwo[i].deptName
  692. }
  693. }
  694. console.log(this.faerform.children[i])
  695. // this.faerform.children
  696. // this.querjtgoe.message_upload = JSON.stringify(this.querjtgoe.message_upload)
  697. // this.querjtgoe.message_enclosure = JSON.stringify(this.querjtgoe.message_enclosure)
  698. this.querjtgoe.message_id = 'fk.boman_message'
  699. this.querjtgoe.send_time = tmie
  700. if(this.querjtgoe.message_enclosure !== undefined){
  701. this.querjtgoe.has_annex = 'Y'
  702. }else{
  703. this.querjtgoe.has_annex = 'N'
  704. }
  705. this.faerform.fixedData = this.querjtgoe
  706. console.log(this.faerform)
  707. this.$refs["querjtgoe"].validate(valid => {
  708. // if (valid) {
  709. // if (this.form.roleId != undefined) {
  710. // this.form.menuIds = this.getMenuAllCheckedKeys();
  711. // updateRole(this.form).then(response => {
  712. // this.msgSuccess("修改成功");
  713. // this.open = false;
  714. // this.getList();
  715. // });
  716. // } else {
  717. // this.form.menuIds = this.getMenuAllCheckedKeys();
  718. addbjectSave(this.faerform).then(response => {
  719. // this.msgSuccess("操作成功");
  720. this.frowtse.businessCodes = response.data[0].data
  721. this.sbreulw()
  722. // this.$router.go(-1);
  723. // this.open = false;
  724. // this.getList();
  725. });
  726. // }
  727. // }
  728. });
  729. },
  730. /** 提交按钮(数据权限) */
  731. submitDataScope: function() {
  732. if (this.form.roleId != undefined) {
  733. this.form.deptIds = this.getDeptAllCheckedKeys();
  734. dataScope(this.form).then(response => {
  735. this.msgSuccess("修改成功");
  736. this.openDataScope = false;
  737. this.getList();
  738. });
  739. }
  740. },
  741. handleClick(index){
  742. if(index.index == 0){
  743. this.getTreeselect()
  744. }else if(index.index == 1){
  745. this.getTreeselectjue()
  746. }else if(index.index == 2){
  747. this.getTreeselecu()
  748. }
  749. },
  750. ziao(){
  751. console.log(23)
  752. this.shouew = true
  753. this.lishiList()
  754. },
  755. // 人员选择
  756. changeren(){
  757. this.modalShow = true
  758. },
  759. // 上传文件
  760. handleChangert(file, fileList) {
  761. this.fileList = fileList.slice(-3);
  762. },
  763. getToken() {
  764. return getToken()
  765. },
  766. reseImage(file, fileList) {
  767. let urls = ""
  768. if (file.response) {
  769. urls = file.response.url
  770. } else {
  771. urls = file.url
  772. }
  773. for (let i = this.config.length - 1; i >= 0; i--) {
  774. if (this.config[i].url == urls) {
  775. this.config.splice(i, 1);
  776. }
  777. }
  778. if(this.config.length == 0){
  779. this.querjtgoe.message_upload = undefined
  780. }else{
  781. this.querjtgoe.message_upload = JSON.stringify(this.config)
  782. }
  783. },
  784. reseImagetwo(file, fileList) {
  785. let urls = ""
  786. if (file.response) {
  787. urls = file.response.url
  788. } else {
  789. urls = file.url
  790. }
  791. for (let i = this.configtwo.length - 1; i >= 0; i--) {
  792. if (this.configtwo[i].url == urls) {
  793. this.configtwo.splice(i, 1);
  794. }
  795. }
  796. console.log(this.configtwo)
  797. if(this.configtwo.length == 0){
  798. this.querjtgoe.message_enclosure = undefined
  799. }else{
  800. this.querjtgoe.message_enclosure = JSON.stringify(this.configtwo)
  801. }
  802. },
  803. // 图片预览
  804. handlePictureCardPreview(file) {
  805. console.log(file,87)
  806. console.log(file.name.split('.'))
  807. let hegs = file.name.split('.')
  808. console.log(hegs[hegs.length - 1])
  809. if(hegs[hegs.length - 1] == 'pdf'){
  810. this.shouewhu = true
  811. }else{
  812. this.shouewhu = false
  813. }
  814. this.dialogImageUrl = file.url;
  815. this.dialogVisible = true;
  816. this.imashow = true
  817. },
  818. upImageFn(res, file) {
  819. if(res.code !== 200){
  820. this.msgSuccess('上传失败');
  821. return false
  822. }else{
  823. this.msgSuccess('上传成功');
  824. this.config.push(res.data);
  825. console.log(res.data)
  826. console.log(res.data.name.substr(0,res.data.name.length-4))
  827. this.querjtgoe.message_upload = this.config
  828. console.log(this.querjtgoe.message_upload)
  829. // this.querjtgoe.message_title = res.data.name
  830. this.querjtgoe.message_title = res.data.name.substr(0,res.data.name.length-4)
  831. this.querjtgoe.message_upload = JSON.stringify(this.querjtgoe.message_upload)
  832. }
  833. // querjtgoe.message_title
  834. console.log(res)
  835. console.log(res.data.name.substr(-4))
  836. },
  837. upImageFntwo(res, file) {
  838. if(res.code == 200){
  839. this.msgSuccess('上传成功');
  840. this.configtwo.push(res.data);
  841. this.querjtgoe.message_enclosure = this.configtwo
  842. this.querjtgoe.message_enclosure = JSON.stringify(this.querjtgoe.message_enclosure)
  843. }else{
  844. this.msgSuccess('上传失败');
  845. return false
  846. }
  847. console.log(this.configtwo)
  848. },
  849. // 上传前控制
  850. befors(res, file){
  851. console.log(res,file)
  852. console.log(res.name.substr(0,res.name.length-4))
  853. // if(res.type !== 'application/pdf'){
  854. // this.msgSuccess('只能上传pdf文件');
  855. // return false
  856. // }else{
  857. // return true
  858. // }
  859. return true
  860. },
  861. // 时间控件
  862. iChange(){
  863. },
  864. err(){
  865. this.msgSuccess("上传失败");
  866. console.log(35)
  867. },
  868. load(){
  869. },
  870. // 点击单元格
  871. cellClick(row){
  872. console.log(row)
  873. this.shouew = false
  874. this.querjtgoe.message_code = row.message_code
  875. },
  876. // 树形结构
  877. // 节点单击事件
  878. handleNodeClick(data) {
  879. console.log(data);
  880. // this.queryParams.deptId = data.id;
  881. this.staff(data.id);
  882. this.quandet = false
  883. // this.getList();
  884. },
  885. /** 查询部门下拉树结构 */
  886. getTreeselect() {
  887. treeselect().then(response => {
  888. this.deptOptions = response.data;
  889. });
  890. },
  891. // 查询角色
  892. getTreeselectjue() {
  893. this.loading = true;
  894. listRole(this.queryParams).then(response => {
  895. this.deptOptionstwo = this.handleTree(response.rows, "id");
  896. this.loading = false;
  897. });
  898. },
  899. // 查询组
  900. getTreeselecu() {
  901. this.loading = true;
  902. group(this.queryParams).then(response => {
  903. this.deptOptionsthre = this.handleTree(response.data, "id");
  904. this.loading = false;
  905. });
  906. },
  907. /** 转换角色数据结构 */
  908. normalizer(node) {
  909. // if (node.children && !node.children.length) {
  910. // delete node.children;
  911. // }
  912. return {
  913. id: node.id,
  914. label: node.roleName,
  915. };
  916. },
  917. /** 转换组数据结构 */
  918. normalizerty(node) {
  919. return {
  920. id: node.id,
  921. label: node.groupName,
  922. };
  923. },
  924. // 点击组/角色
  925. djieskle(node, instanceId) {
  926. this.personnel(node.id);
  927. console.log(node, instanceId);
  928. },
  929. djieskletwo(node, instanceId) {
  930. this.members(node.id);
  931. this.elezu = node.id
  932. console.log(node, instanceId);
  933. },
  934. check(data, value) {
  935. console.log(this.$refs.tree.getCheckedKeys());
  936. // 获取选中的子节点
  937. // let checkedKeys = this.$refs.tree.getCheckedKeys();
  938. // 获取选中的父节点
  939. let hafCheckedKeys = this.$refs.tree.getHalfCheckedKeys();
  940. console.log(this.$refs.tree.getHalfCheckedKeys());
  941. console.log(data, value);
  942. },
  943. // 点击全选
  944. quande(){
  945. var dueg = []
  946. dueg = (this.dhiuw)
  947. this.quandet = true
  948. var that = this
  949. // dueg.push(index)
  950. // this.lisehtwo = dueg
  951. // this.lisehtwo.push(index);
  952. // this.lisehtwo = [...new Set(this.lisehtwo)];
  953. // that.positions.map(train => {
  954. // that.new_Positions.push(train.trainId);
  955. // });
  956. // that.resultArr = []; //去重后的数组
  957. var flag;
  958. for (var i in dueg) {
  959. flag = true;
  960. for (var j in that.lisehtwo) {
  961. if (that.lisehtwo[j].id == dueg[i].id) {
  962. flag = false;
  963. break;
  964. }
  965. }
  966. if (flag) {
  967. that.lisehtwo.push(dueg[i]);
  968. }
  969. }
  970. },
  971. // 点击全部删除
  972. eledelte(){
  973. this.lisehtwo = []
  974. },
  975. // 点击删除
  976. lidele(index) {
  977. for (let i = this.lisehtwo.length - 1; i >= 0; i--) {
  978. if (this.lisehtwo[i].id == index.id) {
  979. this.lisehtwo.splice(i, 1)
  980. }
  981. }
  982. },
  983. // 点击添加
  984. reyantt(index) {
  985. var dueg = [];
  986. this.idneese = index;
  987. var that = this
  988. dueg.push(index)
  989. // this.lisehtwo = dueg
  990. // this.lisehtwo.push(index);
  991. // this.lisehtwo = [...new Set(this.lisehtwo)];
  992. // that.positions.map(train => {
  993. // that.new_Positions.push(train.trainId);
  994. // });
  995. // that.resultArr = []; //去重后的数组
  996. var flag;
  997. for (var i in dueg) {
  998. flag = true;
  999. for (var j in that.lisehtwo) {
  1000. if (that.lisehtwo[j].id == dueg[i].id) {
  1001. flag = false;
  1002. break;
  1003. }
  1004. }
  1005. if (flag) {
  1006. that.lisehtwo.push(dueg[i]);
  1007. }
  1008. }
  1009. // for(var i = 0 ; i <this.lisehtwo.length; i++ ){
  1010. // if(this.lisehtwo[i].id == index.id){
  1011. // this.lisehtwo.splice(i,1)
  1012. // }
  1013. // }
  1014. // })
  1015. },
  1016. // 点击确定
  1017. determine(){
  1018. var eledete = []
  1019. this.lisehtwo.filter(route=>{
  1020. eledete.push(route.id)
  1021. })
  1022. eledete = eledete.join(',')
  1023. console.log(this.lisehtwo)
  1024. this.messageReun = '已选择' + this.lisehtwo.length +'人'
  1025. // this.elezu
  1026. this.loading = true;
  1027. buent(this.lisehtwo).then(response => {
  1028. // this.lisehtwo = response.data;
  1029. // this.dhiuw = response.data
  1030. this.mpany.ompany = response.deptNameList
  1031. this.mpany.name = response.nikeNameList
  1032. console.log( this.mpany.ompany)
  1033. if(response.code == 200){
  1034. this.msgSuccess('操作成功');
  1035. this.modalShow = false
  1036. }
  1037. this.loading = false;
  1038. });
  1039. },
  1040. checkItem(val, index) {
  1041. console.log(val);
  1042. this.showche = !this.showche;
  1043. console.log(this.showche);
  1044. var that = this;
  1045. let jueg = [];
  1046. let checkedCount = val.length;
  1047. this.liseh[index].isCheck = checkedCount === this.liseh[index].children.length;
  1048. this.liseh[index].isIndeterminate = checkedCount > 0 && checkedCount < this.liseh[index].children.length;
  1049. this.liseh[index].children.filter(router => {
  1050. // console.log(123)
  1051. for (var i = 0; i < val.length; i++) {
  1052. if (this.showche == true) {
  1053. //选中
  1054. console.log('选中');
  1055. if (router.id == val[i]) {
  1056. jueg.push(router);
  1057. this.lisehtwo.push(router);
  1058. // console.log(router)
  1059. console.log(this.lisehtwo);
  1060. for (var j = 0; j < that.lisehtwo.length; j++) {
  1061. if (that.lisehtwo[i].id !== val[i]) {
  1062. this.lisehtwo.push(router);
  1063. }
  1064. }
  1065. // that.lisehtwo.filter(routers=>{
  1066. // console.log(this.lisehtwo)
  1067. // console.log(routers,val[i])
  1068. // if(routers.id !== val[i]){
  1069. // this.lisehtwo.push(router)
  1070. // }
  1071. // })
  1072. }
  1073. } else {
  1074. // 取消选中
  1075. }
  1076. }
  1077. });
  1078. // this.lisehtwo.push(jueg)
  1079. console.log(this.lisehtwo);
  1080. // console.log(this.liseh[index].isIndeterminate)
  1081. },
  1082. checkTitle(val, index) {
  1083. console.log(val, index);
  1084. let arr = [];
  1085. let jueg = [];
  1086. const re = this.liseh[index].children;
  1087. //全选
  1088. if (val) {
  1089. for (let i = 0; i < re.length; i++) {
  1090. arr[i] = re[i]['id'];
  1091. jueg[i] = re[i];
  1092. this.lisehtwo.push(re[i]);
  1093. }
  1094. // this.lisehtwo.push(jueg)
  1095. } else {
  1096. this.lisehtwo = [];
  1097. }
  1098. console.log(this.lisehtwo);
  1099. this.liseh[index].checkedData = arr;
  1100. this.liseh[index].isIndeterminate = false;
  1101. },
  1102. // 筛选节点
  1103. filterNode(value, data) {
  1104. if (!value) return true;
  1105. return data.label.indexOf(value) !== -1;
  1106. },
  1107. // 按照部门查询人员
  1108. staff(index) {
  1109. this.loading = true;
  1110. var that = this;
  1111. getRole(index).then(response => {
  1112. // this.deptOptionsthre = this.handleTree(response.data, "id");
  1113. // this.rtuer = true
  1114. this.liseh = []
  1115. this.liseh = response.data;
  1116. this.dhiuw = response.data
  1117. this.loading = false;
  1118. });
  1119. },
  1120. // 按照角色查询人员
  1121. personnel(index) {
  1122. this.loading = true;
  1123. getPersonnel(index).then(response => {
  1124. // this.deptOptionsthre = this.handleTree(response.data, "id"); this.liseh = response.data;
  1125. this.liseh = []
  1126. this.liseh = response.data;
  1127. this.dhiuw = response.data
  1128. this.loading = false;
  1129. });
  1130. },
  1131. // 按照组查询人员
  1132. members(index) {
  1133. this.loading = true;
  1134. getMembers(index).then(response => {
  1135. // this.deptOptionsthre = this.handleTree(response.data, "id");
  1136. // this.liseh = response.data;
  1137. // response.data
  1138. // this.lisehtwo.push(response.data)
  1139. this.liseh = []
  1140. this.liseh = response.data;
  1141. this.dhiuw = response.data
  1142. // this.dhiuw.filter(route=>{
  1143. // this.lisehtwo.push(route)
  1144. // })
  1145. this.loading = false;
  1146. });
  1147. },
  1148. // 提交
  1149. sbreulw(){
  1150. tabsubm(this.frowtse).then(response => {
  1151. if (response.resultCode == 0) {
  1152. this.msgSuccess('提交成功');
  1153. }
  1154. this.$store.dispatch('tagsView/delView', this.$route);
  1155. // this.reload();
  1156. this.$router.go(-1)
  1157. // this.formeanti.commitData = []
  1158. // this.formy.status = 1
  1159. // this.formeanti.commitData.push(this.formy)
  1160. // this.antiSubmission();
  1161. });
  1162. },
  1163. // 获取表单id
  1164. gerdw(){
  1165. issdaneid(this.faerform.table).then(res=>{
  1166. console.log(res)
  1167. this.frowtse.businessType = res.data.id
  1168. })
  1169. },
  1170. // 查看流程进度
  1171. rogress(){
  1172. this.modalShowdu = true
  1173. this.weiug()
  1174. this.yidue()
  1175. },
  1176. // 催收文
  1177. eceive(row,index){
  1178. console.log(index)
  1179. if (this.multiple && index == undefined) {
  1180. this.msgInfo('请勾选一条信息')
  1181. return
  1182. }
  1183. const id = row.id || this.ids.join(',')
  1184. let huew = []
  1185. // if(row !== undefined){
  1186. // this.idee = []
  1187. // }
  1188. if(this.idee.length > 0 || row == undefined){
  1189. console.log(345)
  1190. for(var j = 0 ; j < this.idee.length; j++ ){
  1191. 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:''}
  1192. this.eceivelist.dataList[j].message_id = this.idee[j].message_id
  1193. this.eceivelist.dataList[j].receive_user_id = this.idee[j].receive_user_id
  1194. this.eceivelist.dataList[j].receive_user_name = this.idee[j].receive_user_name
  1195. this.eceivelist.dataList[j].message_title = this.querjtgoe.message_title
  1196. this.eceivelist.dataList[j].send_user_name = this.querjtgoe.send_user_name
  1197. this.eceivelist.dataList[j].send_user_id = this.querjtgoe.send_user_id
  1198. this.eceivelist.dataList[j].message_time = this.querjtgoe.message_time
  1199. }
  1200. }else{
  1201. this.eceivelist.dataList =[{message_id:0,receive_user_id:0,receive_user_name:'',message_title:'',send_user_name:'',send_user_id:0,message_time:''}]
  1202. this.eceivelist.dataList[0].message_id = row.message_id
  1203. this.eceivelist.dataList[0].receive_user_id = row.receive_user_id
  1204. this.eceivelist.dataList[0].receive_user_name = row.receive_user_name
  1205. this.eceivelist.dataList[0].message_title = this.querjtgoe.message_title
  1206. this.eceivelist.dataList[0].send_user_name = this.querjtgoe.send_user_name
  1207. this.eceivelist.dataList[0].send_user_id = this.querjtgoe.send_user_id
  1208. this.eceivelist.dataList[0].message_time = this.querjtgoe.message_time
  1209. }
  1210. console.log(this.eceivelist)
  1211. this.adege()
  1212. // this.querjtgoe
  1213. // this.eceivelist.fixedData.message_id = row.message_id
  1214. // this.eceivelist.fixedData.recieve_user_id = row.recieve_user_id
  1215. // this.eceivelist.fixedData.recieve_user_name = row.recieve_user_name
  1216. },
  1217. // 催办接口
  1218. adege(){
  1219. addbjectSawen(this.eceivelist).then(res =>{
  1220. console.log(res)
  1221. if(res.code == 200){
  1222. this.msgSuccess('提交成功');
  1223. this.weiug()
  1224. }
  1225. })
  1226. },
  1227. // 查看未读
  1228. weiug(){
  1229. this.loading = true;
  1230. weiduhegw(this.nread).then(res => {
  1231. console.log(res)
  1232. this.loading = false
  1233. this.listnemd = res.data.rows
  1234. })
  1235. },
  1236. // 查看已读
  1237. yidue(){
  1238. this.loading = true;
  1239. weiduhegw(this.nreadtwo).then(res => {
  1240. console.log(res)
  1241. this.loading = false
  1242. this.listnemrt = res.data.rows
  1243. })
  1244. },
  1245. // 用户信息
  1246. getUser() {
  1247. getUserProfile().then(response => {
  1248. this.jeogq = response.data
  1249. this.querjtgoe.send_user_id = response.data.id
  1250. this.querjtgoe.send_user_name = response.data.userName
  1251. this.querjtgoe.create_dept_nam = response.data.dept.deptName
  1252. this.nread.fixedData.condition.send_user_id = response.data.id
  1253. this.nreadtwo.fixedData.condition.send_user_id = response.data.id
  1254. this.faerform.fixedData.send_user_id = response.data.id
  1255. this.frowtse.initiator = response.data.id
  1256. this.frowtse.userName = response.data.userName
  1257. // this.user = response.data;
  1258. // this.getLisalendar()
  1259. // this.getLismemorandum()
  1260. // this.init();
  1261. this.getList();
  1262. });
  1263. },
  1264. // 时间转换
  1265. dateFormat() {
  1266. var date = new Date();
  1267. var month = date.getMonth() + 1;
  1268. var strDate = date.getDate();
  1269. var hours = date.getHours()
  1270. var minus = date.getMinutes()
  1271. var secong = date.getSeconds()
  1272. if (month >= 1 && month <= 9) {
  1273. month = "0" + month;
  1274. }
  1275. if (strDate >= 0 && strDate <= 9) {
  1276. strDate = "0" + strDate;
  1277. }
  1278. if (hours >= 0 && hours <= 9) {
  1279. hours = "0" + hours;
  1280. }
  1281. if (minus >= 0 && minus <= 9) {
  1282. minus = "0" + minus;
  1283. }
  1284. if (secong >= 0 && secong <= 9) {
  1285. secong = "0" + secong;
  1286. }
  1287. var currentDate = date.getFullYear() + "-" + month + "-" + strDate
  1288. + " " + hours + ":" + minus + ":" + secong;
  1289. return currentDate;
  1290. },
  1291. }
  1292. // }
  1293. // }
  1294. };
  1295. </script>
  1296. <style lang="scss">
  1297. .jeuhgs{
  1298. .el-form-item{
  1299. margin-bottom: 0;
  1300. width: 100%;
  1301. }
  1302. .el-form-item__content{
  1303. width: 80%;
  1304. }
  1305. .el-form-item__label{
  1306. color: red;
  1307. }
  1308. input{
  1309. background: none;
  1310. outline: none;
  1311. border: none;
  1312. }
  1313. .el-input-group__prepend{
  1314. background-color: #1890ff !important;
  1315. color: #fff !important;
  1316. }
  1317. .el-input-group__append{
  1318. background-color: #1890ff !important;
  1319. color: #fff !important;
  1320. }
  1321. .renhdys{
  1322. .el-form-item__content{
  1323. width: 85%;
  1324. }
  1325. }
  1326. .renhdytwo{
  1327. .el-form-item__content{
  1328. display: flex;
  1329. }
  1330. }
  1331. .upload-demo{
  1332. text-align: right;
  1333. display: flex;
  1334. // ul{
  1335. // display: flex;
  1336. // }
  1337. }
  1338. .el-textarea__inner{
  1339. background-color: #fff !important;
  1340. border: 0 !important;
  1341. }
  1342. .el-input__inner{
  1343. background-color: #fff !important;
  1344. border: 0 !important;
  1345. }
  1346. .el-input.is-disabled .el-input__inner{
  1347. color: #333;
  1348. }
  1349. }
  1350. .infinite-list {
  1351. // height: 150px;
  1352. margin-bottom: 20px;
  1353. flex-wrap: wrap;
  1354. .infinite-list-item {
  1355. // flex:1!important;
  1356. display: flex;
  1357. // justify-content: space-between;
  1358. align-items: center;
  1359. text-align: center;
  1360. list-style: none;
  1361. height: 23px;
  1362. margin-left: 10px;
  1363. // line-height: 30px;
  1364. }
  1365. .infinite-list-itemss {
  1366. color: #1890ff;
  1367. }
  1368. }
  1369. .infinite-listty {
  1370. display: flex;
  1371. flex-wrap: wrap;
  1372. .infinite-list-itemty {
  1373. // flex:1;
  1374. display: flex;
  1375. // justify-content: space-between;
  1376. height: 23px;
  1377. line-height: 23px;
  1378. // text-align: center;
  1379. list-style: none;
  1380. margin-left: 10px;
  1381. // border-radius: 40px;
  1382. // border: 1px solid #eee;
  1383. // border-bottom: 1px solid #eee;
  1384. }
  1385. }
  1386. // 分发人员
  1387. .infinite-listopma{
  1388. width: 100%;
  1389. display: flex;
  1390. flex-wrap: wrap;
  1391. justify-content: flex-start;
  1392. align-items: center;
  1393. li{
  1394. list-style: none;
  1395. // width: 20%;
  1396. margin-left: 10px;
  1397. line-height: 23px;
  1398. }
  1399. }
  1400. </style>
  1401. <style scoped lang="scss">
  1402. .app-container{
  1403. padding: 0 80px !important;
  1404. padding-top: 20px !important;
  1405. }
  1406. .tab_bott {
  1407. display: flex;
  1408. }
  1409. .tabBot_oje {
  1410. width: 40%;
  1411. }
  1412. .tabBot_two {
  1413. width: 50%;
  1414. margin-left: 30px;
  1415. }
  1416. .box-cardtt{
  1417. margin-top: 30px;
  1418. }
  1419. .index_navTimeimg {
  1420. width: 10px;
  1421. height: 10px;
  1422. margin-left: 5px;
  1423. }
  1424. </style>