Commit df448725 by ‘july-fu’

feat: 企业中台服务清单

1 parent 08eef855
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
</div> </div>
</template> </template>
<script> <script>
import { serverTypeOptions, abilitySourceOptions, midGroundNameOptions, midGroundTypeOptions } from '../options.js' import { stateOptions, serverTypeOptions, abilitySourceOptions, midGroundNameOptions, midGroundTypeOptions } from '../options.js'
import { getServiceList } from '@/api/comCenterServeListNew' import { getServiceList } from '@/api/comCenterServeListNew'
import EditService from './editService.vue' import EditService from './editService.vue'
import ETable from "@/newComponents/ETable/index.vue"; import ETable from "@/newComponents/ETable/index.vue";
...@@ -221,7 +221,6 @@ export default { ...@@ -221,7 +221,6 @@ export default {
showOverflowTooltip: true, showOverflowTooltip: true,
align: "center", align: "center",
render: (h, params) => { render: (h, params) => {
console.log('midGroundNameOptions', midGroundNameOptions)
return h("span", {}, params.midGroundType ? midGroundNameOptions[params.midGroundType - 1].label : '--'); return h("span", {}, params.midGroundType ? midGroundNameOptions[params.midGroundType - 1].label : '--');
}, },
}, },
...@@ -304,6 +303,9 @@ export default { ...@@ -304,6 +303,9 @@ export default {
minWidth: 120, minWidth: 120,
showOverflowTooltip: true, showOverflowTooltip: true,
align: "center", align: "center",
render: (h, params) => {
return h("span", {}, params.state === 0 ? stateOptions[0].label : params.state > 0 ? stateOptions[params.state].label : '--');
},
}, },
// { // {
// label: "操作", // label: "操作",
......
...@@ -96,3 +96,17 @@ export const midGroundTypeOptions = [ ...@@ -96,3 +96,17 @@ export const midGroundTypeOptions = [
value: "技术中台", value: "技术中台",
}, },
]; ];
export const stateOptions = [
{
label: "已停用",
value: 0,
},
{
label: "已发布",
value: 1,
},
{
label: "暂存",
value: 2,
},
];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!