watchLog.vue 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317
  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="看课方式" prop="sendType">
  5. <el-select v-model="queryParams.sendType" placeholder="选择看课方式" clearable size="small" @change="handleSendTypeChange">
  6. <el-option
  7. v-for="dict in sendTypeOptions"
  8. :key="dict.dictValue"
  9. :label="dict.dictLabel"
  10. :value="dict.dictValue"
  11. />
  12. </el-select>
  13. </el-form-item>
  14. <el-form-item label="企微账号" prop="qwUserId" v-if="queryParams.sendType == 2">
  15. <el-select v-model="queryParams.qwUserId" placeholder="企微账号" clearable size="small"
  16. @change="updateQwuser()">
  17. <el-option
  18. v-for="dict in myQwUserList"
  19. :key="dict.dictValue"
  20. :label="dict.dictLabel + '('+dict.corpName+')'"
  21. :value="dict.dictValue"
  22. />
  23. </el-select>
  24. </el-form-item>
  25. <el-form-item label="客户ID" prop="qwExternalContactId" v-if="queryParams.sendType == 2">
  26. <el-input
  27. v-model="queryParams.qwExternalContactId"
  28. placeholder="请输入客户ID"
  29. clearable
  30. size="small"
  31. @keyup.enter.native="handleQuery"
  32. />
  33. </el-form-item>
  34. <el-form-item label="会员ID" prop="userId" v-if="queryParams.sendType == 1">
  35. <el-input
  36. v-model="queryParams.userId"
  37. placeholder="请输入会员ID"
  38. clearable
  39. size="small"
  40. @keyup.enter.native="handleQuery"
  41. />
  42. </el-form-item>
  43. <el-form-item label="会员昵称" prop="nickName" v-if="queryParams.sendType == 1">
  44. <el-input
  45. v-model="queryParams.nickName"
  46. placeholder="请输入会员昵称"
  47. clearable
  48. size="small"
  49. @keyup.enter.native="handleQuery"
  50. />
  51. </el-form-item>
  52. <el-form-item label="企微客户昵称" prop="nickName" v-if="queryParams.sendType == 2">
  53. <el-input
  54. v-model="queryParams.externalUserName"
  55. placeholder="请输入企微客户昵称"
  56. clearable
  57. size="small"
  58. @keyup.enter.native="handleQuery"
  59. />
  60. </el-form-item>
  61. <el-form-item label="课程" prop="courseId">
  62. <el-select filterable v-model="queryParams.courseId" placeholder="请选择课程" clearable size="small"
  63. @change="courseChange(queryParams.courseId)">
  64. <el-option
  65. v-for="dict in courseLists"
  66. :key="dict.dictValue"
  67. :label="dict.dictLabel"
  68. :value="dict.dictValue"
  69. />
  70. </el-select>
  71. </el-form-item>
  72. <el-form-item label="小节" prop="videoId">
  73. <el-select filterable v-model="queryParams.videoId" placeholder="请选择小节" clearable size="small">
  74. <el-option
  75. v-for="dict in videoList"
  76. :key="dict.dictValue"
  77. :label="dict.dictLabel"
  78. :value="dict.dictValue"
  79. />
  80. </el-select>
  81. </el-form-item>
  82. <!-- sop名称 -->
  83. <el-form-item label="SOP名称" prop="sopId" v-if="queryParams.sendType == 2">
  84. <el-autocomplete
  85. v-model="sopSearchText"
  86. :fetch-suggestions="querySopAsync"
  87. placeholder="请输入SOP名称"
  88. clearable
  89. size="small"
  90. style="width: 200px"
  91. @select="handleSopSelect"
  92. @clear="handleSopClear"
  93. :trigger-on-focus="false"
  94. >
  95. <template slot-scope="{ item }">
  96. <div class="sop-item">
  97. <span class="sop-name">{{ item.name }}</span>
  98. </div>
  99. </template>
  100. </el-autocomplete>
  101. </el-form-item>
  102. <!-- 营期时间 -->
  103. <el-form-item label="营期时间" prop="scheduleTime">
  104. <el-input
  105. v-model="scheduleTimeText"
  106. placeholder="请选择营期时间"
  107. readonly
  108. @click.native="showScheduleCalendar = true"
  109. />
  110. <calendar
  111. v-model="scheduleTime"
  112. mode="during"
  113. :show.sync="showScheduleCalendar"
  114. @change="handleScheduleTimeChange"
  115. :key="scheduleCalendarKey"
  116. />
  117. </el-form-item>
  118. <!-- 创建时间 -->
  119. <el-form-item label="创建时间" prop="createTime">
  120. <el-input
  121. v-model="createTimeText"
  122. placeholder="请选择创建时间"
  123. readonly
  124. @click.native="showCreateCalendar = true"
  125. />
  126. <calendar
  127. v-model="createTime"
  128. mode="during"
  129. :show.sync="showCreateCalendar"
  130. @change="createChange"
  131. :key="createCalendarKey"
  132. />
  133. </el-form-item>
  134. <!-- 最新更新时间 -->
  135. <el-form-item label="最新更新时间" prop="updateTime">
  136. <el-input
  137. v-model="updateTimeText"
  138. placeholder="请选择更新时间"
  139. readonly
  140. @click.native="showUpdateCalendar = true"
  141. />
  142. <calendar
  143. v-model="updateTime"
  144. mode="during"
  145. :show.sync="showUpdateCalendar"
  146. @change="updateChange"
  147. :key="updateCalendarKey"
  148. />
  149. </el-form-item>
  150. <!-- 进线时间 -->
  151. <el-form-item label="进线时间" prop="qecCreateTime">
  152. <el-input
  153. v-model="qecCreateTimeText"
  154. placeholder="请选择进线时间"
  155. readonly
  156. @click.native="showQecCalendar = true"
  157. />
  158. <calendar
  159. v-model="qecCreateTime"
  160. mode="during"
  161. :show.sync="showQecCalendar"
  162. @change="qecCreateTimeChange"
  163. :key="qecCalendarKey"
  164. />
  165. </el-form-item>
  166. <el-form-item label="是否为会员" prop="isVip">
  167. <el-select
  168. filterable
  169. v-model="queryParams.isVip"
  170. placeholder="请选择是否为会员"
  171. clearable size="small">
  172. <el-option
  173. v-for="dict in isVipList"
  174. :key="dict.dictValue"
  175. :label="dict.dictLabel"
  176. :value="dict.dictValue"
  177. />
  178. </el-select>
  179. </el-form-item>
  180. <el-form-item>
  181. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  182. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  183. </el-form-item>
  184. </el-form>
  185. <el-row :gutter="10" class="mb8">
  186. <el-col :span="1.5">
  187. <el-button
  188. type="warning"
  189. plain
  190. icon="el-icon-download"
  191. size="mini"
  192. :loading="exportLoading"
  193. @click="handleExport"
  194. v-hasPermi="['course:courseWatchLog:myExport']"
  195. >导出
  196. </el-button>
  197. <el-col :span="1.5">
  198. <el-button
  199. type="primary"
  200. plain
  201. size="mini"
  202. @click="addUserTag"
  203. v-hasPermi="['qw:externalContact:addTag']"
  204. >批量添加标签</el-button>
  205. </el-col>
  206. <el-col :span="1.5">
  207. <el-button
  208. type="primary"
  209. plain
  210. size="mini"
  211. @click="delUserTag"
  212. v-hasPermi="['qw:externalContact:delTag']"
  213. >批量移除标签</el-button>
  214. </el-col>
  215. </el-col>
  216. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  217. </el-row>
  218. <el-tabs type="card" v-model="activeName" @tab-click="handleClickX">
  219. <el-tab-pane label="全部" name="00"></el-tab-pane>
  220. <el-tab-pane v-for="(item,index) in logTypeOptions" :label="item.dictLabel" :name="item.dictValue"></el-tab-pane>
  221. </el-tabs>
  222. <el-table border v-loading="loading" :data="courseWatchLogList" @selection-change="handleSelectionChange">
  223. <el-table-column type="selection" width="55" align="center"/>
  224. <el-table-column label="记录编号" align="center" prop="logId"/>
  225. <el-table-column label="客户昵称" align="center" prop="externalUserName" v-if="queryParams.sendType == 2"/>
  226. &lt;!&ndash;
  227. <el-table-column label="会员ID" align="center" prop="userId" v-if="queryParams.sendType == 1"/>
  228. &ndash;&gt;
  229. <el-table-column label="客户头像" align="center" prop="externalUserAvatar" v-if="queryParams.sendType == 2">
  230. <template slot-scope="scope">
  231. <el-popover
  232. placement="right"
  233. title=""
  234. trigger="hover">
  235. <img slot="reference" :src="scope.row.externalUserAvatar" style="width: 50px;height: 50px">
  236. <img :src="scope.row.externalUserAvatar" style="max-width: 200px;max-height: 200px">
  237. </el-popover>
  238. </template>
  239. </el-table-column>
  240. <el-table-column label="用户昵称" align="center" v-if="queryParams.sendType == 1">
  241. <template slot-scope="scope">
  242. {{ queryParams.sendType=='1' ? scope.row.fsNickName : scope.row.externalUserName }}
  243. </template>
  244. </el-table-column>
  245. <el-table-column label="头像" align="center" v-if="queryParams.sendType == 1">
  246. <template slot-scope="scope">
  247. <img v-if="queryParams.sendType=='1'" :src="scope.row.fsAvatar" style="width:50px;height:50px" />
  248. <img v-else :src="scope.row.externalUserAvatar" style="width:50px;height:50px" />
  249. </template>
  250. </el-table-column>
  251. <el-table-column label="课程名称" align="center" prop="courseName"/>
  252. <el-table-column label="小节名称" align="center" prop="videoName"/>
  253. <el-table-column label="记录类型" align="center" prop="logType">
  254. <template slot-scope="scope">
  255. <dict-tag :options="logTypeOptions" :value="scope.row.logType"/>
  256. </template>
  257. </el-table-column>
  258. <el-table-column label="播放时长" align="center" prop="duration"/>
  259. <!-- <el-table-column label="所属销售" align="center" prop="companyUserName"/>-->
  260. <!-- <el-table-column label="所属公司" align="center" prop="companyName"/>-->
  261. <!-- <el-table-column label="企微员工名称" align="center" prop="qwUserName"/>-->
  262. <el-table-column label="所属企微" align="center" prop="qwUserName" v-if="queryParams.sendType==2" />
  263. <!-- <el-table-column label="所属发送方式" align="center" prop="sendType"/>-->
  264. <el-table-column label="创建时间" align="center" prop="createTime" width="100px"/>
  265. <el-table-column label="更新时间" align="center" prop="updateTime" width="100px" />
  266. <el-table-column label="完课时间" align="center" prop="finishTime" width="100px" />
  267. <el-table-column label="营期时间" align="center" prop="campPeriodTime" />
  268. <el-table-column
  269. fixed="right"
  270. label="操作"
  271. width="100">
  272. <template slot-scope="scope">
  273. <el-button @click="openAnswerLogFun(scope.row)" type="text" size="small">答题记录</el-button>
  274. <el-button @click="openRedLogFun(scope.row)" type="text" size="small">红包记录</el-button>
  275. </template>
  276. </el-table-column>
  277. </el-table>
  278. <pagination
  279. v-show="total>0"
  280. :total="total"
  281. :page.sync="queryParams.pageNum"
  282. :limit.sync="queryParams.pageSize"
  283. @pagination="getList"
  284. />
  285. <el-drawer title="答题记录" :visible.sync="openAnswerLog" size="70%" append-to-body>
  286. <el-table border v-loading="" :data="answerLogsList">
  287. <el-table-column label="会员用户" align="center" prop="userName">
  288. <template slot-scope="scope">
  289. <div style="display: flex;white-space: nowrap">
  290. <div style="margin: auto">
  291. {{ scope.row.userName }}
  292. </div>
  293. <el-popover
  294. placement="right"
  295. title=""
  296. trigger="hover">
  297. <img slot="reference" :src="scope.row.fsAvatar" style="width: 30px;height: 30px">
  298. <img :src="scope.row.fsAvatar" style="max-width: 200px;max-height: 200px">
  299. </el-popover>
  300. </div>
  301. </template>
  302. </el-table-column>
  303. <el-table-column label="课程名称" align="center" prop="courseName"/>
  304. <el-table-column label="小节名称" align="center" prop="videoName"/>
  305. <el-table-column label="是否全部正确" align="center" prop="isRight">
  306. <template slot-scope="scope">
  307. <dict-tag :options="sysCompanyOr" :value="scope.row.isRight"></dict-tag>
  308. </template>
  309. </el-table-column>
  310. <el-table-column label="销售名称" align="center" prop="companyUserName"/>
  311. <el-table-column label="企微员工名称" align="center" prop="qwUserName"/>
  312. <el-table-column label="公司名称" align="center" prop="companyName"/>
  313. <el-table-column label="创建时间" align="center" prop="createTime"/>
  314. </el-table>
  315. <pagination
  316. v-show="answerLogTotal>0"
  317. :total="answerLogTotal"
  318. :page.sync="answerLogQueryParams.pageNum"
  319. :limit.sync="answerLogQueryParams.pageSize"
  320. @pagination="answerLogList"
  321. />
  322. </el-drawer>
  323. <el-drawer title="红包记录" :visible.sync="openRedLog" size="70%" append-to-body>
  324. <el-table border v-loading="" :data="redLogsList">
  325. <el-table-column type="selection" width="55" align="center" />
  326. <el-table-column label="记录编号" align="center" prop="logId" />
  327. <el-table-column label="批次单号" align="center" prop="outBatchNo" />
  328. <el-table-column label="课程名称" align="center" prop="courseId" >
  329. <template slot-scope="scope">
  330. <span prop="status" v-for="(item, index) in courseLists" v-if="scope.row.courseId==item.dictValue">{{item.dictLabel}}</span>
  331. </template>
  332. </el-table-column>
  333. <el-table-column label="小节名称" align="center" prop="title" />
  334. <!-- <el-table-column label="会员id" align="center" prop="userId" />-->
  335. <el-table-column label="会员用户" align="center" prop="fsNickName">
  336. <template slot-scope="scope">
  337. <div style="display: flex;white-space: nowrap">
  338. <div style="margin: auto">
  339. {{scope.row.fsNickName}}
  340. </div>
  341. <el-popover
  342. placement="right"
  343. title=""
  344. trigger="hover">
  345. <img slot="reference" :src="scope.row.fsAvatar" style="width: 30px;height: 30px">
  346. <img :src="scope.row.fsAvatar" style="max-width: 200px;max-height: 200px">
  347. </el-popover>
  348. </div>
  349. </template>
  350. </el-table-column>
  351. <!-- <el-table-column label="会员电话" align="center" prop="phone" />-->
  352. <!-- <el-table-column label="所属销售" align="center" prop="companyUserName" />-->
  353. <!-- <el-table-column label="所属公司" align="center" prop="companyName" />-->
  354. <el-table-column label="转帐金额" align="center" prop="amount" />
  355. <el-table-column label="状态" align="center" prop="status" >
  356. <template slot-scope="scope">
  357. <el-tag>
  358. {{
  359. scope.row.status === 0 ? "发送中" :
  360. scope.row.status === 2 ? "待补发" :
  361. "已完成"
  362. }}
  363. </el-tag>
  364. </template>
  365. </el-table-column>
  366. <el-table-column label="所属企微" align="center" prop="qwUserName" />
  367. <el-table-column label="创建时间" align="center" prop="createTime" />
  368. </el-table>
  369. <pagination
  370. v-show="redLogTotal>0"
  371. :total="redLogTotal"
  372. :page.sync="redLogQueryParams.pageNum"
  373. :limit.sync="redLogQueryParams.pageSize"
  374. @pagination="redLogList"
  375. />
  376. </el-drawer>
  377. <el-dialog title="批量添加标签" :visible.sync="tagOpen" width="800px" append-to-body>
  378. <div>搜索标签:
  379. <el-input v-model="tagChange.tagName" placeholder="请输入标签名称" clearable size="small" style="width: 200px;margin-right: 10px" />
  380. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchTags(tagChange.tagName)">搜索</el-button>
  381. <el-button type="primary" icon="el-icon-plus" size="mini" @click="cancelSearchTags">重置</el-button>
  382. </div>
  383. <el-form ref="form" :model="addTagFormByWatch" label-width="80px">
  384. <div v-for="item in tagGroupList" :key="item.id" >
  385. <div style="font-size: 20px;margin-top: 20px;margin-bottom: 20px;">
  386. <span class="name-background">{{ item.name }}</span>
  387. </div>
  388. <!-- 添加外层滚动容器 -->
  389. <div class="scroll-wrapper">
  390. <div class="tag-container">
  391. <a
  392. v-for="tagItem in item.tag"
  393. class="tag-box"
  394. @click="tagSelection(tagItem)"
  395. :class="{ 'tag-selected': tagItem.isSelected }"
  396. >
  397. {{ tagItem.name }}
  398. </a>
  399. </div>
  400. </div>
  401. </div>
  402. </el-form>
  403. <pagination
  404. v-show="tagTotal>0"
  405. :total="tagTotal"
  406. :page.sync="queryTagParams.pageNum"
  407. :limit.sync="queryTagParams.pageSize"
  408. @pagination="getPageListTagGroup"
  409. />
  410. <div slot="footer" class="dialog-footer">
  411. <el-button type="primary" @click="addTagSubmitForm()">确 定</el-button>
  412. <el-button @click="addTagCancel">取 消</el-button>
  413. </div>
  414. </el-dialog>
  415. <el-dialog title="批量移除标签" :visible.sync="tagDelOpen" width="800px" append-to-body>
  416. <div>搜索标签:
  417. <el-input v-model="tagChange.tagName" placeholder="请输入标签名称" clearable size="small" style="width: 200px;margin-right: 10px" />
  418. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearchTags(tagChange.tagName)">搜索</el-button>
  419. <el-button type="primary" icon="el-icon-plus" size="mini" @click="cancelSearchTags">重置</el-button>
  420. </div>
  421. <el-form ref="form" :model="addTagFormByWatch" label-width="80px">
  422. <div v-for="item in tagGroupList" :key="item.id" >
  423. <div style="font-size: 20px;margin-top: 20px;margin-bottom: 20px;">
  424. <span class="name-background">{{ item.name }}</span>
  425. </div>
  426. <!-- 添加外层滚动容器 -->
  427. <div class="scroll-wrapper">
  428. <div class="tag-container">
  429. <a
  430. v-for="tagItem in item.tag"
  431. class="tag-box"
  432. @click="tagSelection(tagItem)"
  433. :class="{ 'tag-selected': tagItem.isSelected }"
  434. >
  435. {{ tagItem.name }}
  436. </a>
  437. </div>
  438. </div>
  439. </div>
  440. </el-form>
  441. <pagination
  442. v-show="tagTotal>0"
  443. :total="tagTotal"
  444. :page.sync="queryTagParams.pageNum"
  445. :limit.sync="queryTagParams.pageSize"
  446. @pagination="getPageListTagGroup"
  447. />
  448. <div slot="footer" class="dialog-footer">
  449. <el-button type="primary" @click="tagDelSubmitForm()">确 定</el-button>
  450. <el-button @click="DelTagCancel">取 消</el-button>
  451. </div>
  452. </el-dialog>
  453. <el-dialog
  454. :title="resultTitle"
  455. :visible.sync="resultDialogVisible"
  456. width="50%"
  457. custom-class="feedback-dialog"
  458. >
  459. <pre style="white-space: pre-wrap; font-family: inherit;">{{ resultMessage }}</pre>
  460. <span slot="footer" class="dialog-footer">
  461. <el-button @click="resultDialogVisible = false">关闭</el-button>
  462. </span>
  463. </el-dialog>
  464. </div>
  465. </template>
  466. <script>
  467. import {
  468. addCourseWatchLog,
  469. delCourseWatchLog,
  470. exportCourseWatchLog,
  471. getCourseWatchLog, myExportCourseWatchLog,
  472. myListCourseWatchLog,
  473. updateCourseWatchLog
  474. } from "@/api/course/courseWatchLog";
  475. import {courseList, myListCourseRedPacketLog, videoList} from '@/api/course/courseRedPacketLog'
  476. import {myListLogs} from "@/api/course/courseAnswerlogs";
  477. import {getMyQwUserList} from "@/api/qw/user";
  478. import {searchTags} from "../../../api/qw/tag";
  479. import {addTagByWatch, delTagByWatch} from "../../../api/qw/externalContact";
  480. import {allListTagGroup} from "../../../api/qw/tagGroup";
  481. import Vue from 'vue'
  482. import Calendar from 'vue-mobile-calendar'
  483. import {infoSop} from "@/api/qw/sop";
  484. Vue.use(Calendar)
  485. export default {
  486. name: "CourseWatchLog",
  487. data() {
  488. return {
  489. // 日历 key 控制刷新
  490. scheduleCalendarKey: 0,
  491. createCalendarKey: 0,
  492. updateCalendarKey: 0,
  493. qecCalendarKey: 0,
  494. createTimeText: '',
  495. scheduleTimeText: '', // 新增
  496. updateTimeText: '', // 新增
  497. qecCreateTimeText: '', // 新增
  498. scheduleTime: [], // 改为数组
  499. createTime: [], // 改为数组
  500. updateTime: [], // 改为数组
  501. qecCreateTime: [], // 改为数组
  502. // 控制日历显隐
  503. showScheduleCalendar: false,
  504. showCreateCalendar: false,
  505. showUpdateCalendar: false,
  506. showQecCalendar: false,
  507. resultDialogVisible: false,
  508. resultMessage: '',
  509. resultTitle:'',
  510. activeName:"2",
  511. pickerOptions: {
  512. disabledDate(time) {
  513. // 获取6天前的日期(加上今天就是7天)
  514. const sixDaysAgo = new Date();
  515. sixDaysAgo.setDate(sixDaysAgo.getDate() - 6);
  516. sixDaysAgo.setHours(0, 0, 0, 0);
  517. // 获取明天的日期(不包括今天)
  518. const tomorrow = new Date();
  519. tomorrow.setDate(tomorrow.getDate() + 1);
  520. tomorrow.setHours(0, 0, 0, 0);
  521. return time.getTime() < sixDaysAgo.getTime() || time.getTime() >= tomorrow.getTime();
  522. }
  523. },
  524. courseLists: [],
  525. videoList: [],
  526. myQwUserList: [],
  527. logTypeOptions: [],
  528. // 遮罩层
  529. loading: true,
  530. // 导出遮罩层
  531. exportLoading: false,
  532. // 选中数组
  533. ids: [],
  534. // 非单个禁用
  535. single: true,
  536. // 非多个禁用
  537. multiple: true,
  538. // 显示搜索条件
  539. showSearch: true,
  540. sysCompanyOr: [],
  541. // 总条数
  542. total: 0,
  543. // 短链课程看课记录表格数据
  544. courseWatchLogList: [],
  545. openAnswerLog: false,
  546. loadingAnswerLog: true,
  547. answerLogsList: [],
  548. answerLogTotal: 0,
  549. answerLogQueryParams: {
  550. pageNum: 1,
  551. pageSize: 10,
  552. },
  553. sendTypeOptions:[{
  554. dictLabel:"会员",dictValue:'1'
  555. },
  556. {
  557. dictLabel:"企微",dictValue:'2'
  558. }
  559. ],
  560. openRedLog: false,
  561. loadingRedLog: true,
  562. redLogsList: [],
  563. redLogTotal: 0,
  564. redLogQueryParams: {
  565. pageNum: 1,
  566. pageSize: 10,
  567. },
  568. // 弹出层标题
  569. title: "",
  570. // 是否显示弹出层
  571. open: false,
  572. tagOpen:false,
  573. //标签弹窗选择
  574. tagChange:{
  575. open:false,
  576. index:null,
  577. },
  578. addTagFormByWatch:{
  579. logId:[],
  580. tagIds:[]
  581. },
  582. tagGroupList: [],
  583. tagTotal:0,
  584. tagDelOpen:false,
  585. queryTagParams:{
  586. pageNum: 1,
  587. pageSize: 5,
  588. total:0,
  589. name:null,
  590. corpId:null,
  591. },
  592. isVipList: [
  593. { dictLabel: '是', dictValue: 1 },
  594. { dictLabel: '否', dictValue: 0 }
  595. ],
  596. // SOP搜索相关
  597. sopSearchText: '', // SOP搜索框显示的文本
  598. selectedSopId: null, // 选中的SOP ID
  599. // 查询参数
  600. queryParams: {
  601. pageNum: 1,
  602. pageSize: 10,
  603. userId: null,
  604. videoId: null,
  605. nickName: null,
  606. logType: 2,
  607. qwExternalContactId: null,
  608. externalUserName:null,
  609. duration: null,
  610. qwUserId: null,
  611. companyUserId: null,
  612. companyId: null,
  613. courseId: null,
  614. sTime: null,
  615. eTime: null,
  616. upSTime:null,
  617. upETime:null,
  618. qecSTime:null,
  619. qecETime:null,
  620. scheduleStartTime: null,
  621. scheduleEndTime: null,
  622. sendType:process.env.VUE_APP_COURSE_DEFAULT,
  623. isVip: null,
  624. sopId: null, // sopId
  625. },
  626. // 表单参数
  627. form: {},
  628. // 表单校验
  629. rules: {}
  630. };
  631. },
  632. created() {
  633. courseList().then(response => {
  634. this.courseLists = response.list;
  635. });
  636. this.getList();
  637. this.getDicts("sys_course_watch_log_type").then(response => {
  638. this.logTypeOptions = response.data;
  639. });
  640. this.getDicts("sys_company_or").then(response => {
  641. this.sysCompanyOr = response.data;
  642. });
  643. getMyQwUserList().then(response => {
  644. this.myQwUserList = response.data;
  645. });
  646. },
  647. methods: {
  648. handleSendTypeChange() {
  649. this.handleQuery(); // 重新查询列表
  650. },
  651. // 重置日历组件
  652. resetCalendars() {
  653. this.scheduleTime = [];
  654. this.createTime = [];
  655. this.updateTime = [];
  656. this.qecCreateTime = [];
  657. this.scheduleTimeText = '';
  658. this.createTimeText = '';
  659. this.updateTimeText = '';
  660. this.qecCreateTimeText = '';
  661. // 强制刷新日历组件
  662. this.scheduleCalendarKey++;
  663. this.createCalendarKey++;
  664. this.updateCalendarKey++;
  665. this.qecCalendarKey++;
  666. },
  667. formatDateRange(dates) {
  668. if (!dates || dates.length < 2) return '';
  669. return dates.map(date => date.format('YYYY-MM-DD')).join(' ~ ');
  670. },
  671. courseChange(row) {
  672. this.queryParams.videoId = null;
  673. if (row === '') {
  674. this.videoList = [];
  675. return
  676. }
  677. videoList(row).then(response => {
  678. this.videoList = response.list
  679. });
  680. },
  681. updateQwuser() {
  682. for (const user of this.myQwUserList) {
  683. if (user.dictValue == this.queryParams.qwUserId) {
  684. this.queryParams.corpId = user.corpId;
  685. break;
  686. }
  687. }
  688. this.getList();
  689. },
  690. handleClickX(tab) {
  691. this.activeName=tab.name;
  692. if(tab.name=="00"){
  693. this.queryParams.logType=null;
  694. }else{
  695. this.queryParams.logType=tab.name;
  696. }
  697. this.getList()
  698. },
  699. // 营期时间
  700. handleScheduleTimeChange(scheduleTime) {
  701. if (scheduleTime && scheduleTime.length >= 2) {
  702. this.scheduleTimeText = this.formatDateRange(scheduleTime);
  703. this.queryParams.scheduleStartTime = scheduleTime.map(date => date.format('YYYY-MM-DD'))[0] || null;
  704. this.queryParams.scheduleEndTime = scheduleTime.map(date => date.format('YYYY-MM-DD'))[1] || null;
  705. console.log(this.queryParams.scheduleStartTime)
  706. console.log(this.queryParams.scheduleEndTime)
  707. } else {
  708. this.scheduleTimeText = '';
  709. this.queryParams.scheduleStartTime = null;
  710. this.queryParams.scheduleEndTime = null;
  711. }
  712. },
  713. // 创建时间
  714. createChange(createTime) {
  715. if (createTime && createTime.length >= 2) {
  716. this.createTimeText = this.formatDateRange(createTime);
  717. this.queryParams.sTime = createTime.map(date => date.format('YYYY-MM-DD'))[0] || null;
  718. this.queryParams.eTime = createTime.map(date => date.format('YYYY-MM-DD'))[1] || null;
  719. } else {
  720. this.createTimeText = '';
  721. this.queryParams.sTime = null;
  722. this.queryParams.eTime = null;
  723. }
  724. },
  725. // 更新时间
  726. updateChange(updateTime) {
  727. if (updateTime && updateTime.length >= 2) {
  728. this.updateTimeText = this.formatDateRange(updateTime);
  729. this.queryParams.upSTime = updateTime.map(date => date.format('YYYY-MM-DD'))[0] || null;
  730. this.queryParams.upETime = updateTime.map(date => date.format('YYYY-MM-DD'))[1] || null;
  731. } else {
  732. this.updateTimeText = '';
  733. this.queryParams.upSTime = null;
  734. this.queryParams.upETime = null;
  735. }
  736. },
  737. // 进线时间
  738. qecCreateTimeChange(qecCreateTime) {
  739. if (qecCreateTime && qecCreateTime.length >= 2) {
  740. // 检查选择的日期范围是否超过7天(包括起始和结束日期)
  741. const startDate = new Date(qecCreateTime[0]);
  742. const endDate = new Date(qecCreateTime[1]);
  743. // 设置时间为当天开始,避免时间部分影响计算
  744. startDate.setHours(0, 0, 0, 0);
  745. endDate.setHours(0, 0, 0, 0);
  746. const timeDiff = Math.abs(endDate - startDate);
  747. const diffDays = Math.ceil(timeDiff / (1000 * 60 * 60 * 24));
  748. // 如果超过6天的范围(总共7天,包括起始日)
  749. if (diffDays > 6) {
  750. this.$message.error('进线时间选择范围不能超过7天');
  751. // 清空选择
  752. this.qecCreateTime = [];
  753. this.qecCreateTimeText = '';
  754. this.queryParams.qecSTime = null;
  755. this.queryParams.qecETime = null;
  756. this.qecCalendarKey++;
  757. return;
  758. }
  759. this.qecCreateTimeText = this.formatDateRange(qecCreateTime);
  760. this.queryParams.qecSTime = qecCreateTime.map(date => date.format('YYYY-MM-DD'))[0] || null;
  761. this.queryParams.qecETime = qecCreateTime.map(date => date.format('YYYY-MM-DD'))[1] || null;
  762. } else {
  763. this.qecCreateTimeText = '';
  764. this.queryParams.qecSTime = null;
  765. this.queryParams.qecETime = null;
  766. }
  767. },
  768. /** 查询短链课程看课记录列表 */
  769. getList() {
  770. this.loading = true;
  771. let param = JSON.parse(JSON.stringify(this.queryParams));
  772. if (param.logType == "10") {
  773. param.logType = null;
  774. }
  775. myListCourseWatchLog(param).then(response => {
  776. this.courseWatchLogList = response.rows;
  777. this.total = response.total;
  778. this.loading = false;
  779. });
  780. },
  781. // 取消按钮
  782. cancel() {
  783. this.open = false;
  784. this.reset();
  785. },
  786. // 表单重置
  787. reset() {
  788. this.form = {
  789. logId: null,
  790. userId: null,
  791. videoId: null,
  792. logType: null,
  793. createTime: null,
  794. updateTime: null,
  795. qwExternalContactId: null,
  796. externalUserName:null,
  797. duration: null,
  798. qwUserId: null,
  799. companyUserId: null,
  800. companyId: null,
  801. courseId: null,
  802. sTime:null,
  803. eTime:null,
  804. upSTime:null,
  805. upETime:null,
  806. qecSTime:null,
  807. qecETime:null,
  808. scheduleStartTime: null,
  809. scheduleEndTime: null,
  810. };
  811. // 统一重置日历组件
  812. this.resetCalendars();
  813. this.resetForm("form");
  814. },
  815. /** 搜索按钮操作 */
  816. handleQuery() {
  817. this.queryParams.pageNum = 1;
  818. this.getList();
  819. },
  820. /** 重置按钮操作 */
  821. resetQuery() {
  822. this.resetForm("queryForm");
  823. this.queryParams.sTime = null;
  824. this.queryParams.eTime = null;
  825. this.queryParams.upSTime = null;
  826. this.queryParams.upETime = null;
  827. this.queryParams.qecSTime = null;
  828. this.queryParams.qecETime = null;
  829. this.queryParams.scheduleStartTime = null;
  830. this.queryParams.scheduleEndTime = null;
  831. this.queryParams.sopId = null; // 重置SOP ID
  832. // 重置SOP搜索
  833. this.handleSopClear();
  834. // 统一重置日历组件
  835. this.resetCalendars();
  836. this.handleQuery();
  837. },
  838. // 多选框选中数据
  839. handleSelectionChange(selection) {
  840. this.ids = selection.map(item => item.logId)
  841. this.single = selection.length !== 1
  842. this.multiple = !selection.length
  843. },
  844. /** 新增按钮操作 */
  845. handleAdd() {
  846. this.reset();
  847. this.open = true;
  848. this.title = "添加短链课程看课记录";
  849. },
  850. /** 修改按钮操作 */
  851. handleUpdate(row) {
  852. this.reset();
  853. const logId = row.logId || this.ids
  854. getCourseWatchLog(logId).then(response => {
  855. this.form = response.data;
  856. this.open = true;
  857. this.title = "修改短链课程看课记录";
  858. });
  859. },
  860. /** 提交按钮 */
  861. submitForm() {
  862. this.$refs["form"].validate(valid => {
  863. if (valid) {
  864. if (this.form.logId != null) {
  865. updateCourseWatchLog(this.form).then(response => {
  866. this.msgSuccess("修改成功");
  867. this.open = false;
  868. this.getList();
  869. });
  870. } else {
  871. addCourseWatchLog(this.form).then(response => {
  872. this.msgSuccess("新增成功");
  873. this.open = false;
  874. this.getList();
  875. });
  876. }
  877. }
  878. });
  879. },
  880. /** 删除按钮操作 */
  881. handleDelete(row) {
  882. const logIds = row.logId || this.ids;
  883. this.$confirm('是否确认删除短链课程看课记录编号为"' + logIds + '"的数据项?', "警告", {
  884. confirmButtonText: "确定",
  885. cancelButtonText: "取消",
  886. type: "warning"
  887. }).then(function () {
  888. return delCourseWatchLog(logIds);
  889. }).then(() => {
  890. this.getList();
  891. this.msgSuccess("删除成功");
  892. }).catch(() => {
  893. });
  894. },
  895. /** 导出按钮操作 */
  896. handleExport() {
  897. const queryParams = this.queryParams;
  898. this.$confirm('是否确认导出所有短链课程看课记录数据项?', "警告", {
  899. confirmButtonText: "确定",
  900. cancelButtonText: "取消",
  901. type: "warning"
  902. }).then(() => {
  903. this.exportLoading = true;
  904. return myExportCourseWatchLog(queryParams);
  905. }).then(response => {
  906. this.download(response.msg);
  907. this.exportLoading = false;
  908. }).catch(() => {
  909. });
  910. },
  911. openAnswerLogFun(row) {
  912. this.openAnswerLog = true;
  913. this.answerLogQueryParams.watchLogId = row.logId;
  914. this.answerLogList();
  915. },
  916. answerLogList() {
  917. this.loadingAnswerLog = true;
  918. myListLogs(this.answerLogQueryParams).then(e => {
  919. this.answerLogsList = e.rows;
  920. this.answerLogTotal = e.total;
  921. this.loadingAnswerLog = false;
  922. })
  923. },
  924. openRedLogFun(row) {
  925. this.openRedLog = true;
  926. this.redLogQueryParams.watchLogId = row.logId;
  927. this.redLogList();
  928. },
  929. redLogList() {
  930. this.loadingRedLog = true;
  931. console.info(this.redLogQueryParams)
  932. myListCourseRedPacketLog(this.redLogQueryParams).then(e => {
  933. this.redLogsList = e.rows;
  934. this.redLogTotal = e.total;
  935. this.loadingRedLog = false;
  936. })
  937. },
  938. addUserTag(){
  939. if(this.ids==null||this.ids==""){
  940. return this.$message('请选择需要添加标签的客户');
  941. }
  942. this.getPageListTagGroup();
  943. setTimeout(() => {
  944. for (let i = 0; i < this.tagGroupList.length; i++) {
  945. for (let x = 0; x < this.tagGroupList[i].tag.length; x++) {
  946. this.tagGroupList[i].tag[x].isSelected=false;
  947. }
  948. }
  949. }, 200);
  950. this.tagOpen = true;
  951. },
  952. delUserTag(){
  953. if(this.ids==null||this.ids==""){
  954. return this.$message('请选择需要移除标签的客户');
  955. }
  956. this.getPageListTagGroup();
  957. setTimeout(() => {
  958. for (let i = 0; i < this.tagGroupList.length; i++) {
  959. for (let x = 0; x < this.tagGroupList[i].tag.length; x++) {
  960. this.tagGroupList[i].tag[x].isSelected=false;
  961. }
  962. }
  963. }, 200);
  964. this.tagDelOpen = true;
  965. },
  966. getPageListTagGroup(){
  967. this.queryTagParams.corpId=this.queryParams.corpId
  968. allListTagGroup(this.queryTagParams).then(response => {
  969. this.tagGroupList = response.rows;
  970. this.tagTotal = response.total;
  971. });
  972. },
  973. tagSelection(row){
  974. row.isSelected= !row.isSelected;
  975. this.$forceUpdate();
  976. },
  977. handleSearchTags(name){
  978. if (!name){
  979. return this.$message.error("请输入要搜索的标签")
  980. }
  981. this.queryTagParams.name=name;
  982. this.queryTagParams.corpId=this.queryParams.corpId;
  983. searchTags(this.queryTagParams).then(response => {
  984. this.tagGroupList = response.rows;
  985. });
  986. // searchTags({name:name,corpId:this.queryParams.corpId}).then(response => {
  987. // this.tagGroupList = response.rows;
  988. // });
  989. },
  990. cancelSearchTags(){
  991. this.resetSearchQueryTag()
  992. this.getPageListTagGroup();
  993. },
  994. resetSearchQueryTag(){
  995. this.queryTagParams= {
  996. pageNum: 1,
  997. pageSize: 5,
  998. total:0,
  999. name:null,
  1000. };
  1001. },
  1002. addTagSubmitForm(){
  1003. for (let i = 0; i < this.tagGroupList.length; i++) {
  1004. for (let x = 0; x < this.tagGroupList[i].tag.length; x++) {
  1005. if(this.tagGroupList[i].tag[x].isSelected==true){
  1006. this.addTagFormByWatch.tagIds.push(this.tagGroupList[i].tag[x].tagId)
  1007. }
  1008. }
  1009. }
  1010. if(this.addTagFormByWatch.tagIds==[]||this.addTagFormByWatch.tagIds==null||this.addTagFormByWatch.tagIds==""){
  1011. return this.$message('请选择标签');
  1012. }
  1013. this.addTagFormByWatch.logIds=this.ids;
  1014. let loadingRock = this.$loading({
  1015. lock: true,
  1016. text: '正在执行中请稍后~~请不要刷新页面!!',
  1017. spinner: 'el-icon-loading',
  1018. background: 'rgba(0, 0, 0, 0.7)'
  1019. });
  1020. addTagByWatch(this.addTagFormByWatch).then(response => {
  1021. // this.msgSuccess(response.msg);
  1022. this.resultMessage = response.msg;
  1023. this.resultDialogVisible = true; // 显示弹窗
  1024. this.resultTitle = '批量添加标签结果';
  1025. this.tagOpen = false;
  1026. loadingRock.close();
  1027. this.addTagFormByWatch={
  1028. logIds:[],
  1029. tagIds:[]
  1030. };
  1031. this.getList()
  1032. }).finally(res=>{
  1033. loadingRock.close();
  1034. });
  1035. },
  1036. tagDelSubmitForm(){
  1037. for (let i = 0; i < this.tagGroupList.length; i++) {
  1038. for (let x = 0; x < this.tagGroupList[i].tag.length; x++) {
  1039. if(this.tagGroupList[i].tag[x].isSelected==true){
  1040. this.addTagFormByWatch.tagIds.push(this.tagGroupList[i].tag[x].tagId)
  1041. }
  1042. }
  1043. }
  1044. if(this.addTagFormByWatch.tagIds==[]||this.addTagFormByWatch.tagIds==null||this.addTagFormByWatch.tagIds==""){
  1045. return this.$message('请选择标签');
  1046. }
  1047. this.addTagFormByWatch.corpId=this.queryParams.corpId
  1048. this.addTagFormByWatch.logIds=this.ids;
  1049. let loadingRock = this.$loading({
  1050. lock: true,
  1051. text: '正在执行中请稍后~~请不要刷新页面!!',
  1052. spinner: 'el-icon-loading',
  1053. background: 'rgba(0, 0, 0, 0.7)'
  1054. });
  1055. delTagByWatch(this.addTagFormByWatch).then(response => {
  1056. // this.msgSuccess(response.msg);
  1057. this.resultMessage = response.msg;
  1058. this.resultDialogVisible = true; // 显示弹窗
  1059. this.resultTitle = '批量移除标签结果';
  1060. this.tagDelOpen = false;
  1061. loadingRock.close();
  1062. this.addTagFormByWatch={
  1063. userIds:[],
  1064. tagIds:[]
  1065. };
  1066. this.getList()
  1067. }).finally(res=>{
  1068. loadingRock.close();
  1069. });
  1070. },
  1071. addTagCancel() {
  1072. this.tagOpen = false;
  1073. this.addTagFormByWatch={
  1074. logIds:[],
  1075. tagIds:[]
  1076. };
  1077. },
  1078. DelTagCancel() {
  1079. this.tagDelOpen = false;
  1080. this.addTagFormByWatch={
  1081. logIds:[],
  1082. tagIds:[]
  1083. };
  1084. },
  1085. /**
  1086. * 异步查询SOP列表
  1087. * @param {string} queryString - 查询字符串
  1088. * @param {function} callback - 回调函数
  1089. */
  1090. querySopAsync(queryString, callback) {
  1091. if (!queryString) {
  1092. callback([]);
  1093. return;
  1094. }
  1095. infoSop({ name: queryString }).then(response => {
  1096. if (response && response.rows) {
  1097. const suggestions = response.rows.map(item => ({
  1098. value: item.name,
  1099. id: item.id,
  1100. name: item.name
  1101. }));
  1102. callback(suggestions);
  1103. } else {
  1104. callback([]);
  1105. }
  1106. }).catch(error => {
  1107. console.error('通过sop查询失败:', error);
  1108. callback([]);
  1109. });
  1110. },
  1111. /**
  1112. * 选择SOP
  1113. * @param {object} item - 选中的SOP项
  1114. */
  1115. handleSopSelect(item) {
  1116. this.selectedSopId = item.id;
  1117. this.queryParams.sopId = item.id;
  1118. this.sopSearchText = item.name;
  1119. },
  1120. /**
  1121. * 清空SOP选择
  1122. */
  1123. handleSopClear() {
  1124. this.selectedSopId = null;
  1125. this.queryParams.sopId = null;
  1126. this.sopSearchText = '';
  1127. },
  1128. }
  1129. };
  1130. </script>
  1131. <style scoped>
  1132. /* CSS 样式 */
  1133. .tag-container {
  1134. display: flex;
  1135. flex-wrap: wrap; /* 超出宽度时自动换行 */
  1136. gap: 8px; /* 设置标签之间的间距 */
  1137. }
  1138. .name-background {
  1139. display: inline-block;
  1140. background-color: #abece6; /* 背景颜色 */
  1141. padding: 4px 8px; /* 调整内边距,让背景包裹文字 */
  1142. border-radius: 4px; /* 可选:设置圆角 */
  1143. }
  1144. /* CSS 样式 */
  1145. .tag-container {
  1146. display: flex;
  1147. flex-wrap: wrap; /* 超出宽度时自动换行 */
  1148. gap: 8px; /* 设置标签之间的间距 */
  1149. }
  1150. .name-background {
  1151. display: inline-block;
  1152. background-color: #abece6; /* 背景颜色 */
  1153. padding: 4px 8px; /* 调整内边距,让背景包裹文字 */
  1154. border-radius: 4px; /* 可选:设置圆角 */
  1155. }
  1156. .tag-box {
  1157. padding: 8px 12px;
  1158. border: 1px solid #989797;
  1159. border-radius: 4px;
  1160. cursor: pointer;
  1161. display: inline-block;
  1162. }
  1163. .tag-selected {
  1164. background-color: #00bc98;
  1165. color: #fff;
  1166. border-color: #00bc98;
  1167. }
  1168. .el-tag + .el-tag {
  1169. margin-left: 10px;
  1170. }
  1171. .button-new-tag {
  1172. margin-left: 10px;
  1173. height: 32px;
  1174. line-height: 30px;
  1175. padding-top: 0;
  1176. padding-bottom: 0;
  1177. }
  1178. .input-new-tag {
  1179. width: 90px;
  1180. margin-left: 10px;
  1181. vertical-align: bottom;
  1182. }
  1183. /* 新增的滚动容器样式(不影响原有样式) */
  1184. .scroll-wrapper {
  1185. max-height: 130px; /* 大约三行的高度 */
  1186. overflow-y: auto; /* 垂直滚动 */
  1187. padding-right: 5px; /* 为滚动条留出空间 */
  1188. }
  1189. /* 美化滚动条(可选) */
  1190. .scroll-wrapper::-webkit-scrollbar {
  1191. width: 6px;
  1192. }
  1193. .scroll-wrapper::-webkit-scrollbar-thumb {
  1194. background: rgba(0, 0, 0, 0.2);
  1195. border-radius: 3px;
  1196. }
  1197. /* SOP搜索框样式 */
  1198. .sop-item {
  1199. display: flex;
  1200. align-items: center;
  1201. }
  1202. .sop-name {
  1203. font-size: 14px;
  1204. color: #606266;
  1205. }
  1206. </style>