index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  1. <template>
  2. <div class="app-container">
  3. <el-page-header @back="goBack" content="分类配置" style="margin-bottom: 20px"></el-page-header>
  4. <el-divider></el-divider>
  5. <div class="form-container">
  6. <el-form ref="mainForm" :model="mainForm" :rules="mainFormRules" label-width="90px">
  7. <el-form-item :label="'主标题:'" prop="mainTitle">
  8. <el-input style="width: 250px" disabled v-model="mainForm.mainTitle"></el-input>
  9. </el-form-item>
  10. <el-form-item :label="'副标题:'" prop="subtitle">
  11. <el-input style="width: 250px" disabled v-model="mainForm.subtitle"></el-input>
  12. </el-form-item>
  13. <el-form-item label="商品类别" prop="goodsType">
  14. <el-select v-model="mainForm.goodsType" placeholder="请选择商品类别" style="width: 250px" disabled>
  15. <el-option label="普通商品" :value="1"></el-option>
  16. <el-option label="套购商品" :value="2"></el-option>
  17. </el-select>
  18. </el-form-item>
  19. </el-form>
  20. </div>
  21. <div class="btn-group">
  22. <el-button size="small" type="primary" @click="addClassify" v-if="mainForm.goodsType === 1">选择分类</el-button>
  23. <el-button size="small" type="primary" @click="addGoods">选择商品</el-button>
  24. </div>
  25. <div class="diy-table" v-if="mainForm.goodsType === 1">
  26. <div class="table-head clearfix">
  27. <div class="item goods">商品名称</div>
  28. <div class="right">
  29. <div class="item name">规格</div>
  30. <div class="item input">划线价格</div>
  31. <div class="item input">销售价</div>
  32. <div class="item input">分销金额</div>
  33. <div class="item input">佣金比例</div>
  34. <div class="item input">内部分销金额</div>
  35. <div class="item input">内部佣金比例</div>
  36. <div class="item input">库存</div>
  37. <div class="item input">销量</div>
  38. </div>
  39. <div class="blank">操作</div>
  40. </div>
  41. <div class="goods-item" v-for="(item, index) in goodsList" :key="index">
  42. <div class="goods-info">
  43. <img :src="$showImgUrl(item.imgUrl)" alt="" />
  44. {{ item.goodsName }}
  45. </div>
  46. <div class="spec-list">
  47. <div class="spec-item" v-for="(it, idx) in item.goodsSpecs" :key="idx">
  48. <div class="col name">{{ it.name }}-{{ it.specValue }}</div>
  49. <div class="col input"><el-input disabled type="number" size="small" v-model="it.orgPrice"></el-input></div>
  50. <div class="col input"><el-input disabled type="number" size="small" v-model="it.price"></el-input></div>
  51. <div class="col input">
  52. <el-input disabled type="number" size="small" v-model="it.shareAmount"></el-input>
  53. </div>
  54. <div class="col input">
  55. <el-input disabled type="number" size="small" v-model="it.innerSharePercent"></el-input>
  56. </div>
  57. <div class="col input">
  58. <el-input disabled type="number" size="small" v-model="it.innerShareAmount"></el-input>
  59. </div>
  60. <div class="col input">
  61. <el-input disabled type="number" size="small" v-model="it.innerSharePercent"></el-input>
  62. </div>
  63. <div class="col input"><el-input disabled type="number" size="small" v-model="it.stockNum"></el-input></div>
  64. <div class="col input"><el-input disabled type="number" size="small" v-model="it.soldNum"></el-input></div>
  65. </div>
  66. </div>
  67. <div class="operation">
  68. <el-button type="text" style="color: #f56c6c" @click="deleteGoods(item.goodsId, index)">删除</el-button>
  69. </div>
  70. </div>
  71. <div class="empty-text" v-if="goodsList.length < 1">暂无数据</div>
  72. </div>
  73. <div v-if="mainForm.goodsType === 2" style="margin-top: 20px">
  74. <el-table :data="goodsList" border fit highlight-current-row stripe>
  75. <el-table-column align="center" label="商品图片" prop="imgUrl" width="85">
  76. <template slot-scope="scope">
  77. <el-image
  78. style="width: 60px; height: 60px; display: block"
  79. :src="$showImgUrl(scope.row.imgUrl)"
  80. :preview-src-list="[$showImgUrl(scope.row.imgUrl)]"
  81. fit="cover"
  82. ></el-image>
  83. </template>
  84. </el-table-column>
  85. <el-table-column align="center" label="商品名称" prop="goodsName" min-width="200"></el-table-column>
  86. <el-table-column
  87. align="center"
  88. label="最低销售价"
  89. prop="packageMinAmount"
  90. min-width="120"
  91. sortable
  92. ></el-table-column>
  93. <el-table-column
  94. align="center"
  95. label="最低分佣金额"
  96. prop="packageMinShareAmount"
  97. min-width="130"
  98. sortable
  99. ></el-table-column>
  100. <el-table-column align="center" label="库存" prop="stockNum" min-width="110"></el-table-column>
  101. <el-table-column align="center" label="销量" prop="soldNum" min-width="110"></el-table-column>
  102. <el-table-column align="center" label="操作" width="80" fixed="right">
  103. <template slot-scope="scope">
  104. <el-button type="text" style="color: #f56c6c" @click="deleteGoods(scope.row.goodsId, scope.$index)"
  105. >删除</el-button
  106. >
  107. </template>
  108. </el-table-column>
  109. </el-table>
  110. </div>
  111. <div class="page-footer">
  112. <div class="footer">
  113. <el-button type="primary" @click="submitMainForm" :loading="formLoading">{{
  114. formLoading ? '提交中 ...' : '提 交'
  115. }}</el-button>
  116. <el-button @click="goBack">关 闭</el-button>
  117. </div>
  118. </div>
  119. <!-- 选择商品 -->
  120. <el-dialog
  121. title="选择商品"
  122. :visible.sync="addGoodsVisible"
  123. :show-close="false"
  124. width="50%"
  125. :close-on-click-modal="false"
  126. >
  127. <div class="dialog-container clearfix">
  128. <div class="left fl">
  129. <div class="item" @click="changeClassify('')">全部分类</div>
  130. <div class="group" v-for="(item, index) in classifyList" :key="index">
  131. <div class="item" @click="toggleOpen(index)">
  132. <i :class="item.isOpen ? 'el-icon-caret-bottom' : 'el-icon-caret-right'"></i> {{ item.name }}
  133. </div>
  134. <div class="child" v-if="item.isOpen">
  135. <div
  136. class="item"
  137. v-for="(childItem, childIndex) in item.children"
  138. :key="childIndex"
  139. @click="changeClassify(childItem.categoryId)"
  140. >
  141. {{ childItem.name }}
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <div class="right fl">
  147. <div class="search">
  148. <el-input
  149. placeholder="请输入商品名称进行搜索"
  150. v-model="keyword"
  151. class="input-with-select"
  152. clearable
  153. size="small"
  154. style="width: 250px"
  155. >
  156. <el-button slot="append" icon="el-icon-search" size="small" @click="getGoodsListByScreen"></el-button>
  157. </el-input>
  158. </div>
  159. <div class="table" style="margin: 10px 0 20px">
  160. <el-table
  161. v-loading="table_listLoading"
  162. :data="table_dataList"
  163. element-loading-text="Loading"
  164. tooltip-effect="dark"
  165. style="width: 100%"
  166. max-height="270"
  167. @selection-change="handleChooseGoods"
  168. >
  169. <el-table-column
  170. align="center"
  171. type="selection"
  172. :selectable="checkboxSelect"
  173. width="45"
  174. ></el-table-column>
  175. <el-table-column
  176. align="center"
  177. prop="goodsName"
  178. label="商品名称"
  179. min-width="200"
  180. show-overflow-tooltip
  181. ></el-table-column>
  182. <el-table-column align="center" prop="goodsPrice" label="价格" width="80"></el-table-column>
  183. <el-table-column align="center" prop="stockNum" label="库存" width="80"></el-table-column>
  184. </el-table>
  185. </div>
  186. <div class="pagination clearfix">
  187. <div class="fr">
  188. <el-pagination
  189. @current-change="handleTableCurrentChange"
  190. :current-page="table_currentPage"
  191. :page-size="table_pageSize"
  192. background
  193. layout="prev, pager, next"
  194. :total="table_listTotal"
  195. >
  196. </el-pagination>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <div slot="footer" class="dialog-footer">
  202. <el-button type="primary" @click="submitAddGoods">保 存</el-button>
  203. <el-button @click="cancelAddGoods">取 消</el-button>
  204. </div>
  205. </el-dialog>
  206. <!-- 选择分类 -->
  207. <el-dialog
  208. title="选择分类"
  209. :visible.sync="addClassifyVisible"
  210. :show-close="false"
  211. width="40%"
  212. :close-on-click-modal="false"
  213. >
  214. <div class="classify-list">
  215. <el-tree
  216. :data="classifyList"
  217. show-checkbox
  218. default-expand-all
  219. node-key="categoryId"
  220. ref="tree"
  221. highlight-current
  222. :props="defaultProps"
  223. >
  224. </el-tree>
  225. </div>
  226. <div slot="footer" class="dialog-footer">
  227. <el-button type="primary" @click="submitAddClassify">保 存</el-button>
  228. <el-button @click="cancelAddClassify">取 消</el-button>
  229. </div>
  230. </el-dialog>
  231. </div>
  232. </template>
  233. <script>
  234. import {
  235. getactivityGoodsDetail,
  236. addActiveGoods,
  237. getEnterpriseTemplate,
  238. getClassifyList,
  239. getGoodsList,
  240. getMoreGoodsList
  241. } from '@/api/special'
  242. export default {
  243. data() {
  244. return {
  245. objectId: '', // 小程序模板id
  246. type: '', // 类型
  247. companyWechatId: '',
  248. useTemplate: '',
  249. formLoading: false,
  250. mainForm: {
  251. mainTitle: '', // 主标题
  252. subtitle: '', // 副标题
  253. goodsType: 1
  254. },
  255. mainFormRules: {
  256. mainTitle: [{ required: true, message: '请输入主标题', trigger: 'blur' }],
  257. subtitle: [{ required: true, message: '请输入副标题', trigger: 'blur' }],
  258. goodsType: [{ required: true, message: '请选择商品类别', trigger: 'change' }]
  259. },
  260. goodsList: [], // 列表数据
  261. addGoodsVisible: false,
  262. classifyList: [],
  263. classifyCurrent: '',
  264. keyword: '',
  265. table_dataList: null, // 列表数据
  266. table_listLoading: true, // 列表加载loading
  267. table_currentPage: 1, // 当前页码
  268. table_pageSize: 10, // 每页数量
  269. table_listTotal: 0, // 列表总数
  270. table_chooseGoods: [], // table中 当前选择商品
  271. addClassifyVisible: false,
  272. defaultProps: {
  273. children: 'children',
  274. label: 'name'
  275. }
  276. }
  277. },
  278. computed: {},
  279. created() {
  280. if (this?.$route?.params?.pageCode) {
  281. const item = JSON.parse(this?.$route?.params?.pageCode)
  282. this.mainForm.mainTitle = item.mainTitle
  283. this.mainForm.subtitle = item.subTitle
  284. this.mainForm.goodsType = item.type
  285. this.objectId = item.goodsNewsCategoryId
  286. }
  287. this.getEnterpriseTemplate()
  288. this.getactivityGoodsDetail()
  289. },
  290. methods: {
  291. // 添加活动商品
  292. addActiveGoods(params) {
  293. addActiveGoods(params).then(res => {
  294. if (res.code == 200) {
  295. this.$router.go(-1)
  296. }
  297. })
  298. },
  299. //获取企业下模板
  300. getEnterpriseTemplate() {
  301. this.companyWechatId = JSON.parse(localStorage.getItem('greemall_user')).companyWechatId
  302. this.useTemplate = JSON.parse(localStorage.getItem('greemall_user')).useTemplate
  303. const parmas = {
  304. companyId: this.companyWechatId
  305. }
  306. getEnterpriseTemplate(parmas).then(res => {
  307. console.log('获取企业下模板', res)
  308. })
  309. },
  310. // 获取活动商品详情
  311. getactivityGoodsDetail() {
  312. const params = {
  313. objectId: this.objectId, // 小程序模板id
  314. type: 1 // 类型: 1=新维度分类,2=首页弹窗,3=活动专区1,4=活动专区2左侧,5=活动专区2右侧,6=专场专区1,7=专场专区2,8=专场专区3,9=专场专区4
  315. }
  316. getactivityGoodsDetail(params).then(res => {
  317. res.data.activeGoodsList.forEach(item => {
  318. item.imgUrl = item?.goods?.imgUrl || ''
  319. })
  320. this.goodsList = res.data.activeGoodsList
  321. if (this.mainForm.goodsType === 2) {
  322. this.goodsList.forEach((item, index) => {
  323. this.$set(this.goodsList, index, { ...item, ...(item?.goods || {}) })
  324. })
  325. }
  326. })
  327. },
  328. // 删除商品
  329. deleteGoods(item, index) {
  330. this.goodsList.splice(index, 1)
  331. },
  332. // 返回
  333. goBack() {
  334. this.$router.go(-1)
  335. },
  336. // 获取分类列表
  337. getClassifyList(state) {
  338. getClassifyList({ categoryLevel: 1, status: true }).then(res => {
  339. res.data.forEach(item => {
  340. item.isOpen = false
  341. })
  342. this.classifyList = res.data
  343. this.classifyCurrent = ''
  344. if (!state) {
  345. this.getGoodsList()
  346. }
  347. })
  348. },
  349. // 展开/收起 分类
  350. toggleOpen(index) {
  351. this.classifyList[index].isOpen = !this.classifyList[index].isOpen
  352. },
  353. // 切换分类
  354. changeClassify(cid) {
  355. if (this.table_chooseGoods.length > 0) {
  356. return this.$errorMsg('当前已选择商品,不可切换分类')
  357. }
  358. this.classifyCurrent = cid
  359. this.table_currentPage = 1
  360. this.getGoodsList()
  361. },
  362. // 搜索
  363. getGoodsListByScreen() {
  364. if (this.table_chooseGoods.length > 0) {
  365. return this.$errorMsg('当前已选择商品,不可搜索')
  366. }
  367. this.table_currentPage = 1
  368. this.getGoodsList()
  369. },
  370. // 获取商品列表
  371. getGoodsList() {
  372. getGoodsList({
  373. pageNum: this.table_currentPage,
  374. pageSize: this.table_pageSize,
  375. keyword: this.keyword,
  376. categoryId: this.classifyCurrent,
  377. goodsTypes: this.mainForm.goodsType === 1 ? 'COMMON' : 'PACKAGE'
  378. }).then(res => {
  379. let oldGoodsList = this.goodsList
  380. let newGoodsList = res.data.records
  381. for (let i = 0; i < oldGoodsList.length; i++) {
  382. let oldItem = oldGoodsList[i]
  383. for (let j = 0; j < newGoodsList.length; j++) {
  384. let newItem = newGoodsList[j]
  385. if (newItem.goodsId === oldItem.goodsId) {
  386. newGoodsList[j].selected = true
  387. break
  388. }
  389. }
  390. }
  391. for (let j = 0; j < newGoodsList.length; j++) {
  392. let newItem = newGoodsList[j]
  393. if (newItem.promotionGroup === true) {
  394. newGoodsList[j].selected = true
  395. }
  396. }
  397. this.table_dataList = newGoodsList
  398. this.table_listTotal = res.data.total
  399. this.table_listLoading = false
  400. })
  401. },
  402. // 查询重复值并禁选
  403. checkboxSelect(row, rowIndex) {
  404. if (row.selected) {
  405. return false // 禁用
  406. } else {
  407. return true // 不禁用
  408. }
  409. },
  410. // 更改列表当前页
  411. handleTableCurrentChange(val) {
  412. if (this.table_chooseGoods.length > 0) {
  413. return this.$errorMsg('当前已选择商品,不可切换分页')
  414. }
  415. this.table_currentPage = val
  416. this.getGoodsList()
  417. },
  418. // table点击选择商品
  419. handleChooseGoods(val) {
  420. this.table_chooseGoods = val
  421. },
  422. // 打开 选择商品
  423. addGoods() {
  424. this.addGoodsVisible = true
  425. this.getClassifyList()
  426. },
  427. // 取消 选择商品
  428. cancelAddGoods() {
  429. this.addGoodsVisible = false
  430. },
  431. // 提交 选择商品
  432. submitAddGoods() {
  433. let oldGoodsList = this.goodsList
  434. let newGoodsList = this.table_chooseGoods
  435. this.goodsList = oldGoodsList.concat(newGoodsList)
  436. this.addGoodsVisible = false
  437. },
  438. // 打开 选择分类
  439. addClassify() {
  440. this.addClassifyVisible = true
  441. this.getClassifyList(true)
  442. },
  443. // 取消 选择分类
  444. cancelAddClassify() {
  445. this.addClassifyVisible = false
  446. },
  447. // 提交 选择分类
  448. submitAddClassify() {
  449. if (this.$refs.tree.getCheckedNodes().length <= 0) {
  450. return this.$errorMsg('请选择分类')
  451. }
  452. let checkeds = this.$refs.tree.getCheckedNodes()
  453. let ids = []
  454. checkeds.forEach(item => {
  455. if (item.level === 2) {
  456. ids.push(item.categoryId)
  457. }
  458. })
  459. getMoreGoodsList({ categoryIds: ids.join(',') }).then(res => {
  460. let oldGoodsList = this.goodsList
  461. let newGoodsList = []
  462. res.data.forEach(item => {
  463. if (item.promotionGroup === false) {
  464. newGoodsList.push(item)
  465. }
  466. })
  467. let allGoodsList = oldGoodsList.concat(newGoodsList)
  468. let showGoodsList = []
  469. let obj = {}
  470. for (var i = 0; i < allGoodsList.length; i++) {
  471. if (!obj[allGoodsList[i].goodsId]) {
  472. showGoodsList.push(allGoodsList[i])
  473. obj[allGoodsList[i].goodsId] = true
  474. }
  475. }
  476. this.goodsList = showGoodsList
  477. this.addClassifyVisible = false
  478. })
  479. },
  480. // 提交
  481. submitMainForm() {
  482. this.$refs.mainForm.validate(valid => {
  483. if (valid) {
  484. const params = {
  485. goodsList: this.goodsList,
  486. objectId: this.objectId,
  487. type: 1
  488. }
  489. this.addActiveGoods(params)
  490. }
  491. })
  492. }
  493. }
  494. }
  495. </script>
  496. <style lang="scss" scoped>
  497. .form-container {
  498. margin-top: 40px;
  499. // padding: 0 6%;
  500. .title {
  501. font-size: 16px;
  502. margin-bottom: 30px;
  503. padding-left: 10px;
  504. font-weight: bold;
  505. }
  506. .tips {
  507. margin-top: 10px;
  508. span {
  509. display: inline-block;
  510. width: 300px;
  511. text-align: center;
  512. line-height: 32px;
  513. background: #ffefef;
  514. font-size: 14px;
  515. color: #f66460;
  516. }
  517. }
  518. .tips2 {
  519. font-size: 12px;
  520. color: #999999;
  521. line-height: 30px;
  522. }
  523. .container {
  524. padding: 10px 20px 0;
  525. background: #f5f5f5;
  526. border-radius: 10px;
  527. }
  528. .addBtn {
  529. padding: 10px 0;
  530. }
  531. }
  532. .diy-table {
  533. overflow-x: scroll;
  534. border-left: 1px solid #f5f5f5;
  535. margin-top: 20px;
  536. width: 100%;
  537. // margin-left: 77px;
  538. // min-width: 1185px;
  539. max-width: 100%;
  540. .table-head {
  541. display: flex;
  542. .item {
  543. height: 40px;
  544. line-height: 40px;
  545. float: left;
  546. font-weight: 500;
  547. font-size: 14px;
  548. background: #f5f5f5;
  549. text-align: center;
  550. }
  551. .right {
  552. float: left;
  553. width: 94%;
  554. min-width: 1150px;
  555. flex-shrink: 0;
  556. height: 40px;
  557. }
  558. .goods {
  559. width: 20%;
  560. min-width: 250px;
  561. }
  562. .name {
  563. width: 11.1111%;
  564. min-width: 100px;
  565. }
  566. .input {
  567. width: 11.1111%;
  568. min-width: 100px;
  569. }
  570. .opera {
  571. width: 11.1111%;
  572. min-width: 80px;
  573. // text-align: right;
  574. }
  575. .blank {
  576. width: 6%;
  577. min-width: 90px;
  578. font-weight: 500;
  579. font-size: 14px;
  580. background: #f5f5f5;
  581. text-align: center;
  582. line-height: 40px;
  583. }
  584. }
  585. .goods-item {
  586. display: flex;
  587. align-content: center;
  588. .goods-info {
  589. flex-shrink: 0;
  590. width: 20%;
  591. min-width: 250px;
  592. padding: 0 10px;
  593. display: flex;
  594. align-items: center;
  595. border-bottom: 1px solid #f5f5f5;
  596. border-right: 1px solid #f5f5f5;
  597. font-size: 14px;
  598. &:last-child {
  599. border-bottom: none;
  600. }
  601. img {
  602. width: 40px;
  603. height: 40px;
  604. margin-right: 10px;
  605. flex-shrink: 0;
  606. }
  607. }
  608. .spec-list {
  609. width: 94%;
  610. min-width: 1150px;
  611. border-bottom: 1px solid #f5f5f5;
  612. border-right: 1px solid #f5f5f5;
  613. &:last-child {
  614. border-bottom: none;
  615. }
  616. .spec-item {
  617. display: flex;
  618. align-items: center;
  619. border-bottom: 1px solid #f5f5f5;
  620. &:last-child {
  621. border-bottom: none;
  622. }
  623. .col {
  624. flex-shrink: 0;
  625. height: 50px;
  626. display: flex;
  627. align-items: center;
  628. justify-content: center;
  629. padding: 0 10px;
  630. border-right: 1px solid #f5f5f5;
  631. &:last-child {
  632. border-right: none;
  633. }
  634. }
  635. .name {
  636. width: 11.1111%;
  637. min-width: 100px;
  638. font-size: 14px;
  639. text-align: center;
  640. }
  641. .input {
  642. width: 11.1111%;
  643. min-width: 100px;
  644. }
  645. .btn {
  646. width: 11.1111%;
  647. min-width: 80px;
  648. }
  649. }
  650. }
  651. .operation {
  652. flex-shrink: 0;
  653. width: 6%;
  654. min-width: 90px;
  655. padding: 0 10px;
  656. display: flex;
  657. align-items: center;
  658. justify-content: center;
  659. border-bottom: 1px solid #f5f5f5;
  660. border-right: 1px solid #f5f5f5;
  661. }
  662. }
  663. .empty-text {
  664. line-height: 60px;
  665. text-align: center;
  666. color: #909399;
  667. }
  668. }
  669. .dialog-container {
  670. .left {
  671. width: 140px;
  672. height: 350px;
  673. overflow-y: scroll;
  674. .group {
  675. margin-top: 10px;
  676. }
  677. .child {
  678. margin-top: 5px;
  679. .item {
  680. padding-left: 18px;
  681. }
  682. }
  683. .item {
  684. cursor: pointer;
  685. line-height: 24px;
  686. }
  687. }
  688. .right {
  689. width: calc(100% - 140px);
  690. height: 350px;
  691. box-sizing: border-box;
  692. padding-left: 20px;
  693. }
  694. }
  695. ::v-deep .el-form-item__label {
  696. margin-left: 0px !important;
  697. }
  698. </style>