| | |
| | | </template> |
| | | |
| | | <template #icon="{ row }"> |
| | | <span class="avue-icon avue-icon--small" style="display: block"> |
| | | <svg v-if="row.imagePath && row.imagePath.indexOf('#')==0" aria-hidden="true"> |
| | | <use :xlink:href="row.imagePath"></use> |
| | | </svg> |
| | | <i v-else :class="row.imagePath"></i> |
| | | </span> |
| | | <span v-html="svgHtml(row.imagePath )"></span> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="图标:" prop="imagePath"> |
| | | <avue-input-icon v-model="form.imagePath" :icon-list="iconList" placeholder="请选择图标"> |
| | | </avue-input-icon> |
| | | <input-icon v-model="form.imagePath" placeholder="请选择图标"> |
| | | </input-icon> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="addSaveHandler">确 定</el-button> |
| | | <el-button @click="visibleCloseHandler">取 消</el-button> |
| | | <el-button size="small" type="primary" @click="addSaveHandler">确 定</el-button> |
| | | <el-button size="small" @click="visibleCloseHandler">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | svgHtml(svgName){ |
| | | return func.getSVGByName(svgName); |
| | | }, |
| | | getList() { |
| | | gridStatus(this.page.currentPage, this.page.pageSize).then(res => { |
| | | const data = res.data.data; |