| | |
| | | if (this.eventList) { |
| | | this.eventFlag= this.eventList.some(item => { |
| | | if (item.classifyInvokeEditFlag === 'true') { |
| | | console.log('even', item); |
| | | // console.log('even', item); |
| | | this.eventObject = item; |
| | | return true; |
| | | } |
| | |
| | | let value='' |
| | | formItemList.forEach((formItem) => { |
| | | formItem = this.resetFormConfig(formItem); |
| | | console.log(formItem) |
| | | // console.log(formItem) |
| | | // console.log('formItem.dicData.value',formItem.dicData) |
| | | if (formItem.type === "line") { |
| | | group.push({ |
| | |
| | | } |
| | | }) |
| | | let mapFields; |
| | | if (this.options.mapFields == "") { |
| | | if (this.options.mapFields === "") { |
| | | mapFields = this.referConfig.fieldMap; |
| | | } else { |
| | | mapFields = Object.assign(this.referConfig.fieldMap, JSON.parse(this.options.mapFields)); |
| | | mapFields = Object.assign(this.referConfig.fieldMap, this.options.mapFields); |
| | | } |
| | | this.value=value.join(','); |
| | | this.text=text.join(',') |
| | |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="dialogVisible" append-to-body title="分类授权"> |
| | | |
| | | <el-row> |
| | | <el-col :span="14"> |
| | | <avue-tree ref="tree" |
| | | :option="TreeOption" |
| | | :data="TreeData" |
| | | v-model="TreeForm" |
| | | @check-change="checkChange"> |
| | | </avue-tree> |
| | | </el-col> |
| | | </el-row> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | TreeOption:{ |
| | | defaultExpandAll: true, |
| | | multiple: true, |
| | | addBtn:false, |
| | | filter:false |
| | | }, |
| | | TreeData:[], |
| | | TreeForm:{}, |
| | | loading: false, |
| | | dialogVisible:false, |
| | | page: { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | //分类授权多选回调 |
| | | checkChange(){ |
| | | |
| | | }, |
| | | //分类授权 |
| | | classifyHandler(){ |
| | | this.dialogVisible=true; |