|
@@ -7,12 +7,13 @@
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="模板名称">
|
|
|
- <a-input v-model.trim="queryParam.templateName" allowClear placeholder="请输入模板名称"/>
|
|
|
+ <a-input id="shelfPlList-templateName" v-model.trim="queryParam.templateName" allowClear placeholder="请输入模板名称"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="模板类型">
|
|
|
<v-select
|
|
|
+ id="shelfPlList-sysFlag"
|
|
|
v-model="queryParam.sysFlag"
|
|
|
code="SHELF_TEMPLATE_SYS_FLAG"
|
|
|
placeholder="请选择模板类型"
|
|
@@ -20,14 +21,14 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px">
|
|
|
- <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="shelfSetList-refresh">查询</a-button>
|
|
|
- <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="shelfSetList-reset">重置</a-button>
|
|
|
+ <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="shelfPlList-refresh">查询</a-button>
|
|
|
+ <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="shelfPlList-reset">重置</a-button>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form>
|
|
|
</div>
|
|
|
<div class="table-operator">
|
|
|
- <a-button type="primary" class="button-error" @click="addTemp">新增</a-button>
|
|
|
+ <a-button type="primary" class="button-error" @click="addTemp" id="shelfPlList-addTemp">新增</a-button>
|
|
|
</div>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
@@ -43,19 +44,31 @@
|
|
|
bordered>
|
|
|
<!-- 模板名称 -->
|
|
|
<template slot="templateName" slot-scope="text, record">
|
|
|
- <span class="table-td-link" @click="handleDetail(record)">{{ record.templateName }}</span>
|
|
|
+ <span class="table-td-link" id="shelfPlList-links" @click="handleDetail(record)">{{ record.templateName }}</span>
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<div>
|
|
|
- <a-button size="small" v-if="record.sysFlag==0" type="link" class="button-primary" @click="addTemp(record)">更改名称</a-button>
|
|
|
- <a-button size="small" type="link" class="button-primary" @click="handleCopy(record)">复制</a-button>
|
|
|
- <a-button size="small" v-if="record.sysFlag==0" type="link" class="button-error" @click="handleCancel(record)">删除</a-button>
|
|
|
+ <a-button
|
|
|
+ id="shelfPlList-edit"
|
|
|
+ size="small"
|
|
|
+ v-if="record.sysFlag==0"
|
|
|
+ type="link"
|
|
|
+ class="button-primary"
|
|
|
+ @click="addTemp(record)">更改名称</a-button>
|
|
|
+ <a-button id="shelfPlList-copy" size="small" type="link" class="button-primary" @click="handleCopy(record)">复制</a-button>
|
|
|
+ <a-button
|
|
|
+ id="shelfPlList-del"
|
|
|
+ size="small"
|
|
|
+ v-if="record.sysFlag==0"
|
|
|
+ type="link"
|
|
|
+ class="button-error"
|
|
|
+ @click="handleCancel(record)">删除</a-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
|
- <!-- 基础设置 -->
|
|
|
+ <!-- 基础设置弹框 -->
|
|
|
<basic-info-modal :openModal="openModal" :nowData="nowData" @ok="saveOk" @close="openModal=false" />
|
|
|
</a-card>
|
|
|
</template>
|
|
@@ -104,8 +117,8 @@ export default {
|
|
|
return data
|
|
|
})
|
|
|
},
|
|
|
- openModal: false,
|
|
|
- nowData: null
|
|
|
+ openModal: false, // 打开新增编辑弹框
|
|
|
+ nowData: null // 当前操作数据
|
|
|
}
|
|
|
},
|
|
|
methods: {
|