From b9686c7739bf131922005e86128ba9232c0313ac Mon Sep 17 00:00:00 2001 From: wangting <wangting@vci-tech.com> Date: 星期二, 17 十二月 2024 17:55:56 +0800 Subject: [PATCH] 图标管理 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue index 2d695d7..93f1e2b 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue @@ -33,12 +33,7 @@ </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> @@ -66,8 +61,8 @@ </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"> @@ -78,8 +73,8 @@ </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> @@ -224,6 +219,9 @@ this.getList(); }, methods: { + svgHtml(svgName){ + return func.getSVGByName(svgName); + }, getList() { gridStatus(this.page.currentPage, this.page.pageSize).then(res => { const data = res.data.data; -- Gitblit v1.9.3