|
|
@@ -64,6 +64,8 @@
|
|
|
<a-button type="primary" @click="handleSubmit">确定</a-button>
|
|
|
</template>
|
|
|
</a-modal>
|
|
|
+ <!-- 申请弹出框 -->
|
|
|
+ <ApplyModal @register="registerModal" @success="applyHandleSuccess" />
|
|
|
</template>
|
|
|
<script>
|
|
|
import { defineComponent, reactive, ref, onMounted, watch, toRefs, computed, createVNode } from 'vue';
|
|
|
@@ -79,6 +81,8 @@ import { getResInCar, clearResInCar, deleteResInCar } from '/@/api/resource/plat
|
|
|
import { queryFlowInfoPage, submitExamine } from '/@/api/resource/examine';
|
|
|
//获取应用数据
|
|
|
import { list } from '/@/api/authorize/authorize';
|
|
|
+import ApplyModal from './applyModal/ApplyModal.vue';
|
|
|
+import { useModal } from '/@/components/Modal';
|
|
|
|
|
|
const props = {
|
|
|
// resId: {
|
|
|
@@ -88,8 +92,9 @@ const props = {
|
|
|
}
|
|
|
export default defineComponent({
|
|
|
name: 'modal',
|
|
|
- components: { BasicTable, TableAction, ExclamationCircleOutlined },
|
|
|
+ components: { BasicTable, TableAction, ExclamationCircleOutlined, ApplyModal },
|
|
|
props,
|
|
|
+ emits:['closeModal'],
|
|
|
setup(props, { emit }) {
|
|
|
const data = reactive({
|
|
|
width: '1440px',
|
|
|
@@ -119,6 +124,7 @@ export default defineComponent({
|
|
|
const selectAppKey = ref('')
|
|
|
const showSelectAppModal = ref(false)
|
|
|
const appOptions = []
|
|
|
+ const [registerModal, { openModal }] = useModal();
|
|
|
// 请求所有申请库中的资源
|
|
|
const getAllData = () => {
|
|
|
return new Promise((resolve) => {
|
|
|
@@ -286,8 +292,13 @@ export default defineComponent({
|
|
|
}
|
|
|
//添加申请
|
|
|
const handleAdd = () => {
|
|
|
- showSelectAppModal.value = true;
|
|
|
- selectAppKey.value = ''
|
|
|
+ // showSelectAppModal.value = true;
|
|
|
+ // selectAppKey.value = ''
|
|
|
+ var list = getSelectRowKeys();
|
|
|
+ openModal(true, {
|
|
|
+ isUpdate: false,
|
|
|
+ sqzys: list
|
|
|
+ });
|
|
|
}
|
|
|
const handleSubmit = () => {
|
|
|
queryFlowInfoPage({
|
|
|
@@ -331,6 +342,12 @@ export default defineComponent({
|
|
|
const onClose = (e) => {
|
|
|
emit('closeModal')
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 申请成功
|
|
|
+ */
|
|
|
+ function applyHandleSuccess() {
|
|
|
+ reload();
|
|
|
+ }
|
|
|
//初始化请求所需数据
|
|
|
onMounted(() => {
|
|
|
list().then(res => {
|
|
|
@@ -355,6 +372,7 @@ export default defineComponent({
|
|
|
wrapperCol: { span: 16 },
|
|
|
hasSelected,
|
|
|
...toRefs(data),
|
|
|
+ registerModal,
|
|
|
registerTable,
|
|
|
handleReset,
|
|
|
handleSearch,
|
|
|
@@ -362,7 +380,8 @@ export default defineComponent({
|
|
|
handleAdd,
|
|
|
onClose,
|
|
|
closeSelectAppModal,
|
|
|
- handleSubmit
|
|
|
+ handleSubmit,
|
|
|
+ applyHandleSuccess
|
|
|
};
|
|
|
},
|
|
|
});
|