userCenterMyConsultingService.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  1. <template>
  2. <div style="width: 100%;background: #fff;min-height: 700px;"
  3. class="userCenterMyProject">
  4. <div style="height: 60px;line-height: 60px;padding-top: 30px;margin-left: 30px;margin-right: 30px; border-bottom: 1px solid rgba(228, 228, 228, 1);">
  5. {{$t('common.myconsultation')}}
  6. </div>
  7. <div style="margin: 20px 0 0px 30px;"
  8. v-if="$i18n.locale=='zh'">
  9. <span v-for="(item,index) in taberPhone"
  10. style="margin-right: 70px;padding: 10px;"
  11. :class="item.value==taberIndex?'taberPhone1 cursor':'taberPhone2 cursor'"
  12. @click="getTaberPhone(item,index)">{{$t(item.label)}}</span>
  13. </div>
  14. <div style="margin: 20px 0 0px 30px;"
  15. v-else>
  16. <span v-for="(item,index) in taberPhone"
  17. style="margin-right: 40px;padding: 10px;"
  18. :class="item.value==taberIndex?'taberPhone1 cursor':'taberPhone2 cursor'"
  19. @click="getTaberPhone(item,index)"
  20. :style="{marginRight:index==4?'0':'40px'}">{{$t(item.label)}}</span>
  21. </div>
  22. <div style="margin: 20px 0 0px 30px;"
  23. v-if="taberIndex === '1'">
  24. <el-table :data="tableData"
  25. stripe
  26. highlight-current-row
  27. @row-click="toLook"
  28. class="projectName"
  29. style="width: 100%">
  30. <template slot="empty">
  31. {{$t('common.UserNoData')}}
  32. </template>
  33. <el-table-column type="index" fixed :label="$t('common.serialNumber')" width="120"> </el-table-column>
  34. <el-table-column prop="columnCodeName" :label="$t('common.projectName')" width='320'> </el-table-column>
  35. <el-table-column prop="content" :label="$t('common.ConsultingContent')" width='320'> </el-table-column>
  36. <el-table-column prop="consultMessageInfo.content" :label="$t('common.ReplyContent')" width='320'> </el-table-column>
  37. <el-table-column :prop="senderDate" :formatter="dateFormat" :label="$t('common.ConsultationTime')" width="150"></el-table-column>
  38. <el-table-column fixed="right" prop="address5" :label="$t('common.Option')" width="210">
  39. <template slot-scope="scope">
  40. <el-button
  41. @click="change(scope.row)"
  42. @click.stop
  43. v-if="scope.row.consultMessageInfo"
  44. type="text"
  45. size="small"
  46. >
  47. {{$t('common.check')}}
  48. </el-button>
  49. <el-button
  50. @click.native.prevent="deleteRow(scope.$index, tableData)"
  51. @click.stop
  52. type="text"
  53. size="small">
  54. {{$t('common.Delete')}}
  55. </el-button>
  56. </template>
  57. </el-table-column>
  58. </el-table>
  59. <div style="width: 100%;text-align: center;">
  60. <el-pagination
  61. style="margin-top: 50px;height: 80px;"
  62. background
  63. layout="prev, pager, next"
  64. :total=totalCount @size-change="handleSizeChange"
  65. @current-change="handleCurrentChange">
  66. </el-pagination>
  67. </div>
  68. <el-dialog
  69. v-if="row.consultMessageInfo"
  70. :title="$t('common.IntentionConsultation')"
  71. :visible.sync="dialogVisible"
  72. width="30%"
  73. :before-close="handleClose">
  74. <div style="padding: 0 20px;">
  75. <div class="consultTitle">
  76. <span>{{projectName}}</span>
  77. </div>
  78. <div style="border-bottom:1px solid #dfdfdf">
  79. <div style="margin-top:24px;">
  80. <div style="display:inline-block;background:#0091ff;width:20px;height:20px;color:#fff;line-height:20px;border-radius:50%;text-align:center">Q</div>
  81. <span style="color:#0091ff;margin-left:10px">{{$t('common.qustion')}}:</span>
  82. </div>
  83. <p v-html="row.content"></p>
  84. <span style="float:right;margin-bottom:20px">{{$t('common.qustionTime')}}:{{dateFormat(row)}}</span>
  85. <div style="clear:both"></div>
  86. </div>
  87. <div>
  88. <div style="margin-top:24px;">
  89. <div style="display:inline-block;background:#6dd400;width:20px;height:20px;color:#fff;line-height:20px;border-radius:50%;text-align:center">A</div>
  90. <span style="color:#6dd400;margin-left:10px">{{$t('common.replyMessage')}}</span>
  91. </div>
  92. <p v-html="row.consultMessageInfo.content"></p>
  93. <span style="float:right;margin-bottom:20px">{{$t('common.replyMessageTime')}}:{{dateFormat(row)}}</span>
  94. <div style="clear:both"></div>
  95. </div>
  96. </div>
  97. </el-dialog>
  98. </div>
  99. <div style="margin: 20px 0 0px 30px;"
  100. v-if="taberIndex === '6'">
  101. <el-table :data="thinkTankConsultations"
  102. stripe
  103. highlight-current-row
  104. style="width: 100%">
  105. <template slot="empty">
  106. {{$t('common.thinkTankConsultation')}}
  107. </template>
  108. <el-table-column type="index" fixed :label="$t('common.serialNumber')" width="120"> </el-table-column>
  109. <!-- <el-table-column prop="name"
  110. :label="$t('common.Name')"
  111. width='200'></el-table-column>-->
  112. <el-table-column prop="content"
  113. :label="$t('common.content')"
  114. width='200'></el-table-column>
  115. <el-table-column prop="thinkTankType"
  116. :label="$t('common.thinkTankType')"
  117. width='200'></el-table-column>
  118. <el-table-column prop="thinkTankConsultation.content"
  119. :label="$t('common.rescontent')"
  120. width='200'></el-table-column>
  121. <el-table-column prop="senderDate"
  122. :label="$t('common.senderDate')"
  123. width='200'></el-table-column>
  124. <el-table-column fixed="right"
  125. prop="address5"
  126. :label="$t('common.Option')"
  127. width="210">
  128. <template slot-scope="scope">
  129. <el-button @click.native.prevent="commit(scope.row)"
  130. type="text"
  131. size="small"
  132. v-if="scope.row.reserveOne == '0'"
  133. :disabled="scope.row.statusDict ==='3'">
  134. {{$t('common.commit')}}
  135. </el-button>
  136. <el-button @click.native.prevent="toDelThink(scope.row)"
  137. type="text"
  138. size="small"
  139. :disabled="scope.row.statusDict ==='3'">
  140. {{$t('common.delete')}}
  141. </el-button>
  142. <el-button @click.native.prevent="toReply(scope.row)"
  143. type="text"
  144. size="small"
  145. :disabled="scope.row.statusDict ==='3'">
  146. {{$t('common.Reply')}}
  147. </el-button>
  148. <el-button @click.native.prevent="toLookReply(scope.row)"
  149. type="text"
  150. size="small"
  151. v-if="scope.row.thinkTankConsultation">
  152. {{$t('common.view')}}
  153. </el-button>
  154. </template>
  155. </el-table-column>
  156. </el-table>
  157. <div style="width: 100%;text-align: center;">
  158. <el-pagination v-if="thinkTankConsultations"
  159. style="margin-top: 50px;height: 80px;"
  160. background
  161. layout="prev, pager, next"
  162. :total=totalCount1
  163. @size-change="handleSizeChange1"
  164. @current-change="handleCurrentChange1">
  165. </el-pagination>
  166. </div>
  167. <el-dialog
  168. v-if="rowConsultations.thinkTankConsultation"
  169. :title="$t('common.thinkTankConsultation')"
  170. :visible.sync="dialogVisible1"
  171. width="30%"
  172. :before-close="handleClose">
  173. <div style="padding: 0 20px;">
  174. <div style="border-bottom:1px solid #dfdfdf">
  175. <div style="margin-top:24px;">
  176. <div style="display:inline-block;background:#0091ff;width:20px;height:20px;color:#fff;line-height:20px;border-radius:50%;text-align:center">Q</div>
  177. <span style="color:#0091ff;margin-left:10px">{{$t('common.qustion')}}:</span>
  178. </div>
  179. <p v-html="rowConsultations.content"></p>
  180. <span style="float:right;margin-bottom:20px">{{$t('common.qustionTime')}}:{{dateFormat(rowConsultations)}}</span>
  181. <div style="clear:both"></div>
  182. </div>
  183. <div>
  184. <div style="margin-top:24px;">
  185. <div style="display:inline-block;background:#6dd400;width:20px;height:20px;color:#fff;line-height:20px;border-radius:50%;text-align:center">A</div>
  186. <span style="color:#6dd400;margin-left:10px">{{$t('common.replyMessage')}}</span>
  187. </div>
  188. <p v-html="rowConsultations.thinkTankConsultation.content"></p>
  189. <span style="float:right;margin-bottom:20px">{{$t('common.replyMessageTime')}}:{{dateFormat(rowConsultations)}}</span>
  190. <div style="clear:both"></div>
  191. </div>
  192. </div>
  193. </el-dialog>
  194. <el-dialog
  195. v-if="thinkTankConsultation"
  196. :title="$t('common.thinkTankConsultation')"
  197. :visible.sync="dialogVisible2"
  198. width="30%"
  199. :before-close="handleClose">
  200. <div style="padding: 0 20px;">
  201. <div style="border-bottom:1px solid #dfdfdf">
  202. <el-form-item :label="$t('common.Demandforcontent')" prop="content">
  203. <el-input type="textarea" style="width: 65%;" :autosize="{ minRows: 4, maxRows: 6 }"
  204. maxlength="500" show-word-limit
  205. :placeholder="$t('common.PleaseEnter') + $t('common.Demandforcontent')"
  206. v-model="thinkTankConsultation.content" show-word-limit>
  207. </el-input>
  208. </el-form-item>
  209. <div slot="footer" class="dialog-footer">
  210. <el-button @click="cancelSubmit">{{ $t('common.Cancel') }}</el-button>
  211. <el-button type="primary" @click="onSubmit">{{ $t('common.Submit') }}</el-button>
  212. </div>
  213. </div>
  214. </div>
  215. </el-dialog>
  216. </div>
  217. </div>
  218. </template>
  219. <script>
  220. import Base from "@/views/base/Base"
  221. import { getDicts } from '@/api/dict';
  222. import { getBaseMemberApplys } from '@/api/baseMemberApply'
  223. import { getCoopCustomServices, del } from "@/api/cooperation/coopCustomService";
  224. import { getBaseLeagueApplys } from '@/api/cooperation/baseLeagueApply'
  225. import { getBaseResearchApplications, deleteByDoor } from "@/api/research/resource/baseResearchApplication";
  226. import {getReplyAndSenderMessage,gateDelConsultMessageInfo} from "@/api/operation/consultMessageInfo"
  227. import { formatDate } from "@/utils/formatUtils";
  228. import moment from 'moment'
  229. import { getToken,resetToken } from '@/utils/auth'
  230. import {getThinkTankConsultations,commit,deleteTo} from "@/api/thinkTank/thinkTankConsultation";
  231. import Bus from "@/api/bus";
  232. export default {
  233. name: 'userCentermyConcerns',
  234. extends: Base,
  235. data () {
  236. return {
  237. formInline: {
  238. user: '',
  239. region: ''
  240. },
  241. taberPhone: [{
  242. label: "common.IntentionConsultation",
  243. value: '1'
  244. }, {
  245. label: "common.thinkTankConsultation",
  246. value: '6'
  247. }],
  248. taberIndex: '',
  249. baseMemberApplies: [],
  250. coopCustomServices: [],
  251. resourceApplications: [],
  252. memberApplyStatus: [],
  253. serviceTypeDicts: [],
  254. childTypeDicts: [],
  255. supportWayDicts: [],
  256. phaseDicts: [],
  257. statusDicts: [],
  258. phaseDictsEnMap: {
  259. '1': 'Fill in the information',
  260. '2': 'Preliminary review',
  261. '3': 'Approval by the Chairman Office Meeting',
  262. '4': 'Qualification',
  263. '5': 'Membership confirmation',
  264. '6': 'Issue the certificate',
  265. '7': 'Complete'
  266. },
  267. memberApplyStatusEnMap: {
  268. '1': 'Not audit',
  269. '2': 'To audit',
  270. '3': 'Approved',
  271. '4': 'Rejected',
  272. },
  273. customServiceMap: {
  274. '0': 'Draft',
  275. '1': 'To audit',
  276. '2': 'Rejected',
  277. '3': 'Approved'
  278. },
  279. auditStatusDicts: [],
  280. auditStatusDictsENMap: {
  281. '1': 'Have not been submitted',
  282. '2': 'To audit',
  283. '3': 'First approval rejected',
  284. '4': 'First approval agreed',
  285. '5': 'Second approval is rejected',
  286. '6': 'Second approval is agreed',
  287. },
  288. baseLeagueApplies: [],
  289. releaseStatus: [],
  290. thinkTankConsultations: [],
  291. thinkTankTypeDicts: [],
  292. tableData: [],
  293. dialogVisible:false,
  294. dialogVisible1:false,
  295. dialogVisible2:false,
  296. projectName: "",
  297. totalCount:0,
  298. totalCount1:0,
  299. row:{},
  300. rowConsultations: {},
  301. param: {
  302. pageNo:0,
  303. pageSize:10,
  304. language:'',
  305. },
  306. items: {
  307. pageNo:0,
  308. pageSize:10,
  309. }
  310. }
  311. },
  312. watch: {
  313. '$i18n.locale' () {
  314. this.getDicts()
  315. },
  316. 'taberIndex' () {
  317. this.getinitData(this.taberIndex);
  318. }
  319. },
  320. mounted () {
  321. this.taberIndex = this.$route.params.index ? this.$route.params.index : '1'
  322. this.getDicts()
  323. },
  324. computed: {
  325. releaseStatusMap: function () {
  326. return this.releaseStatus.array2Obj("value", "label");
  327. },
  328. memberApplyStatusMap: function () {
  329. return this.memberApplyStatus.array2Obj("value", "label");
  330. },
  331. phaseDictsMap: function () {
  332. return this.phaseDicts.array2Obj("value", "label");
  333. },
  334. serviceTypeDictsMap: function () {
  335. return this.serviceTypeDicts.array2Obj("value", "label");
  336. },
  337. childTypeDictsMap: function () {
  338. return this.childTypeDicts.array2Obj("value", "label");
  339. },
  340. statusDictsMap: function () {
  341. return this.statusDicts.array2Obj("value", "label");
  342. },
  343. supportWayDictsMap: function () {
  344. return this.supportWayDicts.array2Obj("value", "label");
  345. },
  346. auditStatusDictsMap: function () {
  347. return this.auditStatusDicts.array2Obj("value", "label");
  348. },
  349. thinkTankTypeDictsMap: function () {
  350. return this.thinkTankTypeDicts.array2Obj("value", "label");
  351. },
  352. },
  353. methods: {
  354. getDicts () {
  355. if (this.$i18n.locale === 'zh') {
  356. getDicts("APPROVE_STATUS_DICT,MEMBER_APPLY_PHASE_DICT,SERVICE_TYPE_DICT,SERVICE_CHILD_TYPE_DICT,SUPPORT_WAY_DICT,CUSTOM_SERVICE_STATUS,MEMBER_APPLY_AUDIT_STATUS_DICT,RELEASE_STATUS_DICT,THINK_TANK_TYPE_DICT").then(result => {
  357. if (result.data) {
  358. this.memberApplyStatus = result.data[0];
  359. this.phaseDicts = result.data[1];
  360. this.serviceTypeDicts = result.data[2];
  361. this.childTypeDicts = result.data[3];
  362. this.supportWayDicts = result.data[4]
  363. this.statusDicts = result.data[5] || []
  364. this.auditStatusDicts = result.data[6] || []
  365. this.releaseStatus = result.data[7] || []
  366. this.thinkTankTypeDicts = result.data[8] || []
  367. this.statusDicts.forEach((item, index) => {
  368. if (index === 1) {
  369. item.label = '待审核'
  370. } else if (index === 0) {
  371. item.label = '待审核'
  372. }
  373. });
  374. this.getinitData(this.taberIndex)
  375. }
  376. });
  377. } else {
  378. getDicts("APPROVE_STATUS_DICT_EN,MEMBER_APPLY_PHASE_DICT,SERVICE_TYPE_DICT_EN,SERVICE_CHILD_TYPE_DICT_EN,SUPPORT_WAY_DICT_EN,THINK_TANK_TYPE_DICT_EN").then(result => {
  379. if (result.data) {
  380. this.memberApplyStatus = result.data[0];
  381. this.phaseDicts = result.data[1];
  382. this.serviceTypeDicts = result.data[2];
  383. this.childTypeDicts = result.data[3];
  384. this.supportWayDicts = result.data[4]
  385. this.thinkTankTypeDicts = result.data[5] || [];
  386. this.getinitData(this.taberIndex)
  387. }
  388. });
  389. }
  390. },
  391. getReply(){
  392. let token = getToken();
  393. this.param.language = this.$i18n.locale.toUpperCase();
  394. getReplyAndSenderMessage(this.param,this.param.language,token).then(res=>{
  395. console.log(res);
  396. this.tableData=res.data.consultMessageInfos;
  397. this.totalCount=res.data.page.totalCount-0;
  398. this.resetToken();
  399. })
  400. },
  401. dateFormat(row) {
  402. return moment(row.senderDate).format('YYYY-MM-DD');
  403. },
  404. getinitData (index) {
  405. if (index == "1") {
  406. this.getReply()
  407. }
  408. if (index == "6") {
  409. this.getThinkTankConsultations();
  410. }
  411. },
  412. getThinkTankConsultations(){
  413. let user = JSON.parse(window.localStorage.getItem('user'));
  414. this.items.senderId = user.userId
  415. getThinkTankConsultations(this.items).then((resulet) => {
  416. let data = resulet.data;
  417. if (data.thinkTankConsultations) {
  418. this.thinkTankConsultations = data.thinkTankConsultations || [];
  419. this.totalCount1 = data.page.totalCount-0;
  420. this.thinkTankConsultations.forEach(item => {
  421. item.senderDate = formatDate(item.senderDate, 'YYYY-MM-DD');
  422. item.thinkTankType = this.thinkTankTypeDictsMap[item.thinkTankType]
  423. })
  424. }
  425. });
  426. },
  427. // 发布
  428. release (index, rows) {
  429. console.log(index, rows)
  430. },
  431. // 编辑
  432. change(row) {
  433. this.row=row;
  434. this.dialogVisible=true;
  435. var language = this.$i18n.locale.toUpperCase()
  436. getBaseProjectInfoName(language,row.columnCode).then(res=>{
  437. this.projectName = res.data.baseProjectInfoName;
  438. })
  439. },
  440. // 删除
  441. deleteRow(index, rows) {
  442. this.$confirm(this.$i18n.locale === 'zh' ? '确定删除?' : 'Are you sure you want to delete?', this.$t('common.Tips'), {
  443. confirmButtonText: this.$t('common.OK'),
  444. cancelButtonText: this.$t('common.cancel'),
  445. type: 'warning'
  446. }).then(() => {
  447. gateDelConsultMessageInfo(rows[index].id).then(res=>{
  448. this.$message({
  449. message: this.$i18n.locale === 'zh' ? '删除成功!' : 'Successfully deleted',
  450. type: 'success'
  451. });
  452. this.getReply();
  453. }).catch((error) => {
  454. this.$message.error(res.msg);
  455. })
  456. }).catch(() => {
  457. this.$message({
  458. type: 'info',
  459. message: this.$t('common.Cancelled'),
  460. });
  461. });
  462. },
  463. changeToAlliance (index, rows) {
  464. this.$router.push('userCentermyConcernsProgressCheckAlliance', rows)
  465. },
  466. handleCurrentChange(val) {
  467. this.param.pageNo=val;
  468. this.getReply()
  469. },
  470. getTaberPhone (item, index) {
  471. this.taberIndex = item.value
  472. console.log(this.taberIndex)
  473. },
  474. handleCurrentChange1 (val) {
  475. this.item.pageNo=val;
  476. this.getThinkTankConsultations();
  477. },
  478. YymmddFormat (newDate) {
  479. let Month = newDate.getMonth() + 1;
  480. Month = Month >= 10 ? Month : '0' + Month;
  481. let d = newDate.getDate();
  482. d = d >= 10 ? d : '0' + d
  483. return [
  484. [newDate.getFullYear(), Month, d].join('-'), [newDate.getHours(), newDate.getMinutes()].join(':')
  485. ].join(' ');
  486. },
  487. edit (row) {
  488. console.log(row);
  489. this.$router.push({ name: 'IntroductionMemberProfile', query: { data: row, key: 'custom', index: this.taberIndex } })
  490. },
  491. toApply (row) {
  492. console.log(row);
  493. this.$router.push({ name: 'resourceSharingResourceApply', query: { key: row.id } })
  494. },
  495. toLook (row) {
  496. this.toView('projectPresentationDetails',row.columnCode)
  497. },
  498. toView(router, json) {
  499. window.localStorage.setItem('router', '');
  500. this.$store.commit('modify', router);
  501. Bus.$emit("router", router); //存 Bus.$emit
  502. const { href } =this.$router.resolve({
  503. name: router,
  504. query: {
  505. key: json,
  506. }
  507. });
  508. window.open(href, '_blank');
  509. },
  510. toDel (row) {
  511. let params = {
  512. id: row.id
  513. }
  514. this.$confirm(this.$i18n.locale === 'zh' ? '确定删除?' : 'Are you sure you want to delete?', this.$t('common.Tips'), {
  515. confirmButtonText: this.$t('common.OK'),
  516. cancelButtonText: this.$t('common.cancel'),
  517. type: 'warning'
  518. }).then(() => {
  519. deleteByDoor(params).then(result => {
  520. this.$message({
  521. type: 'success',
  522. message: this.$i18n.locale === 'zh' ? '删除成功!' : 'Successfully deleted'
  523. });
  524. this.getDicts()
  525. })
  526. }).catch(() => {
  527. this.$message({
  528. type: 'info',
  529. message: this.$t('common.Cancelled'),
  530. });
  531. });
  532. },
  533. del (row, index) {
  534. this.$confirm(this.$i18n.locale === 'zh' ? '确定删除?' : 'Are you sure you want to delete?', this.$t('common.Tips'), {
  535. confirmButtonText: this.$t('common.OK'),
  536. cancelButtonText: this.$t('common.cancel'),
  537. type: 'warning'
  538. }).then(() => {
  539. del(row.id).then(() => {
  540. this.$message({
  541. type: 'success',
  542. message: this.$i18n.locale === 'zh' ? '删除成功!' : 'Successfully deleted'
  543. });
  544. })
  545. this.getinitData(index);
  546. })
  547. .catch(() => {
  548. this.$message({
  549. type: "info",
  550. message: this.$t('common.Cancelled'),
  551. });
  552. });
  553. },
  554. view (row) {
  555. this.$router.push({ name: 'IntroductionMemberProfile', query: { data: row, key: 'custom', disable: true, index: this.taberIndex } })
  556. },
  557. commit(row) {
  558. this.$confirm(this.$i18n.locale === 'zh' ? '确定提交?' : 'Are you sure you want to commit?', this.$t('common.Tips'), {
  559. confirmButtonText: this.$t('common.OK'),
  560. cancelButtonText: this.$t('common.cancel'),
  561. type: 'warning'
  562. }).then(() => {
  563. commit(row.id).then(() => {
  564. this.$message({
  565. type: 'success',
  566. message: this.$i18n.locale === 'zh' ? '提交成功!' : 'Commit Successfully'
  567. });
  568. this.getThinkTankConsultations();
  569. })
  570. })
  571. .catch(() => {
  572. });
  573. },
  574. toDelThink(row) {
  575. this.$confirm(this.$i18n.locale === 'zh' ? '确定删除?' : 'Are you sure you want to delete?', this.$t('common.Tips'), {
  576. confirmButtonText: this.$t('common.OK'),
  577. cancelButtonText: this.$t('common.cancel'),
  578. type: 'warning'
  579. }).then(() => {
  580. deleteTo(row.id).then(() => {
  581. this.$message({
  582. type: 'success',
  583. message: this.$i18n.locale === 'zh' ? '删除成功!' : 'Successfully Deleted'
  584. });
  585. this.getThinkTankConsultations();
  586. })
  587. })
  588. .catch(() => {
  589. });
  590. },
  591. toReply(row) {
  592. this.dialogVisible2=true;
  593. },
  594. //取消提交
  595. cancelSubmit() {
  596. this.dialogAssueVisible = false;
  597. },
  598. toLookReply(row) {
  599. this.rowConsultations = row;
  600. this.dialogVisible1=true;
  601. },
  602. handleSizeChange(){},
  603. handleSizeChange1(){}
  604. }
  605. }
  606. </script>
  607. <style scoped>
  608. .el-input {
  609. width: 200px;
  610. }
  611. .el-form-item__content,
  612. .el-select {
  613. width: 200px !important;
  614. }
  615. .el-table thead {
  616. background: #eee;
  617. }
  618. .userCenterMyProject >>> .el-pagination .el-pager li,
  619. .userCenterMyProject >>> .el-pagination .btn-next,
  620. .userCenterMyProject >>> .el-pagination .btn-prev {
  621. width: 35px;
  622. height: 35px;
  623. line-height: 35px;
  624. }
  625. .userCenterMyProject
  626. >>> .el-pagination.is-background
  627. .el-pager
  628. li:not(.disabled).active {
  629. background: #0050d8;
  630. }
  631. .taberPhone1 {
  632. border-bottom: 2px solid #0c5afa;
  633. color: #0c5afa;
  634. }
  635. .el-table_body{
  636. color: red;
  637. }
  638. .projectName >>> .el-table__row td:nth-of-type(2){
  639. color: #0a0000af !important;
  640. }
  641. .projectName >>> .hover-row td:nth-of-type(2){
  642. color: #0079ef !important;
  643. }
  644. /* .projectName >>> .el-table__row td:nth-of-type(2){
  645. color: red ;
  646. } */
  647. .projectName >>> .el-table__row td:nth-of-type(2) .cell{
  648. cursor: pointer;
  649. }
  650. </style>