screenSet.vue 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245
  1. <template>
  2. <div class="all-box">
  3. <div class="all" style="padding: 20px;">
  4. <div class="flex-box-ce" style="padding: 30px 10px;">
  5. <div class="flex-1">
  6. <div style="font-size: 24px;font-weight: 700;margin-bottom: 5px;">数据大屏
  7. <el-popover
  8. placement="bottom-start"
  9. title="使用须知"
  10. width="500"
  11. trigger="hover"
  12. content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
  13. <div>
  14. <div style="padding: 10px 0;font-weight: 700;">如何显示大屏数据:</div>
  15. <p>1.会议平板访问:在平板中输入大屏访问链接,密码验证后可直接访问</p>
  16. <p>2.电脑投屏到其他设备:在电脑的浏览器上访问链接,投屏到大屏设备中</p>
  17. <div style="padding: 10px 0;font-weight: 700">其他须知:</div>
  18. <p>1.创建大屏名称和备注可用于区分不同区域或场景下的大屏,最多创建10个大屏</p>
  19. <p>2.每个大屏仅支持3个窗口同时访问,每打开一个窗口都会占用访问数,请避免打开多余窗口</p>
  20. <p>3.链接复制到其他设备,请用浏览器输入并打开访问链接,首次进入需输入密码</p>
  21. <p>4.更换设置可直接操作保存,更换后刷新页面或稍候5分钟即可</p>
  22. <p>5.如需切换其他大屏,请点击大屏右上角退出登录,重新输入其他大屏的密码即可</p>
  23. <p>6.分享链接的密码重置后,对应的大屏需重新输入密码验证</p>
  24. <p>7.本机上每次打开链接都需要密码</p>
  25. </div>
  26. <span style="font-size:12px;cursor: pointer;" class="blue" slot="reference">使用须知</span>
  27. </el-popover>
  28. </div>
  29. <div style="font-size: 14px;" class="fontColorB">积分可视化数据大屏,直观展现积分排名、积分快讯、运作情况,支持电脑投屏、会议平板直接访问。</div>
  30. </div>
  31. <el-button type="primary" @click="isPz = true" :disabled="list.length==10">
  32. 创建数据大屏
  33. <i class="el-icon-setting el-icon--right"></i>
  34. </el-button>
  35. </div>
  36. <el-alert title="最多创建10个大屏链接,每个链接仅支持3个窗口同时在线访问,超出后无法获取数据" type="warning"></el-alert>
  37. <el-table ref="multipleTable" :data="list" tooltip-effect="dark" align="center" v-loading="loading">
  38. <el-table-column label="大屏名称" prop="name"></el-table-column>
  39. <el-table-column label="备注" min-width="300" prop="remark"></el-table-column>
  40. <el-table-column label="操作">
  41. <template slot-scope="scope">
  42. <div class="flex-box-ce">
  43. <div @click.stop="openSet(scope.row)" style="margin-right: 10px;"><span class="lookQrcode blue">设置</span></div>
  44. <!-- <div @click.stop="preview(scope.row,1)" style="margin-right: 10px;"><span class="lookQrcode green">预览</span></div> -->
  45. <div @click.stop="preview(scope.row,2)" style="margin-right: 10px;"><span class="lookQrcode green">访问大屏</span></div>
  46. <div @click.stop="compile(scope.row)" style="margin-right: 10px;"><span class="lookQrcode">编辑</span></div>
  47. <div @click.stop="deleteSet(scope.row)"><span class="lookQrcode red">删除</span></div>
  48. </div>
  49. </template>
  50. </el-table-column>
  51. <template slot="empty">
  52. <noData :isSolt="true">
  53. <div>
  54. 您当前没有数据大屏配置,去添加
  55. <span style="cursor: pointer;margin-left: 10px;" @click="isPz = true" class="blue">添加</span>
  56. </div>
  57. </noData>
  58. </template>
  59. </el-table>
  60. </div>
  61. <el-dialog :title="isCompile? '编辑数据大屏':'创建数据大屏'" :visible.sync="isPz" width="500px" class="dialog">
  62. <el-form label-width="80px" :model="formData" ref="setForm" class="form">
  63. <el-form-item
  64. label="名称"
  65. prop="name"
  66. :rules="[{ required: true, message: '请输入名称', trigger: 'blur' }, { min: 2, max: 20, message: '长度在 2 到 20 个字符', trigger: 'blur' }]"
  67. >
  68. <el-input maxlength="20" show-word-limit v-model="formData.name" placeholder="请输入名称"></el-input>
  69. </el-form-item>
  70. <el-form-item
  71. label="备注"
  72. prop="remark"
  73. :rules="[{ required: true, message: '请输入备注', trigger: 'blur' }, { min: 2, max: 100, message: '长度在 2 到 100 个字符', trigger: 'blur' }]"
  74. >
  75. <el-input type="textarea" placeholder="请输入备注" :rows="4" maxlength="100" show-word-limit v-model="formData.remark"></el-input>
  76. </el-form-item>
  77. </el-form>
  78. <div class="flex-box-end">
  79. <el-button @click="isPz = false">取消</el-button>
  80. <el-button type="primary" :loading="setLoading" :disabled="setLoading" @click="saveFirst('setForm')">确定</el-button>
  81. </div>
  82. </el-dialog>
  83. <el-dialog title="打开方式" :visible.sync="isPreview" width="500px" class="dialog">
  84. <div>
  85. <div style="margin-bottom: 20px;">{{selectItem.name}}</div>
  86. <div>打开方式1:扫码登录(新)</div>
  87. <div class="flex-box-ce" style="margin: 10px 0;">
  88. <el-input style="width: 300px;" v-model="previewUrl2" disabled placeholder="链接"></el-input>
  89. <div class="blue" style="padding-left: 10px;cursor: pointer;" @click="copy('3')">复制大屏链接</div>
  90. </div>
  91. <div style="font-size: 12px;position: relative;top: -10px;" class="orange">扫码方式适用于触摸屏和投屏场景,不支持手动输入链接地址及纯遥控选择操作,请根据设备条件选择打开方式</div>
  92. <div style="margin-top: 30px;">打开方式2:密码登录(旧)</div>
  93. <div class="flex-box-ce" style="margin: 10px 0;">
  94. <el-input style="width: 300px;" v-model="previewUrl" disabled placeholder="链接"></el-input>
  95. <div class="blue" style="padding-left: 10px;cursor: pointer;" @click="copy('1')">复制大屏链接</div>
  96. </div>
  97. <div class="flex-box-ce">
  98. <el-input style="width: 300px;" v-model="code" placeholder="随机密码" disabled>
  99. <el-button slot="append" @click="refresh">刷新</el-button>
  100. </el-input>
  101. <div class="blue" style="padding-left: 10px;cursor: pointer;" @click="copy('2')">复制密码</div>
  102. </div>
  103. <div class="orange" style="font-size: 12px;margin-bottom: 10px;">刷新后原有的密码将失效</div>
  104. <!-- <div class="orange">每个链接仅支持3个窗口同时在线访问,超出后无法获取数据</div> -->
  105. </div>
  106. <div class="flex-box-end" style="margin: 10px 0;">
  107. <!-- <el-button @click="preview({},1)" type="primary" plain>打开大屏</el-button> -->
  108. <div class="flex-1"></div>
  109. <el-button @click="isPreview = false" type="">关 闭</el-button>
  110. </div>
  111. </el-dialog>
  112. <el-dialog :title="'设置('+selectItem.name+')'" :visible.sync="dialogVisible" width="1000px" class="dialog">
  113. <div class="flex-box">
  114. <div class="flex-4" style="padding-top: 50px;">
  115. <div style="color: #222;font-weight: 700;font-size: 16px;padding-left: 8px;">点击下面模块,快速定位到设置项
  116. <el-popover placement="bottom-start" title="示例" width="500" trigger="hover">
  117. <div><img src="@/assets/image/321.jpg" style="width: 100%;"/></div>
  118. <span style="font-size:14px;cursor: pointer;" class="blue" slot="reference">示例</span>
  119. </el-popover>
  120. </div>
  121. <div class="flex-box-ce">
  122. <div class="flex-1">
  123. <div class="border1" @click="activeQie('2')" :class="activeBor == '2' ? 'activeBor' : ''" style="height: 40px;line-height: 40px;">组织名称和logo设置</div>
  124. <div class="border1" @click="activeQie('3')" :class="activeBor == '3' ? 'activeBor' : ''" style="height: 300px;line-height: 300px;">排行榜设置</div>
  125. </div>
  126. <div class="flex-1">
  127. <div class="border1" @click="activeQie('1')" :class="activeBor == '1' ? 'activeBor' : ''" style="height: 40px;line-height: 40px;">标题设置</div>
  128. <div class="border1" @click="activeQie('4')" :class="activeBor == '4' ? 'activeBor' : ''" style="height: 80px;line-height: 80px;">今日积分数据设置</div>
  129. <div class="border1" @click="activeQie('5')" :class="activeBor == '5' ? 'activeBor' : ''" style="height: 212px;line-height: 212px;">活跃度设置</div>
  130. </div>
  131. <div class="flex-1">
  132. <div class="" style="height: 44px;"></div>
  133. <div class="border1" @click="activeQie('6')" :class="activeBor == '6' ? 'activeBor' : ''" style="height: 300px;line-height: 300px;">积分快讯设置</div>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="flex-3 scroll-bar" id="scroll" style="height: 500px;overflow-y: scroll;margin-left: 10px;" @scroll="myFunction">
  138. <el-form label-width="80px" :model="config" ref="setForm" class="form">
  139. <div class="kuai">
  140. <div class="formTitle">标题设置</div>
  141. <div class="formBox">
  142. <el-form-item label="标题名称">
  143. <el-input class="width250" maxlength="10" show-word-limit v-model.trim="config.title" placeholder="请输入名称"></el-input>
  144. </el-form-item>
  145. </div>
  146. </div>
  147. <div class="kuai">
  148. <div class="formTitle">组织名称和logo设置</div>
  149. <div class="formBox">
  150. <el-form-item label="组织名称">
  151. <el-input class="width250" maxlength="10" show-word-limit v-model.trim="config.company.name" placeholder="请输入名称"></el-input>
  152. </el-form-item>
  153. <el-form-item label="logo">
  154. <upload
  155. :headers="Xtoken"
  156. class="avatar-uploader"
  157. action="https://integralsys.oss-cn-shenzhen.aliyuncs.com"
  158. :show-file-list="false"
  159. :multiple="false"
  160. :limit="100"
  161. accept="image/jpeg,image/png"
  162. :on-success="handleFilesSuccess"
  163. :before-upload="beforeUpload"
  164. >
  165. <img v-if="config.company.logo" :src="config.company.logo" class="avatar" />
  166. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  167. </upload>
  168. <div class="orange" style="font-size: 12px;">比例为1:1,最大不超过5M</div>
  169. </el-form-item>
  170. </div>
  171. </div>
  172. <div class="kuai">
  173. <div class="formTitle">排行榜设置</div>
  174. <div class="formBox">
  175. <el-form-item style="margin-bottom: 30px;">
  176. <el-radio-group v-model="config.ranking_type">
  177. <el-radio label="ranking">阶段排名</el-radio>
  178. <el-radio label="ranking_total">累计排名</el-radio>
  179. </el-radio-group>
  180. <div style="position: absolute;z-index: 999;left: 0px;top: 30px;font-size: 12px;line-height: 14px;" class="fontColorC">
  181. <span v-if="config.ranking_type=='ranking'">阶段排名仅统计时间区间内的积分数据<br/>不包含基础分和工龄分</span>
  182. <span v-else>累计B分排名即员工从入职至今的所有B分总计<br/>包含基础分和工龄分</span>
  183. </div>
  184. </el-form-item>
  185. <div style="min-height: 362px;">
  186. <template v-if="config.ranking_type=='ranking'">
  187. <el-form-item label="名称">
  188. <el-input class="width250" maxlength="10" show-word-limit v-model.trim="config.ranking.name" placeholder="请输入名称"></el-input>
  189. </el-form-item>
  190. <el-form-item label="时间">
  191. <el-select class="width250" v-model="config.ranking.condition.date" placeholder="请选择积分类型">
  192. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
  193. </el-select>
  194. <el-date-picker
  195. class="width250"
  196. v-if="config.ranking.condition.date == 1"
  197. v-model="config.ranking.condition.time"
  198. type="daterange"
  199. value-format="timestamp"
  200. @change="setTime"
  201. :clearable="false"
  202. range-separator="至"
  203. start-placeholder="开始日期"
  204. end-placeholder="结束日期"
  205. ></el-date-picker>
  206. </el-form-item>
  207. <el-form-item label="部门">
  208. <template slot="label">
  209. <el-tooltip effect="dark" placement="top">
  210. <template slot="content">
  211. 选择部门默认包含子部门
  212. </template>
  213. <span>部门 <i class="el-icon-warning"></i></span>
  214. </el-tooltip>
  215. </template>
  216. <el-cascader
  217. v-model="config.ranking.condition.deptArr"
  218. :options="dept_tree"
  219. :props="{checkStrictly: true, multiple : true, value: 'id', label: 'name', children: '_child' }"
  220. class="width250"
  221. ref="dept1"
  222. filterable
  223. collapse-tags
  224. placeholder="全公司"
  225. clearable
  226. ></el-cascader>
  227. </el-form-item>
  228. <el-form-item label="姓名">
  229. <el-select class="width250" v-model="config.ranking.condition.position" placeholder="请选择人员范围">
  230. <el-option v-for="item in roleOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
  231. </el-select>
  232. </el-form-item>
  233. <el-form-item label="类型">
  234. <el-select class="width250" v-model="config.ranking.condition.point_id" placeholder="请选择积分类型">
  235. <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" v-if="item.value != 1"></el-option>
  236. </el-select>
  237. </el-form-item>
  238. <el-form-item label="排除">
  239. <el-input class="width250" auto-complete="off" v-model="config.ranking.condition.employeeName" placeholder="请选择排除对象"></el-input>
  240. <div @click="noPersonnelListTips" style=" position: absolute; top: 0; right: 0; left: 0; bottom: 0; z-index: 9;"></div>
  241. </el-form-item>
  242. </template>
  243. <template v-else>
  244. <el-form-item label="名称">
  245. <el-input class="width250" maxlength="10" show-word-limit v-model.trim="config.ranking_total.name" placeholder="请输入名称"></el-input>
  246. </el-form-item>
  247. <el-form-item label="部门">
  248. <template slot="label">
  249. <el-tooltip effect="dark" placement="top">
  250. <template slot="content">
  251. 选择部门默认包含子部门
  252. </template>
  253. <span>部门 <i class="el-icon-warning"></i></span>
  254. </el-tooltip>
  255. </template>
  256. <el-cascader
  257. v-model="config.ranking_total.condition.deptArr"
  258. :options="dept_tree"
  259. :props="{checkStrictly: true, multiple : true, value: 'id', label: 'name', children: '_child' }"
  260. class="width250"
  261. ref="dept6"
  262. filterable
  263. collapse-tags
  264. placeholder="全公司"
  265. clearable
  266. ></el-cascader>
  267. </el-form-item>
  268. </template>
  269. </div>
  270. </div>
  271. </div>
  272. <div class="kuai">
  273. <div class="formTitle">
  274. 今日积分数据设置
  275. <el-tooltip effect="dark" placement="top">
  276. <template slot="content">
  277. <div>
  278. 合并统计A分和B分数据<br />
  279. ● 今日奖分:仅统计奖分,不统计扣分<br />
  280. ● 今日人次:今日每有1条积分事件,记1人次(含奖分、扣分)<br />
  281. ● 仅统计事件发生时间是今日的数据<br />
  282. ● 仅统计复核通过的事件(未开复核的,系统会自动复核通过)
  283. </div>
  284. </template>
  285. <span><i class="el-icon-warning fontColorC"></i></span>
  286. </el-tooltip>
  287. </div>
  288. <div class="formBox">
  289. <el-form-item label="部门">
  290. <template slot="label">
  291. <el-tooltip effect="dark" placement="top">
  292. <template slot="content">
  293. 选择部门默认包含子部门
  294. </template>
  295. <span>部门 <i class="el-icon-warning"></i></span>
  296. </el-tooltip>
  297. </template>
  298. <el-cascader
  299. v-model="config.center.deptArr"
  300. :options="dept_tree"
  301. :props="{checkStrictly: true, multiple : true, value: 'id', label: 'name', children: '_child' }"
  302. ref="dept2"
  303. class="width250"
  304. filterable
  305. collapse-tags
  306. placeholder="全公司"
  307. clearable
  308. ></el-cascader>
  309. </el-form-item>
  310. </div>
  311. </div>
  312. <div class="kuai">
  313. <div class="formTitle">活跃度设置
  314. <el-tooltip effect="dark" placement="top">
  315. <template slot="content">
  316. 活跃度统计的积分包含A分和B分<br />
  317. ● 获得积分人员占比=获得积分的人数/参与积分的总人数<br />
  318. ● 执行奖扣管理人员占比=有执行奖扣的人/总管理者人数<br />
  319. ● 基准标尺为执行下限,要求活跃度在标尺之上执行才算执行到位
  320. </template>
  321. <i class="el-icon-warning fontColorC"></i>
  322. </el-tooltip>
  323. </div>
  324. <div class="formBox">
  325. <el-form-item label="部门">
  326. <template slot="label">
  327. <el-tooltip effect="dark" placement="top">
  328. <template slot="content">
  329. 选择部门默认包含子部门
  330. </template>
  331. <span>部门 <i class="el-icon-warning"></i></span>
  332. </el-tooltip>
  333. </template>
  334. <el-cascader
  335. v-model="config.active.deptArr"
  336. :options="dept_tree"
  337. :props="{checkStrictly: true, multiple : true, value: 'id', label: 'name', children: '_child' }"
  338. ref="dept3"
  339. class="width250"
  340. filterable
  341. collapse-tags
  342. placeholder="全公司"
  343. clearable
  344. ></el-cascader>
  345. </el-form-item>
  346. <el-form-item label="时间范围">
  347. <el-select class="width250" v-model="config.active.type" placeholder="请选择时间范围">
  348. <el-option key="1" label="近三天" :value="1"></el-option>
  349. <el-option key="2" label="近三周" :value="2"></el-option>
  350. </el-select>
  351. </el-form-item>
  352. <el-form-item label="标尺">
  353. <el-input class="width250" @input="config.active.base_ratio=config.active.base_ratio.replace(/^(0+)|[^\d]+/g,'')" v-model="config.active.base_ratio" placeholder="请输入标尺">
  354. <template slot="append">
  355. %
  356. </template>
  357. </el-input>
  358. </el-form-item>
  359. </div>
  360. </div>
  361. <div class="kuai">
  362. <div class="formTitle">积分快讯设置</div>
  363. <div class="formBox">
  364. <div style="color: #333;font-weight: 700;margin-bottom: 10px;">显示最新产生的100条积分事件</div>
  365. <el-form-item label="名称">
  366. <el-input class="width250" maxlength="10" show-word-limit v-model.trim="config.event.name" placeholder="请输入名称"></el-input>
  367. </el-form-item>
  368. <el-form-item label="来源">
  369. <el-select class="width250" multiple v-model="config.event.source_type" placeholder="全部">
  370. <el-option v-for="item in sourceOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
  371. </el-select>
  372. </el-form-item>
  373. <el-form-item label="部门">
  374. <template slot="label">
  375. <el-tooltip effect="dark" placement="top">
  376. <template slot="content">
  377. 选择部门默认包含子部门
  378. </template>
  379. <span>部门 <i class="el-icon-warning"></i></span>
  380. </el-tooltip>
  381. </template>
  382. <el-cascader
  383. v-model="config.event.deptArr"
  384. :options="dept_tree"
  385. :props="{checkStrictly: true,multiple : true, value: 'id', label: 'name', children: '_child' }"
  386. ref="dept4"
  387. class="width250"
  388. filterable
  389. collapse-tags
  390. placeholder="全公司"
  391. clearable
  392. ></el-cascader>
  393. </el-form-item>
  394. <el-form-item label="类型">
  395. <el-select class="width250" v-model="config.event.ptId" placeholder="请选择积分类型">
  396. <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
  397. </el-select>
  398. </el-form-item>
  399. </div>
  400. </div>
  401. </el-form>
  402. </div>
  403. </div>
  404. <div class="flex-box-end" style="padding-top: 10px;">
  405. <el-button @click="dialogVisible = false">取消</el-button>
  406. <el-button type="primary" :loading="setLoading" :disabled="setLoading" @click="submit()">确定</el-button>
  407. </div>
  408. <el-dialog title="选择人员" width="640px" :visible.sync="show_employee_selector" append-to-body>
  409. <EmployeeSelector
  410. v-if="show_employee_selector"
  411. ref="members"
  412. :isChecKedAll="false"
  413. :user_no_select="false"
  414. :max="30"
  415. :selected="employee_selected"
  416. @confirm="move_employee_confirm"
  417. />
  418. <span slot="footer" class="dialog-footer">
  419. <el-button @click="show_employee_selector = false">取 消</el-button>
  420. <el-button type="primary" @click="submitMembers()">保 存</el-button>
  421. </span>
  422. </el-dialog>
  423. </el-dialog>
  424. </div>
  425. </template>
  426. <script>
  427. import upload from '@/components/upload';
  428. import EmployeeSelector from '@/components/EmployeeSelector.vue';
  429. export default {
  430. name: 'screenSet',
  431. components: { upload, EmployeeSelector },
  432. data() {
  433. return {
  434. Xtoken: { 'X-Token': this.$getToken() },
  435. loading: false,
  436. setLoading: false,
  437. ding_enable: true,
  438. list: [],
  439. dialogVisible: false,
  440. isPz: false,
  441. dept_tree: [], //部门列表
  442. options: [
  443. {
  444. value: -5,
  445. label: '本年'
  446. },
  447. {
  448. value: -4,
  449. label: '本季'
  450. },
  451. {
  452. value: -3,
  453. label: '本月'
  454. },
  455. {
  456. value: -2,
  457. label: '本周'
  458. },
  459. {
  460. value: -1,
  461. label: '本天'
  462. },
  463. {
  464. value: 1,
  465. label: '自定义时间区间'
  466. }
  467. ],
  468. roleOptions: [
  469. {
  470. value: 'all',
  471. label: '全部'
  472. },
  473. {
  474. value: 'manager',
  475. label: '管理员'
  476. },
  477. {
  478. value: 'employee',
  479. label: '员工'
  480. }
  481. ],
  482. sourceOptions: [
  483. {
  484. value: 1,
  485. label: '积分奖扣'
  486. },
  487. {
  488. value: 2,
  489. label: '任务'
  490. },
  491. {
  492. value: 3,
  493. label: '积分系统分配'
  494. },
  495. {
  496. value: 4,
  497. label: '考勤系统分配'
  498. },
  499. {
  500. value: 5,
  501. label: '积分申请'
  502. },
  503. // {
  504. // value: 6,
  505. // label: '绩效任务包'
  506. // },
  507. {
  508. value: 8,
  509. label: '积分导入'
  510. },
  511. {
  512. value: 9,
  513. label: 'A分转B分'
  514. },
  515. {
  516. value: 10,
  517. label: '钉钉汇报(日志)奖扣分'
  518. }
  519. ],
  520. typeOptions: [
  521. {
  522. value: 1,
  523. label: '全部'
  524. },
  525. {
  526. value: 2,
  527. label: 'A分'
  528. },
  529. {
  530. value: 3,
  531. label: 'B分'
  532. }
  533. ],
  534. activeBor: '1',
  535. isShowName: false,
  536. nameVal: '',
  537. employeeName: '',
  538. employee_selected: { dept: [], employee: [] },
  539. show_employee_selector: false,
  540. isCompile:false,//是否编辑
  541. isPreview: false,
  542. previewUrl:'',
  543. previewUrl2:'',
  544. code:'',
  545. selectItem:{},
  546. formData: {
  547. // id:'',//修改与删除时,必传 不传则为新增
  548. name: '', //不是删除则必填 配置名称 1-20个字符
  549. remark: '', //备注信息 最多20个字符 默认空
  550. del: 0, //是否为删除操作 1 是 其他否 默认0
  551. remake_code: 0 //是否重新生成校验码 1 是 默认0
  552. },
  553. defaultConfig: {
  554. //配置格式 不是删除则必填
  555. ranking_type:'ranking',
  556. company: {
  557. name: this.$getUserData().company_info.name.slice(0, 10), //不超过十个字 公司名截断
  558. logo: 'https://integralsys.oss-cn-shenzhen.aliyuncs.com/intesys/dd/17/2022/07/01/CaBis82ryBYbncxc3nehiSXkiwDbhbwi.png' //公司logo
  559. },
  560. title: '积分数据大屏', //不超过十个字
  561. ranking_total: { //累计B分排名拿数据
  562. name: "排行榜", //不超过十个字
  563. condition: { //筛选条件
  564. dept: [], //限定部门ID列表 空全公司
  565. deptArr: [],
  566. point_id: "2",//2AF 3BF,
  567. position: "employee",//employee manager all//员工 管理员 全部
  568. exclusion: [],//不参与排名用户ID数组,
  569. }
  570. },
  571. ranking: {
  572. //从阶段排名拿数据
  573. name: '排行榜', //不超过十个字
  574. condition: {//筛选条件
  575. time: [],
  576. date: -3,
  577. start_date: -3, //结束时间
  578. end_date: -3, //开始时间
  579. deptArr: [],
  580. dept: [], //限定部门ID列表 空全公司
  581. point_id: 3, //2AF 3BF,
  582. position: 'all', //manager all//员工 管理员 全部
  583. employeeName: '',
  584. exclusion: [] ,//不参与排名,
  585. employee:[],
  586. }
  587. },
  588. center: {
  589. deptArr: [],
  590. dept: [] //部门ID列表 空全公司
  591. },
  592. active: {
  593. base_ratio: 60, //基准比例
  594. deptArr: [],
  595. dept: [], //部门ID列表 空全公司
  596. type: 1
  597. },
  598. event: {
  599. name: '积分快讯', //排行榜名称
  600. source_type: [1, 2, 5], //来源ID列表 1积分录入 2任务 3积分系统分配 4考勤系统分配 5积分申请 6绩效任务包 8积分导入 9A分转B分 10钉钉报告直接奖励
  601. deptArr: [],
  602. dept: [], //部门ID列表 空全公司
  603. point_id: [2, 3], //积分类型 2AF 3BF
  604. ptId: 1
  605. }
  606. },
  607. config: {
  608. //配置格式 不是删除则必填
  609. ranking_type:'ranking',
  610. company: {
  611. name: this.$getUserData().company_info.name.slice(0, 10), //不超过十个字 公司名截断
  612. logo: 'https://integralsys.oss-cn-shenzhen.aliyuncs.com/intesys/dd/17/2022/07/01/CaBis82ryBYbncxc3nehiSXkiwDbhbwi.png' //公司logo
  613. },
  614. title: '积分数据大屏', //不超过十个字
  615. ranking_total: { //累计B分排名拿数据
  616. name: "累计B分排名", //不超过十个字
  617. condition: { //筛选条件
  618. dept: [], //限定部门ID列表 空全公司
  619. deptArr: [],
  620. point_id: "2",//2AF 3BF,
  621. position: "employee",//employee manager all//员工 管理员 全部
  622. exclusion: [],//不参与排名用户ID数组,
  623. }
  624. },
  625. ranking: {
  626. //从阶段排名拿数据
  627. name: '排行榜', //不超过十个字
  628. condition: {
  629. //筛选条件,
  630. time: [],
  631. date: -3,
  632. start_date: -3, //结束时间
  633. end_date: -3, //开始时间
  634. deptArr: [],
  635. dept: [], //限定部门ID列表 空全公司
  636. point_id: 3, //2AF 3BF,
  637. position: 'all', //manager all//员工 管理员 全部
  638. employeeName: '',
  639. exclusion: [] ,//不参与排名,
  640. employee:[],
  641. }
  642. },
  643. center: {
  644. deptArr: [],
  645. dept: [] //部门ID列表 空全公司
  646. },
  647. active: {
  648. base_ratio: 60, //基准比例
  649. deptArr: [],
  650. dept: [], //部门ID列表 空全公司
  651. type: 1
  652. },
  653. event: {
  654. name: '积分快讯', //排行榜名称
  655. source_type: [1, 2, 5], //来源ID列表 1积分录入 2任务 3积分系统分配 4考勤系统分配 5积分申请 6绩效任务包 8积分导入 9A分转B分 10钉钉报告直接奖励
  656. deptArr: [],
  657. dept: [], //部门ID列表 空全公司
  658. point_id: [2, 3], //积分类型 2AF 3BF
  659. ptId: 1
  660. }
  661. },
  662. };
  663. },
  664. watch: {
  665. 'config.event.ptId'(val) {
  666. if (val == 1) {
  667. this.config.event.point_id = [2, 3];
  668. } else {
  669. this.config.event.point_id = [val];
  670. }
  671. },
  672. 'config.event.deptArr'(val) {
  673. if(val.length>0){
  674. let dept_ids=[];
  675. val.forEach((item)=>{
  676. dept_ids.push(item[item.length-1]);
  677. // dept_ids.push(...item);
  678. })
  679. let set =new Set(dept_ids);
  680. this.config.event.dept = [...set];
  681. }else{
  682. this.config.event.dept=[];
  683. }
  684. this.closeDept()
  685. },
  686. 'config.active.deptArr'(val) {
  687. if(val.length>0){
  688. let dept_ids=[];
  689. val.forEach((item)=>{
  690. dept_ids.push(item[item.length-1]);
  691. // dept_ids.push(...item);
  692. })
  693. let set =new Set(dept_ids);
  694. this.config.active.dept = [...set];
  695. }else{
  696. this.config.active.dept=[];
  697. }
  698. this.closeDept()
  699. },
  700. 'config.center.deptArr'(val) {
  701. if(val.length>0){
  702. let dept_ids=[];
  703. val.forEach((item)=>{
  704. dept_ids.push(item[item.length-1]);
  705. // dept_ids.push(...item);
  706. })
  707. let set =new Set(dept_ids);
  708. this.config.center.dept = [...set];
  709. }else{
  710. this.config.center.dept=[];
  711. }
  712. this.closeDept()
  713. },
  714. 'config.ranking.condition.deptArr'(val) {
  715. if(val.length>0){
  716. let dept_ids=[];
  717. val.forEach((item)=>{
  718. dept_ids.push(item[item.length-1]);
  719. // dept_ids.push(...item);
  720. })
  721. let set =new Set(dept_ids);
  722. this.config.ranking.condition.dept = [...set];
  723. }else{
  724. this.config.ranking.condition.dept=[];
  725. }
  726. this.closeDept()
  727. },
  728. 'config.ranking_total.condition.deptArr'(val) {
  729. if(val.length>0){
  730. let dept_ids=[];
  731. val.forEach((item)=>{
  732. dept_ids.push(item[item.length-1]);
  733. // dept_ids.push(...item);
  734. })
  735. let set =new Set(dept_ids);
  736. this.config.ranking_total.condition.dept = [...set];
  737. }else{
  738. this.config.ranking_total.condition.dept=[];
  739. }
  740. this.closeDept()
  741. },
  742. 'config.ranking.condition.date'(val){
  743. if(val!=1){
  744. this.config.ranking.condition.start_date= val; //结束时间
  745. this.config.ranking.condition.end_date= val; //结束时间
  746. }else{
  747. this.config.ranking.condition.start_date= ''; //结束时间
  748. this.config.ranking.condition.end_date= ''; //结束时间
  749. }
  750. },
  751. isPz(val) {
  752. if (!val) {
  753. this.formData={
  754. // id:'',//修改与删除时,必传 不传则为新增
  755. name: '', //不是删除则必填 配置名称 1-20个字符
  756. remark: '', //备注信息 最多20个字符 默认空
  757. del: 0, //是否为删除操作 1 是 其他否 默认0
  758. remake_code: 0 //是否重新生成校验码 1 是 默认0
  759. }
  760. this.isCompile=false;//是否编辑
  761. }
  762. },
  763. dialogVisible(val) {
  764. if (!val) {
  765. // this.activeBor='1';
  766. }else{
  767. setTimeout(()=>{
  768. document.getElementById('scroll').scrollTop = 0;
  769. },200)
  770. }
  771. }
  772. },
  773. mounted() {
  774. this.getList();
  775. this.getDepartment();
  776. },
  777. methods: {
  778. setTime(val){
  779. if(val&&val.length>0){
  780. this.config.ranking.condition.start_date= val[0]; //结束时间
  781. this.config.ranking.condition.end_date= val[1]+86399000; //结束时间
  782. }else{
  783. this.config.ranking.condition.start_date= ''; //结束时间
  784. this.config.ranking.condition.end_date= ''; //结束时间
  785. }
  786. },
  787. //编辑
  788. compile(item){
  789. this.isCompile=true;//是否编辑
  790. // this.selectItem=item;
  791. this.isPz=true;//是否编辑
  792. this.formData={
  793. id:item.id,//修改与删除时,必传 不传则为新增
  794. name: item.name, //不是删除则必填 配置名称 1-20个字符
  795. remark: item.remark, //备注信息 最多20个字符 默认空
  796. del: 0, //是否为删除操作 1 是 其他否 默认0
  797. remake_code: 0 ,//是否重新生成校验码 1 是 默认0
  798. config:JSON.stringify(item.config)
  799. }
  800. },
  801. copy (index) {
  802. //创建input标签
  803. var input = document.createElement('input')
  804. //将input的值设置为需要复制的内容
  805. input.value =index==1? this.previewUrl:index==2? this.code:this.previewUrl2;
  806. //添加input标签
  807. document.body.appendChild(input)
  808. //选中input标签
  809. input.select()
  810. //执行复制
  811. document.execCommand('copy')
  812. //成功提示信息
  813. this.$message.success('已复制')
  814. //移除input标签
  815. document.body.removeChild(input)
  816. },
  817. refresh(){
  818. this.$confirm('刷新后原有密码将会失效,确定要刷新吗?', '提示', {
  819. confirmButtonText: '确定',
  820. cancelButtonText: '取消',
  821. type: 'warning'
  822. }).then(() => {
  823. let data={
  824. id:this.selectItem.id,
  825. name: this.selectItem.name, //不是删除则必填 配置名称 1-20个字符
  826. remark: this.selectItem.remark, //备注信息 最多20个字符 默认空
  827. del: 0, //是否为删除操作 1 是 其他否 默认0
  828. remake_code: 1 ,//是否重新生成校验码 1 是 默认0
  829. config:JSON.stringify(this.selectItem.config)
  830. }
  831. this.$axios('post', '/api/integral/site/edit_screen', data).then(res => {
  832. if (res.data.code == 1) {
  833. this.code=res.data.data.code
  834. this.getList();
  835. }
  836. })
  837. });
  838. },
  839. preview(item,index){
  840. // this.previewUrl='http://localhost:8080/#/screen';
  841. this.previewUrl=process.env.VUE_APP_BASE_API+'/pc/#/screen';
  842. let corpId=window.btoa(this.$getCache('corpId'))
  843. this.previewUrl2=process.env.VUE_APP_BASE_API+'/pc/#/screenSan?corpId='+corpId;
  844. if (process.env.NODE_ENV === 'development') {
  845. this.previewUrl=process.env.VUE_APP_BASE_API+'#/screen';
  846. this.previewUrl2=process.env.VUE_APP_BASE_API+'#/screenSan?corpId='+corpId;
  847. }
  848. if(index==1){
  849. window.open(this.previewUrl+'?preview=1', '_blank');
  850. }else{
  851. this.selectItem=item;
  852. this.code=item.code;
  853. this.isPreview=true;
  854. }
  855. },
  856. submitMembers() {
  857. this.$refs.members.confirm(); //调用组件的confirm();
  858. },
  859. //获取部门
  860. getDepartment() {
  861. this.$axios('get', '/api/department/tree').then(res => {
  862. this.dept_tree = this.getTreeData(res.data.data.list);
  863. });
  864. },
  865. // 递归判断列表,把最后的children设为undefined
  866. getTreeData(data) {
  867. for (var i = 0; i < data.length; i++) {
  868. if (data[i]._child.length < 1) {
  869. // children若为空数组,则将children设为undefined
  870. data[i]._child = undefined;
  871. } else {
  872. // children若不为空数组,则继续 递归调用 本方法
  873. this.getTreeData(data[i]._child);
  874. }
  875. }
  876. return data;
  877. },
  878. // 附件上传
  879. beforeUpload(file) {
  880. const isJPG = /^image\/(jpeg|png|jpg)$/.test(file.type);
  881. const isLt2M = file.size / 1024 / 1024 < 5;
  882. if (!isJPG) {
  883. this.$message.error('上传图只能是 JPEG,PNG,JPG 格式!');
  884. }
  885. if (!isLt2M) {
  886. this.$message.error('上传图片大小不能超过 5MB!');
  887. }
  888. return isJPG && isLt2M;
  889. },
  890. handleFilesSuccess(response, file, fileList) {
  891. this.config.company.logo=response.url
  892. },
  893. saveFirst(fromName) {
  894. this.$refs[fromName].validate(valid => {
  895. if (valid) {
  896. let formData = this.formData;
  897. if(!this.isCompile){
  898. formData.config = JSON.stringify(this.defaultConfig);
  899. }
  900. this.$axios('post', '/api/integral/site/edit_screen', formData).then(res => {
  901. this.$message.success(this.isCompile?'已编辑':'已添加');
  902. }).finally(() => {
  903. this.isPz=false;
  904. this.getList();
  905. });
  906. }
  907. });
  908. },
  909. deleteSet(e) {
  910. this.$confirm('确定要删除吗?', '提示', {
  911. confirmButtonText: '确定',
  912. cancelButtonText: '取消',
  913. type: 'warning'
  914. }).then(() => {
  915. this.$axios('POST', '/api/integral/site/edit_screen', { id: e.id,del:1 }).then(res => {
  916. if (res.data.code == 1) {
  917. this.$message.success('删除成功');
  918. this.getList();
  919. }
  920. });
  921. });
  922. },
  923. submit(fromName) {
  924. if (!this.config.title) {
  925. this.$message.error('请输入标题');
  926. return false;
  927. }
  928. if (!this.config.company.name) {
  929. this.$message.error('请输入组织名称和logo设置 “名称”');
  930. return false;
  931. }
  932. if(this.config.ranking_type=='ranking'){
  933. if (!this.config.ranking.name) {
  934. this.$message.error('请输入排行榜设置 “名称”');
  935. return false;
  936. }
  937. if(!this.config.ranking_total.name){
  938. this.config.ranking_total.name='累计B分排名'
  939. }
  940. if(this.config.ranking.condition.date == 1&&!this.config.ranking.condition.start_date){
  941. if(this.config.ranking.condition.time.length!=0){
  942. let time=this.config.ranking.condition.time
  943. this.config.ranking.condition.start_date= time[0]; //结束时间
  944. this.config.ranking.condition.end_date= time[1]+86399000; //结束时间
  945. }else{
  946. this.$message.error('请选择排行榜设置 “时间”');
  947. return false;
  948. }
  949. }
  950. }else{
  951. if (!this.config.ranking_total.name) {
  952. this.$message.error('请输入排行榜设置 “名称”');
  953. return false;
  954. }
  955. if(!this.config.ranking.name){
  956. this.config.ranking.name='排行榜'
  957. }
  958. }
  959. if (!this.config.event.name) {
  960. this.$message.error('请输入积分快讯设置 “名称”');
  961. return false;
  962. }
  963. if (this.config.active.base_ratio>100) {
  964. this.$message.error('活跃度设置 “标尺” 不能超过100');
  965. return false;
  966. }
  967. if (!this.config.active.base_ratio) {
  968. this.$message.error('活跃度设置 “标尺” 不能为空,请输入1~100');
  969. return false;
  970. }
  971. if (this.config.event.source_type.length==0) {
  972. this.$message.error('请输入积分快讯设置 “来源” 至少选择一项');
  973. return false;
  974. }
  975. let data={
  976. id:this.selectItem.id,
  977. name: this.selectItem.name, //不是删除则必填 配置名称 1-20个字符
  978. remark: this.selectItem.remark, //备注信息 最多20个字符 默认空
  979. del: 0, //是否为删除操作 1 是 其他否 默认0
  980. remake_code: 0 ,//是否重新生成校验码 1 是 默认0
  981. config:JSON.stringify(this.config)
  982. }
  983. // console.log(data)
  984. // return false
  985. this.$axios('post', '/api/integral/site/edit_screen', data).then(res => {
  986. if (res.data.code == 1) {
  987. this.$message.success("保存成功");
  988. this.getList();
  989. }
  990. }).finally(() => {
  991. this.dialogVisible = false;
  992. this.setLoading = false;
  993. });
  994. },
  995. openSet(item) {
  996. if(!item.config.ranking_total){
  997. item.config.ranking_total={
  998. name: "累计B分排名", //不超过十个字
  999. condition: { //筛选条件
  1000. dept: [], //限定部门ID列表 空全公司
  1001. deptArr: [],
  1002. point_id: "2",//2AF 3BF,
  1003. position: "employee",//employee manager all//员工 管理员 全部
  1004. exclusion: [],//不参与排名用户ID数组,
  1005. }
  1006. }
  1007. item.config.ranking_type='ranking'
  1008. }
  1009. this.$nextTick(()=>{
  1010. this.config=JSON.parse(JSON.stringify(item.config));
  1011. this.selectItem=item;
  1012. this.employee_selected.employee=item.config.ranking.condition.employee;
  1013. this.dialogVisible = true;
  1014. })
  1015. },
  1016. getList() {
  1017. this.loading = true;
  1018. this.$axios('get', '/api/integral/site/screen')
  1019. .then(res => {
  1020. this.list = res.data.data.list;
  1021. })
  1022. .finally(err => {
  1023. this.loading = false;
  1024. });
  1025. },
  1026. closeDept(){
  1027. // this.$nextTick(() => {
  1028. // this.$refs.dept1.dropDownVisible = false;
  1029. // this.$refs.dept2.dropDownVisible = false;
  1030. // this.$refs.dept3.dropDownVisible = false;
  1031. // this.$refs.dept4.dropDownVisible = false;
  1032. // });
  1033. },
  1034. // 选择奖扣对象
  1035. move_employee_confirm(data) {
  1036. this.employee_selected = { dept: [], employee: [] };
  1037. this.config.ranking.condition.employeeName = '';
  1038. if (data.employee !== null && data.employee.length != 0) {
  1039. let exclusion = [];
  1040. this.employee_selected = data;
  1041. this.config.ranking.condition.employee=data.employee
  1042. data.employee.forEach(element => {
  1043. this.config.ranking.condition.employeeName += element.name + ',';
  1044. exclusion.push(element.id);
  1045. });
  1046. this.config.ranking.condition.exclusion = exclusion;
  1047. } else {
  1048. this.config.ranking.condition.exclusion = [];
  1049. this.config.ranking.condition.employee=[];
  1050. }
  1051. this.show_employee_selector = false;
  1052. },
  1053. noPersonnelListTips() {
  1054. this.show_employee_selector = true;
  1055. },
  1056. myFunction(e) {
  1057. let scrollTop = document.getElementById('scroll').scrollTop;
  1058. if (this.config.ranking.condition.date == 1) {
  1059. if (scrollTop < 85) {
  1060. this.activeBor = '1';
  1061. } else if (scrollTop > 85 && scrollTop < 355) {
  1062. this.activeBor = '2';
  1063. } else if (scrollTop >= 355 && scrollTop < 800) {
  1064. this.activeBor = '3';
  1065. } else if (scrollTop >= 800 && scrollTop < 900) {
  1066. this.activeBor = '4';
  1067. } else if (scrollTop >= 900 && scrollTop < 960) {
  1068. this.activeBor = '5';
  1069. } else if (scrollTop >= 960) {
  1070. this.activeBor = '6';
  1071. }
  1072. } else {
  1073. if (scrollTop < 85) {
  1074. this.activeBor = '1';
  1075. } else if (scrollTop >= 85 && scrollTop < 355) {
  1076. this.activeBor = '2';
  1077. } else if (scrollTop >= 355 && scrollTop < 760) {
  1078. this.activeBor = '3';
  1079. } else if (scrollTop >= 760 && scrollTop < 860) {
  1080. this.activeBor = '4';
  1081. } else if (scrollTop >= 860 && scrollTop < 900) {
  1082. this.activeBor = '5';
  1083. } else if (scrollTop >= 900) {
  1084. this.activeBor = '6';
  1085. }
  1086. }
  1087. },
  1088. activeQie(index) {
  1089. if (this.config.ranking.condition.date == 1) {
  1090. if (index == '1') {
  1091. document.getElementById('scroll').scrollTop = 0;
  1092. } else if (index == '2') {
  1093. document.getElementById('scroll').scrollTop = 87;
  1094. } else if (index == 3) {
  1095. document.getElementById('scroll').scrollTop = 357;
  1096. } else if (index == 4) {
  1097. document.getElementById('scroll').scrollTop = 802;
  1098. } else if (index == 5) {
  1099. document.getElementById('scroll').scrollTop = 902;
  1100. } else if (index == 6) {
  1101. document.getElementById('scroll').scrollTop = 1078;
  1102. }
  1103. } else {
  1104. if (index == 1) {
  1105. document.getElementById('scroll').scrollTop = 0;
  1106. } else if (index == 2) {
  1107. document.getElementById('scroll').scrollTop = 87;
  1108. } else if (index == 3) {
  1109. document.getElementById('scroll').scrollTop = 357;
  1110. } else if (index == 4) {
  1111. document.getElementById('scroll').scrollTop = 762;
  1112. } else if (index == 5) {
  1113. document.getElementById('scroll').scrollTop = 862;
  1114. } else if (index == 6) {
  1115. document.getElementById('scroll').scrollTop = 1038;
  1116. }
  1117. }
  1118. },
  1119. }
  1120. };
  1121. </script>
  1122. <style scoped lang="scss">
  1123. .activeBor {
  1124. // background-color: #;
  1125. color: #2490fd;
  1126. border: 1px solid #2490fd !important;
  1127. box-shadow: 0 0 3px #2490fd;
  1128. }
  1129. .border1 {
  1130. border: 1px solid #ccc;
  1131. border-radius: 3px;
  1132. margin: 5px;
  1133. text-align: center;
  1134. cursor: pointer;
  1135. }
  1136. .avatar-uploader ::v-deep .el-upload {
  1137. border: 1px dashed #d9d9d9;
  1138. border-radius: 6px;
  1139. cursor: pointer;
  1140. position: relative;
  1141. overflow: hidden;
  1142. }
  1143. .avatar-uploader ::v-deep .el-upload:hover {
  1144. border-color: #409eff;
  1145. }
  1146. .avatar-uploader-icon {
  1147. font-size: 28px;
  1148. color: #8c939d;
  1149. width: 100px;
  1150. height: 100px;
  1151. line-height: 100px;
  1152. text-align: center;
  1153. }
  1154. .avatar {
  1155. width: 100px;
  1156. height: 100px;
  1157. display: block;
  1158. }
  1159. .dialog ::v-deep .el-dialog__body {
  1160. padding: 20px;
  1161. }
  1162. .width250 {
  1163. width: 250px;
  1164. }
  1165. .kuai {
  1166. margin-bottom: 30px;
  1167. }
  1168. .kuai .formBox {
  1169. padding-left: 20px;
  1170. }
  1171. .form ::v-deep .el-form-item {
  1172. margin-bottom: 20px;
  1173. }
  1174. .form ::v-deep .el-form-item__label {
  1175. color: #777777;
  1176. }
  1177. .formTitle {
  1178. font-size: 16px;
  1179. font-weight: 700;
  1180. margin-bottom: 10px;
  1181. color: #222;
  1182. }
  1183. .diy-tip1 {
  1184. margin-bottom: 10px !important;
  1185. background: #f0f9eb !important;
  1186. color: #333 !important;
  1187. border: 1px solid #67c23a !important;
  1188. padding: 9px !important;
  1189. min-width: 800px;
  1190. border-radius: 4px;
  1191. }
  1192. .el-dialog__body {
  1193. position: relative;
  1194. top: -20px;
  1195. }
  1196. .widthInput {
  1197. width: 150px;
  1198. }
  1199. .title {
  1200. margin: 10px 0;
  1201. margin-top: 0;
  1202. font-size: 14px;
  1203. font-weight: 700;
  1204. padding-left: 13px;
  1205. }
  1206. .initia_title {
  1207. font-size: 20px;
  1208. color: rgba(48, 49, 51, 1);
  1209. font-family: PingFangSC-Regular;
  1210. }
  1211. .initia_title_1 {
  1212. color: #e6a23c;
  1213. font-size: 14px;
  1214. margin-top: 10px;
  1215. }
  1216. .lookQrcode {
  1217. color: #606266;
  1218. cursor: pointer;
  1219. transition: all 0.3s;
  1220. font-weight: 700;
  1221. }
  1222. .lookQrcode:hover {
  1223. color: #2490fd;
  1224. }
  1225. .name {
  1226. max-width: 200px;
  1227. margin-right: 10px;
  1228. }
  1229. </style>