| | |
| | | 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, |
| | |
| | | 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", |
| | |
| | | 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() { |