You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

751 lines
23 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <template>
  2. <div style="padding:10px;">
  3. <!-- 搜索栏 -->
  4. <div class="search">
  5. <el-form :inline="true">
  6. <el-form-item label="剧本标题:" style="margin-right:50px;">
  7. <el-input
  8. v-model="queryParams.query.title"
  9. style="height:30px;"
  10. placeholder="请输入剧本标题"
  11. />
  12. </el-form-item>
  13. <el-form-item label="工作室:" style="margin-right:50px;">
  14. <el-input
  15. v-model="queryParams.query.studioName"
  16. style="height:30px;"
  17. placeholder="请输入工作室"
  18. />
  19. </el-form-item>
  20. <el-form-item label="标签:" style="margin-right:50px;">
  21. <el-input
  22. v-model="queryParams.query.labelName"
  23. style="height:30px;"
  24. placeholder="请输入标签"
  25. />
  26. </el-form-item>
  27. </el-form>
  28. <div class="search-button">
  29. <el-button
  30. size="medium"
  31. type="primary"
  32. style="height:36px;width:100px;"
  33. @click="search"
  34. >搜索</el-button
  35. >
  36. <el-button
  37. size="medium"
  38. style="margin-left:20px;height:36px;width:100px;"
  39. @click="refresh"
  40. >重置</el-button
  41. >
  42. </div>
  43. </div>
  44. <div class="add-button">
  45. <el-button
  46. size="medium"
  47. type="primary"
  48. style="height:36px;width:100px;"
  49. @click="handleAdd"
  50. >新建</el-button
  51. >
  52. </div>
  53. <!-- 列表 -->
  54. <div class="content">
  55. <el-table
  56. v-loading="loading"
  57. ref="singleTable"
  58. :data="tableData"
  59. border
  60. style="width: 100%"
  61. >
  62. <el-table-column align="center" type="index" label="序号" width="50" />
  63. <el-table-column align="center" property="title" label="剧本标题" />
  64. <el-table-column align="center" property="studioName" label="工作室" />
  65. <el-table-column align="center" property="labelName" label="标签" />
  66. <el-table-column
  67. align="center"
  68. property="createTime"
  69. label="创建时间"
  70. />
  71. <el-table-column align="center" label="操作">
  72. <template slot-scope="scope">
  73. <el-button type="text" size="mini" @click="handleView(scope.row)"
  74. >查看</el-button
  75. >
  76. <el-button type="text" size="mini" @click="handleEdit(scope.row)"
  77. >编辑</el-button
  78. >
  79. <el-button type="text" size="mini">Tips维护</el-button>
  80. <el-button type="text" size="mini" @click="hanDel(scope.row)"
  81. >删除</el-button
  82. >
  83. </template>
  84. </el-table-column>
  85. </el-table>
  86. <pagination
  87. v-show="total > 0"
  88. :total="total"
  89. :page.sync="queryParams.pageNum"
  90. :limit.sync="queryParams.pageSize"
  91. @pagination="queryList"
  92. />
  93. </div>
  94. <!-- 新增表单 -->
  95. <el-dialog :title="dialog.title" :visible.sync="dialog.Visible" width="70%">
  96. <el-form
  97. ref="ruleForm"
  98. :model="ruleForm"
  99. :rules="rules"
  100. :inline="true"
  101. label-width="100px"
  102. class="demo-ruleForm"
  103. >
  104. <h3 class="form-title">基本信息</h3>
  105. <el-form-item label="剧本标题:" prop="title" style="width:45%">
  106. <el-input v-model="ruleForm.title" style="width:300px;" />
  107. </el-form-item>
  108. <el-form-item label="工作室:" prop="studioName" style="width:45%">
  109. <el-input v-model="ruleForm.studioName" style="width:300px;" />
  110. </el-form-item>
  111. <el-form-item label="标签:" prop="labelName" style="width:100%">
  112. <el-input v-model="ruleForm.labelName" style="width:300px;" />
  113. </el-form-item>
  114. <h3 class="form-title">剧本图片</h3>
  115. <el-form-item label="封面">
  116. <!-- :action="baseUrl + 'sys/file/upload'" -->
  117. <!-- <el-image v-if="ruleForm.cover" style="width: 146px; height: 146px" :src="ruleForm.cover" fit="fill">
  118. </el-image> -->
  119. <el-upload
  120. class="avatar-uploader"
  121. action
  122. :show-file-list="false"
  123. :auto-upload="false"
  124. :on-change="uploadImg"
  125. :on-success="handleAvatar"
  126. :before-upload="beforeAvatarUpload"
  127. >
  128. <img v-if="ruleForm.cover" :src="ruleForm.cover" class="avatar" />
  129. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  130. </el-upload>
  131. </el-form-item>
  132. <el-form-item label="其它图片" style="width:100%">
  133. <el-upload
  134. action
  135. class="avatar-uploader"
  136. list-type="picture-card"
  137. :auto-upload="false"
  138. :on-change="changeImgs"
  139. :on-success="handleAvatarSuccess"
  140. :before-upload="beforeAvatarUpload"
  141. >
  142. <i class="el-icon-plus" />
  143. </el-upload>
  144. <el-dialog :visible.sync="dialogVisible">
  145. <img width="100%" :src="dialogImageUrl" alt="" />
  146. </el-dialog>
  147. </el-form-item>
  148. <h3 class="form-title">剧本简介</h3>
  149. <el-form-item label="简介">
  150. <!-- <el-input
  151. v-model="ruleForm.desc"
  152. style="width:500px"
  153. rows="10"
  154. type="textarea"
  155. /> -->
  156. <Tinymce ref="editor" v-model="ruleForm.introduction" :height="400" />
  157. </el-form-item>
  158. <h3 class="form-title">开本流程</h3>
  159. <el-table
  160. :header-cell-style="{ background: '#eee', color: '#606266' }"
  161. :data="ruleForm.processesList"
  162. border
  163. style="width: 90%;margin-left:30px;"
  164. >
  165. <el-table-column
  166. align="center"
  167. type="index"
  168. label="序号"
  169. width="50"
  170. />
  171. <el-table-column align="center" property="title" label="流程标题">
  172. <template slot-scope="scope">
  173. <el-input v-model="ruleForm.processesList[scope.$index].title" />
  174. </template>
  175. </el-table-column>
  176. <el-table-column align="center" property="code" label="流程编号">
  177. <template slot-scope="scope">
  178. <el-input v-model="ruleForm.processesList[scope.$index].code" />
  179. </template>
  180. </el-table-column>
  181. <el-table-column align="center" property="introduction" label="简介">
  182. <template slot-scope="scope">
  183. <el-input
  184. v-model="ruleForm.processesList[scope.$index].introduction"
  185. />
  186. </template>
  187. </el-table-column>
  188. <el-table-column align="center" property="sort" label="排序">
  189. <template slot-scope="scope">
  190. <el-input v-model="ruleForm.processesList[scope.$index].sort" />
  191. </template>
  192. </el-table-column>
  193. <el-table-column align="center" label="操作">
  194. <template slot-scope="scope">
  195. <el-button type="text" size="mini" @click="Del(scope.$index)"
  196. >删除</el-button
  197. >
  198. </template>
  199. </el-table-column>
  200. </el-table>
  201. <div style="margin-top:15px;">
  202. <el-button
  203. type="success"
  204. style="height:36px;width:100px;margin-left:30px;color:#fff;background:#33DB99"
  205. @click="handleAddK"
  206. >新建</el-button
  207. >
  208. </div>
  209. <h3 class="form-title">剧本资源</h3>
  210. <el-form-item label="图片" prop="imgUrls" style="width: 100%;">
  211. <el-radio-group v-model="radioImg" @change="changeImg">
  212. <el-radio label="1">本地上传</el-radio>
  213. <el-radio label="2">网易云地址</el-radio>
  214. </el-radio-group>
  215. </el-form-item>
  216. <el-form-item v-if="radioImg == 2" style="width: 100%;" class="urlTable">
  217. <el-table
  218. :data="ruleForm.radioImg"
  219. border
  220. style="width: 80%;margin-left:100px;"
  221. >
  222. <el-table-column
  223. align="center"
  224. type="index"
  225. label="序号"
  226. width="50"
  227. />
  228. <el-table-column align="center" property="date" label="资源标题">
  229. <template slot-scope="scope">
  230. <el-input v-model="ruleForm.radioImg[scope.$index].title" />
  231. </template>
  232. </el-table-column>
  233. <el-table-column align="center" property="url" label="资源URL">
  234. <template slot-scope="scope">
  235. <el-input v-model="ruleForm.radioImg[scope.$index].url" />
  236. </template>
  237. </el-table-column>
  238. <el-table-column
  239. align="center"
  240. property="processId"
  241. label="关联流程"
  242. >
  243. <template slot-scope="scope">
  244. <el-select
  245. v-model="ruleForm.radioImg[scope.$index].processId"
  246. clearable
  247. placeholder="请选择流程"
  248. >
  249. <el-option
  250. v-for="item in lcData"
  251. :key="item.value"
  252. :label="item.title"
  253. :value="item.id"
  254. >
  255. </el-option>
  256. </el-select>
  257. </template>
  258. </el-table-column>
  259. <el-table-column align="center" label="操作">
  260. <template slot-scope="scope">
  261. <el-button type="text" size="mini" @click="Del(scope.$index)"
  262. >删除</el-button
  263. >
  264. </template>
  265. </el-table-column>
  266. </el-table>
  267. <div style="margin-top:15px;">
  268. <el-button
  269. type="success"
  270. style="height:36px;width:100px;margin-left:30px;color:#fff;background:#33DB99"
  271. @click="handleAddImg"
  272. >新建</el-button
  273. >
  274. </div>
  275. </el-form-item>
  276. <el-form-item label="音频" prop="imgUrls" style="width: 100%;">
  277. <el-radio-group v-model="radioMusic" @change="changeMusic">
  278. <el-radio label="1">本地上传</el-radio>
  279. <el-radio label="2">网易云地址</el-radio>
  280. </el-radio-group>
  281. </el-form-item>
  282. <el-form-item v-if="radioMusic == 2" style="width: 100%;" class="urlTable">
  283. <el-table
  284. :data="ruleForm.radioMusic"
  285. border
  286. style="width: 80%;margin-left:100px;"
  287. >
  288. <el-table-column
  289. align="center"
  290. type="index"
  291. label="序号"
  292. width="50"
  293. />
  294. <el-table-column align="center" property="title" label="资源标题">
  295. <template slot-scope="scope">
  296. <el-input v-model="ruleForm.radioMusic[scope.$index].title" />
  297. </template>
  298. </el-table-column>
  299. <el-table-column align="center" property="url" label="资源URL">
  300. <template slot-scope="scope">
  301. <el-input v-model="ruleForm.radioMusic[scope.$index].url" />
  302. </template>
  303. </el-table-column>
  304. <el-table-column
  305. align="center"
  306. property="processId"
  307. label="关联流程"
  308. >
  309. <template slot-scope="scope">
  310. <el-select
  311. v-model="ruleForm.radioMusic[scope.$index].processId"
  312. clearable
  313. placeholder="请选择流程"
  314. >
  315. <el-option
  316. v-for="item in lcData"
  317. :key="item.value"
  318. :label="item.title"
  319. :value="item.id"
  320. >
  321. </el-option>
  322. </el-select>
  323. </template>
  324. </el-table-column>
  325. <el-table-column align="center" label="操作">
  326. <template slot-scope="scope">
  327. <el-button type="text" size="mini" @click="DelMusic(scope.$index)"
  328. >删除</el-button
  329. >
  330. </template>
  331. </el-table-column>
  332. </el-table>
  333. <div style="margin-top:15px;">
  334. <el-button
  335. type="success"
  336. style="height:36px;width:100px;margin-left:30px;color:#fff;background:#33DB99"
  337. @click="handleAddMusic"
  338. >新建</el-button
  339. >
  340. </div>
  341. </el-form-item>
  342. <el-form-item label="视频" prop="imgUrls" style="width: 100%;">
  343. <el-radio-group v-model="radioVideo" @change="changeVideo">
  344. <el-radio label="1">本地上传</el-radio>
  345. <el-radio label="2">网易云地址</el-radio>
  346. </el-radio-group>
  347. </el-form-item>
  348. <el-form-item v-if="radioVideo == 2" style="width: 100%;" class="urlTable">
  349. <el-table
  350. :data="ruleForm.radioVideo"
  351. border
  352. style="width: 80%;margin-left:100px;"
  353. >
  354. <el-table-column
  355. align="center"
  356. type="index"
  357. label="序号"
  358. width="50"
  359. />
  360. <el-table-column align="center" property="title" label="资源标题">
  361. <template slot-scope="scope">
  362. <el-input v-model="ruleForm.radioVideo[scope.$index].title" />
  363. </template>
  364. </el-table-column>
  365. <el-table-column align="center" property="url" label="资源URL">
  366. <template slot-scope="scope">
  367. <el-input v-model="ruleForm.radioVideo[scope.$index].url" />
  368. </template>
  369. </el-table-column>
  370. <el-table-column
  371. align="center"
  372. property="processId"
  373. label="关联流程"
  374. >
  375. <template slot-scope="scope">
  376. <el-select
  377. v-model="ruleForm.radioVideo[scope.$index].processId"
  378. clearable
  379. placeholder="请选择流程"
  380. >
  381. <el-option
  382. v-for="item in lcData"
  383. :key="item.value"
  384. :label="item.title"
  385. :value="item.id"
  386. >
  387. </el-option>
  388. </el-select>
  389. </template>
  390. </el-table-column>
  391. <el-table-column align="center" label="操作">
  392. <template slot-scope="scope">
  393. <el-button type="text" size="mini" @click="DelVideo(scope.$index)"
  394. >删除</el-button
  395. >
  396. </template>
  397. </el-table-column>
  398. </el-table>
  399. <div style="margin-top:15px;">
  400. <el-button
  401. type="success"
  402. style="height:36px;width:100px;margin-left:30px;color:#fff;background:#33DB99"
  403. @click="handleAddVideo"
  404. >新建</el-button
  405. >
  406. </div>
  407. </el-form-item>
  408. <!-- <el-form-item>
  409. <el-button type="primary" @click="submitForm('ruleForm')">立即创建</el-button>
  410. <el-button @click="resetForm('ruleForm')">重置</el-button>
  411. </el-form-item> -->
  412. </el-form>
  413. <span slot="footer" class="dialog-footer">
  414. <el-button @click="dialog.Visible = false"> </el-button>
  415. <el-button type="primary" @click="subMit"> </el-button>
  416. </span>
  417. </el-dialog>
  418. </div>
  419. </template>
  420. <script>
  421. import Tinymce from "@/components/Tinymce";
  422. import {
  423. queryJbInfo,
  424. addJbInfo,
  425. updateJbInfo,
  426. queryJbDetail,
  427. deleteJbInfo,
  428. queryFindList
  429. } from "@/api/userInfoApi.js";
  430. import { uploadFile, delFile } from "@/api/upload/upload.js";
  431. const baseUrl = process.env.VUE_APP_BASE_API;
  432. export default {
  433. components: { Tinymce },
  434. data() {
  435. return {
  436. baseUrl,
  437. loading: true,
  438. queryParams: {
  439. pageNum: 1,
  440. pageSize: 15,
  441. query: {
  442. title: undefined,
  443. studioName: undefined,
  444. labelName: undefined
  445. }
  446. },
  447. tableData: [],
  448. rules: {
  449. title: [{ required: true, message: "请输入标题名称", trigger: "blur" }],
  450. labelName: [
  451. { required: true, message: "请输入标签名称", trigger: "blur" }
  452. ]
  453. },
  454. dialog: {
  455. title: "新增剧本",
  456. Visible: false
  457. },
  458. ruleForm: {
  459. resource: "1",
  460. processesList: [],
  461. imgUrl: "",
  462. data: [],
  463. radioImg:[],
  464. radioMusic:[],
  465. radioVideo:[],
  466. resourcesList:[]
  467. },
  468. dialogVisible: false,
  469. active: "",
  470. imageUrl: "",
  471. total: 0,
  472. dialogVisible: false,
  473. dialogImageUrl: "",
  474. dataImg: [],
  475. lcData: [],
  476. radioImg:"1",
  477. radioMusic:'1',
  478. radioVideo:"1"
  479. };
  480. },
  481. mounted() {
  482. this.queryList();
  483. this.queryFindList();
  484. },
  485. methods: {
  486. //获取列表
  487. async queryList() {
  488. this.loading = true;
  489. try {
  490. let res = await queryJbInfo(this.queryParams);
  491. console.log(res);
  492. this.tableData = res.data.rows;
  493. this.total = res.data.total;
  494. this.loading = false;
  495. } catch (err) {
  496. console.log(err);
  497. }
  498. },
  499. //搜索
  500. search() {
  501. this.queryList();
  502. },
  503. //重置
  504. refresh() {
  505. this.queryParams = {
  506. pageNum: 1,
  507. pageSize: 15,
  508. query: {
  509. title: undefined,
  510. studioName: undefined,
  511. labelName: undefined
  512. }
  513. };
  514. this.queryList();
  515. },
  516. //获取流程
  517. async queryFindList() {
  518. try {
  519. let res = await queryFindList({});
  520. // console.log(res.data, "流程列表");
  521. this.lcData = res.data;
  522. } catch (err) {
  523. console.log(err);
  524. }
  525. },
  526. //获取详情
  527. async queryListDetail(id) {
  528. try {
  529. let res = await queryJbDetail(id);
  530. console.log(res, "详情");
  531. this.ruleForm = res.data;
  532. } catch (err) {
  533. console.log(err);
  534. }
  535. },
  536. // 新增
  537. handleAdd() {
  538. this.dialog.Visible = true;
  539. this.dialog.title = "新增剧本";
  540. },
  541. async subMit() {
  542. this.ruleForm.imgUrl = this.dataImg.join(",");
  543. this.ruleForm.resourcesList = this.ruleForm.resourcesList.concat(this.ruleForm.radioImg).concat(this.ruleForm.radioMusic).concat(this.ruleForm.radioVideo)
  544. console.log(this.ruleForm, "参数");
  545. try{
  546. let res = await addJbInfo(this.ruleForm)
  547. if (res.code == 200) {
  548. this.$message.success("新增成功");
  549. this.dialog.Visible = false
  550. this.queryList();
  551. } else {
  552. this.$message({
  553. message: res.msg,
  554. type: "error"
  555. });
  556. }
  557. }catch(err){
  558. console.log(err)
  559. }
  560. },
  561. // 编辑
  562. handleEdit(row) {
  563. console.log(row);
  564. this.dialog.Visible = true;
  565. this.dialog.title = "编辑剧本";
  566. this.ruleForm = row;
  567. },
  568. // 查看
  569. handleView(row) {
  570. this.queryListDetail(row.id);
  571. },
  572. // 删除
  573. async hanDel(row) {
  574. try {
  575. await this.$confirm("此操作将永久删除该剧本,是否继续?", "提示", {
  576. confirmButtonText: "确定",
  577. cancelButtonText: "取消",
  578. type: "warning"
  579. });
  580. let res = await deleteJbInfo(row.id);
  581. if (res.code == 200) {
  582. this.$message.success("删除成功");
  583. this.queryList();
  584. } else {
  585. this.$message({
  586. message: res.msg,
  587. type: "error"
  588. });
  589. }
  590. } catch (err) {
  591. console.log(err);
  592. }
  593. },
  594. handleAvatar(res, file, fileList) {
  595. console.log(res, file, "整个");
  596. },
  597. handleAvatarSuccess(res, file) {
  598. console.log(res, file, "成功了吗");
  599. },
  600. //上传图片
  601. async uploadImg(file, fileList) {
  602. try {
  603. let formData = new FormData();
  604. let type = file.raw.type;
  605. formData.append("file", file.raw);
  606. formData.append("type", type);
  607. let res = await uploadFile(formData);
  608. // this.ruleForm.cover = res.data.wjUrl;
  609. this.$set(this.ruleForm, "cover", res.data.wjUrl);
  610. console.log(this.ruleForm.cover);
  611. } catch (err) {
  612. console.log(err);
  613. }
  614. },
  615. async changeImgs(file, fileList) {
  616. try {
  617. let formData = new FormData();
  618. let type = file.raw.type;
  619. formData.append("file", file.raw);
  620. formData.append("type", type);
  621. let res = await uploadFile(formData);
  622. console.log(res, 142131);
  623. this.dataImg.push(res.data.wjUrl);
  624. } catch (err) {
  625. console.log(err);
  626. }
  627. },
  628. beforeAvatarUpload(file) {
  629. console.log(file, 41231);
  630. const isJPG = file.type;
  631. const isLt2M = file.size / 1024 / 1024 < 2;
  632. if (!isLt2M) {
  633. this.$message.error("上传头像图片大小不能超过 2MB!");
  634. }
  635. return isJPG && isLt2M;
  636. },
  637. // 开本流程新增
  638. handleAddK() {
  639. this.ruleForm.processesList.push({
  640. title: "",
  641. code: "",
  642. introduction: "",
  643. sort: ""
  644. });
  645. },
  646. // 开本流程删除
  647. Del(index) {
  648. this.ruleForm.processesList.splice(index, 1);
  649. },
  650. // 图片预览
  651. dialogimg(e) {
  652. console.log(e);
  653. this.dialogVisible = true;
  654. this.dialogImageUrl = this.ruleForm.imgUrls[e];
  655. },
  656. // 图片删除
  657. deldialogimg(index) {
  658. this.ruleForm.imgUrls.splice(index, 1);
  659. var img = this.ruleForm.imgUrl[index];
  660. // proUpdate({ wjUrl: img }).then((res) => {
  661. // if (res.code == 200) {
  662. // that.back();
  663. // }
  664. // });
  665. },
  666. changeImg(val) {
  667. this.radioImg = val;
  668. },
  669. changeMusic(val) {
  670. this.radioMusic = val;
  671. },
  672. changeVideo(val) {
  673. this.radioVideo = val;
  674. },
  675. //新增图片资源
  676. handleAddImg(){
  677. this.ruleForm.radioImg.push({
  678. title: "",
  679. url: "",
  680. processId:'',
  681. mediaType:1,
  682. sourceType:this.radioImg
  683. });
  684. },
  685. handleAddMusic() {
  686. this.ruleForm.radioMusic.push({
  687. title: "",
  688. url: "",
  689. processId:'',
  690. mediaType:2,
  691. sourceType:this.radioMusic
  692. });
  693. },
  694. handleAddVideo() {
  695. this.ruleForm.radioVideo.push({
  696. title: "",
  697. url: "",
  698. processId:'',
  699. mediaType:3,
  700. sourceType:this.radioVideo
  701. });
  702. }
  703. }
  704. };
  705. </script>
  706. <style scoped>
  707. .content {
  708. background: #fff;
  709. margin-top: 15px;
  710. }
  711. .add-button {
  712. margin-top: 15px;
  713. }
  714. /deep/ .el-input__inner {
  715. height: 30px;
  716. }
  717. .search-button {
  718. display: flex;
  719. }
  720. .form-title {
  721. margin-left: 30px;
  722. padding-bottom: 10px;
  723. border-bottom: 1px solid #000;
  724. }
  725. /deep/ .avatar-uploader .el-upload {
  726. border: 1px dashed #000;
  727. border-radius: 6px;
  728. cursor: pointer;
  729. position: relative;
  730. overflow: hidden;
  731. }
  732. /deep/ .avatar-uploader .el-upload:hover {
  733. border-color: #409eff;
  734. }
  735. .avatar-uploader-icon {
  736. font-size: 28px;
  737. color: #8c939d;
  738. width: 178px;
  739. height: 178px;
  740. line-height: 178px;
  741. text-align: center;
  742. }
  743. .avatar {
  744. width: 178px;
  745. height: 178px;
  746. display: block;
  747. }
  748. .urlTable /deep/ .el-form-item__content {
  749. width: 100%;
  750. }
  751. </style>