| | |
| | | </template> |
| | | |
| | | <template slot-scope="{ row, size }" slot="iscomment"> |
| | | <el-tag :size="size" :type="showStatus(row.iscomment, 2).type" v-text="showStatus(row.iscomment, 2).text"> |
| | | </el-tag> |
| | | <el-switch @change="iscommentInput($event, row)" v-model="row.iscomment" :active-value="'1'" |
| | | :inactive-value="'0'" active-color="#13ce66" inactive-color="#ccc"> |
| | | </el-switch> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | border: false, |
| | | border: true, |
| | | //stripe:true, |
| | | index: true, |
| | | viewBtn: false, |
| | |
| | | span: 24, |
| | | minRows: 2, |
| | | tags: true, |
| | | type: "cascader", |
| | | type: "tree", |
| | | multiple: true, |
| | | dicData: [], |
| | | rules: [{ |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | iscommentInput (e, data) { |
| | | upcomment(data.id, e).then(() => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | openEditPopup (row) { |
| | | this.$refs.DeitDiscussion.initData(row) |
| | | }, |
| | |
| | | <style> |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | }</style> |
| | | } |
| | | </style> |