From 9a2daf35d2ef820e3e5bd81dc5d68f026016d65e Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Sat, 21 Aug 2021 22:18:47 +0800
Subject: [PATCH] 问题修复
---
src/views/article/article.vue | 46 ++++++++++++++++++++++++++++++++++++++++++++--
vue.config.js | 5 ++---
2 files changed, 46 insertions(+), 5 deletions(-)
diff --git a/src/views/article/article.vue b/src/views/article/article.vue
index 6053a4e..3d1a97d 100644
--- a/src/views/article/article.vue
+++ b/src/views/article/article.vue
@@ -118,13 +118,14 @@
editDisplay: true,
viewDisplay: true,
searchSpan: 3,
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=articleType",
+ checkStrictly: true,
+ dicUrl: "/api/blade-system/dict-biz/child-list?parentId=1411214799056932865",
props: {
label: "dictValue",
value: "dictKey",
},
search: true,
- type: "select",
+ type: "tree",
rules: [
{
required: true,
@@ -164,6 +165,23 @@
valueFormat: "yyyy-MM-dd HH:mm:ss",
},
{
+ label: "视频",
+ prop: "videoUrl",
+ dataType: "array",
+ type: "upload",
+ accept: "video/mp4",
+ display: true,
+ hide: true,
+ viewDisplay: true,
+ editDisabled: true,
+ listType: "picture",
+ action: "http://web.byisf.com:82/blade-jfpts/depl/put-depl",
+ propsHttp: {
+ res: "data",
+ url: "link",
+ },
+ },
+ {
label: "资讯内容",
prop: "content",
component: "AvueUeditor",
@@ -186,6 +204,30 @@
data: [],
};
},
+ watch: {
+ "form.articleType": {
+ handler(val) {
+ var videoUrl = this.findObject(this.option.column, "videoUrl");
+ var content = this.findObject(this.option.column, "content");
+ if (val === "2" || val === "2001"|| val === "2002"|| val === "2003") {
+ videoUrl.display = true;
+ content.display = false;
+ videoUrl.rules = [
+ {
+ required: true,
+ message: "请选择视频",
+ trigger: "blur",
+ },
+ ];
+ } else {
+ videoUrl.display = false;
+ content.display = true;
+ videoUrl.rules = [];
+ }
+ },
+ immediate: true,
+ }
+ },
computed: {
...mapGetters(["permission"]),
permissionList() {
diff --git a/vue.config.js b/vue.config.js
index 3512ad2..60f005a 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -40,9 +40,8 @@
// target: 'http://192.168.0.114:82/',
// target: 'http://192.168.0.111:83/',
//target: 'http://localhost:82/',
- //target: 'http://s16s652780.51mypc.cn/api/',
- //target: 'http://223.82.109.183:83/',
- target: 'http://localhost:82/',
+ //target: 'http://223.82.109.183:2082/api/',
+ target: 'http://localhost:83/',
//target: 'https://web.byisf.com/api/',
//远程演示服务地址,可用于直接启动项目
//target: 'https://saber.bladex.vip/api',
--
Gitblit v1.9.3