|
@@ -15,7 +15,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-select v-model="params.status" placeholder="全部状态" clearable style="width: 160px">
|
|
|
- <el-option :value="''" label="全部状态" />
|
|
|
+ <el-option value="-1" label="全部状态" />
|
|
|
<el-option value="0" label="未发布" />
|
|
|
<el-option value="1" label="已发布" />
|
|
|
</el-select>
|
|
@@ -56,7 +56,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="createdAt" label="创建时间" align="center" width="180" />
|
|
|
- <el-table-column label="操作" align="center" width="200" fixed="right">
|
|
|
+ <el-table-column label="操作" align="center" width="220" fixed="right">
|
|
|
<template #default="scope">
|
|
|
<el-button size="small" text type="primary" v-if="scope.row.status == '0'" @click="publish(scope.row)">发布</el-button>
|
|
|
<el-button size="small" text type="warning" v-else @click="unpublish(scope.row)">取消发布</el-button>
|
|
@@ -104,7 +104,7 @@ apiSystem.getInfoByKey("sys.indicator.type.tagCode").then((res: any) => {
|
|
|
const { params, tableData, getList, loading } = useSearch(api.indicator.getList, "data", {
|
|
|
keyword: "",
|
|
|
type: "",
|
|
|
- status: "",
|
|
|
+ status: "-1",
|
|
|
});
|
|
|
|
|
|
getList();
|