| 
					
				 | 
			
			
				@@ -2,17 +2,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		:operationColumnWidth="200" :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		:column-parsing="columnParsing" :operation="operation" :exportList="exportList"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<el-dialog title="" width="800px" custom-class="diy-dialog" append-to-body :modal="true" :visible.sync="formDialog" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<el-dialog title="" width="500px" custom-class="diy-dialog" append-to-body :modal="true" :visible.sync="formDialog2" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			:show-close="true" :close-on-click-modal="false" :modal-append-to-body="false" :before-close="formCancel"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<zj-form-container ref="formRef" :form-data="formData" :styleSwitch="false"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<zj-form-module :title="formDialogTitles[formDialogType]" label-width="100px" :showPackUp="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					:form-data="formData" :form-items="formItems"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					:form-data="formData" :form-items="formItems2"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				</zj-form-module> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</zj-form-container> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<div slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<el-button size="mini" @click="formCancel">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				<el-button v-if="formDialogType < 2" size="mini" type="primary" @click="formConfirm('NO')">保存</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				<el-button v-if="formDialogType < 2" size="mini" type="primary" @click="formConfirm('YES')">发布</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</template-page> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,16 +30,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			// 事件组合 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			optionsEvensGroup: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				[ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					[ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							name: '新建', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							click: this.addData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			optionsEvensGroup: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			// 表格属性 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			tableAttributes: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				// 启用勾选列 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -57,6 +46,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			formDialogType: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			formDialogTitles: ["新增", "编辑", "详情"], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			formDialog: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			formDialog2: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			formData: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				type: "A", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				title: "", 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -75,73 +65,34 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		moreParameters() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		formItems() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			console.log(this.$store.state.app) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		formItems2() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return [{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				md: 24, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				isShow: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				name: 'el-radio', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				options: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						label: `活动`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						value: "A" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						label: `公告`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						value: "B" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					}], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				attributes: { filterable: true, placeholder: '请选择', disabled: this.formDialogType == 2 }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				name: 'slot-component', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				formItemAttributes: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					label: '类型', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					prop: 'type', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					rules: [...required] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					label: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					'label-width': "0px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				render: (h, { props, onInput }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					var { value } = props 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					return <div>类型:{({ A: "活动", B: "公告" })[value]}</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				md: 24, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				isShow: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				name: 'el-input', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				attributes: { placeholder: '请输入', disabled: this.formDialogType == 2 }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				name: 'slot-component', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				attributes: { placeholder: '请输入', disabled: true }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				formItemAttributes: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					label: '标题', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					prop: 'title', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					rules: [...required] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				md: 24, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				isShow: this.formDialogType < 2 && JSON.parse(localStorage.getItem("greemall_user")).type == 2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				name: 'zj-paging-pull-down', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				options: this.websitList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				attributes: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					valueKey: "companyWechatId", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					labelKey: "companyName", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					size: 'mini', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					placeholder: '请选择', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					multiple: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					label: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					'label-width': "0px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				formItemAttributes: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					label: '选择商户', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					prop: 'adminWebsitIds', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					rules: [...required] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				md: 24, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				isShow: this.formDialogType < 2 && JSON.parse(localStorage.getItem("greemall_user")).type != 2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				name: 'zj-paging-pull-down', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				options: this.workerList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				attributes: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					valueKey: "id", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					labelKey: "nickName", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					size: 'mini', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					placeholder: '请选择', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					multiple: true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				formItemAttributes: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					label: '选择师傅', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					prop: 'workerIds', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					rules: [...required] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				render: (h, { props, onInput }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					var { value } = props 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					return <div>标题:{value}</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -149,15 +100,13 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				isShow: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				name: 'slot-component', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				formItemAttributes: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					label: '附件', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					prop: 'files', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					rules: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					prop: 'content', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					label: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					'label-width': "0px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				render: (h, { props, onInput }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					var { value } = props 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					return ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						<ImageUpload fileList={this.formData.files} uid="idcardUpUrl_drawing_aiuh" limit={100} isEdit={this.formDialogType !== 2} /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					return <div domPropsInnerHTML={value}></div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			{ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -165,14 +114,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				isShow: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				name: 'slot-component', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				formItemAttributes: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					label: '内容', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					prop: 'content', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					rules: [...required] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					prop: 'files', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					label: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					'label-width': "0px" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				render: (h, { props, onInput }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					var { value } = props 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					return ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						<v-quill-editor value={value} onInput={onInput} disabled={this.formDialogType == 2} /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<ImageUpload fileList={this.formData.files} uid="idcardUpUrl_drawing_aiuh888" limit={100} isEdit={false} /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}] 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -206,25 +155,21 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							})) : [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.formDialogType = 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						this.openForm() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						this.openForm('formDialog2') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}}>查看</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</div>) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		addData() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			this.formDialogType = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			this.openForm() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		openForm() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		openForm(key = 'formDialog') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			if (JSON.parse(localStorage.getItem("greemall_user")).type == 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				getListaa({ pageNum: 1, pageSize: -1, type: 1 }).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					this.websitList = res.data.records 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					this.formDialog = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					this[key] = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				memberListPageV2({ "pageNum": 1, "pageSize": -1, "params": [] }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					this.workerList = res.data.records 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					this.formDialog = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					this[key] = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -232,6 +177,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			this.$refs.formRef.$refs.inlineForm.clearValidate() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			this.$data.formData = this.$options.data().formData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			this.formDialog = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			this.formDialog2 = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			this.websitList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 |