|
@@ -10,9 +10,10 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
class="search-table-container--button"
|
|
class="search-table-container--button"
|
|
|
:icon="Plus"
|
|
:icon="Plus"
|
|
|
|
|
+ @click="handleAddSupplies"
|
|
|
v-if="emergencySupplyPermissions"
|
|
v-if="emergencySupplyPermissions"
|
|
|
- >添加物资</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ >添加物资
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
class="search-table-container--button"
|
|
class="search-table-container--button"
|
|
@@ -84,6 +85,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
|
|
+ import { useRouter } from 'vue-router';
|
|
|
import { ref, reactive, onMounted } from 'vue';
|
|
import { ref, reactive, onMounted } from 'vue';
|
|
|
import { Plus } from '@element-plus/icons-vue';
|
|
import { Plus } from '@element-plus/icons-vue';
|
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
@@ -108,6 +110,7 @@
|
|
|
import { EMERGENCY_PERMISSIONS } from '@/views/emergency/src/constant';
|
|
import { EMERGENCY_PERMISSIONS } from '@/views/emergency/src/constant';
|
|
|
import { EMERGENCY_SUPPLY_STATUS } from './src/constant';
|
|
import { EMERGENCY_SUPPLY_STATUS } from './src/constant';
|
|
|
|
|
|
|
|
|
|
+ const router = useRouter();
|
|
|
const {
|
|
const {
|
|
|
emergencyEventDice,
|
|
emergencyEventDice,
|
|
|
getEmergencyEventDict,
|
|
getEmergencyEventDict,
|
|
@@ -173,6 +176,16 @@
|
|
|
inventoryTaskRef.value?.openDialog();
|
|
inventoryTaskRef.value?.openDialog();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ const defaultRouterName = 'emergency-list-info';
|
|
|
|
|
+ const handleAddSupplies = () => {
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ name: defaultRouterName,
|
|
|
|
|
+ query: {
|
|
|
|
|
+ type: 'add',
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
getEmergencyEventDict();
|
|
getEmergencyEventDict();
|
|
|
getEmergencySupplyDict();
|
|
getEmergencySupplyDict();
|