knowledgeAddUpdate.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. <template>
  2. <div class="page">
  3. <div class="content">
  4. <div class="title">{{this.knowledgeForm.bastype==1?'新增文档知识':this.knowledgeForm.bastype==2?'新增维基知识':'新增知识'}}</div>
  5. <a-form-model ref="knowledgeRef" :rules="knowledgeRules" :model="knowledgeForm" layout="inline" >
  6. <a-form-model-item class="knowledgeAddUpdateLabel oneline" label="所选分类:" prop="categoryId" style="font-size:0.93vw">
  7. <a-cascader v-model="knowledgeForm.categoryId"
  8. :popupStyle="{
  9. maxWidth: widthVar + 'px',
  10. 'overflow-x': 'auto'
  11. }"
  12. class="addItemBox scroll-ckunk"
  13. :getPopupContainer="triggerNode => { return triggerNode.parentNode }"
  14. :options="classifyList"
  15. :load-data="loadData"
  16. :fieldNames="{ label: 'name', value: 'pkId', children: 'children' }"
  17. placeholder="请选择"
  18. changeOnSelect
  19. popupClassName="knowledgeCascader">
  20. <a-icon slot="suffixIcon" type="caret-down" class="classifyIconBox"/>
  21. </a-cascader>
  22. </a-form-model-item>
  23. <a-form-model-item v-if="!this.knowledgeForm.bastype" class="knowledgeAddUpdateLabel oneline" label="知识类型:" prop="type" style="margin-top: -5px;">
  24. <a-select class="addItemBox" v-model="knowledgeForm.type" placeholder="请选择" :disabled="!!this.knowledgeForm.bastype">
  25. <a-icon slot="suffixIcon" type="caret-down" style="font-size: 1vw;"/>
  26. <a-select-option class="dropdownClassli" v-for="(item,index) in knowledgeList" :key="index" :value="item.value">
  27. <span class="addSelectOption">{{item.label}}</span>
  28. </a-select-option>
  29. </a-select>
  30. </a-form-model-item>
  31. <a-form-model-item class="knowledgeAddUpdateLabel oneline" label="知识标题:" prop="titles" style="width:46.04vw;margin-top: -5px;">
  32. <a-input @change='titlesChange' class="addItemBox" maxLength="20" v-model="knowledgeForm.titles" placeholder="请输入" >
  33. <div slot="suffix" style="color: #C0C0C0;">
  34. {{titlesNum}}
  35. </div>
  36. </a-input>
  37. </a-form-model-item>
  38. <a-form-model-item class="knowledgeAddUpdateLabel oneline" label="编辑简介:" prop="summary" style="width:calc( 46.04vw );">
  39. <a-input @change='summaryChange' class="textareaBox" suffix="100" maxLength="100" v-model="knowledgeForm.summary" type="textarea" :autosize="{minRows: 3, maxRows: 6}" placeholder="请输入" >
  40. </a-input>
  41. <div class="rightText">
  42. {{summaryNum}}
  43. </div>
  44. </a-form-model-item>
  45. <a-form-model-item class="knowledgeAddUpdateLabel" label="编辑正文:" prop="content" style="width:calc( 46.04vw );">
  46. <editor class="editorBox" :value.sync="knowledgeForm.content"></editor>
  47. </a-form-model-item>
  48. <a-form-model-item class="knowledgeAddUpdateLabel" label="上传附件:" prop="accessory" style="margin-top: 2.4vw;" v-if="!knowledgeForm.attachment">
  49. <a-upload-dragger
  50. name="file"
  51. class="uploadBox"
  52. :headers="headers"
  53. action="/api/api-system/system/core/sysFile/upload"
  54. :showUploadList="false"
  55. @change="handleChange"
  56. :beforeUpload="beforeUpload"
  57. >
  58. <p class="ant-upload-drag-icon">
  59. <img v-if="!loading" :src="add" alt="">
  60. <a-icon v-else type="loading" />
  61. </p>
  62. <p class="ant-upload-text" v-if="!loading">
  63. 点击或将文件拖拽到这里上传
  64. <br/>
  65. (仅可上传一份)
  66. </p>
  67. <p class="ant-upload-text" v-else>
  68. 上传中...
  69. <br/>
  70. (仅可上传一份)
  71. </p>
  72. <p class="ant-upload-hint">
  73. 支持扩展名:.doc .docx .pdf .xls .xlsx .pptx
  74. </p>
  75. </a-upload-dragger>
  76. </a-form-model-item>
  77. <a-form-model-item class="knowledgeAddUpdateLabel" label="附件下载" v-else>
  78. <div class="accessory-show">
  79. <img :src="wordIcon" alt="" style="width: 1.2vw;height: auto;">
  80. <span style="font-size: 1vw;">{{ knowledgeForm.attachmentName }}</span>
  81. <rx-button style="font-size: 1vw;color: #406CC4;" class="clearBtn" :butn-icon="'none'" @click="handleShowClick">查看</rx-button>
  82. <rx-button style="font-size: 1vw;color: #406CC4;" class="clearBtn" :butn-icon="'none'" @click="handleFileDelClick">删除</rx-button>
  83. <rx-button style="font-size: 1vw;color: #406CC4;" class="clearBtn" :butn-icon="'none'" @click="handleFileDownloadClick">下载</rx-button>
  84. </div>
  85. </a-form-model-item>
  86. <template v-if="showOnlyOffice">
  87. <div class='qualityManual-container-office'>
  88. <vab-only-office :option='option' />
  89. </div>
  90. </template>
  91. <a-divider style="margin: 2.08vw 0 1.56vw;" />
  92. <div class="button-group" style="width:100%;display:flex;justify-content:flex-end;">
  93. <a-button style="background:#406CC4;color:#fff;margin-right: 1.25vw;" @click="handleSaveClick">提交</a-button>
  94. <a-button @click="$router.back()">取消</a-button>
  95. </div>
  96. </a-form-model>
  97. </div>
  98. <div class="content" style="margin-top: 1.25vw;">
  99. <div class="title">审批流程</div>
  100. <div style="width:100%;margin-top: 1.5vw;">
  101. <a-table class="tableBox" :columns="approverColumns" :data-source="approverData" :pagination="false">
  102. </a-table>
  103. </div>
  104. </div>
  105. </div>
  106. </template>
  107. <script>
  108. import add from '@/assets/img/warehouse/add.png'
  109. import wordIcon from '@/assets/img/warehouse/wordIcon.png'
  110. import { ACCESS_TOKEN } from '@/store/mutation-types';
  111. import editor from '../components/editor'
  112. import vabOnlyOffice from '../components/onlyOffice'
  113. import { getCategoryId } from './aJs/getClassifyTree'
  114. import api from '@/api/knowledge/warehouseIndex'
  115. import contentData from '@/api/knowledge/contentData'
  116. export default {
  117. name: 'knowledgeAddUpdate',
  118. components: {
  119. editor,
  120. vabOnlyOffice
  121. },
  122. data() {
  123. return {
  124. loading:false,
  125. api,
  126. add,
  127. wordIcon,
  128. pkId: '',
  129. titlesNum:20,
  130. summaryNum:100,
  131. knowledgeForm: {
  132. categoryId: [],
  133. type: undefined,
  134. bastype:undefined,
  135. titles: '',
  136. summary: '',
  137. content: '',
  138. attachment: '',
  139. attachmentName: '',
  140. createBy: '',
  141. author: ''
  142. },
  143. options: [
  144. {
  145. value: 'zhejiang',
  146. label: 'Zhejiang',
  147. children: [
  148. {
  149. value: 'hangzhou',
  150. label: 'Hangzhou',
  151. },
  152. ],
  153. },
  154. {
  155. value: 'jiangsu',
  156. label: 'Jiangsu',
  157. children: [
  158. {
  159. value: 'nanjing',
  160. label: 'Nanjing',
  161. },
  162. ],
  163. }
  164. ],
  165. classifyList: [],
  166. knowledgeList: [
  167. {value: '1', label: '文档知识'},
  168. {value: '2', label: '维基知识'}
  169. ],
  170. showOnlyOffice: false,
  171. knowledgeRules: {
  172. categoryId: [
  173. { required: true, message: '请选择分类', trigger: 'blur' }
  174. ],
  175. type: [
  176. { required: true, message: '请选择知识类型', trigger: 'blur' }
  177. ],
  178. titles: [
  179. { required: true, message: '请输入知识标题', trigger: 'blur' }
  180. ],
  181. summary: [
  182. { required: true, message: '请输入编辑简介', trigger: 'blur' }
  183. ]
  184. },
  185. approverColumns: [
  186. {
  187. title: '流程节点',
  188. dataIndex: 'name',
  189. align: 'center'
  190. },
  191. {
  192. title: '审批人',
  193. dataIndex: 'approverName',
  194. align: 'center'
  195. },
  196. {
  197. title: '审批状态',
  198. dataIndex: 'approvalStatus',
  199. align: 'center'
  200. },
  201. {
  202. title: '审批备注',
  203. dataIndex: 'remark',
  204. align: 'center'
  205. },
  206. {
  207. title: '时间',
  208. dataIndex: 'approvalTime',
  209. align: 'center'
  210. },
  211. ],
  212. approverData: [
  213. {
  214. node: '知识提交',
  215. approver: '放羊',
  216. status: '审核通过',
  217. time: '2022-05-01 18:30:00'
  218. },
  219. {
  220. node: '知识提交',
  221. approver: '放羊',
  222. status: '审核通过',
  223. time: '2022-05-01 18:30:00'
  224. }
  225. ],
  226. option: {
  227. url: '',
  228. canPrint: true,
  229. canDownload:true,
  230. isEdit: '',
  231. fileType: '',
  232. title: '',
  233. lang: '',
  234. isPrint: '',
  235. user: { id:null,name:''}
  236. },
  237. headers: {},
  238. isSubmit:false,
  239. innerWidth: 800
  240. }
  241. },
  242. created() {
  243. this.knowledgeForm = Object.assign({},this.$options.data().knowledgeForm)
  244. if(this.$route.query.type) {
  245. this.knowledgeForm.type = this.$route.query.type
  246. this.knowledgeForm.bastype = this.$route.query.type
  247. }
  248. if(this.$route.query.categoryId&&this.$route.query.categoryId!='000') {
  249. this.knowledgeForm.categoryId = this.$route.query.categoryId.split(',')
  250. }
  251. let pkId = this.$route.query.pkId
  252. if(pkId) {
  253. this.pkId = pkId
  254. api.info({pkId:pkId,isPc:1}).then(res => {
  255. this.knowledgeForm.categoryId = getCategoryId(res.data.knowledgeCategoryAdminVo)
  256. this.knowledgeForm.type = res.data.type.toString()
  257. this.knowledgeForm.titles = res.data.titles
  258. this.knowledgeForm.summary = res.data.summary
  259. this.knowledgeForm.content = res.data.content
  260. this.knowledgeForm.attachment = res.data.attachment
  261. this.knowledgeForm.attachmentName = res.data.attachmentName
  262. this.approverData = res.data.approvals
  263. this.knowledgeForm.createBy = res.data.createBy
  264. this.knowledgeForm.author = res.data.author
  265. this.titlesChange()
  266. this.summaryChange()
  267. })
  268. } else {
  269. this.pkId = ''
  270. this.knowledgeForm.createBy = this.$store.state.appSetting.user.userId
  271. this.knowledgeForm.author = this.$store.state.appSetting.user.fullName
  272. let queryParam = {
  273. "pageNo": 1,
  274. "pageSize": 1000,
  275. "sortField": "",
  276. "sortOrder": "asc",
  277. "params": {}
  278. }
  279. api.findAllApprovalNodes(queryParam).then(res => {
  280. this.approverData = res.result.data.map(item => {
  281. return {
  282. name: item.name,
  283. approverId: item.approverId,
  284. approverName: item.approverName,
  285. isFinal: item.isFinal
  286. }
  287. })
  288. })
  289. }
  290. this.init()
  291. var token = Vue.ls.get(ACCESS_TOKEN);
  292. if (token) {
  293. this.headers['Authorization'] = 'Bearer ' + token // 让每个请求携带token--['Authorization']为自定义key 请根据实际情况自行修改
  294. }
  295. },
  296. mounted() {
  297. let innerWidth = window.innerWidth
  298. // 计算
  299. setTimeout(() => {
  300. let offsetWidth = document.querySelector('.scroll-ckunk').getBoundingClientRect().left
  301. this.widthVar = innerWidth - offsetWidth - 40
  302. }, 1000);
  303. document.onclick=function(element){
  304. if(element.target.className.indexOf('ant-cascader-menu-item')>-1){
  305. document.querySelector('.ant-cascader-menus').scrollLeft = 20480
  306. }
  307. }
  308. /*setInterval(() => {
  309. document.querySelectorAll('.ant-cascader-menu-item').forEach(el => {
  310. el.onclick = function() {
  311. document.querySelector('.ant-cascader-menus').scrollLeft = 2048
  312. }
  313. })
  314. }, 1000)*/
  315. },
  316. methods: {
  317. // title修改限制数量
  318. titlesChange(){
  319. this.titlesNum=20-this.knowledgeForm.titles.length
  320. },
  321. // 简介修改限制数量
  322. summaryChange(){
  323. this.summaryNum=100-this.knowledgeForm.summary.length
  324. },
  325. // 提交数据
  326. handleSaveClick() {
  327. let that = this
  328. if(this.knowledgeForm.categoryId.slice(-1)[0]=='000'){
  329. this.$message.error('请选择分类');
  330. return false
  331. }
  332. this.$refs.knowledgeRef.validate(valid => {
  333. if (valid) {
  334. // 新增
  335. if(!this.pkId) {
  336. if(this.isSubmit){
  337. return false
  338. }
  339. this.isSubmit = true
  340. api.create({...this.knowledgeForm, categoryId: this.knowledgeForm.categoryId.slice(-1)[0]}).then(res => {
  341. if(res.code == 200) {
  342. if(res.message.indexOf('知识失败')>-1){
  343. this.$message.error(res.message);
  344. this.isSubmit = false
  345. }else{
  346. setTimeout(function(){
  347. that.$router.back();
  348. that.isSubmit = false;
  349. },2000)
  350. }
  351. }
  352. })
  353. } else {
  354. api.save({...this.knowledgeForm, categoryId: this.knowledgeForm.categoryId.slice(-1)[0], pkId: this.pkId}).then(res => {
  355. if(res.code == 200) {
  356. setTimeout(() =>
  357. this.$router.back()
  358. ,2000)
  359. }
  360. })
  361. }
  362. }
  363. })
  364. },
  365. // 处理分类数据展示
  366. categoryData(data){
  367. data.forEach(element => {
  368. element.label=element.name
  369. element.value=element.pkId
  370. if(element.children!=null&&element.children.length!=0){
  371. this.categoryData(element.children)
  372. }
  373. })
  374. },
  375. // 初始化数据
  376. async init() {
  377. contentData.getAllKnowledgeCategory().then((res) =>{
  378. this.categoryData(res.data)
  379. this.classifyList=res.data
  380. })
  381. /*let res = await api.getKnowledgeCategory(0)
  382. this.classifyList = res.data.children.map(item => {
  383. if(!item.hasChild) {
  384. item.isLeaf = true
  385. } else {
  386. item.isLeaf = false
  387. }
  388. delete item.children
  389. return item
  390. })*/
  391. },
  392. // 分类懒加载
  393. async loadData(selectedOptions) {
  394. const targetOption = selectedOptions[selectedOptions.length - 1]
  395. targetOption.loading = true
  396. let res = await api.getKnowledgeCategory(targetOption.pkId)
  397. let result = res.data.children.map(item => {
  398. if(!item.hasChild) {
  399. item.isLeaf = true
  400. } else {
  401. item.isLeaf = false
  402. }
  403. return item
  404. })
  405. targetOption.loading = false
  406. targetOption.children = [...result]
  407. this.classifyList = [...this.classifyList]
  408. },
  409. // 上传前文件过滤
  410. beforeUpload(file) {
  411. const isLt2M = file.size / 1024 / 1024 < 100;
  412. if (!isLt2M) {
  413. this.$message.error('附件不能超过100M');
  414. return false
  415. }
  416. const fileName = file.name.split('.')
  417. const fileExt = fileName.slice(-1)[0]
  418. let arr = ['doc','docx','pdf','xls','xlsx','pptx']
  419. if(arr.indexOf(fileExt) == -1) {
  420. this.$message.error('仅支持格式.doc .docx .pdf .xls .xlsx .pptx的文件');
  421. return false
  422. }
  423. return true
  424. },
  425. // 文件上传
  426. handleChange(info) {
  427. if(info.file.status === 'uploading') {
  428. this.loading = true
  429. return
  430. }
  431. if(info.file.status === 'done') {
  432. this.loading = false
  433. this.knowledgeForm.attachment = info.file.response.data[0].fileId
  434. this.knowledgeForm.attachmentName = info.file.response.data[0].fileName
  435. }
  436. },
  437. // 删除文件
  438. handleFileDelClick() {
  439. this.knowledgeForm.attachment = ''
  440. this.knowledgeForm.attachmentName = ''
  441. },
  442. // 下载文件
  443. handleFileDownloadClick() {
  444. const link = document.createElement('a')
  445. link.style.display = 'none'
  446. link.href = '/api/api-system/system/core/sysFile/previewFile?fileId='+this.knowledgeForm.attachment
  447. // link.target = '_blank'
  448. link.setAttribute('download', this.knowledgeForm.attachmentName)
  449. document.body.appendChild(link)
  450. link.click()
  451. link.remove()
  452. //window.open("/api/api-system/system/core/sysFile/previewFile?fileId="+this.knowledgeForm.attachment)
  453. },
  454. // 查看文件
  455. handleShowClick() {
  456. this.option.isEdit = false
  457. this.option.lang = 'zh-CN'
  458. let baseUrl = api.url0
  459. if(location.href.indexOf('10.5.100.101')>-1){
  460. baseUrl = api.url1
  461. }
  462. this.option.url = baseUrl+'/api/api-system/system/core/sysFile/previewFile?fileId='+this.knowledgeForm.attachment
  463. // this.option.url = 'http://10.5.100.64:9900/api-system/system/core/sysFile/previewFile?fileId=1597050108435845121'
  464. //this.option.url = 'http://10.5.100.101/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
  465. //this.option.url = 'http://www.hkcqjy.com.cn:8088/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
  466. this.option.title = this.knowledgeForm.attachmentName
  467. this.option.fileType = this.knowledgeForm.attachmentName.split('.').slice(-1)[0]
  468. this.option.isPrint = false
  469. this.showOnlyOffice = true
  470. }
  471. }
  472. }
  473. </script>
  474. <style lang="less" scoped>
  475. .page {
  476. width: 100%;
  477. min-height: 100%;
  478. padding: 29px 10.93vw;
  479. background: #FAFAFA;
  480. box-sizing: border-box;
  481. .content {
  482. width: 100%;
  483. padding: 1.87vw 2.08vw;
  484. background: #fff;
  485. border-radius: 0.52vw;
  486. .title {
  487. font-size: 1.14583vw;
  488. margin-left: 0.6vw;
  489. color: #202124;
  490. font-weight: 550;
  491. }
  492. .ant-form {
  493. .ant-form-item {
  494. margin-bottom: 2.08vw;
  495. }
  496. .ant-form-item:first-child {
  497. margin-top: 1.51vw;
  498. }
  499. .button-group {
  500. >button {
  501. width: 7.96vw;
  502. height: 2.5vw;
  503. font-size: 0.93vw;
  504. }
  505. }
  506. }
  507. }
  508. }
  509. .accessory-show {
  510. display:flex;
  511. align-items: center;
  512. img {
  513. width: 32px;
  514. height: 32px;
  515. }
  516. span {
  517. margin: 0 40px 0 10px;
  518. }
  519. }
  520. .clearBtn {
  521. background: none;
  522. color: #3294F7;
  523. text-shadow: none;
  524. padding: 0px 6px;
  525. border: none;
  526. box-shadow: none;
  527. }
  528. </style>
  529. <style scoped>
  530. /deep/ .ant-form label {
  531. font-size: 16px;
  532. }
  533. .knowledgeAddUpdateLabel /deep/ label::before {
  534. content: '';
  535. width: 0.3125vw;
  536. height: 0.3125vw;
  537. border-radius: 0.3125vw;
  538. background: #fff;
  539. margin-bottom: 0.25vw;
  540. vertical-align: middle;
  541. font-size: 0.44vw;
  542. display: inline-block;
  543. font-family: SimSun, sans-serif;
  544. margin-right: 0.41666vw;
  545. }
  546. /deep/ .ant-form-item-required::before {
  547. width: 0.3125vw;
  548. height: 0.3125vw;
  549. border-radius: 0.3125vw;
  550. background: #F84E4C!important;
  551. margin-bottom: 0.25vw;
  552. vertical-align: middle;
  553. font-size: 0.44vw;
  554. }
  555. .knowledgeAddUpdateLabel /deep/ label {
  556. font-size: 0.9375vw;
  557. height: 2.7vw;
  558. }
  559. .oneline /deep/ label {
  560. line-height: 2.7vw;
  561. }
  562. .knowledgeAddUpdateLabel /deep/ textarea {
  563. font-size: 0.9375vw;
  564. }
  565. /deep/ .ant-upload.ant-upload-drag {
  566. border: none;
  567. }
  568. /deep/ .ant-table-thead > tr > th {
  569. padding: 20px!important;
  570. }
  571. /deep/ .ant-table-tbody > tr > td {
  572. padding: 20px!important;
  573. }
  574. .qualityManual-container-office {
  575. width: 100%;
  576. height: 70vw;
  577. display: block;
  578. }
  579. .tableBox /deep/.ant-table-thead{
  580. height: 3.69791vw;
  581. font-size: 0.9375vw;
  582. color: #202124;
  583. background: #F9F9FA;
  584. }
  585. .tableBox /deep/.ant-table-column-title{
  586. font-weight: 550;
  587. }
  588. .tableBox /deep/.ant-table-tbody{
  589. font-size: 0.9375vw;
  590. color: #202124;
  591. }
  592. .tableBox /deep/td{
  593. border: none;
  594. }
  595. .tableBox /deep/.ant-table-row{
  596. height: 4vw;
  597. }
  598. .textareaBox{
  599. padding-right: 50px;
  600. }
  601. .rightText{
  602. position: absolute;
  603. right: 10px;
  604. top: 0px;
  605. font-size: 0.9375vw;
  606. color: #C0C0C0;
  607. }
  608. .addItemBox{
  609. height: 2.7vw;
  610. width: 21.71875vw;
  611. font-size: 0.9375vw;
  612. }
  613. .addItemBox /deep/input{
  614. height: 2.7vw;
  615. font-size: 0.9375vw;
  616. }
  617. .addItemBox /deep/.ant-select-selection{
  618. height: 2.7vw;
  619. }
  620. .addItemBox /deep/.ant-select-selection-selected-value{
  621. height: 2.7vw;
  622. line-height: 2.7vw;
  623. }
  624. .addItemBox /deep/.ant-select-selection__rendered{
  625. height: 2.7vw;
  626. }
  627. .addItemBox /deep/.ant-select-arrow{
  628. margin-top: -0.55vw;
  629. }
  630. .knowledgeAddUpdateLabel /deep/.ant-form-item-children{
  631. display: block;
  632. }
  633. .addSelectOption{
  634. font-size: 0.9375vw;
  635. height: 2.0833vw;
  636. line-height: 2.0833vw;
  637. }
  638. </style>
  639. <style>
  640. .dropdownClassli{
  641. margin-bottom: 0.52vw;
  642. }
  643. .dropdownClassli:first-child{
  644. margin-top: 1.04vw;
  645. }
  646. .dropdownClassli:last-child{
  647. margin-bottom: 1.04vw;
  648. }
  649. .uploadBox{
  650. width: 26.927vw;
  651. height: 11.979vw;
  652. display: block;
  653. }
  654. .ant-upload-hint{
  655. font-size: 0.833333vw!important;
  656. }
  657. .ant-upload-text{
  658. font-size: 0.833333vw!important;
  659. margin-bottom: 0.4687vw!important;
  660. }
  661. .ant-upload-drag-icon img{
  662. width: 2.29166vw;
  663. height: 2.29166vw;
  664. }
  665. .classifyIconBox{
  666. color: rgba(0,0,0,.25);
  667. font-size: 1vw!important;
  668. margin-top: -0.55vw!important;
  669. -webkit-transform-origin: 90% 80%;
  670. position: absolute;
  671. right: 1vw;
  672. transform-origin: 0.5vw 0.45vw;
  673. }
  674. .ant-cascader-picker-focused .classifyIconBox{
  675. transform:rotate(180deg);
  676. }
  677. .ant-cascader-picker-label{
  678. height: 30px;
  679. }
  680. </style>
  681. <style scoped>
  682. /deep/ .ant-cascader-menus {
  683. left: 0!important;
  684. }
  685. /deep/ .ant-cascader-menu:last-child {
  686. margin-right: 0!important;
  687. }
  688. </style>