|
|
@@ -11,27 +11,28 @@
|
|
|
<BasicTable @register="registerTable" @fetch-success="onFetchSuccess">
|
|
|
<template #toolbar>
|
|
|
<Authority>
|
|
|
- <a-button type="primary" @click="batchExamine" :disabled="hasBatchDelete">指定IP设置</a-button>
|
|
|
+ <a-button type="primary" @click="showModal">指定IP设置</a-button>
|
|
|
+ <!-- <a-button type="primary" @click="batchExamine" :disabled="hasBatchDelete">指定IP设置</a-button> -->
|
|
|
</Authority>
|
|
|
</template>
|
|
|
|
|
|
<template #action="{ record }">
|
|
|
<TableAction :actions="[
|
|
|
{
|
|
|
- label: '浏览',
|
|
|
+ label: '指定IP设置',
|
|
|
ifShow: current == 'DR' ? false : true,
|
|
|
- onClick: handleVliew.bind(null, record),
|
|
|
+ onClick: showModal.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
- label: '查看',
|
|
|
+ label: '删除',
|
|
|
onClick: handleDetail.bind(null, record),
|
|
|
},
|
|
|
- {
|
|
|
- label: '审核',
|
|
|
- disabled: statusShow == 1 ? false : true,
|
|
|
- color: 'warning',
|
|
|
- onClick: handleEdit.bind(null, record),
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: '审核',
|
|
|
+ // disabled: statusShow == 1 ? false : true,
|
|
|
+ // color: 'warning',
|
|
|
+ // onClick: handleEdit.bind(null, record),
|
|
|
+ // },
|
|
|
]" />
|
|
|
</template>
|
|
|
<template #pdate="{ record }">
|
|
|
@@ -39,8 +40,8 @@
|
|
|
{{ record.publishdate ? moment(record.publishdate).format('YYYY-MM-DD HH:mm:ss') : '' }}
|
|
|
</a-tag>
|
|
|
</template>
|
|
|
- <template #FLOWNAME="{ record }">
|
|
|
- {{ record.FLOWNAME.replace('上传', '') }}
|
|
|
+ <template #SERVICEID="{ record }">
|
|
|
+ {{ record.SERVICEID.replace('上传', '') }}
|
|
|
</template>
|
|
|
<template #status="{ record }">
|
|
|
<a-tag :style="`color:${record.status === 3 || record.status === 3 ? 'red' : ''};`">
|
|
|
@@ -67,6 +68,13 @@
|
|
|
<ass-resource-upload v-if="!ischect && current === 'SR'" @register="registerModal"
|
|
|
@success="handleSuccess"></ass-resource-upload>
|
|
|
</div>
|
|
|
+ <a-modal v-model:visible="visible" :label-col="labelCol" :wrapper-col="wrapperCol" title="代理IP地址设置" @ok="handleOk">
|
|
|
+ <div class="wapper">
|
|
|
+ <p><span>IP地址:</span><a-input v-model:value="formState.ipaddress" /></p>
|
|
|
+ <p><span>服务ID:</span><a-input v-model:value="formState.serviceid" /></p>
|
|
|
+ </div>
|
|
|
+ <span style="clear: both;"></span>
|
|
|
+ </a-modal>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
@@ -91,10 +99,10 @@ import { RoleEnum } from '/@/enums/roleEnum';
|
|
|
import { Authority } from '/@/components/Authority';
|
|
|
import { useBatchDelete } from '/@/hooks/web/useBatchDelete';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
-import { Switch, Popconfirm } from 'ant-design-vue';
|
|
|
+import { Switch, Popconfirm, message } from 'ant-design-vue';
|
|
|
import { queryResourceById } from '/@/api/resource/map';
|
|
|
import Moment from 'moment';
|
|
|
-import { updateExamine } from '/@/api/resource/updateExamine';
|
|
|
+import { getProxyList, proxySave } from '/@/api/resource/proxy';
|
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { useAppStore } from '/@/store/modules/app';
|
|
|
@@ -124,7 +132,7 @@ export default defineComponent({
|
|
|
api: (param) => {
|
|
|
statusShow.value = param.checkStatus;
|
|
|
const data = Object.assign(param, { serviceType: current.value });
|
|
|
- return updateExamine(data);
|
|
|
+ return getProxyList(data);
|
|
|
}, //求接口
|
|
|
//dataSource: dataSources, //表格的数据
|
|
|
columns,
|
|
|
@@ -352,8 +360,39 @@ export default defineComponent({
|
|
|
console.log('审核数据', getSelectRows());
|
|
|
};
|
|
|
|
|
|
+ const visible = ref(false);
|
|
|
+
|
|
|
+ const showModal = (e) => {
|
|
|
+ visible.value = true;
|
|
|
+ if (e) formState.value.serviceid = e.SERVICEID;
|
|
|
+ };
|
|
|
+
|
|
|
+ function handleOk() {
|
|
|
+ proxySave(formState.value).then((r) => {
|
|
|
+ if (r.resp_code == 0) {
|
|
|
+ visible.value = false;
|
|
|
+ formState.value.ipaddress = '';
|
|
|
+ formState.value.serviceid = '';
|
|
|
+ message.success('保存成功');
|
|
|
+ reload();
|
|
|
+ } else {
|
|
|
+ message.error(r.resp_msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ };
|
|
|
+ const formState = ref({
|
|
|
+ ipaddress: "",
|
|
|
+ serviceid: ""
|
|
|
+ });
|
|
|
+
|
|
|
|
|
|
return {
|
|
|
+ labelCol: { span: 2 },
|
|
|
+ wrapperCol: { span: 6 },
|
|
|
+ formState,
|
|
|
+ visible,
|
|
|
+ handleOk,
|
|
|
+ showModal,
|
|
|
statusShow,
|
|
|
current,
|
|
|
moment,
|
|
|
@@ -377,6 +416,27 @@ export default defineComponent({
|
|
|
});
|
|
|
</script>
|
|
|
<style scoped lang="less">
|
|
|
+.wapper {
|
|
|
+ padding: 20px;
|
|
|
+ height: 130px;
|
|
|
+}
|
|
|
+
|
|
|
+.wapper p {
|
|
|
+ margin-bottom: 10px;
|
|
|
+ height: 43px;
|
|
|
+}
|
|
|
+
|
|
|
+.wapper p span {
|
|
|
+ float: left;
|
|
|
+ height: 32px;
|
|
|
+ line-height: 32px;
|
|
|
+}
|
|
|
+
|
|
|
+.wapper p input {
|
|
|
+ float: left;
|
|
|
+ width: 430px;
|
|
|
+}
|
|
|
+
|
|
|
.examine-container {
|
|
|
display: flex;
|
|
|
height: 100%;
|