|
|
@@ -22,46 +22,48 @@
|
|
|
</template>
|
|
|
<!-- 表格操作栏 -->
|
|
|
<template #action="{ record }">
|
|
|
- <TableAction :actions="[
|
|
|
- {
|
|
|
- label: '浏览',
|
|
|
- // auth: 'api:yt:role:saveOrUpdateRoleInfoWithMenu:update',
|
|
|
- icon: '', //'clarity:note-edit-line', //图标
|
|
|
- onClick: viewScene.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '查看',
|
|
|
- //auth: 'api:yt:role:saveOrUpdateRoleInfoWithMenu:update',
|
|
|
- icon: '', //'clarity:note-edit-line',
|
|
|
- onClick: handleView.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '编辑',
|
|
|
- //auth: 'api:yt:role:saveOrUpdateRoleInfoWithMenu:update',
|
|
|
- icon: '', //'clarity:note-edit-line',
|
|
|
- //color: 'warning',
|
|
|
- ifShow: props.isChild,
|
|
|
- disabled: record.status == 3 ? false : true,
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '提交审核',
|
|
|
- icon: '',
|
|
|
- //color: 'warning',
|
|
|
- ifShow: props.isChild,
|
|
|
- disabled: record.status == 3 ? false : true,
|
|
|
- onClick: sendApprove.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- label: '删除',
|
|
|
- //auth: 'api:yt:role:delete',
|
|
|
- icon: '', //'ant-design:delete-outlined',
|
|
|
- //color: 'error',
|
|
|
- ifShow: props.isChild,
|
|
|
- disabled: record.status == 3 ? false : true,
|
|
|
- onClick: handleDelete.bind(null, record),
|
|
|
- },
|
|
|
- ]" />
|
|
|
+ <TableAction
|
|
|
+ :actions="[
|
|
|
+ {
|
|
|
+ label: '浏览',
|
|
|
+ // auth: 'api:yt:role:saveOrUpdateRoleInfoWithMenu:update',
|
|
|
+ icon: '', //'clarity:note-edit-line', //图标
|
|
|
+ onClick: viewScene.bind(null, record),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '查看',
|
|
|
+ //auth: 'api:yt:role:saveOrUpdateRoleInfoWithMenu:update',
|
|
|
+ icon: '', //'clarity:note-edit-line',
|
|
|
+ onClick: handleView.bind(null, record),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '编辑',
|
|
|
+ //auth: 'api:yt:role:saveOrUpdateRoleInfoWithMenu:update',
|
|
|
+ icon: '', //'clarity:note-edit-line',
|
|
|
+ //color: 'warning',
|
|
|
+ ifShow: props.isChild,
|
|
|
+ disabled: record.status == 3 ? false : true,
|
|
|
+ onClick: handleEdit.bind(null, record),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '提交审核',
|
|
|
+ icon: '',
|
|
|
+ //color: 'warning',
|
|
|
+ ifShow: props.isChild,
|
|
|
+ disabled: record.status == 3 ? false : true,
|
|
|
+ onClick: sendApprove.bind(null, record),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '删除',
|
|
|
+ //auth: 'api:yt:role:delete',
|
|
|
+ icon: '', //'ant-design:delete-outlined',
|
|
|
+ //color: 'error',
|
|
|
+ ifShow: props.isChild,
|
|
|
+ disabled: record.status == 3 ? false : true,
|
|
|
+ onClick: handleDelete.bind(null, record),
|
|
|
+ },
|
|
|
+ ]"
|
|
|
+ />
|
|
|
</template>
|
|
|
<template #pdate="{ record }">
|
|
|
<Tag>
|
|
|
@@ -153,7 +155,7 @@ export default defineComponent({
|
|
|
isChild: {
|
|
|
type: Boolean,
|
|
|
default: true,
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
setup(props) {
|
|
|
const moment = Moment;
|
|
|
@@ -233,6 +235,7 @@ export default defineComponent({
|
|
|
function viewScene(record) {
|
|
|
window.open(
|
|
|
`http://192.168.119.143:8080/onemapV5.0/sceneview.html?${record.serviceid}`,
|
|
|
+ // `http://106.12.170.138:8080/onemapV5.0/sceneview.html?${record.serviceid}`,
|
|
|
'target',
|
|
|
''
|
|
|
);
|
|
|
@@ -249,7 +252,7 @@ export default defineComponent({
|
|
|
const res = await queryResourceById(record?.serviceid);
|
|
|
if (res) {
|
|
|
let result = Object.assign(res.metadata, res.servicebase);
|
|
|
- result['flowid'] = record?.flowid
|
|
|
+ result['flowid'] = record?.flowid;
|
|
|
if (record.bussid) result.bussid = record.bussid;
|
|
|
openModal(true, {
|
|
|
record: result,
|
|
|
@@ -263,7 +266,7 @@ export default defineComponent({
|
|
|
const res = await queryResourceById(record?.serviceid);
|
|
|
if (res) {
|
|
|
let result = Object.assign(res.metadata, res.servicebase);
|
|
|
- result['flowid'] = record?.flowid
|
|
|
+ result['flowid'] = record?.flowid;
|
|
|
if (record.bussid) result.bussid = record.bussid;
|
|
|
openModal(true, {
|
|
|
record: result,
|
|
|
@@ -300,7 +303,7 @@ export default defineComponent({
|
|
|
if (flowRes && flowRes.length) {
|
|
|
var flow = flowRes.filter((i) => i.FLOWNAME === '场景资源上传');
|
|
|
if (flow.length) {
|
|
|
- params.bussInfo.flowid = flow[0].id //流程id
|
|
|
+ params.bussInfo.flowid = flow[0].id; //流程id
|
|
|
submitExamine(params).then((res) => {
|
|
|
if (res.resp_code === 0 && res.resp_msg === '提交成功') {
|
|
|
message.success('申请成功');
|
|
|
@@ -336,7 +339,7 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
//获取流程信息
|
|
|
-
|
|
|
+
|
|
|
function getFlowInfo(id) {
|
|
|
return new Promise((resolve) => {
|
|
|
queryFlowInfoPage({
|