userCenterAddMyInfoData.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. <template>
  2. <div style="width: 100%;background: #fff;min-height: 700px;" class="userCenterAuthenticationPersonal">
  3. <div v-show="$i18n.locale == 'zh'" style="height: 80px;line-height: 80px;margin-top: 20px;margin: 0 20px; color: #666;font-size: 15px; border-bottom: 1px solid #bcbcbc;">
  4. 添加资讯
  5. <!-- <span style="float: right;margin-top: 27px;"> <i class="el-icon-edit"></i> 修改</span> -->
  6. </div>
  7. <div v-show="$i18n.locale == 'zh'" style="width: 600px;" >
  8. <el-form ref="form1" :model="cmsInformationView" label-width="160px" class="demo-ruleForm" style="margin-top: 20px;width: 1200px;" :rules="chineseFormRules">
  9. <el-form-item label="资讯标题:" prop='title' >
  10. <el-input v-model="cmsInformationView.title" placeholder="请输入资讯标题" :disabled="disableDet" style="width: 70%;" maxlength="100" show-word-limit></el-input>
  11. </el-form-item>
  12. <el-form-item :required="true" label="资讯类型:" prop='typeDict'>
  13. <el-select v-model="cmsInformationView.typeDict" placeholder="请选择资讯类型" :disabled="disableDet" style="width: 30%;">
  14. <el-option
  15. v-for="item in typeDicts"
  16. :key="item.value"
  17. :label="item.label"
  18. :value="item.value"
  19. :disabled="disableDet">
  20. </el-option>
  21. </el-select>
  22. </el-form-item>
  23. <el-form-item label="作者:" prop='auther' >
  24. <el-input v-model="cmsInformationView.auther" :disabled="disableDet" placeholder="请输入作者" style="width: 70%;" maxlength="100" show-word-limit></el-input>
  25. </el-form-item>
  26. <el-form-item label="资讯来源:">
  27. <el-select v-model="cmsInformationView.sourceDict" placeholder="请选择资讯来源" :disabled="disableDet" style="width: 30%;">
  28. <el-option
  29. v-for="item in sourceDicts"
  30. :key="item.value"
  31. :label="item.label"
  32. :value="item.value"
  33. :disabled="disableDet">
  34. </el-option>
  35. </el-select>
  36. </el-form-item>
  37. <el-form-item label="原文链接:" prop='sourceAddress'>
  38. <el-input v-model="cmsInformationView.sourceAddress" placeholder="请输入原文链接" :disabled="disableDet" style="width: 70%;" maxlength="100" show-word-limit></el-input>
  39. </el-form-item>
  40. <el-form-item label="发布时间:">
  41. <el-col :span="11">
  42. <el-date-picker type="date" placeholder="选择日期" v-model="cmsInformationView.publishDate" :disabled="disableDet" style="width: 50%;"></el-date-picker>
  43. </el-col>
  44. </el-form-item>
  45. <el-form-item label="资讯内容:" prop='content'>
  46. <el-input type="textarea" :rows="20" v-model="cmsInformationView.content" placeholder="请输入资讯内容" :disabled="disableDet" style="width: 70%;min-height: 100px;" maxlength="10000" show-word-limit></el-input>
  47. </el-form-item>
  48. <!-- <el-form-item label="资讯附件:" style="width: 50%;">
  49. <el-upload
  50. class="upload-demo"
  51. drag
  52. action="/api/file/upload/attachment?module=cmsInformationInfo&attachmentBusinessType=cms_information_info"
  53. :on-change="handleChange"
  54. :on-success="handleAvatarSuccessAnnex"
  55. :on-preview="handlePreview"
  56. :headers="myHeaders"
  57. :on-remove="handleRemove"
  58. :before-upload="beforeUpload"
  59. :file-list="fileList"
  60. multiple>
  61. <i class="el-icon-upload"></i>
  62. <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
  63. <div class="el-upload__tip" slot="tip">请上传zip,pdf,word,excel的附件!</div>
  64. </el-upload>
  65. </el-form-item> -->
  66. <el-form-item label="资讯图片:">
  67. <el-upload
  68. class="avatar-uploader"
  69. action="/api/file/upload/attachment?module=cmsInformationInfo&attachmentBusinessType=cms_information_info"
  70. :before-upload="beforeUploadCatalog"
  71. :show-file-list="false"
  72. :disabled="disableDet"
  73. :on-success="photoSuccess"
  74. :headers="myHeaders">
  75. <img v-if="cmsInformationView.pictureUrl != ''" :src="'/api/file/pub/'+cmsInformationView.pictureUrl" class="avatar">
  76. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  77. <div slot="tip" class="el-upload__tip" >{{$t('common.resourceHint')}}{{$t('common.resourceUploadJPGPNG')}},{{$t('common.resourceFilesCannotExceed10Mb')}},{{$t('common.resourceUploadOne')}}</div>
  78. </el-upload>
  79. </el-form-item>
  80. </el-form>
  81. </div>
  82. <div v-show="$i18n.locale == 'zh'" style="height: 200px;">
  83. <div style="margin-top: 100px;">
  84. <el-button v-if="!disableDet" type="warning" style="margin-left: 300px;" @click="save('form1')">保存</el-button>
  85. <el-button v-if="!disableDet" type="primary" style="margin-left: 30px;" @click="close">关闭</el-button>
  86. <el-button v-if="disableDet" type="primary" style="margin-left: 450px;" @click="close">关闭</el-button>
  87. </div>
  88. </div>
  89. <div v-if="dialogVisible && $i18n.locale == 'zh'">
  90. <userCenterAddTag v-bind:systemLabel="systemLabel" :mergeSelectedLabels="mergeSelectedLabels" @closeMain="closeMain"></userCenterAddTag>
  91. </div>
  92. <div v-show="$i18n.locale == 'en'" style="height: 80px;line-height: 80px;margin-top: 20px;margin: 0 20px; color: #666;font-size: 15px; border-bottom: 1px solid #bcbcbc;">
  93. Add Info Data
  94. </div>
  95. <div v-show="$i18n.locale == 'en'" style="width: 600px;" >
  96. <el-form ref="form2" :model="cmsInformationView" label-width="160px" class="demo-ruleForm" style="margin-top: 20px;width: 1200px;" :rules="englishFormRules">
  97. <el-form-item label="Information Title:" prop='title'>
  98. <el-input v-model="cmsInformationView.title" placeholder="Please enter the information title" :disabled="disableDet" style="width: 70%;" maxlength="100" show-word-limit></el-input>
  99. </el-form-item>
  100. <el-form-item :required="true" label="Information Type:" prop='typeDict'>
  101. <el-select v-model="cmsInformationView.typeDict" placeholder="Please select a information type" :disabled="disableDet" style="width: 30%;">
  102. <el-option
  103. v-for="item in typeDicts"
  104. :key="item.value"
  105. :label="item.label"
  106. :value="item.value"
  107. :disabled="false">
  108. </el-option>
  109. </el-select>
  110. </el-form-item>
  111. <el-form-item label="Author:" prop='auther' >
  112. <el-input v-model="cmsInformationView.auther" placeholder="Please enter the author" :disabled="disableDet" style="width: 70%;" maxlength="100" show-word-limit></el-input>
  113. </el-form-item>
  114. <el-form-item label="Source Dict:">
  115. <el-select v-model="cmsInformationView.sourceDict" placeholder="Please select a source dict" :disabled="disableDet" style="width: 30%;">
  116. <el-option
  117. v-for="item in sourceDicts"
  118. :key="item.value"
  119. :label="item.label"
  120. :value="item.value"
  121. :disabled="false">
  122. </el-option>
  123. </el-select>
  124. </el-form-item>
  125. <el-form-item label="Original Link:" prop='sourceAddress'>
  126. <el-input v-model="cmsInformationView.sourceAddress" placeholder="Please enter the original link" :disabled="disableDet" style="width: 70%;" maxlength="100" show-word-limit></el-input>
  127. </el-form-item>
  128. <el-form-item label="Release Time:">
  129. <el-col :span="11">
  130. <el-date-picker type="date" :disabled="disableDet" placeholder="Select a date" v-model="cmsInformationView.publishDate" style="width: 50%;"></el-date-picker>
  131. </el-col>
  132. </el-form-item>
  133. <el-form-item label="Information Content:" prop='content'>
  134. <el-input type="textarea" :rows="20" v-model="cmsInformationView.content" placeholder="Please enter the information content" :disabled="disableDet" maxlength="10000" show-word-limit style="width: 70%;min-height: 100px;"></el-input>
  135. </el-form-item>
  136. <!-- <el-form-item label="Information Attachment:" >
  137. <el-upload
  138. class="upload-demo"
  139. drag
  140. action="/api/file/upload/attachment?module=cmsInformationInfo&attachmentBusinessType=cms_information_info"
  141. :on-change="handleChange"
  142. :on-success="handleAvatarSuccessAnnex"
  143. :on-preview="handlePreview"
  144. :headers="myHeaders"
  145. :on-remove="handleRemove"
  146. :before-upload="beforeUpload"
  147. :file-list="fileList"
  148. multiple>
  149. <i class="el-icon-upload"></i>
  150. <div class="el-upload__text">Drag the file here, or <em> click upload </em> </div>
  151. <div class="el-upload__tip" slot="tip">Please upload the attachment of zip, PDF, word, excel!</div>
  152. </el-upload>
  153. </el-form-item> -->
  154. <el-form-item label="Information Map:">
  155. <el-upload
  156. class="avatar-uploader"
  157. action="/api/file/upload/attachment?module=cmsInformationInfo&attachmentBusinessType=cms_information_info"
  158. :before-upload="beforeUploadCatalog"
  159. :show-file-list="false"
  160. :disabled="disableDet"
  161. :on-success="photoSuccess"
  162. :headers="myHeaders">
  163. <img v-if="cmsInformationView.pictureUrl != ''" :src="'/api/file/pub/'+cmsInformationView.pictureUrl" class="avatar">
  164. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  165. <div slot="tip" class="el-upload__tip" >{{$t('common.resourceHint')}}{{$t('common.resourceUploadJPGPNG')}},{{$t('common.resourceFilesCannotExceed10Mb')}},{{$t('common.resourceUploadOne')}}</div>
  166. </el-upload>
  167. </el-form-item>
  168. </el-form>
  169. </div>
  170. <div v-show="$i18n.locale == 'en'" style="height: 200px;">
  171. <div style="margin-top: 100px;">
  172. <el-button v-if="!disableDet" type="warning" style="margin-left: 300px;" @click="save('form2')">Save</el-button>
  173. <el-button v-if="!disableDet" type="primary" style="margin-left: 30px;" @click="close">Close</el-button>
  174. <el-button v-if="disableDet" type="primary" style="margin-left: 450px;" @click="close">Close</el-button>
  175. </div>
  176. </div>
  177. <div v-if="dialogVisible && $i18n.locale == 'en'">
  178. <userCenterAddTag v-bind:systemLabel="systemLabel" :mergeSelectedLabels="mergeSelectedLabels" @closeMain="closeMain"></userCenterAddTag>
  179. </div>
  180. </div>
  181. </template>
  182. <script>
  183. import { regionDataPlus } from 'element-china-area-data'
  184. import ue from '@/components/ue'
  185. import userCenterAddTag from './userCenterAddTag'
  186. import Base from "@/views/base/Base";
  187. import { getDicts } from "@/api/dict";
  188. import { getTreeByLanguagePortal,getAllCountryAndCity } from "@/api/operation/baseCityInformationDict";
  189. import { saveOrUpdateByUserCenter , getInfoDataByUserCenter } from "@/api/cms/cmsInformationEntity";
  190. import { getToken ,resetToken} from '@/utils/auth';
  191. import { searchFiles } from '@/api/file';
  192. export default {
  193. name: 'userCenteraddMaintenanceJournalInformations',
  194. extends: Base,
  195. components: {
  196. ue,userCenterAddTag
  197. },
  198. data () {
  199. return {
  200. placehoders:'Please select',
  201. textareaMessaage:
  202. "",
  203. textareaMessaageEn:
  204. "",
  205. fileList:[],
  206. myHeaders: {Authorization: ('Bearer ' +getToken())},
  207. isCreateNewUser: [
  208. { label: "是", value: "Y"},
  209. { label: "否(只对合作组织公开)", value: "N" }
  210. ],
  211. isCreateNewUserEn: [
  212. { label: "Yes", value: "Y"},
  213. { label: "No (Visible only to GEIDCO)", value: "N" }
  214. ],
  215. informationsClass:'1',
  216. dialogVisible: false,
  217. ifDiaslog:'',
  218. title:'',
  219. options: regionDataPlus,
  220. selectedOptions: [],
  221. systemLabel:[],
  222. mergeSelectedLabels:[],
  223. cmsInformationView:{
  224. pictureUrl:''
  225. },
  226. continentCountryDicts: [],
  227. unitCountryDicts: [],
  228. reserveOnes: [],
  229. technicalCategoriesDicts: [],
  230. technicalScopeDicts: [],
  231. phaseTypeDicts: [],
  232. languageDicts: [],
  233. imageUrl: '',
  234. form: {},
  235. files: [],
  236. imgList: [],
  237. path: "",
  238. typeDicts:[],
  239. approveStatusDicts:[],
  240. sourceDicts:[],
  241. entityId:this.$route.query.key,
  242. disableDet: this.$route.query.disableDet ? this.$route.query.disableDet : false,//详情传来参数不能修改页面值
  243. }
  244. },
  245. watch: {
  246. // "baseProjectView.continentCountry"() {
  247. // this.continentCountryDicts.forEach((i) => {
  248. // if (this.baseProjectView.continentCountry == i.value) {
  249. // this.unitCountryDicts = i.data;
  250. // }
  251. // });
  252. // },
  253. // "baseProjectView.unitCountry"() {
  254. // this.unitCountryDicts.forEach((i) => {
  255. // if (this.baseProjectView.unitCountry == i.value) {
  256. // this.reserveOnes= i.data;
  257. // }
  258. // })
  259. // },
  260. '$i18n.locale'(){
  261. this.initData();
  262. // this.getBaseProject();
  263. }
  264. },
  265. mounted() {
  266. this.initData();
  267. },
  268. computed:{
  269. englishFormRules(){
  270. return{
  271. title: [
  272. { required: true, message: 'Please enter the information title', trigger: 'change' },
  273. ],
  274. typeDict: [
  275. { required: true, message: 'Please select a information type', trigger: 'change' },
  276. ],
  277. auther: [
  278. { required: true, message: 'Please enter the author', trigger: 'change' },
  279. ],
  280. // sourceDict: [
  281. // { required: true, message: 'Please Select Information Source', trigger: 'change' },
  282. // ],
  283. // sourceAddress: [
  284. // { required: true, message: 'Please Input Link Of Original Text', trigger: 'change' },
  285. // ],
  286. content: [
  287. { required: true, message: 'Please enter the information content', trigger: 'change' },
  288. ]
  289. }
  290. },
  291. chineseFormRules(){
  292. return{
  293. title: [
  294. { required: true, message: '请输入资讯标题', trigger: 'blur' },
  295. ],
  296. typeDict: [
  297. { required: true, message: '请选择资讯类型', trigger: 'blur' },
  298. ],
  299. auther: [
  300. { required: true, message: '请输入作者', trigger: 'change' },
  301. ],
  302. // sourceDict: [
  303. // { required: true, message: '请选择资讯来源', trigger: 'change' },
  304. // ],
  305. // sourceAddress: [
  306. // { required: true, message: '请输入原文链接', trigger: 'change' },
  307. // ],
  308. content: [
  309. { required: true, message: '请输入资讯内容', trigger: 'change' },
  310. ]
  311. }
  312. },
  313. },
  314. methods:{
  315. searchFiles() {
  316. var _that = this;
  317. var file = {
  318. attachmentBusinessId : _that.cmsInformationView.id,
  319. attachmentBusinessType : "cms_information_info"
  320. }
  321. _that.fileList = [];
  322. searchFiles(file).then(result => {
  323. result.data.attachmentInfos.forEach((i) => {
  324. var fileTo = {
  325. name : i.attachmentName,
  326. url : i.attachmentSavePath,
  327. uid : i.id
  328. }
  329. _that.fileList.push(fileTo);
  330. _that.files.push(i.id)
  331. console.log(_that.files+"_that.files")
  332. })
  333. })
  334. },
  335. initData(){
  336. if (this.entityId) {
  337. var params = {
  338. id : this.entityId
  339. }
  340. getInfoDataByUserCenter(params).then(result => {
  341. this.cmsInformationView = result.data.cmsInformationView
  342. this.searchFiles();
  343. });
  344. }
  345. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  346. getDicts(
  347. "CMS_INFORMATION_TYPE_DICT,APPROVE_STATUS_DICT,DISPLAY_INFORMATION_SOURCE"
  348. ).then(result => {
  349. var data = result.data;
  350. if (data) {
  351. this.typeDicts = result.data[0] || [];
  352. this.approveStatusDicts = result.data[1] || [];
  353. this.sourceDicts = result.data[2] || [];
  354. }
  355. });
  356. }
  357. if (this.$i18n.locale.toUpperCase() == 'EN') {
  358. getDicts(
  359. "CMS_INFORMATION_TYPE_DICT_EN,APPROVE_STATUS_DICT,DISPLAY_INFORMATION_SOURCE_EN"
  360. ).then(result => {
  361. var data = result.data;
  362. if (data) {
  363. this.typeDicts = result.data[0] || [];
  364. this.approveStatusDicts = result.data[1] || [];
  365. this.sourceDicts = result.data[2] || [];
  366. }
  367. });
  368. }
  369. },
  370. // 下载文件方法file参数为已上传文件的信息,其实就是取得fileList里的值
  371. handlePreview(file, fileList) {
  372. document.location.href = 'http://localhost:8080/api/file/pub/'+file.url
  373. },
  374. handleRemove(file, fileList) {
  375. this.files.forEach((i) => {
  376. if (i == file.uid) {
  377. var index = this.files.indexOf(i);
  378. this.files.splice(index, 1);
  379. }
  380. })
  381. },
  382. handleAvatarSuccessAnnex(res, file) {
  383. this.files.push(res.data.attachmentId);
  384. },
  385. beforeUploadCatalog(file) {},
  386. beforeUpload(file) {
  387. var FileExt = file.name.replace(/.+\./, "");
  388. if (['zip', 'pdf', 'doc', 'docx', 'excel', 'xls', 'xlsx'].indexOf(FileExt.toLowerCase()) === -1) {
  389. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  390. this.$message({
  391. type: 'warning',
  392. message: '请上传zip,pdf,word,excel的附件!'
  393. });
  394. } else {
  395. this.$message({
  396. type: 'warning',
  397. message: 'Please upload the attachment of zip, PDF, word and excel!'
  398. });
  399. }
  400. this.fileList.splice(this.fileList.indexOf(file), 1)
  401. return false;
  402. }
  403. this.isLt2k = file.size / 1024 / 1024 < 2 ? '1' : '0';
  404. if (this.isLt2k === '0') {
  405. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  406. this.$message({
  407. message: '上传文件大小不能超过2M!',
  408. type: 'error'
  409. });
  410. } else {
  411. this.$message({
  412. message: 'Upload file size cannot exceed 2m!',
  413. type: 'error'
  414. });
  415. }
  416. this.fileList.splice(this.fileList.indexOf(file), 1)
  417. return false;
  418. }
  419. },
  420. save: function (formName) {
  421. this.$refs[formName].validate((valid) => {
  422. if (valid) {
  423. this.cmsInformationView.updateDate = new Date();
  424. this.cmsInformationView.approveStatusDict = "1";
  425. this.cmsInformationView.editStatusDict = "1";
  426. this.cmsInformationView.publishChannelDict = "1";//发布渠道
  427. this.cmsInformationView.language = this.$i18n.locale.toUpperCase();
  428. let token = getToken();
  429. this.submitHandler(token => {
  430. saveOrUpdateByUserCenter(
  431. JSON.stringify(this.cmsInformationView),
  432. JSON.stringify(Array.from(this.files)),
  433. token
  434. ).then(result => {
  435. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  436. alert("资讯信息保存成功");
  437. } else {
  438. alert("Info Data saved successfully");
  439. }
  440. this.baseProjectView = {};
  441. this.$router.go(-1);//返回上一层
  442. }).catch(error => {
  443. // 此处你的业务代码
  444. this.resetToken();
  445. });
  446. });
  447. }else{
  448. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  449. this.$notify.error({
  450. title: '保存失败',
  451. message: '请填写必填项'
  452. });
  453. } else {
  454. this.$notify.error({
  455. title: 'Error',
  456. message: 'Please fill in the required fields'
  457. });
  458. }
  459. return false;
  460. }
  461. });
  462. },
  463. close(){
  464. this.$router.go(-1);
  465. },
  466. closeMain(val){
  467. this.mergeSelectedLabels = [];
  468. val.forEach((element,index) => {
  469. this.mergeSelectedLabels.push(element.label)
  470. });
  471. this.systemLabel=val;
  472. this.cmsInformationView.projectLabel = JSON.stringify(this.mergeSelectedLabels).replace(/\[|]/g,'').replace(/\"/g, "");;
  473. this.dialogVisible=false;
  474. },
  475. goAithentication(num){
  476. this.$router.go(-1);//返回上一层
  477. },
  478. handleChange (file, fileList) {
  479. this.fileList = fileList.slice(-3);
  480. },
  481. photoSuccess(res, file) {
  482. this.cmsInformationView.pictureUrl = res.data.path
  483. },
  484. dialogVisibles(){
  485. this.dialogVisible=true
  486. },
  487. }
  488. }
  489. </script>
  490. <style scoped>
  491. .el-button {
  492. width: 200px;
  493. height: 45px;
  494. }
  495. .authenticationBox1 {
  496. margin-left: 35px;
  497. margin-right: 150px;
  498. height: 100px;
  499. border: 1px solid rgba(153, 153, 153, 1);
  500. border-radius: 10px;
  501. margin-top: 50px;
  502. position: relative;
  503. }
  504. .authenticationBox2 {
  505. margin: 50px 150px 0 35px;
  506. height: 100px;
  507. border: 1px solid rgba(153, 153, 153, 1);
  508. border-radius: 10px;
  509. position: relative;
  510. }
  511. .authenticationBox1:hover,
  512. .authenticationBox2:hover {
  513. border: 1px solid #ff8400;
  514. }
  515. .avatar-uploader .el-upload {
  516. border: 1px dashed #d9d9d9;
  517. border-radius: 6px;
  518. cursor: pointer;
  519. position: relative;
  520. overflow: hidden;
  521. }
  522. .avatar-uploader .el-upload:hover {
  523. border-color: #409EFF;
  524. }
  525. .userCenterAuthenticationPersonal>>>.el-upload {
  526. border: 1px solid rgba(204, 204, 204, 1);
  527. }
  528. .avatar-uploader-icon {
  529. font-size: 28px;
  530. color: #8c939d;
  531. width: 178px;
  532. height: 178px;
  533. line-height: 178px;
  534. text-align: center;
  535. }
  536. .avatar {
  537. width: 178px;
  538. height: 178px;
  539. display: block;
  540. }
  541. /deep/.el-textarea__inner {
  542. display: block;
  543. resize: vertical;
  544. padding: 5px 8px;
  545. line-height: 1.5;
  546. -webkit-box-sizing: border-box;
  547. box-sizing: border-box;
  548. width: 100%;
  549. font-size: inherit;
  550. color: #606266;
  551. background-color: #FFF;
  552. background-image: none;
  553. border: 1px solid #DCDFE6;
  554. border-radius: 4px;
  555. -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  556. transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  557. }
  558. </style>