add 资金管理
This commit is contained in:
@@ -138,26 +138,6 @@ const on_status = (row: any) => {
|
||||
|
||||
const init = () => {
|
||||
on_list()
|
||||
|
||||
get_strategy_load_files().then(res => {
|
||||
store.$patch({ class_names: res.data.class_names })
|
||||
}).catch(error => {
|
||||
ElMessage({
|
||||
message: h('p', null, [
|
||||
h('i', { style: 'color: teal' }, "读取策略文件失败"),
|
||||
]),
|
||||
})
|
||||
})
|
||||
|
||||
get_vt_symbols().then(res => {
|
||||
store.$patch({ vt_symbols: res.data.vt_symbols })
|
||||
}).catch(error => {
|
||||
ElMessage({
|
||||
message: h('p', null, [
|
||||
h('i', { style: 'color: teal' }, "读取vt_symbols失败"),
|
||||
]),
|
||||
})
|
||||
})
|
||||
}
|
||||
// init process
|
||||
init()
|
||||
|
||||
@@ -21,15 +21,44 @@
|
||||
<el-table-column type="index" label="index" width="80" />
|
||||
<el-table-column prop="file_name" label="策略文件名" width="200" />
|
||||
<el-table-column prop="class_name" label="策略类名" width="200" />
|
||||
<el-table-column prop="status" label="状态" width="180" />
|
||||
<el-table-column prop="facvion" label="图标" width="60" />
|
||||
<el-table-column class="click-icon" prop="url" label="操作">
|
||||
<el-table-column prop="status" label="状态" width="60">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.status == 0" style="cursor: pointer" @click="on_load(scope.row)">{{ "加载图标" }}</span>
|
||||
<span v-if="scope.row.status == 0" style="cursor: pointer" @click="on_remove(scope.row)">{{ "删除" }}</span>
|
||||
<span v-if="scope.row.status == 2" style="cursor: pointer">{{ "加载中图标" }}</span>
|
||||
<span v-if="scope.row.status == 1" style="cursor: pointer" @click="on_unload(scope.row)">{{
|
||||
"卸载图标" }}</span>
|
||||
<el-icon v-if="scope.row.status == 0" :size="20">
|
||||
<InfoFilled />
|
||||
</el-icon>
|
||||
<el-icon v-if="scope.row.status == 1" :size="20" color="green">
|
||||
<SuccessFilled />
|
||||
</el-icon>
|
||||
<el-icon v-if="scope.row.status == 2" :size="20" color="gold">
|
||||
<WarningFilled />
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="url" label="加载" width="60">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.status == 0" style="cursor: pointer">
|
||||
<el-icon :size="20" @click="on_remove(scope.row)" color="blue">
|
||||
<CirclePlusFilled />
|
||||
</el-icon>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="url" label="卸载" width="60">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.status == 1" style="cursor: pointer">
|
||||
<el-icon :size="20" @click="on_remove(scope.row)" color="red">
|
||||
<RemoveFilled />
|
||||
</el-icon>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="url" label="删除" width="60">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.status == 0" style="cursor: pointer">
|
||||
<el-icon :size="20" @click="on_remove(scope.row)" color="red">
|
||||
<Delete />
|
||||
</el-icon>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
Reference in New Issue
Block a user