demand.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. <template>
  2. <div class="index">
  3. <el-row>
  4. <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
  5. <el-col :span="24" class="one">
  6. <div class="one_left">
  7. <div class="button" @click="toAdd">发布需求</div>
  8. <div class="button" @click="toExpert">导入数据</div>
  9. <div class="button" @click="toDownload">导出数据</div>
  10. </div>
  11. <div class="one_right">
  12. <el-input v-model="searchForm.name" style="width: 250px" size="large" placeholder="搜索" @change="search" :suffix-icon="Search" />
  13. </div>
  14. </el-col>
  15. <el-col :span="24" class="two">
  16. <el-table :data="list" style="width: 100%" size="large" :header-cell-style="{ backgroundColor: '#edf3ff' }">
  17. <template #empty>
  18. <el-empty description="暂无数据" />
  19. </template>
  20. <el-table-column prop="name" align="center" label="需求名称" />
  21. <el-table-column prop="start_time" align="center" label="开始时间" width="180" />
  22. <el-table-column prop="end_time" align="center" label="结束时间" width="180" />
  23. <el-table-column prop="status" align="center" label="状态" width="180">
  24. <template #default="scope">
  25. <div>{{ getDict(scope.row.status, 'status') }}</div>
  26. </template>
  27. </el-table-column>
  28. <el-table-column align="center" label="操作" width="180">
  29. <template #default="{ row }">
  30. <el-link v-if="row.status == '-2'" :underline="false" type="warning" size="mini" @click="toExam(row)" style="margin-right: 10px">提交审核</el-link>
  31. <el-link :underline="false" type="primary" size="mini" @click="toEdit(row)" style="margin-right: 10px">修改</el-link>
  32. <el-link :underline="false" type="danger" size="mini" @click="toDelete(row)"> 删除 </el-link>
  33. </template>
  34. </el-table-column>
  35. </el-table>
  36. </el-col>
  37. <el-col :span="24" class="thr">
  38. <el-pagination background layout="prev, pager, next" :total="total" :page-size="limit" v-model:current-page="currentPage" @current-change="changePage" @size-change="sizeChange" />
  39. </el-col>
  40. </el-col>
  41. </el-row>
  42. <el-dialog v-model="dialog.show" :title="dialog.title" :destroy-on-close="false" @close="toClose" :width="width">
  43. <el-row>
  44. <el-col :span="24" v-if="dialog.type == '1'">
  45. <custom-form v-model="form" :fields="formFields" :rules="rules" @save="toSave" @draftSave="toDraftSave">
  46. <template #is_use>
  47. <el-radio v-for="i in isUseList" :key="i.id" :label="i.value">{{ i.label }}</el-radio>
  48. </template>
  49. <template #field>
  50. <el-option v-for="i in fieldList" :key="i.id" :label="i.label" :value="i.label"></el-option>
  51. </template>
  52. <template #industry>
  53. <el-option v-for="i in sectorList" :key="i.id" :label="i.title" :value="i.title"></el-option>
  54. </template>
  55. <template #urgent>
  56. <el-option v-for="i in urgentList" :key="i.id" :label="i.label" :value="i.value"></el-option>
  57. </template>
  58. <template #method>
  59. <el-option v-for="i in methodList" :key="i.id" :label="i.label" :value="i.value"></el-option>
  60. </template>
  61. <template #area>
  62. <el-cascader v-model="form.area" :props="{ value: 'name', label: 'name' }" :options="cityList" style="width: 100%" />
  63. </template>
  64. <template #tags>
  65. <el-select v-model="form.tags" multiple filterable allow-create default-first-option :reserve-keyword="false" placeholder="请选择标签" style="width: 100%">
  66. <el-option v-for="item in tagsList" :key="item.id" :label="item.title" :value="item.title" />
  67. </el-select>
  68. </template>
  69. </custom-form>
  70. </el-col>
  71. <!-- 加载界面 -->
  72. <transition name="why">
  73. <el-col :span="24" v-if="dialog.type == '2'" class="dialog" v-loading="isLoading" element-loading-text="智能推荐中..." :element-loading-svg="svg" element-loading-svg-view-box="-10,-10,50,50">
  74. <el-empty v-if="supplytotal == 0" description="暂无数据" />
  75. <div class="list" v-for="(item, index) in supplyList" :key="index" @click="toView(item)">
  76. <h2 class="name textMore">
  77. <span>{{ item.name || '暂无' }}</span>
  78. </h2>
  79. <div class="other">
  80. <span class="other_1">{{ getDict(item.urgent, 'urgent') || '暂无' }}</span>
  81. <div class="other_2">
  82. <span>应用行业:</span>
  83. {{ item.field || '暂无' }}
  84. </div>
  85. <div class="other_2">
  86. <span>所属产业:</span>
  87. {{ item.industry || '暂无' }}
  88. </div>
  89. <div class="other_2">
  90. <span>来源:</span>
  91. {{ item.source || '暂无' }}
  92. </div>
  93. <div class="other_2">
  94. <span>推荐指数:</span>
  95. <el-rate size="large" v-model="item._recommend" disabled show-score text-color="#ff9900" :score-template="`${item._recommend} 星`" />
  96. </div>
  97. </div>
  98. </div>
  99. <el-col :span="24" class="page">
  100. <el-pagination background layout="prev, pager, next" :total="supplytotal" :page-size="supplylimit" v-model:current-page="scurrentPage" @current-change="schangePage" @size-change="ssizeChange" />
  101. </el-col>
  102. </el-col>
  103. </transition>
  104. <el-col :span="24" class="dialog_thr" v-if="dialog.type == '3'">
  105. <el-col :span="24" class="one">
  106. <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  107. </el-col>
  108. <el-col :span="24" class="two">
  109. <el-checkbox-group v-model="checkedExport" @change="checkedExportChange">
  110. <el-checkbox v-for="i in formFields" :label="i" :key="i.model">{{ i.label }}</el-checkbox>
  111. </el-checkbox-group>
  112. </el-col>
  113. <el-col :span="24" class="btn">
  114. <el-button type="primary" size="mini" @click="toFile()">确定导出</el-button>
  115. </el-col>
  116. </el-col>
  117. <el-col :span="24" class="dialog_four" v-if="dialog.type == '4'">
  118. <el-row justify="center">
  119. <el-col :span="16">
  120. <el-steps style="max-width: 600px" :active="importActive" align-center>
  121. <el-step title="下载导入模板">
  122. <template #description v-if="importActive == 0">
  123. <el-button type="primary" size="mini" @click="toTemplate">下载导入模板</el-button>
  124. </template>
  125. </el-step>
  126. <el-step title="上传导入模板" description="上传导入模板">
  127. <template #description v-if="importActive == 1">
  128. <el-upload action="/files/web/cxyy_import/upload" :show-file-list="false" :on-success="onSuccess" accept=".xlsx">
  129. <el-button type="primary" size="mini">上传导入文件</el-button>
  130. </el-upload>
  131. </template>
  132. </el-step>
  133. <el-step title="确定导入" description="确定导入">
  134. <template #description v-if="importActive == 2">
  135. <el-button type="primary" size="mini" @click="onImport">确定</el-button>
  136. </template>
  137. </el-step>
  138. </el-steps>
  139. </el-col>
  140. </el-row>
  141. </el-col>
  142. </el-row>
  143. </el-dialog>
  144. </div>
  145. </template>
  146. <script setup>
  147. import { Search } from '@element-plus/icons-vue'
  148. import { cloneDeep, get } from 'lodash-es'
  149. const $checkRes = inject('$checkRes')
  150. import { UserStore } from '@/store/user'
  151. const userStore = UserStore()
  152. const user = computed(() => userStore.user)
  153. // 接口
  154. import { DemandStore } from '@/store/api/platform/demand'
  155. import { DictDataStore } from '@/store/api/system/dictData'
  156. import { TagsStore } from '@/store/api/system/tags'
  157. import { SectorStore } from '@/store/api/platform/sector'
  158. import { RegionStore } from '@/store/api/system/region'
  159. import { UtilStore } from '@/store/api/util'
  160. import { EsStore } from '@/store/api/es'
  161. const esStore = EsStore()
  162. const utilStore = UtilStore()
  163. const regionStore = RegionStore()
  164. const store = DemandStore()
  165. const dictDataStore = DictDataStore()
  166. const tagsStore = TagsStore()
  167. const sectorStore = SectorStore()
  168. // 加载中
  169. const loading = ref(false)
  170. const isLoading = ref(false)
  171. const svg = ref(`
  172. <path class="path" d="
  173. M 30 15
  174. L 28 17
  175. M 25.61 25.61
  176. A 15 15, 0, 0, 1, 15 30
  177. A 15 15, 0, 1, 1, 27.99 7.5
  178. L 15 15
  179. " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
  180. `)
  181. const router = useRouter()
  182. const searchForm = ref({})
  183. // 列表
  184. const list = ref([])
  185. let skip = 0
  186. let limit = inject('limit')
  187. const total = ref(0)
  188. const currentPage = ref(1)
  189. // 字典表
  190. const isUseList = ref([])
  191. const statusList = ref([])
  192. const methodList = ref([])
  193. const urgentList = ref([])
  194. const fieldList = ref([])
  195. const cityList = ref([])
  196. const demandList = ref([])
  197. const tagsList = ref([])
  198. const sectorList = ref([])
  199. // 推荐供给列表
  200. const supplyList = ref([])
  201. let supplyskip = 0
  202. let supplylimit = 4
  203. const supplytotal = ref(0)
  204. const key = ref('')
  205. const width = ref('50%')
  206. const form = ref({ time: [] })
  207. const dialog = ref({ type: '1', show: false, title: '发布需求' })
  208. const formFields = ref([
  209. { label: '需求名称', model: 'name' },
  210. { label: '标签', model: 'tags', custom: true, mark: 'tags' },
  211. { label: '所属产业', model: 'industry', type: 'select' },
  212. { label: '行业领域', model: 'field' },
  213. { label: '需求紧急度', model: 'urgent', type: 'select', mark: 'dict', code: 'urgent' },
  214. { label: '合作方式', model: 'method', type: 'select', mark: 'dict', code: 'method' },
  215. { label: '价格(万元)', model: 'money' },
  216. { label: '所属企业', model: 'company' },
  217. { label: '企业简况', model: 'company_brief', type: 'textarea' },
  218. { label: '联系人', model: 'contacts' },
  219. { label: '联系电话', model: 'tel' },
  220. { label: '年份', model: 'year', type: 'year' },
  221. { label: '月份', model: 'month', type: 'month' },
  222. { label: '技术需求名称', model: 'tec_name' },
  223. { label: '待解决问题', model: 'question', type: 'textarea' },
  224. { label: '需求地区', model: 'area', custom: true, mark: 'area' },
  225. { label: '发布时间', model: 'time', type: 'daterange', mark: 'time' },
  226. { label: '是否公开', model: 'is_use', type: 'radio', mark: 'dict', code: 'isUse' },
  227. { label: '简介', model: 'brief', type: 'textarea' }
  228. ])
  229. const rules = reactive({ name: [{ required: true, message: '请输入需求名称', trigger: 'blur' }] })
  230. // 导出文件
  231. const checkAll = ref(false)
  232. const checkedExport = ref([])
  233. const isIndeterminate = ref(true)
  234. // 导入文件
  235. const importActive = ref(0)
  236. const url = ref('')
  237. // 请求
  238. onMounted(async () => {
  239. loading.value = true
  240. await searchOther()
  241. await search()
  242. loading.value = false
  243. })
  244. const search = async (query = { skip, limit }) => {
  245. skip = query.skip
  246. limit = query.limit
  247. const info = {
  248. skip: query.skip,
  249. limit: query.limit,
  250. user: user.value.id,
  251. ...searchForm.value
  252. }
  253. const res = await store.query(info)
  254. if (res.errcode == '0') {
  255. list.value = res.data
  256. total.value = res.total
  257. }
  258. }
  259. const searchOther = async () => {
  260. let result
  261. // 是否使用
  262. result = await dictDataStore.query({ code: 'isUse', is_use: '0' })
  263. if ($checkRes(result)) isUseList.value = result.data
  264. // 状态
  265. result = await dictDataStore.query({ code: 'examStatus', is_use: '0' })
  266. if ($checkRes(result)) statusList.value = result.data
  267. // 合作方式
  268. result = await dictDataStore.query({ code: 'method', is_use: '0' })
  269. if ($checkRes(result)) methodList.value = result.data
  270. // 需求紧急度
  271. result = await dictDataStore.query({ code: 'urgent', is_use: '0' })
  272. if ($checkRes(result)) urgentList.value = result.data
  273. // 技术领域
  274. result = await dictDataStore.query({ code: 'field', is_use: '0' })
  275. if ($checkRes(result)) fieldList.value = result.data
  276. // 需求状态
  277. result = await dictDataStore.query({ code: 'demandStatus', is_use: '0' })
  278. if ($checkRes(result)) demandList.value = result.data
  279. // 标签
  280. result = await tagsStore.query({ is_use: '0' })
  281. if ($checkRes(result)) tagsList.value = result.data
  282. // 行业
  283. result = await sectorStore.query({ is_use: '0' })
  284. if ($checkRes(result)) sectorList.value = result.data
  285. // 城市
  286. result = await regionStore.area({ level: 'province', code: 22 })
  287. if ($checkRes(result)) cityList.value = result.data
  288. }
  289. // 字典数据转换
  290. const getDict = (data, model) => {
  291. if (data) {
  292. let res
  293. if (model == 'status') res = statusList.value.find((f) => f.value == data)
  294. else if (model == 'urgent') res = urgentList.value.find((f) => f.value == data)
  295. return get(res, 'label')
  296. }
  297. }
  298. // 添加
  299. const toAdd = () => {
  300. dialog.value = { type: '1', show: true, title: '发布需求' }
  301. }
  302. // 修改
  303. const toEdit = (data) => {
  304. data.time = [data.start_time, data.end_time]
  305. form.value = data
  306. dialog.value = { type: '1', show: true, title: '修改需求' }
  307. }
  308. // 删除
  309. const toDelete = (data) => {
  310. ElMessageBox.confirm(`您确认删除${data.name}该数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
  311. .then(async () => {
  312. const res = await store.del(data.id)
  313. if ($checkRes(res, true)) {
  314. search({ skip, limit })
  315. }
  316. })
  317. .catch(() => {})
  318. }
  319. const toSave = async () => {
  320. const data = cloneDeep(form.value)
  321. const other = { status: '0', user: user.value.id }
  322. if (data.time && data.time.length > 1) {
  323. data.start_time = data.time[0]
  324. data.end_time = data.time[1]
  325. }
  326. delete data.time
  327. let res
  328. if (get(data, 'id')) res = await store.update({ ...data, ...other })
  329. else res = await store.create({ ...data, ...other })
  330. if ($checkRes(res, true)) {
  331. key.value = form.value.name
  332. await search({ skip, limit })
  333. await toClose()
  334. await searchSupply({ supplyskip, supplylimit })
  335. width.value = '90%'
  336. dialog.value = { type: '2', show: true, title: '相关供给推荐' }
  337. }
  338. }
  339. const toDraftSave = async () => {
  340. const data = cloneDeep(form.value)
  341. const other = { status: '-2', user: user.value.id }
  342. if (data.time && data.time.length > 1) {
  343. data.start_time = data.time[0]
  344. data.end_time = data.time[1]
  345. }
  346. delete data.time
  347. let res
  348. if (get(data, 'id')) res = await store.update({ ...data, ...other })
  349. else res = await store.create({ ...data, ...other })
  350. if ($checkRes(res, true)) {
  351. key.value = form.value.name
  352. await search({ skip, limit })
  353. await toClose()
  354. await searchSupply({ supplyskip, supplylimit })
  355. width.value = '90%'
  356. dialog.value = { type: '2', show: true, title: '相关供给推荐' }
  357. }
  358. }
  359. // 审核保存
  360. const toExam = async (row) => {
  361. ElMessageBox.confirm(`您确认保存并提交审核该数据?`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' })
  362. .then(async () => {
  363. const data = cloneDeep(row)
  364. let res = await store.update({ id: data.id, status: '0', user: user.value.id })
  365. if ($checkRes(res, true)) {
  366. key.value = row.name
  367. await search({ skip, limit })
  368. await toClose()
  369. await searchSupply({ supplyskip, supplylimit })
  370. width.value = '90%'
  371. dialog.value = { type: '2', show: true, title: '相关供给推荐' }
  372. }
  373. })
  374. .catch(() => {})
  375. }
  376. // 供给列表查询
  377. const searchSupply = async (query = { supplyskip, supplylimit }) => {
  378. supplyskip = query.supplyskip
  379. supplylimit = query.supplylimit
  380. isLoading.value = true
  381. const info = { skip: supplyskip, limit: supplylimit, keyword: key.value }
  382. const res = await esStore.supply(info)
  383. if (res.errcode == '0') {
  384. supplyList.value = res.data
  385. supplytotal.value = res.total
  386. }
  387. setTimeout(() => {
  388. isLoading.value = false
  389. }, 3000) // 假设3秒后加载完成
  390. }
  391. const scurrentPage = ref(1)
  392. // 分页
  393. const schangePage = (page = scurrentPage.value) => {
  394. searchSupply({ supplyskip: (page - 1) * supplylimit, supplylimit: supplylimit })
  395. }
  396. const ssizeChange = (limits) => {
  397. supplylimit = limits
  398. scurrentPage.value = 1
  399. searchSupply({ supplyskip: 0, supplylimit: supplylimit })
  400. }
  401. // 查看详情
  402. const toView = (item) => {
  403. router.push({ path: '/supply/detail', query: { id: item.id || item._id } })
  404. }
  405. const toClose = () => {
  406. importActive.value = 0
  407. url.value = ''
  408. checkedExport.value = []
  409. checkAll.value = false
  410. form.value = { time: [] }
  411. width.value = '50%'
  412. dialog.value = { show: false }
  413. }
  414. // 全选
  415. const handleCheckAllChange = (val) => {
  416. checkedExport.value = val ? formFields.value : []
  417. isIndeterminate.value = false
  418. }
  419. // 选择
  420. const checkedExportChange = (value) => {
  421. let checkedCount = value.length
  422. checkAll.value = checkedCount === formFields.value.length
  423. isIndeterminate.value = checkedCount > 0 && checkedCount < formFields.value.length
  424. }
  425. // 导入数据
  426. const toExpert = () => {
  427. dialog.value = { type: '4', show: true, title: '导入数据' }
  428. }
  429. // 导出数据
  430. const toDownload = () => {
  431. dialog.value = { type: '3', show: true, title: '导出数据' }
  432. }
  433. // 下载导入模板
  434. const toTemplate = () => {
  435. importActive.value = importActive.value + 1
  436. window.open('/cxyyWeb/产学研用需求模板.xlsx')
  437. }
  438. // 上传Excel
  439. const onSuccess = async (response) => {
  440. importActive.value = importActive.value + 1
  441. url.value = response.uri
  442. }
  443. // 确定导出
  444. const onImport = async () => {
  445. const msgbox = ElMessage({ message: '正在导入中,请稍后...', center: true, duration: 0 })
  446. try {
  447. const res = await utilStore.toImport({ url: url.value })
  448. if (res.errcode == '0') {
  449. if (res.data[0].errorList) {
  450. ElMessageBox.alert(res.data[0].errorList, '错误提示', {
  451. confirmButtonText: 'OK'
  452. })
  453. } else {
  454. ElMessage({ message: '导入成功', type: 'success' })
  455. }
  456. await search({ skip, limit })
  457. await toClose()
  458. }
  459. } catch (error) {
  460. console.error(error)
  461. } finally {
  462. msgbox.close()
  463. }
  464. }
  465. // 导出数据
  466. const toFile = async () => {
  467. if (checkedExport.value.length > 0) {
  468. const reqData = { table: 'demand', config: checkedExport.value, user: user.value.id }
  469. const res = await utilStore.toExport(reqData)
  470. if (res.errcode == '0') {
  471. ElMessage({ type: `success`, message: `导出成功` })
  472. window.open(res.data)
  473. }
  474. toClose()
  475. } else {
  476. ElMessage({ type: `warning`, message: `请选择导出信息字段` })
  477. }
  478. }
  479. // 分页
  480. const changePage = (page = currentPage.value) => {
  481. search({ skip: (page - 1) * limit, limit: limit })
  482. }
  483. const sizeChange = (limits) => {
  484. limit = limits
  485. currentPage.value = 1
  486. search({ skip: 0, limit: limit })
  487. }
  488. </script>
  489. <style scoped lang="scss">
  490. .main {
  491. .one {
  492. height: 50px;
  493. display: flex;
  494. justify-content: space-between;
  495. align-items: center;
  496. margin: 0 0 10px 0;
  497. .one_left {
  498. display: flex;
  499. font-size: 16px;
  500. .button {
  501. background: #1875df;
  502. padding: 0 10px;
  503. height: 30px;
  504. color: #fff;
  505. line-height: 30px;
  506. text-align: center;
  507. cursor: default;
  508. margin: 0 10px 0 0;
  509. }
  510. }
  511. }
  512. .thr {
  513. display: flex;
  514. justify-content: center;
  515. margin: 20px 0 0 0;
  516. }
  517. }
  518. .why-enter-from,
  519. .why-leave-to {
  520. opacity: 0;
  521. transform: scale(0.6);
  522. }
  523. .why-enter-to,
  524. .why-leave-from {
  525. opacity: 1;
  526. transform: scale(1);
  527. }
  528. .why-enter-active,
  529. .why-leave-active {
  530. transition: all 2s ease;
  531. }
  532. .dialog {
  533. display: flex;
  534. flex-wrap: wrap;
  535. margin-top: 20px;
  536. .list {
  537. position: relative;
  538. margin-right: 10px;
  539. margin-bottom: 10px;
  540. width: 380px;
  541. box-shadow: 0 0 13px 0 rgba(5, 88, 219, 0.18);
  542. .name {
  543. padding: 10px 20px;
  544. width: 380px;
  545. height: 71px;
  546. background-color: #dce5ff;
  547. font-size: 16px;
  548. line-height: 24px;
  549. color: #0d0d0d;
  550. display: flex;
  551. align-items: center;
  552. }
  553. .other {
  554. padding: 10px 20px 20px;
  555. .other_1 {
  556. padding: 0 10px;
  557. height: 25px;
  558. background-color: #e6f2fd;
  559. border-radius: 2px;
  560. border: solid 1px #cae0f5;
  561. font-size: $global-font-size-14;
  562. line-height: 25px;
  563. color: #0085f5;
  564. }
  565. .other_2 {
  566. display: flex;
  567. justify-content: space-between;
  568. align-items: center;
  569. margin-top: 15px;
  570. font-size: $global-font-size-16;
  571. span {
  572. color: #909090;
  573. }
  574. .state {
  575. position: absolute;
  576. right: 20px;
  577. bottom: 15px;
  578. display: inline-block;
  579. vertical-align: middle;
  580. padding: 0 20px;
  581. height: 30px;
  582. line-height: 30px;
  583. background-image: linear-gradient(90deg, #ff8a00 0, #ff5a00 100%), linear-gradient(#ff7800, #ff7800);
  584. background-blend-mode: normal, normal;
  585. border-radius: 14px;
  586. border: solid 1px #e5e5e5;
  587. color: #fff;
  588. }
  589. }
  590. }
  591. }
  592. .list:hover {
  593. box-shadow: 0 0 5px 0 $global-color-107;
  594. .name {
  595. background-color: $global-color-107;
  596. color: $global-color-fff;
  597. }
  598. }
  599. .page {
  600. margin: 10px 0;
  601. display: flex;
  602. justify-content: center;
  603. }
  604. }
  605. .dialog_thr {
  606. padding: 20px;
  607. .one {
  608. margin: 0 0 10px 0;
  609. }
  610. .two {
  611. margin: 0 0 10px 0;
  612. :deep(.el-checkbox) {
  613. padding: 0 0 20px 0;
  614. }
  615. }
  616. .btn {
  617. text-align: center;
  618. margin: 20px 0 0 0;
  619. }
  620. }
  621. .dialog_four {
  622. padding: 20px;
  623. }
  624. </style>