| | |
| | | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <zt-dict v-model="dataForm.productType" dict="product" placeholder="请选择产品类型" clearable></zt-dict> |
| | | <zt-dict v-model="dataForm.productType" dict="product" :additional=additional placeholder="请选择产品类型" clearable></zt-dict> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <zt-button type="query" @click="table.query()"/> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="contentType" label="检索关键字"/> |
| | | <el-table-column prop="remark" label="备注"/> |
| | | <zt-table-column-dict prop="productType" label="产品类型" dict="product"/> |
| | | <zt-table-column-handle :table="table" |
| | | delete-perm="sysPictureBase::delete"/> |
| | | <zt-table-column-dict prop="productType" label="产品类型" dict="product" :additional=additional /> |
| | | <zt-table-column-handle :table="table" edit-perm="sysPictureBase::delete" |
| | | delete-perm="sysPictureBase::delete"> |
| | | <template slot-scope="scope"> |
| | | <zt-table-button size="small" type="primary" @click="edit(scope.row)">修改 |
| | | </zt-table-button> |
| | | </template> |
| | | </zt-table-column-handle> |
| | | </el-table> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <add-or-update ref="addOrUpdate" @refreshDataList="table.query"/> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | additional: [{dictValue: '20', dictLabel: '运算图元', remark: ''}], |
| | | url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`, |
| | | dataForm: { |
| | | contentType: '', |
| | |
| | | await this.$tip.success() |
| | | this.$refs.tableObj.query() |
| | | } |
| | | }, |
| | | edit(row){ |
| | | this.$refs.addOrUpdate.$refs.dialog.init(row.id,row) |
| | | } |
| | | } |
| | | } |