瀏覽代碼

no message

linwenxin 1 年之前
父節點
當前提交
8e596957a0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/setting/notification/announcement/index.vue

+ 2 - 2
src/views/setting/notification/announcement/index.vue

@@ -171,7 +171,7 @@ export default {
 				formItemAttributes: {
 					label: '附件',
 					prop: 'files',
-					rules: []
+					rules: this.formData.type == "A" ? [...required] : []
 				},
 				render: (h, { props, onInput }) => {
 					var { value } = props
@@ -377,7 +377,7 @@ export default {
 					this[key] = true;
 				})
 			} else {
-				getMemberList({"pageNum": 1, "pageSize": -1, type:"WORKER"} ).then(res=>{
+				getMemberList({ "pageNum": 1, "pageSize": -1, type: "WORKER" }).then(res => {
 					console.log(res.data.records)
 					this.workerList = res.data.records
 					this[key] = true;