index.vue 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
  4. <el-form-item label="企微成员ID" prop="id">
  5. <el-input
  6. v-model="queryParams.id"
  7. placeholder="请输入企微成员ID"
  8. clearable
  9. size="small"
  10. @keyup.enter.native="handleQuery"
  11. />
  12. </el-form-item>
  13. <el-form-item label="企微主体" prop="corpId">
  14. <el-select v-model="queryParams.corpId" placeholder="企微主体" size="small" @change="updateCorpId()">
  15. <el-option
  16. v-for="dict in myQwCompanyList"
  17. :key="dict.dictValue"
  18. :label="dict.dictLabel"
  19. :value="dict.dictValue"
  20. />
  21. </el-select>
  22. </el-form-item>
  23. <el-form-item label="企微部门">
  24. <treeselect :clearable="false" v-model="queryParams.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门"/>
  25. </el-form-item>
  26. <el-form-item label="企微账号" prop="qwUserId">
  27. <el-input
  28. v-model="queryParams.qwUserId"
  29. placeholder="请输入企微账号"
  30. clearable
  31. size="small"
  32. @keyup.enter.native="handleQuery"
  33. />
  34. </el-form-item>
  35. <el-form-item label="企微昵称" prop="qwUserName">
  36. <el-input
  37. v-model="queryParams.qwUserName"
  38. placeholder="请输入企微昵称"
  39. clearable
  40. size="small"
  41. @keyup.enter.native="handleQuery"
  42. />
  43. </el-form-item>
  44. <el-form-item label="授权码" prop="appKey">
  45. <el-input
  46. v-model="queryParams.appKey"
  47. placeholder="请输入授权码"
  48. clearable
  49. size="small"
  50. @keyup.enter.native="handleQuery"
  51. />
  52. </el-form-item>
  53. <el-form-item label="ipad状态" prop="loginStatus">
  54. <el-select v-model="queryParams.loginStatus" placeholder="请选择ipad状态" clearable>
  55. <el-option
  56. v-for="item in loginStatusOption"
  57. :key="item.value"
  58. :label="item.label"
  59. :value="item.value">
  60. </el-option>
  61. </el-select>
  62. </el-form-item>
  63. <el-form-item label="员工状态" prop="isDel">
  64. <el-select v-model="queryParams.isDel" placeholder="请选择员工状态" clearable>
  65. <el-option
  66. v-for="item in optionsStatus"
  67. :key="item.value"
  68. :label="item.label"
  69. :value="item.value">
  70. </el-option>
  71. </el-select>
  72. </el-form-item>
  73. <el-form-item>
  74. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  75. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  76. </el-form-item>
  77. </el-form>
  78. <el-row :gutter="10" class="mb8">
  79. <el-col :span="1.5">
  80. <el-button
  81. type="primary"
  82. :disabled="multiple"
  83. plain
  84. icon="el-icon-edit"
  85. size="mini"
  86. @click="updateSendType"
  87. >修改发送方式
  88. </el-button>
  89. </el-col>
  90. <el-col :span="1.5">
  91. <el-button
  92. type="warning"
  93. plain
  94. icon="el-icon-download"
  95. size="mini"
  96. :loading="exportLoading"
  97. @click="handleExport"
  98. v-hasPermi="['qw:user:export']"
  99. >导出</el-button>
  100. </el-col>
  101. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  102. </el-row>
  103. <el-table border v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
  104. <el-table-column type="selection" width="55" align="center" />
  105. <el-table-column label="企微成员ID" align="center" prop="id" />
  106. <el-table-column label="企微账号" align="center" prop="qwUserId" />
  107. <el-table-column label="企微昵称" align="center" prop="qwUserName" />
  108. <el-table-column label="员工称呼" align="center" prop="welcomeText" />
  109. // 部门
  110. <el-table-column label="部门" align="center" prop="departmentName" />
  111. <el-table-column label="员工状态" align="center" prop="isDel">
  112. <template slot-scope="scope">
  113. <el-tag v-if="scope.row.isDel == 0" type="success">正常</el-tag>
  114. <el-tag v-else type="error">离职</el-tag>
  115. </template>
  116. </el-table-column>
  117. <el-table-column label="联系我二维码" align="center" prop="contactWay" >
  118. <template slot-scope="scope">
  119. <el-image
  120. v-if="scope.row.contactWay!=null"
  121. style="width: 100px; height: 100px"
  122. :src="scope.row.contactWay"
  123. fit="contain"
  124. @click="openImageViewer(scope.row.contactWay)"/>
  125. </template>
  126. </el-table-column>
  127. <el-table-column label="绑定的AI客服" align="center" prop="fastGptRoleName" />
  128. <el-table-column label="授权码" align="center" prop="appKey" />
  129. <el-table-column label="发送方式" align="center" prop="sendMsgType">
  130. <template slot-scope="scope">
  131. <el-tag v-if="scope.row.sendMsgType == 0">方式一</el-tag>
  132. <el-tag v-if="scope.row.sendMsgType == 1" type="success">方式二</el-tag>
  133. <el-tag v-if="scope.row.sendMsgType == 2" type="warning">掉线通知</el-tag>
  134. </template>
  135. </el-table-column>
  136. <el-table-column label="vid" align="center" prop="vid" />
  137. <el-table-column label="uid" align="center" prop="uid" />
  138. <el-table-column label="serverId" align="center" prop="serverId" />
  139. <el-table-column label="ipad状态" align="center" prop="loginStatus">
  140. <template slot-scope="scope">
  141. <el-tag v-if="scope.row.ipadStatus == 1" type="success">在线</el-tag>
  142. <el-tag v-else type="danger">离线</el-tag>
  143. </template>
  144. </el-table-column>
  145. <!-- <el-table-column label="插件状态" align="center" prop="toolStatus">-->
  146. <!-- <template slot-scope="scope">-->
  147. <!-- <el-tag v-if="scope.row.toolStatus == 1" type="success">在线</el-tag>-->
  148. <!-- <el-tag v-else type="danger">离线</el-tag>-->
  149. <!-- </template>-->
  150. <!-- </el-table-column>-->
  151. <!-- <el-table-column label="插件版本" align="center" prop="version"/>-->
  152. <!-- <el-table-column label="服务器地址" align="center" prop="loginCodeUrl">-->
  153. <!-- <template slot-scope="scope">-->
  154. <!-- <el-tooltip class="item" effect="dark" :content="scope.row.loginCodeUrl" placement="top">-->
  155. <!-- <div style="display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-overflow: ellipsis;">-->
  156. <!-- <span>{{ scope.row.loginCodeUrl }}</span>-->
  157. <!-- </div>-->
  158. <!-- </el-tooltip>-->
  159. <!-- </template>-->
  160. <!-- </el-table-column>-->
  161. <el-table-column label="自动发课" align="center" prop="isAuto">
  162. <template slot-scope="scope">
  163. <dict-tag :options="isAutoOptions" :value="scope.row.isAuto"/>
  164. </template>
  165. </el-table-column>
  166. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120px" fixed="right">
  167. <template slot-scope="scope">
  168. <el-button
  169. size="mini"
  170. type="text"
  171. icon="el-icon-user-solid"
  172. plain
  173. @click="handleAppellation(scope.row)"
  174. >
  175. 修改员工称呼
  176. </el-button>
  177. <el-button
  178. size="mini"
  179. type="text"
  180. icon="el-icon-user-solid"
  181. plain
  182. @click="handleAutoRemark(scope.row)"
  183. >
  184. 完课备注修改
  185. </el-button>
  186. <el-button
  187. v-if="scope.row.serverStatus==1&&scope.row.ipadStatus!=1"
  188. size="mini"
  189. type="text"
  190. icon="el-icon-sunny"
  191. plain
  192. @click="handleLoginQwCode(scope.row)"
  193. v-hasPermi="['qw:user:login']"
  194. >
  195. 登录企微
  196. </el-button>
  197. <el-button
  198. v-if="scope.row.serverStatus==1&&scope.row.ipadStatus==1"
  199. size="mini"
  200. type="text"
  201. icon="el-icon-moon"
  202. plain
  203. @click="handleLoginOutQwStatus(scope.row)"
  204. v-hasPermi="['qw:user:login']"
  205. >
  206. 退出企微
  207. </el-button>
  208. <el-button
  209. v-if="scope.row.ipadStatus==1"
  210. size="mini"
  211. type="text"
  212. icon="el-icon-moon"
  213. plain
  214. @click="handleTwoCode(scope.row)"
  215. v-hasPermi="['qw:user:login']">
  216. 二次验证
  217. </el-button>
  218. <el-button
  219. v-if="scope.row.serverStatus!=1"
  220. size="mini"
  221. type="text"
  222. icon="el-icon-moon"
  223. plain
  224. @click="handleGetQwIpad(scope.row)"
  225. v-hasPermi="['qw:user:login']"
  226. >
  227. 获取Ai主机
  228. </el-button>
  229. <el-button
  230. v-if="scope.row.serverStatus==1 && scope.row.ipadStatus!=1"
  231. size="mini"
  232. type="text"
  233. icon="el-icon-moon"
  234. plain
  235. @click="handleDelQwIpad(scope.row)"
  236. v-hasPermi="['qw:user:login']"
  237. >
  238. 解绑Ai主机
  239. </el-button>
  240. <el-button
  241. v-if="scope.row.isAuto=='00'"
  242. size="mini"
  243. type="text"
  244. icon="el-icon-moon"
  245. plain
  246. @click="handleUpdateIsAuto(scope.row,'01')"
  247. v-hasPermi="['qw:user:isauto']"
  248. >
  249. 启用插件
  250. </el-button>
  251. <el-button
  252. v-if="scope.row.isAuto=='01'"
  253. size="mini"
  254. type="text"
  255. icon="el-icon-moon"
  256. plain
  257. @click="handleUpdateIsAuto(scope.row,'00')"
  258. v-hasPermi="['qw:user:isauto']"
  259. >
  260. 禁用插件
  261. </el-button>
  262. </template>
  263. </el-table-column>
  264. <el-table-column label="主机" align="center" class-name="small-padding fixed-width" width="110px" fixed="right">
  265. <template slot-scope="scope">
  266. <el-button
  267. v-if="scope.row.appKey==null"
  268. size="mini"
  269. type="text"
  270. icon="el-icon-s-check"
  271. plain
  272. v-hasPermi="['qw:user:authAppKey']"
  273. @click="uploadAuthorizeKey2(scope.row)"
  274. >授权key
  275. </el-button>
  276. <!-- <el-button
  277. v-if="scope.row.loginCodeUrl==null && scope.row.appKey !=null"
  278. v-show="false"
  279. size="mini"
  280. type="text"
  281. icon="el-icon-sunny"
  282. plain
  283. @click="handleBindCloudHost(scope.row)"
  284. v-hasPermi="['qw:user:loginIp']"
  285. >
  286. 绑定主机
  287. </el-button>-->
  288. <!-- <el-button-->
  289. <!-- v-if="scope.row.loginCodeUrl!=null"-->
  290. <!-- size="mini"-->
  291. <!-- type="text"-->
  292. <!-- icon="el-icon-video-camera-solid"-->
  293. <!-- plain-->
  294. <!-- @click="handleCloudAP(scope.row.loginCodeUrl)"-->
  295. <!-- v-hasPermi="['qw:user:cloudAP']"-->
  296. <!-- >-->
  297. <!-- 获取主机帐密-->
  298. <!-- </el-button>-->
  299. <el-button
  300. v-if="scope.row.loginCodeUrl!=null"
  301. size="mini"
  302. type="text"
  303. icon="el-icon-moon"
  304. plain
  305. @click="handleUnbindCloudHost(scope.row)"
  306. v-hasPermi="['qw:user:loginIpOut']"
  307. >
  308. 解除主机
  309. </el-button>
  310. <el-button
  311. size="mini"
  312. type="text"
  313. :icon="scope.row.videoGetStatus == 0 ? 'el-icon-circle-check' : 'el-icon-remove-outline'"
  314. plain
  315. @click="changeVideoStatus(scope.row)"
  316. >
  317. {{ scope.row.videoGetStatus == 0 ? "开启" : "禁用" }}视频号接收
  318. </el-button>
  319. </template>
  320. </el-table-column>
  321. <el-table-column label="AI客服" align="center" class-name="small-padding fixed-width" width="100px" fixed="right">
  322. <template slot-scope="scope">
  323. <el-button
  324. size="mini"
  325. type="text"
  326. icon="el-icon-connection"
  327. plain
  328. v-if="scope.row.fastGptRoleName!=null"
  329. @click="bindFastGptRole(scope.row)"
  330. >换绑AI客服</el-button>
  331. <el-button
  332. size="mini"
  333. type="text"
  334. plain
  335. icon="el-icon-link"
  336. v-else
  337. @click="bindFastGptRole(scope.row)"
  338. >绑定AI客服</el-button>
  339. <el-button
  340. size="mini"
  341. type="text"
  342. icon="el-icon-unlock"
  343. plain
  344. v-if="scope.row.fastGptRoleName!=null"
  345. @click="relieveFastGptRole(scope.row)"
  346. >解绑AI客服</el-button>
  347. <el-button
  348. size="mini"
  349. type="text"
  350. icon="el-icon-unlock"
  351. plain
  352. v-hasPermi="['qw:user:aiStatus']"
  353. v-if="scope.row.aiStatus == 0 && (projectFrom === 'sxjz' || projectFrom === 'myhk')"
  354. @click="updateFastGptRoleStatus(scope.row)"
  355. >Ai客服下线</el-button>
  356. <el-button
  357. size="mini"
  358. type="text"
  359. icon="el-icon-unlock"
  360. plain
  361. v-hasPermi="['qw:user:aiStatus']"
  362. v-if="scope.row.aiStatus == 1 && (projectFrom === 'sxjz' || projectFrom === 'myhk')"
  363. @click="updateFastGptRoleStatus(scope.row)"
  364. >Ai客服上线</el-button>
  365. </template>
  366. </el-table-column>
  367. </el-table>
  368. <pagination
  369. v-show="total>0"
  370. :total="total"
  371. :page.sync="queryParams.pageNum"
  372. :limit.sync="queryParams.pageSize"
  373. @pagination="getList"
  374. />
  375. <!-- 绑定AI客服-->
  376. <el-dialog :title="bindAiTitle" :visible.sync="bindAiOpen" width="1200px" append-to-body>
  377. <fast-gpt-role ref="fastGptRole" @refreshFastGptList="refreshFastGptList" ></fast-gpt-role>
  378. </el-dialog>
  379. <!-- <el-dialog :visible.sync="updateIp.open" width="600px" append-to-body>-->
  380. <!-- <el-form ref="updateIpForm" :model="updateIpForm" :rules="updateIpRule" label-width="100px">-->
  381. <!-- <el-form-item label="新云主机IP" prop="Ip">-->
  382. <!-- <el-input v-model="updateIpForm.newIp" placeholder="请输入新IP" />-->
  383. <!-- </el-form-item>-->
  384. <!-- </el-form>-->
  385. <!-- <div slot="footer" class="dialog-footer" >-->
  386. <!-- <el-button type="primary" @click="submitUpdateIpForm">确 定</el-button>-->
  387. <!-- </div>-->
  388. <!-- </el-dialog>-->
  389. <el-dialog title="云主机信息" :visible.sync="cloudAPOpen.open" append-to-body>
  390. <el-card class="box-card">
  391. <div slot="header" class="clearfix">
  392. <span>账号:{{cloudAPOpen.admin}}</span>
  393. </div>
  394. <div slot="header" class="clearfix">
  395. <span>密码:{{cloudAPOpen.passWord}}</span>
  396. </div>
  397. </el-card>
  398. </el-dialog>
  399. <el-dialog :title="callOpen.title" :visible.sync="callOpen.open" width="500px" append-to-body>
  400. <el-form ref="callOpenFrom" :model="callOpenFrom" :rules="callOpenRule" label-width="110px">
  401. <el-form-item label="员工称呼" prop="welcomeText">
  402. <el-input v-model="callOpenFrom.welcomeText" placeholder="请输入员工称呼" />
  403. </el-form-item>
  404. </el-form>
  405. <div slot="footer" class="dialog-footer" >
  406. <el-button type="primary" @click="submitCallOpenFrom">确 定</el-button>
  407. </div>
  408. </el-dialog>
  409. <el-dialog :title="editRemarkOpen.title" :visible.sync="editRemarkOpen.open" width="500px" append-to-body>
  410. <el-form ref="callOpenFrom" :model="editRemarkOpen" label-width="110px">
  411. <el-radio-group v-model="editRemarkOpen.isSendMsg">
  412. <el-card>
  413. <el-row :gutter="20">
  414. <el-col>
  415. <el-radio
  416. :label="1"
  417. style="font-size: 16px; margin: 10px 0;"
  418. >添加【完课备注】在最【旧备注-(前面)】</el-radio>
  419. </el-col>
  420. <el-col>
  421. <el-radio
  422. :label="2"
  423. style="font-size: 16px; margin: 10px 0;"
  424. >添加【完课备注】在最【旧备注-(后面)】</el-radio>
  425. </el-col>
  426. <el-col>
  427. <el-radio
  428. :label="3"
  429. style="font-size: 16px; margin: 10px 0;"
  430. >使用简洁版备注【*日期完】,在【旧备注-前面】</el-radio>
  431. </el-col>
  432. <el-col>
  433. <el-radio
  434. :label="4"
  435. style="font-size: 16px; margin: 10px 0;"
  436. >使用简洁版备注【*日期完】,在【旧备注-后面】</el-radio>
  437. </el-col>
  438. <el-col>
  439. <el-radio
  440. :label="5"
  441. style="font-size: 16px; margin: 10px 0;"
  442. >不用完课备注</el-radio>
  443. </el-col>
  444. </el-row>
  445. </el-card>
  446. </el-radio-group>
  447. </el-form>
  448. <div slot="footer" class="dialog-footer">
  449. <el-button type="primary" @click="submitEditRemarkOpenFrom">确 定</el-button>
  450. </div>
  451. </el-dialog>
  452. <el-dialog title="授权key" :visible.sync="authorizeKeyOpen" width="500px" append-to-body>
  453. <el-form ref="authorizeKeyFrom" :model="authorizeKeyFrom" :rules="authorizeKeyRule" label-width="110px">
  454. <el-form-item label="授权的key值" prop="appKey">
  455. <el-input v-model="authorizeKeyFrom.appKey" placeholder="请输入授权key" type="Number"/>
  456. </el-form-item>
  457. </el-form>
  458. <div slot="footer" class="dialog-footer" >
  459. <el-button type="primary" @click="submitAuthorizeKeyForm">确 定</el-button>
  460. </div>
  461. </el-dialog>
  462. <!--二维码 -->
  463. <el-dialog
  464. title="企微二次认证"
  465. :visible.sync="qwLoginTwo.open"
  466. width="600px"
  467. append-to-body
  468. custom-class="qr-login-dialog"
  469. >
  470. <div class="qr-login-container">
  471. <div class="image-wrapper" v-loading="imageLoading" >
  472. <el-image
  473. :src="'data:image/png;base64,' +qwLoginTwo.codeUrl"
  474. style="display: block; margin: 0 auto; width: 300px; height: 300px;"
  475. />
  476. </div>
  477. <p class="qr-login-instructions">二次验证二维码</p>
  478. </div>
  479. <div slot="footer" class="dialog-footer" >
  480. <el-button type="primary" @click="qwLoginTwo.open=false">确 定</el-button>
  481. </div>
  482. </el-dialog>
  483. <el-dialog
  484. :title="qwLogin.title"
  485. :visible.sync="qwLogin.open"
  486. width="600px"
  487. append-to-body
  488. custom-class="qr-login-dialog"
  489. >
  490. <div class="qr-login-container">
  491. <div class="image-wrapper" v-loading="imageLoading" >
  492. <el-image
  493. :src="'data:image/png;base64,' +qwLogin.codeUrl"
  494. style="display: block; margin: 0 auto; width: 300px; height: 300px;"
  495. />
  496. </div>
  497. <p class="qr-login-instructions">使用企业微信扫码授权登录</p>
  498. </div>
  499. </el-dialog>
  500. <el-dialog
  501. title="输入企微验证码"
  502. :visible.sync="qwCode.open"
  503. width="600px"
  504. append-to-body>
  505. <el-form :model="qwCode" label-width="80px" @submit.native.prevent="handleSubmit">
  506. <el-form-item label="验证码" prop="companyName">
  507. <el-input v-model="qwCode.code" placeholder="输入企微6位验证码" />
  508. </el-form-item>
  509. </el-form>
  510. <div slot="footer" class="dialog-footer">
  511. <el-button type="primary" @click="submitCodeForm">确 定</el-button>
  512. </div>
  513. </el-dialog>
  514. <!-- 大图预览对话框 -->
  515. <el-dialog
  516. :visible.sync="dialogVisible"
  517. :modal="false"
  518. width="1200"
  519. append-to-body>
  520. <img
  521. :src="this.dialogImageUrl"
  522. style="display: block; max-width: 100%; margin: 0 auto"
  523. />
  524. </el-dialog>
  525. <el-dialog
  526. :visible.sync="updateSendOpen"
  527. width="1000px"
  528. append-to-body>
  529. <el-form label-width="80px">
  530. <p>是否修改企微账号发送方式:
  531. <el-tag style="margin-left: 10px" v-for="name in names">{{ name }}</el-tag>
  532. </p>
  533. <el-form-item label="发送方式" prop="type">
  534. <el-radio-group v-model="type">
  535. <el-radio
  536. :label="0"
  537. >方式一
  538. </el-radio>
  539. <el-radio
  540. :label="1"
  541. >方式二
  542. </el-radio>
  543. <el-radio
  544. :label="2"
  545. >掉线通知
  546. </el-radio>
  547. </el-radio-group>
  548. </el-form-item>
  549. </el-form>
  550. <div slot="footer" class="dialog-footer">
  551. <el-button type="primary" @click="submitUpdateSendTypeForm">确 定</el-button>
  552. </div>
  553. </el-dialog>
  554. </div>
  555. </template>
  556. <script>
  557. import {
  558. updateIsAuto,
  559. updateUser,
  560. getMyQwCompanyList,
  561. relieveFastGptRoleById,
  562. loginQwIpad,
  563. loginQwCodeMsg,
  564. twoCode,
  565. twoCodeStatus,
  566. qrCodeStatus,
  567. updateSendType,
  568. getQwIpad,
  569. delQwIpad,
  570. qrCodeVerify,
  571. outLoginQwIpad,
  572. changeVideoStatus,
  573. handleAllocateRemoteHost,
  574. qwBindCloudHost, qwUnbindCloudHost, handleAuthAppKey,
  575. handleInputAuthAppKey, selectCloudAP, staffListUser, exportStaff,updateFastGptRoleStatusById
  576. } from '../../../api/qw/user'
  577. import fastGptRole from "@/views/fastGpt/fastGptRole/fastGptRole";
  578. import { treeselect } from "@/api/qw/qwDept";
  579. import Treeselect from "@riophae/vue-treeselect";
  580. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  581. export default {
  582. name: "cuDeptIdIndex",
  583. components: { fastGptRole,Treeselect},
  584. data() {
  585. return {
  586. deptOptions:[], // 企微部门
  587. isAutoOptions:[],
  588. updateIp:{
  589. open:false,
  590. title: "修改云主机IP"
  591. },
  592. updateIpForm:{
  593. id:null,
  594. newIp:null,
  595. },
  596. projectFrom:process.env.VUE_APP_PROJECT_FROM,
  597. authorizeKeyOpen:false,
  598. authorizeKeyFrom:{
  599. id:null,
  600. appKey:null,
  601. qwUserId:null,
  602. qwUserName:null
  603. },
  604. updateIpRule:{},
  605. newIp:null,
  606. //放大图片
  607. dialogImageUrl:null,
  608. dialogVisible:false,
  609. optionsStatus: [{
  610. value: 0,
  611. label: '正常'
  612. }, {
  613. value: 2,
  614. label: '离职'
  615. }],
  616. loginStatusOption: [{
  617. value: 0,
  618. label: '离线'
  619. }, {
  620. value: 1,
  621. label: '在线'
  622. }],
  623. // 遮罩层
  624. loading: true,
  625. names: [],
  626. // 导出遮罩层
  627. exportLoading: false,
  628. // 选中数组
  629. ids: [],
  630. // 非单个禁用
  631. single: true,
  632. // 非多个禁用
  633. multiple: true,
  634. // 显示搜索条件
  635. showSearch: true,
  636. updateSendOpen: false,
  637. // 总条数
  638. total: 0,
  639. //公司列表
  640. myQwCompanyList:[],
  641. // 企微用户表格数据
  642. userList: [],
  643. allowSelectOptions:[],
  644. // 弹出层标题
  645. bindAiTitle: "",
  646. bindAiOpen: false,
  647. qwLogin:{
  648. title:"",
  649. open:false,
  650. codeUrl:null,
  651. code:null,
  652. appKey:null,
  653. },
  654. qwLoginTwo:{
  655. title:"",
  656. open:false,
  657. codeUrl:null,
  658. code:null,
  659. appKey:null,
  660. },
  661. qwCode:{
  662. title:"",
  663. open:false,
  664. code:null,
  665. },
  666. cloudAPOpen:{
  667. open:false,
  668. admin:null,
  669. passWord:null,
  670. },
  671. callOpen:{
  672. open:false,
  673. title: '修改员工称呼',
  674. },
  675. callOpenFrom:{
  676. id:null,
  677. welcomeText:null,
  678. },
  679. isAutoForm:{
  680. id:null,
  681. isAuto:null,
  682. },
  683. editRemarkOpen: {
  684. open: false,
  685. title: '修改员工自动给完课客户打备注的规则',
  686. id:null,
  687. isSendMsg:null,
  688. },
  689. twoCodeInterval:null,
  690. type: 0,
  691. loginQwInterval:null,
  692. imageLoading: true, // 控制加载状态
  693. // 查询参数
  694. queryParams: {
  695. pageNum: 1,
  696. pageSize: 10,
  697. qwUserId: null,
  698. loginStatus: null,
  699. corpId: null,
  700. qwUserName: null,
  701. deptId:null,
  702. },
  703. qwUserId:null,
  704. companyUserList:[],
  705. // 表单参数
  706. form: {
  707. isSendMsg: '2',
  708. },
  709. authorizeKeyRule:{
  710. appKey:[{required:true,message:"授权码不能为空",trigger:"blur"}]
  711. },
  712. callOpenRule:{
  713. welcomeText:[{required:true,message:"员工称呼不能为空",trigger:"blur"}]
  714. },
  715. // 表单校验
  716. rules: {
  717. },
  718. //欢迎语表单校验
  719. weclomeRules:{
  720. welcomeText:[{required:true,message:"消息文本不能为空",trigger:"blur"}]
  721. },
  722. };
  723. },
  724. created() {
  725. this.getDicts("qw_user_is_auto").then(response => {
  726. this.isAutoOptions = response.data;
  727. });
  728. getMyQwCompanyList().then(response => {
  729. this.myQwCompanyList = response.data;
  730. if(this.myQwCompanyList && this.myQwCompanyList.length>0){
  731. this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
  732. // 查询部门下拉树结构
  733. if(this.queryParams.corpId){
  734. this.getTreeselect()
  735. }
  736. this.getList();
  737. }
  738. });
  739. this.loading = false;
  740. },
  741. watch: {
  742. // 监听弹窗的可见性变化
  743. 'qwLogin.open'(newVal) {
  744. if (!newVal) {
  745. // 如果弹窗关闭,清除定时器
  746. clearInterval(this.loginQwInterval);
  747. }
  748. },
  749. },
  750. methods: {
  751. /** 查询部门下拉树结构 */
  752. getTreeselect() {
  753. var that=this;
  754. let query = {
  755. corpId: this.queryParams.corpId
  756. }
  757. // 企微主体不能为空
  758. if(!query.corpId){
  759. this.$message.error("请选择企微主体");
  760. return;
  761. }
  762. treeselect(query).then((response) => {
  763. this.deptOptions = response.data;
  764. console.log(this.deptOptions)
  765. if(response.data!=null&&response.data.length>0){
  766. this.queryParams.deptId=response.data[0].id;
  767. }
  768. });
  769. },
  770. getList() {
  771. this.loading = true;
  772. staffListUser(this.queryParams).then(response => {
  773. this.userList = response.rows;
  774. this.total = response.total;
  775. this.loading = false;
  776. });
  777. },
  778. updateCorpId() {
  779. this.reset();
  780. this.getTreeselect();
  781. this.getList();
  782. },
  783. changeVideoStatus(val){
  784. changeVideoStatus(val.id).then(res => {
  785. this.$message.success("修改状态成功");
  786. this.getList()
  787. })
  788. },
  789. //绑定AI客服
  790. bindFastGptRole(row) {
  791. this.bindAiTitle = "绑定AI客服";
  792. this.bindAiOpen = true;
  793. setTimeout(() => {
  794. this.$refs.fastGptRole.handleBindAiData(row)
  795. }, 200);
  796. },
  797. handleAppellation(val) {
  798. this.callOpen.open = true;
  799. this.callOpenFrom.welcomeText = val.welcomeText;
  800. this.callOpenFrom.id = val.id;
  801. },
  802. handleAutoRemark(val) {
  803. this.editRemarkOpen.open = true;
  804. this.editRemarkOpen.id = val.id;
  805. this.editRemarkOpen.isSendMsg = val.isSendMsg;
  806. },
  807. //登录
  808. handleLoginQwCode(val) {
  809. if (val.appKey == null || val.appKey === '') {
  810. return this.$message.warning("没有授权码,无法登录企业微信,请授权");
  811. }
  812. loginQwIpad({qwUserId: val.id}).then(res => {
  813. this.qwUserId = val.id;
  814. this.qwLogin.code = null;
  815. this.imageLoading = false;
  816. console.log(res)
  817. if (res.msg == "success") {
  818. this.qwLogin.codeUrl = res.qrCode64
  819. this.qwLogin.open = true;
  820. this.loginQwPolling();
  821. } else {
  822. this.$message.success(res.msg);
  823. this.getList()
  824. }
  825. })
  826. },
  827. handleTwoCode(val) {
  828. twoCode({qwUserId: val.id}).then(res => {
  829. console.log(res)
  830. this.qwLoginTwo.open = true;
  831. this.qwLoginTwo.codeUrl = res.qrCode
  832. });
  833. },
  834. twoCodePolling() {
  835. this.twoCodeInterval = setInterval(() => {
  836. twoCodeStatus({qwUserId: this.qwUserId}).then(res => {
  837. console.log(res)
  838. if (res.msg == 104001) {
  839. this.$message.success('登录成功');
  840. this.clearDl()
  841. clearInterval(this.loginQwInterval);
  842. } else if (res.msg == 100004) {
  843. this.clearDl()
  844. }
  845. });
  846. }, 3000);
  847. },
  848. loginQwPolling() {
  849. this.loginQwInterval = setInterval(() => {
  850. qrCodeStatus({qwUserId: this.qwUserId}).then(res => {
  851. console.log(res)
  852. if (res.msg == 22) {
  853. this.$message.success('账号企业不一致请重新扫码登录');
  854. this.clearDl();
  855. }
  856. if (res.msg == 23) {
  857. this.$message.success('账号不匹配,请同步信息后重新扫码登录');
  858. this.clearDl();
  859. }
  860. if (res.msg == 104001) {
  861. this.$message.success('登录成功');
  862. this.clearDl()
  863. } else if (res.msg == 100004) {
  864. this.qwCode.open = true;
  865. clearInterval(this.loginQwInterval);
  866. }
  867. });
  868. }, 3000);
  869. },
  870. submitCodeForm() {
  871. qrCodeVerify({code: this.qwCode.code, qwUserId: this.qwUserId}).then(res => {
  872. console.log(res)
  873. this.$message.success('验证成功账号信息确认中。。。。');
  874. this.qwCode.open = false;
  875. this.loginQwInterval = setTimeout(() => {
  876. qrCodeStatus({qwUserId: this.qwUserId}).then(res => {
  877. console.log(res);
  878. if (res.msg == 23) {
  879. this.$message.error('账号不一致请重新扫码登录');
  880. this.clearDl();
  881. }
  882. if (res.msg == 22) {
  883. this.$message.error('账号企业不一致请重新扫码登录');
  884. this.clearDl();
  885. }
  886. if (res.msg == 104001) {
  887. this.$message.success('登录成功');
  888. this.clearDl();
  889. }
  890. });
  891. }, 4000);
  892. });
  893. },
  894. clearDl() {
  895. this.qwCode.open = false;
  896. this.qwLogin.open = false;
  897. clearInterval(this.loginQwInterval);
  898. this.getList()
  899. },
  900. //退出
  901. handleLoginOutQwStatus(val) {
  902. outLoginQwIpad({qwUserId: val.id}).then(res => {
  903. this.$message.success("退出登录成功");
  904. this.getList()
  905. })
  906. },
  907. handleGetQwIpad(val) {
  908. getQwIpad({qwUserId: val.id}).then(res => {
  909. this.$message.success("获取主机成功");
  910. this.getList();
  911. }).catch(error => {
  912. console.log(error);
  913. if (error.code === 501) {
  914. this.$confirm(
  915. '当前区域没有多余的名额,将为你分配异地名额,会导致企业微信需要扫脸重新登录,并且半个小时后需要进行验证',
  916. '提示',
  917. {
  918. confirmButtonText: '确定',
  919. cancelButtonText: '取消',
  920. type: 'warning',
  921. dangerouslyUseHTMLString: true
  922. }
  923. ).then(() => {
  924. return handleAllocateRemoteHost({qwUserId: val.id});
  925. }).then(res => {
  926. this.$message.success('异地主机分配成功');
  927. this.getList();
  928. }).catch(() => {
  929. this.$message.info('已取消异地主机分配');
  930. });
  931. } else {
  932. this.$message.error('获取主机失败');
  933. }
  934. });
  935. },
  936. handleDelQwIpad(val) {
  937. delQwIpad({qwUserId: val.id}).then(res => {
  938. this.$message.success("解绑主机成功");
  939. }).finally(res => {
  940. this.getList();
  941. })
  942. },
  943. handleUpdateIsAuto(val,code) {
  944. this.isAutoForm={
  945. id:val.id,
  946. isAuto:code
  947. }
  948. updateIsAuto(this.isAutoForm).then(res => {
  949. if (code==='00'){
  950. this.$message.success('禁用成功');
  951. }else {
  952. this.$message.success('启用成功');
  953. }
  954. this.getList();
  955. });
  956. },
  957. //传验证码
  958. handleLoginQwCodeMsg() {
  959. loginQwCodeMsg({appKey: this.qwLogin.appKey, code: this.qwLogin.code}).then(res => {
  960. this.qwLogin.open = false;
  961. this.$message.success("登录成功");
  962. })
  963. },
  964. validateCode() {
  965. // 只允许输入数字并限制长度为6
  966. this.qwLogin.code = this.qwLogin.code.replace(/\D/g, "").slice(0, 6);
  967. },
  968. handleCloudAP(urlAP) {
  969. selectCloudAP({ipAddress: urlAP}).then(res => {
  970. this.cloudAPOpen.open = true
  971. this.cloudAPOpen.admin = res.data.apAdmin;
  972. this.cloudAPOpen.passWord = res.data.apPassword;
  973. })
  974. },
  975. handleUnbindCloudHost(val) {
  976. const appKey = val.appKey;
  977. this.$confirm(
  978. '确定要给企微账号:<span style="color: green;">' + val.qwUserId + '' +
  979. '</span><br>企微昵称:<span style="color: red;">【' + val.qwUserName + '】</span>' +
  980. '</span><br><span style="color: orange;">解绑【Ps:解绑后此云主机可能会分配给他人】</span></span>',
  981. "警告",
  982. {
  983. confirmButtonText: "确定",
  984. cancelButtonText: "取消",
  985. type: "warning",
  986. dangerouslyUseHTMLString: true // 允许使用 HTML 字符串
  987. }
  988. ).then(() => {
  989. return qwUnbindCloudHost(appKey);
  990. }).then(response => {
  991. this.$message.success('解绑成功');
  992. }).finally(res => {
  993. this.getList();
  994. })
  995. },
  996. handleAuthorizeKey(val) {
  997. this.authorizeKeyFrom.id = val.id;
  998. this.authorizeKeyFrom.qwUserId = val.qwUserId;
  999. this.authorizeKeyFrom.qwUserName = val.qwUserName;
  1000. this.authorizeKeyOpen = true;
  1001. },
  1002. submitAuthorizeKeyForm() {
  1003. this.$refs["authorizeKeyFrom"].validate(valid => {
  1004. if (valid) {
  1005. if (this.authorizeKeyFrom.id != null && this.authorizeKeyFrom.appKey != null) {
  1006. this.uploadAuthorizeKey();
  1007. }
  1008. }
  1009. });
  1010. },
  1011. submitCallOpenFrom() {
  1012. this.$refs["callOpenFrom"].validate(valid => {
  1013. if (valid) {
  1014. if (this.callOpenFrom.id != null && this.callOpenFrom.welcomeText != null) {
  1015. updateUser(this.callOpenFrom).then(res => {
  1016. this.$message.success('修改成功');
  1017. this.callOpen.open = false;
  1018. this.getList();
  1019. });
  1020. }
  1021. }
  1022. });
  1023. },
  1024. submitEditRemarkOpenFrom() {
  1025. if (this.editRemarkOpen.id != null && this.editRemarkOpen.isSendMsg != null) {
  1026. updateUser(this.editRemarkOpen).then(res => {
  1027. this.$message.success('修改成功');
  1028. this.editRemarkOpen.open = false;
  1029. this.getList();
  1030. });
  1031. } else {
  1032. this.$message.error("请选择条件")
  1033. }
  1034. },
  1035. uploadAuthorizeKey() {
  1036. this.$confirm(
  1037. '确定要给企微账号:<span style="color: green;">' + this.authorizeKeyFrom.qwUserId + '' +
  1038. '</span><br>企微昵称:<span style="color: red;">【' + this.authorizeKeyFrom.qwUserName + '】</span>' +
  1039. '</span><br>授权key:<span style="color: #04adf6;">【' + this.authorizeKeyFrom.appKey + '】</span>?',
  1040. "警告",
  1041. {
  1042. confirmButtonText: "确定",
  1043. cancelButtonText: "取消",
  1044. type: "warning",
  1045. dangerouslyUseHTMLString: true // 允许使用 HTML 字符串
  1046. }
  1047. ).then(() => {
  1048. this.authorizeKeyOpen = false;
  1049. return handleInputAuthAppKey(this.authorizeKeyFrom);
  1050. }).then(response => {
  1051. this.msgSuccess("授权key完成");
  1052. }).finally(res => {
  1053. this.resetAuthorizeKeyFrom();
  1054. this.getList();
  1055. })
  1056. },
  1057. uploadAuthorizeKey2(val) {
  1058. const id = val.id;
  1059. this.$confirm(
  1060. '确定要给企微账号:<span style="color: green;">' + val.qwUserId + '' +
  1061. '</span><br>企微昵称:<span style="color: red;">【' + val.qwUserName + '】</span>' +
  1062. '</span><br>授权key</span>?',
  1063. "警告",
  1064. {
  1065. confirmButtonText: "确定",
  1066. cancelButtonText: "取消",
  1067. type: "warning",
  1068. dangerouslyUseHTMLString: true // 允许使用 HTML 字符串
  1069. }
  1070. ).then(() => {
  1071. return handleAuthAppKey({id: id});
  1072. }).then(response => {
  1073. this.msgSuccess("授权key完成");
  1074. }).finally(res => {
  1075. this.resetAuthorizeKeyFrom();
  1076. this.getList();
  1077. })
  1078. },
  1079. handleBindCloudHost(val) {
  1080. if (val.appKey == null || val.appKey == '') {
  1081. return this.$message.warning('没有授权码,无法绑定主机,请联系管理员');
  1082. }
  1083. const appKey = val.appKey;
  1084. this.$confirm(
  1085. '确定要给企微账号:<span style="color: green;">' + val.qwUserId + '' +
  1086. '</span><br>企微昵称:<span style="color: red;">【' + val.qwUserName + '】</span>' +
  1087. '</span><br><span style="color: dodgerblue;">绑定云主机?</span></span>',
  1088. "警告",
  1089. {
  1090. confirmButtonText: "确定",
  1091. cancelButtonText: "取消",
  1092. type: "warning",
  1093. dangerouslyUseHTMLString: true // 允许使用 HTML 字符串
  1094. }
  1095. ).then(() => {
  1096. return qwBindCloudHost(appKey);
  1097. }).then(response => {
  1098. this.$message.success('绑定成功,请登录云主机进行配置~~');
  1099. }).finally(res => {
  1100. this.getList();
  1101. })
  1102. },
  1103. openImageViewer(url) {
  1104. // 打开大图预览对话框
  1105. this.dialogImageUrl = url
  1106. this.dialogVisible = true;
  1107. },
  1108. //刷新页面
  1109. refreshFastGptList() {
  1110. this.bindAiOpen = false;
  1111. this.getList();
  1112. },
  1113. // 取消按钮
  1114. cancel() {
  1115. this.open = false;
  1116. this.reset();
  1117. },
  1118. // 表单重置
  1119. reset() {
  1120. this.form = {
  1121. id: null,
  1122. qwUserId: null,
  1123. corpId: null,
  1124. qwUserName: null,
  1125. };
  1126. this.resetForm("form");
  1127. },
  1128. //重置授权
  1129. resetAuthorizeKeyFrom() {
  1130. this.authorizeKeyFrom = {
  1131. id: null,
  1132. appKey: null,
  1133. qwUserId: null,
  1134. qwUserName: null
  1135. };
  1136. },
  1137. //重置登录
  1138. resetQwLogin() {
  1139. this.qwLogin = {
  1140. title: "",
  1141. open: false,
  1142. codeUrl: null,
  1143. code: null,
  1144. corpId: null,
  1145. qwUserId: null,
  1146. }
  1147. this.qwLogin.open = false;
  1148. this.loading = false;
  1149. this.getList();
  1150. },
  1151. //解绑AI客服
  1152. relieveFastGptRole(row) {
  1153. this.$confirm('是否确认解绑AI客服?', "警告", {
  1154. confirmButtonText: "确定",
  1155. cancelButtonText: "取消",
  1156. type: "warning"
  1157. }).then(function () {
  1158. return relieveFastGptRoleById(row.id);
  1159. }).then(() => {
  1160. this.getList();
  1161. this.msgSuccess("解绑成功");
  1162. })
  1163. },
  1164. updateFastGptRoleStatus(row) {
  1165. this.$confirm('是否修改该销售的AI客服?', "警告", {
  1166. confirmButtonText: "确定",
  1167. cancelButtonText: "取消",
  1168. type: "warning"
  1169. }).then(function () {
  1170. return updateFastGptRoleStatusById(row.id);
  1171. }).then(() => {
  1172. this.getList();
  1173. this.msgSuccess("修改成功");
  1174. })
  1175. },
  1176. /** 搜索按钮操作 */
  1177. handleQuery() {
  1178. this.queryParams.pageNum = 1;
  1179. this.getList();
  1180. },
  1181. /** 重置按钮操作 */
  1182. resetQuery() {
  1183. this.resetForm("queryForm");
  1184. this.queryParams.corpId = this.myQwCompanyList[0].dictValue;
  1185. this.queryParams.loginStatus = null;
  1186. this.queryParams.deptId = this.deptOptions[0] && this.deptOptions[0].id;
  1187. this.handleQuery();
  1188. },
  1189. // 多选框选中数据
  1190. handleSelectionChange(selection) {
  1191. this.ids = selection.map(item => item.id)
  1192. this.names = selection.map(item => item.qwUserName)
  1193. this.single = selection.length !== 1
  1194. this.multiple = !selection.length
  1195. },
  1196. /** 提交按钮 */
  1197. submitForm() {
  1198. this.$refs["form"].validate(valid => {
  1199. if (valid) {
  1200. if (this.form.id != null) {
  1201. // updateUser(this.form).then(response => {
  1202. // this.msgSuccess("绑定成功");
  1203. // this.open = false;
  1204. // this.getList();
  1205. //
  1206. // });
  1207. } else {
  1208. // addUser(this.form).then(response => {
  1209. // this.msgSuccess("新增成功");
  1210. // this.open = false;
  1211. // this.getList();
  1212. // });
  1213. }
  1214. }
  1215. });
  1216. },
  1217. /** 导出按钮操作 */
  1218. handleExport() {
  1219. const queryParams = this.queryParams;
  1220. this.$confirm('是否确认导出所有企微员工数据项?', "警告", {
  1221. confirmButtonText: "确定",
  1222. cancelButtonText: "取消",
  1223. type: "warning"
  1224. }).then(() => {
  1225. this.exportLoading = true;
  1226. return exportStaff(queryParams);
  1227. }).then(response => {
  1228. this.download(response.msg);
  1229. this.exportLoading = false;
  1230. }).catch(() => {
  1231. });
  1232. },
  1233. updateSendType() {
  1234. this.updateSendOpen = true;
  1235. },
  1236. cleanUpdateSendType() {
  1237. this.updateSendOpen = false;
  1238. },
  1239. submitUpdateSendTypeForm(){
  1240. updateSendType({ids: this.ids, type: this.type}).then(e => {
  1241. this.updateSendOpen = false;
  1242. this.$message.success("修改成功");
  1243. this.getList();
  1244. });
  1245. },
  1246. }
  1247. };
  1248. </script>
  1249. <style>
  1250. .text-container {
  1251. max-height: 7.5em; /* 设置最大高度为6行,根据字体大小调整 */
  1252. overflow-y: auto; /* 内容超出时显示滚动条 */
  1253. line-height: 1.5em; /* 行高设置,确保每行高度一致 */
  1254. }
  1255. .qr-login-dialog .el-dialog__body {
  1256. display: flex;
  1257. flex-direction: column;
  1258. align-items: center;
  1259. text-align: center;
  1260. padding: 20px;
  1261. }
  1262. .qr-login-container {
  1263. width: 100%;
  1264. }
  1265. .qr-login-instructions {
  1266. font-size: 14px;
  1267. color: #666;
  1268. margin: 10px 0;
  1269. }
  1270. .verification-code-input {
  1271. margin-top: 15px;
  1272. width: 80%;
  1273. }
  1274. .vue-treeselect{
  1275. width: 217px;
  1276. height: 36px;
  1277. }
  1278. </style>