模型里内置数据只能查看

master
yujialong 7 months ago
parent 5723015aa5
commit 4967b00c9b
  1. 2
      .env
  2. 35
      src/views/product/afterLoan/1029/Index.vue
  3. 35
      src/views/product/afterLoan/1030/Index.vue
  4. 35
      src/views/product/afterLoan/1031/Index.vue
  5. 35
      src/views/product/afterLoan/1032/Index.vue
  6. 3
      src/views/product/afterLoan/1033/Detail.vue
  7. 35
      src/views/product/afterLoan/1033/Index.vue
  8. 35
      src/views/product/interestRate/772/Index.vue
  9. 35
      src/views/product/interestRate/935/Index.vue
  10. 35
      src/views/product/interestRate/936/Index.vue
  11. 35
      src/views/product/strategy/150/Index.vue
  12. 35
      src/views/product/strategy/151/Index.vue
  13. 35
      src/views/product/strategy/152/Index.vue
  14. 35
      src/views/product/strategy/153/Index.vue
  15. 36
      src/views/product/strategy/154/Index.vue
  16. 36
      src/views/product/strategy/155/Index.vue
  17. 36
      src/views/product/strategy/156/Index.vue
  18. 35
      src/views/product/strategy/512/Index.vue
  19. 35
      src/views/product/strategy/513/Index.vue

@ -2,7 +2,7 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘
VITE_PORT=9520 VITE_PORT=9520
# VITE_PROXY=http://192.168.31.125:8080 # VITE_PROXY=http://192.168.31.125:8080
VITE_PUBLIC_PATH=./ VITE_PUBLIC_PATH=./
VITE_BASE_API=http://192.168.31.217:9000 VITE_BASE_API=http://192.168.31.51:9000
# VITE_BASE_API=http://121.37.12.51 # VITE_BASE_API=http://121.37.12.51
# VITE_BASE_API=https://www.occupationlab.com # VITE_BASE_API=https://www.occupationlab.com
VITE_I18N_LOCALE=zh-cn VITE_I18N_LOCALE=zh-cn

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.strategyId])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.strategyId])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +133,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.strategyId])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.strategyId])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +133,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.strategyId])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.strategyId])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +133,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.strategyId])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.strategyId])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -128,6 +132,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -171,9 +171,10 @@ const showDia = (row: Record<string, any>) => {
}; };
// //
const addRecord = async (data: Record<string, any>) => { const addRecord = async (data: Record<string, any>) => {
const preIds = `1,${Cookies.get('sand-level')},42,69,1033,1149`; // 1id let preIds = `1,${Cookies.get('sand-level')},42,69,1033`; // 1id
const rule = [handleId(140, 28, strategyName.value, `${preIds},140`, 3)]; const rule = [handleId(140, 28, strategyName.value, `${preIds},140`, 3)];
preIds += ',1149';
data.map((e) => { data.map((e) => {
e.recordChildren.forEach((n, i) => { e.recordChildren.forEach((n, i) => {
if (i === 2) { if (i === 2) {

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.strategyId])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.strategyId])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -128,6 +132,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.id])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.id])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +133,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.id])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.id])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -128,6 +132,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.id])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.id])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -128,6 +132,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.strategyId])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.strategyId])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +133,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.strategyId])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.strategyId])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +133,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.strategyId])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.strategyId])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +133,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.strategyId])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.strategyId])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +133,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,21 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text"
@click="toDetail(row)" <template v-if="!row.builtIn">
size="small">编辑</el-button> <el-button type="text"
<el-popconfirm title="确定删除这条策略吗?" @click="toDetail(row)"
@confirm.stop="handleDelete([row.strategyId])"> size="small">编辑</el-button>
<template #reference> <el-popconfirm title="确定删除这条策略吗?"
<el-button type="text" @confirm.stop="handleDelete([row.strategyId])">
size="small">删除</el-button> <template #reference>
</template> <el-button type="text"
</el-popconfirm> size="small">删除</el-button>
</template></el-table-column> </template>
</el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +134,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,21 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text"
@click="toDetail(row)" <template v-if="!row.builtIn">
size="small">编辑</el-button> <el-button type="text"
<el-popconfirm title="确定删除这条策略吗?" @click="toDetail(row)"
@confirm.stop="handleDelete([row.strategyId])"> size="small">编辑</el-button>
<template #reference> <el-popconfirm title="确定删除这条策略吗?"
<el-button type="text" @confirm.stop="handleDelete([row.strategyId])">
size="small">删除</el-button> <template #reference>
</template> <el-button type="text"
</el-popconfirm> size="small">删除</el-button>
</template></el-table-column> </template>
</el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +134,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,21 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text"
@click="toDetail(row)" <template v-if="!row.builtIn">
size="small">编辑</el-button> <el-button type="text"
<el-popconfirm title="确定删除这条策略吗?" @click="toDetail(row)"
@confirm.stop="handleDelete([row.strategyId])"> size="small">编辑</el-button>
<template #reference> <el-popconfirm title="确定删除这条策略吗?"
<el-button type="text" @confirm.stop="handleDelete([row.strategyId])">
size="small">删除</el-button> <template #reference>
</template> <el-button type="text"
</el-popconfirm> size="small">删除</el-button>
</template></el-table-column> </template>
</el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -129,6 +134,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.id])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.id])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -128,6 +132,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

@ -32,7 +32,8 @@
:data="list" :data="list"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
<el-table-column type="selection" <el-table-column type="selection"
width="55" /> width="55"
:selectable="handleDisable" />
<el-table-column label="序号" <el-table-column label="序号"
type="index" type="index"
width="60" width="60"
@ -49,17 +50,20 @@
<el-button type="text" <el-button type="text"
@click="toDetail(row, true)" @click="toDetail(row, true)"
size="small">查看</el-button> size="small">查看</el-button>
<el-button type="text" <template v-if="!row.builtIn">
@click="toDetail(row)" <el-button type="text"
size="small">编辑</el-button> @click="toDetail(row)"
<el-popconfirm title="确定删除这条策略吗?" size="small">编辑</el-button>
@confirm.stop="handleDelete([row.id])"> <el-popconfirm title="确定删除这条策略吗?"
<template #reference> @confirm.stop="handleDelete([row.id])">
<el-button type="text" <template #reference>
size="small">删除</el-button> <el-button type="text"
</template> size="small">删除</el-button>
</el-popconfirm> </template>
</template></el-table-column> </el-popconfirm>
</template>
</template>
</el-table-column>
</el-table> </el-table>
<el-pagination v-model:currentPage="currentPage" <el-pagination v-model:currentPage="currentPage"
v-model:pageSize="pageSize" v-model:pageSize="pageSize"
@ -128,6 +132,13 @@ const initList = async () => {
watch(keyWord, initList); watch(keyWord, initList);
onMounted(getList); onMounted(getList);
//
const handleDisable = (row: Record<string, any>) => {
//
if (row.builtIn) return false;
return true;
};
// //
const handleSelectionChange = (val: Record<string, any>[]) => { const handleSelectionChange = (val: Record<string, any>[]) => {
multipleSelection.value = val; multipleSelection.value = val;

Loading…
Cancel
Save