修改敏感及重要用户台账新增提交审核按钮
This commit is contained in:
@@ -19,9 +19,10 @@ import TableHeader from '@/components/table/header/index.vue'
|
|||||||
import { libtemplateDel } from '@/api/supervision-boot/database/index'
|
import { libtemplateDel } from '@/api/supervision-boot/database/index'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import Table from '@/components/table/index.vue'
|
import Table from '@/components/table/index.vue'
|
||||||
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
import PopupEdit from './components/form.vue'
|
import PopupEdit from './components/form.vue'
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'database/case'
|
name: 'database/stencil'
|
||||||
})
|
})
|
||||||
|
|
||||||
const popupEditRef = ref()
|
const popupEditRef = ref()
|
||||||
@@ -48,7 +49,9 @@ const tableStore = new TableStore({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-Plus',
|
icon: 'el-icon-Plus',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
click: row => {}
|
click: row => {
|
||||||
|
window.open(window.location.origin + '/#/previewFile?' + row.name)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
@@ -56,7 +59,9 @@ const tableStore = new TableStore({
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'el-icon-Plus',
|
icon: 'el-icon-Plus',
|
||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
click: row => {}
|
click: row => {
|
||||||
|
downloadTheReport(row.url)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
@@ -96,6 +101,17 @@ const tableStore = new TableStore({
|
|||||||
const addUser = () => {
|
const addUser = () => {
|
||||||
popupEditRef.value.open('新增模版')
|
popupEditRef.value.open('新增模版')
|
||||||
}
|
}
|
||||||
|
// 下载报告
|
||||||
|
const downloadTheReport = (url: string) => {
|
||||||
|
// getFileNameAndFilePath({ filePath: url }).then((res: any) => {
|
||||||
|
// const link = document.createElement('a')
|
||||||
|
// link.href = res.data.url
|
||||||
|
// link.download = res.data.name
|
||||||
|
// document.body.appendChild(link)
|
||||||
|
// link.click()
|
||||||
|
// document.body.removeChild(link)
|
||||||
|
// })
|
||||||
|
}
|
||||||
|
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
@@ -560,7 +560,9 @@
|
|||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
<el-button @click="close()">取消</el-button>
|
<el-button @click="close()">取消</el-button>
|
||||||
<el-button type="primary" @click="confirmForm(true)">保存</el-button>
|
<el-button type="primary" @click="confirmForm(true)">保存</el-button>
|
||||||
<el-button type="primary" v-if="props.openType != 'create'" @click="confirmForm(false)">提交审批</el-button>
|
<el-button type="primary" v-if="props.submissionControl" @click="confirmForm(false)">
|
||||||
|
提交审批
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -599,6 +601,10 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
default: 'create'
|
default: 'create'
|
||||||
},
|
},
|
||||||
|
submissionControl: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
update: {
|
update: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
@@ -1468,7 +1474,7 @@ const confirmForm = (flag: boolean) => {
|
|||||||
} else {
|
} else {
|
||||||
confirmFormData.id = resendId.value
|
confirmFormData.id = resendId.value
|
||||||
if (controFlag.value) confirmFormData.dataType = 1
|
if (controFlag.value) confirmFormData.dataType = 1
|
||||||
console.log("🚀 ~ ruleFormRef.value.validate ~ controFlag.value:", controFlag.value)
|
console.log('🚀 ~ ruleFormRef.value.validate ~ controFlag.value:', controFlag.value)
|
||||||
console.log(123123)
|
console.log(123123)
|
||||||
if (props.normalizedControl) {
|
if (props.normalizedControl) {
|
||||||
if (title.value == '编辑') {
|
if (title.value == '编辑') {
|
||||||
@@ -1495,7 +1501,6 @@ const confirmForm = (flag: boolean) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
updateFormData(confirmFormData).then(res => {
|
updateFormData(confirmFormData).then(res => {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: '重新发起成功',
|
message: '重新发起成功',
|
||||||
@@ -1524,10 +1529,10 @@ const filterUsers = (arr: any) => {
|
|||||||
}
|
}
|
||||||
const setcontroFlag = () => {
|
const setcontroFlag = () => {
|
||||||
console.log(12333)
|
console.log(12333)
|
||||||
|
|
||||||
controFlag.value = true
|
controFlag.value = true
|
||||||
}
|
}
|
||||||
defineExpose({ open, filterUsers,setcontroFlag })
|
defineExpose({ open, filterUsers, setcontroFlag })
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.el-form {
|
.el-form {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<sensitive-user-popup ref="sensitiveUserPopup" />
|
<sensitive-user-popup ref="sensitiveUserPopup" />
|
||||||
|
|
||||||
<!-- 查看详情 detail 新增/修改 create-->
|
<!-- 查看详情 detail 新增/修改 create-->
|
||||||
<addForm ref="addForms" @onSubmit="tableStore.index()" openType="create"></addForm>
|
<addForm ref="addForms" @onSubmit="tableStore.index()" openType="create" :submissionControl="false"></addForm>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
Reference in New Issue
Block a user