修改台账
This commit is contained in:
@@ -1382,7 +1382,7 @@
|
|||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="resultDialogVisible"
|
v-model="resultDialogVisible"
|
||||||
title="治理下发结果"
|
title="台账下发结果"
|
||||||
width="700px"
|
width="700px"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
|
|||||||
@@ -1,123 +1,162 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="default-main">
|
<div class="default-main">
|
||||||
<TableHeader :showReset="false">
|
<TableHeader :showReset="false">
|
||||||
<template #select>
|
<template #select>
|
||||||
|
<el-radio-group v-model.trim="tableStore.table.params.versionType" @change="tableStore.index()">
|
||||||
|
<el-radio-button label="web" value="WEB" />
|
||||||
<el-radio-group v-model.trim="tableStore.table.params.versionType" @change="tableStore.index()">
|
<el-radio-button label="app" value="APP" />
|
||||||
<el-radio-button label="web" value="WEB" />
|
</el-radio-group>
|
||||||
<el-radio-button label="app" value="APP" />
|
</template>
|
||||||
|
<template #operation>
|
||||||
</el-radio-group>
|
<el-button type="primary" icon="el-icon-Plus" @click="addMenu">新增版本</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template #operation>
|
</TableHeader>
|
||||||
<el-button type="primary" icon="el-icon-Plus" @click="addMenu">新增版本</el-button>
|
<Table ref="tableRef">
|
||||||
</template>
|
<template v-slot:columns>
|
||||||
</TableHeader>
|
<vxe-column
|
||||||
<Table ref="tableRef" />
|
field="AndroidPath"
|
||||||
<el-dialog width="600px" v-model.trim="dialogVisible" title="新增版本">
|
title="Android路径"
|
||||||
<el-form :inline="false" :model="form" label-width="auto" class="form-one">
|
width="250px"
|
||||||
<el-form-item label="版本号">
|
v-if="tableStore.table.params.versionType == 'APP'"
|
||||||
<el-input maxlength="32" show-word-limit v-model.trim="form.appVersion" placeholder="请输入版本号" />
|
></vxe-column>
|
||||||
</el-form-item>
|
<vxe-column
|
||||||
<el-form-item label="整改内容">
|
field="IOSPath"
|
||||||
<el-input maxlength="300" type="textarea" show-word-limit v-model.trim="form.content"
|
title="IOS路径"
|
||||||
placeholder="请输入整改内容" />
|
width="250px"
|
||||||
</el-form-item>
|
v-if="tableStore.table.params.versionType == 'APP'"
|
||||||
<el-form-item label="发布类型">
|
></vxe-column>
|
||||||
|
</template>
|
||||||
<el-select v-model.trim="form.sev" placeholder="请选择发布类型">
|
</Table>
|
||||||
<el-option label="优化" :value="0" />
|
<el-dialog width="600px" v-model.trim="dialogVisible" title="新增版本">
|
||||||
<el-option label="bug调整" :value="1" />
|
<el-form :inline="false" :model="form" ref="formRef" label-width="auto" class="form-one" :rules="rules">
|
||||||
</el-select>
|
<el-form-item label="版本号:" prop="appVersion">
|
||||||
</el-form-item>
|
<el-input
|
||||||
<el-form-item label="版本类型">
|
maxlength="32"
|
||||||
|
show-word-limit
|
||||||
<el-select v-model.trim="form.versionType" placeholder="请选择版本类型">
|
v-model.trim="form.appVersion"
|
||||||
<el-option label="web" value="WEB" />
|
placeholder="请输入版本号"
|
||||||
<el-option label="app" value="APP" />
|
/>
|
||||||
</el-select>
|
</el-form-item>
|
||||||
</el-form-item>
|
<el-form-item label="整改内容:">
|
||||||
</el-form>
|
<el-input
|
||||||
|
maxlength="300"
|
||||||
<template #footer>
|
type="textarea"
|
||||||
<span class="dialog-footer">
|
show-word-limit
|
||||||
<el-button @click="dialogVisible = false">取消</el-button>
|
v-model.trim="form.content"
|
||||||
<el-button type="primary" @click="submit">确认</el-button>
|
placeholder="请输入整改内容"
|
||||||
</span>
|
/>
|
||||||
</template>
|
</el-form-item>
|
||||||
</el-dialog>
|
<el-form-item label="发布类型:">
|
||||||
</div>
|
<el-select v-model.trim="form.sev" placeholder="请选择发布类型">
|
||||||
</template>
|
<el-option label="优化" :value="0" />
|
||||||
<script setup lang="ts">
|
<el-option label="bug调整" :value="1" />
|
||||||
import { ref, onMounted, provide } from 'vue'
|
</el-select>
|
||||||
import TableStore from '@/utils/tableStore'
|
</el-form-item>
|
||||||
import Table from '@/components/table/index.vue'
|
<el-form-item label="版本类型:">
|
||||||
import TableHeader from '@/components/table/header/index.vue'
|
<el-select v-model.trim="form.versionType" placeholder="请选择版本类型">
|
||||||
import { useDictData } from '@/stores/dictData'
|
<el-option label="web" value="WEB" />
|
||||||
import { ElMessage } from 'element-plus'
|
<el-option label="app" value="APP" />
|
||||||
import { addVersion } from '@/api/systerm'
|
</el-select>
|
||||||
import router from '@/router/index'
|
</el-form-item>
|
||||||
const dialogVisible = ref(false)
|
<el-form-item label="Android路径:" prop="AndroidPath" v-if="form.versionType == 'APP'">
|
||||||
const form = ref({
|
<el-input v-model.trim="form.AndroidPath" placeholder="请输入Android路径" />
|
||||||
appVersion: '',
|
</el-form-item>
|
||||||
content: '',
|
<el-form-item label="IOS路径:" prop="IOSPath" v-if="form.versionType == 'APP'">
|
||||||
versionType: '',
|
<el-input v-model.trim="form.IOSPath" placeholder="请输入IOS路径" />
|
||||||
sev: '',
|
</el-form-item>
|
||||||
})
|
</el-form>
|
||||||
const tableStore = new TableStore({
|
|
||||||
url: '/cs-system-boot/appVersion/getAllData',
|
<template #footer>
|
||||||
method: 'POST',
|
<span class="dialog-footer">
|
||||||
showPage: false,
|
<el-button @click="dialogVisible = false">取消</el-button>
|
||||||
paramsPOST: true,
|
<el-button type="primary" @click="submit">确认</el-button>
|
||||||
column: [
|
</span>
|
||||||
{
|
</template>
|
||||||
title: '序号', width: 80, formatter: (row: any) => {
|
</el-dialog>
|
||||||
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
</div>
|
||||||
}
|
</template>
|
||||||
},
|
<script setup lang="ts">
|
||||||
{ title: '版本号', field: 'versionName', width: '150' },
|
import { ref, onMounted, provide } from 'vue'
|
||||||
|
import TableStore from '@/utils/tableStore'
|
||||||
{ title: '创建时间', field: 'createTime', width: '220', sortable: true },
|
import Table from '@/components/table/index.vue'
|
||||||
{
|
import TableHeader from '@/components/table/header/index.vue'
|
||||||
title: '发布类型', field: 'sev', formatter: (row,) => {
|
import { useDictData } from '@/stores/dictData'
|
||||||
return row.cellValue == 0 ? '优化' : 'bug调整'
|
import { ElMessage } from 'element-plus'
|
||||||
},
|
import { addVersion } from '@/api/systerm'
|
||||||
width: '150'
|
import router from '@/router/index'
|
||||||
},
|
const dialogVisible = ref(false)
|
||||||
{ title: '整改内容', field: 'content' },
|
const form = ref({
|
||||||
|
appVersion: '',
|
||||||
|
content: '',
|
||||||
|
versionType: '',
|
||||||
|
sev: '',
|
||||||
],
|
AndroidPath: '',
|
||||||
})
|
IOSPath: ''
|
||||||
tableStore.table.params.versionType = 'WEB'
|
})
|
||||||
provide('tableStore', tableStore)
|
const rules = {
|
||||||
|
appVersion: [{ required: true, message: '请输入版本号', trigger: 'blur' }],
|
||||||
onMounted(async () => {
|
AndroidPath: [{ required: true, message: '请输入Android路径', trigger: 'blur' }],
|
||||||
tableStore.index()
|
IOSPath: [{ required: true, message: '请输入IOS路径', trigger: 'blur' }]
|
||||||
// await queryByCode('Direct_Connected_Device').then((res) => {
|
}
|
||||||
// queryByid(res.data.id).then((res) => {
|
const formRef = ref()
|
||||||
// DevTypeOptions.value = res.data
|
const tableStore = new TableStore({
|
||||||
// })
|
url: '/cs-system-boot/appVersion/getAllData',
|
||||||
// })
|
method: 'POST',
|
||||||
// tableStore.table.params.devType = ''
|
showPage: false,
|
||||||
})
|
paramsPOST: true,
|
||||||
const submit = () => {
|
column: [
|
||||||
addVersion(form.value).then(res => {
|
{
|
||||||
ElMessage.success('新增成功')
|
title: '序号',
|
||||||
tableStore.index()
|
width: 80,
|
||||||
dialogVisible.value = false
|
formatter: (row: any) => {
|
||||||
router.go(0)
|
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
||||||
})
|
}
|
||||||
}
|
},
|
||||||
const addMenu = () => {
|
{ title: '版本号', field: 'versionName', width: '150' },
|
||||||
dialogVisible.value = true
|
{ title: '创建时间', field: 'createTime', width: '220', sortable: true },
|
||||||
form.value.appVersion = tableStore.table.data[0].versionName || ''
|
{
|
||||||
form.value.content = ''
|
title: '发布类型',
|
||||||
form.value.sev = tableStore.table.data[0].sev || 0
|
field: 'sev',
|
||||||
form.value.versionType = tableStore.table.data[0].versionType || 'WEB'
|
formatter: row => {
|
||||||
}
|
return row.cellValue == 0 ? '优化' : 'bug调整'
|
||||||
|
},
|
||||||
</script>
|
width: '150'
|
||||||
|
},
|
||||||
|
{ title: '整改内容', field: 'content' }
|
||||||
|
],
|
||||||
|
beforeSearchFun: () => {
|
||||||
|
// console.log("🚀 ~ tableStore.table.params:", tableStore.table)
|
||||||
|
// if (tableStore.table.params.versionType == 'APP') {
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
tableStore.table.params.versionType = 'WEB'
|
||||||
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
tableStore.index()
|
||||||
|
// await queryByCode('Direct_Connected_Device').then((res) => {
|
||||||
|
// queryByid(res.data.id).then((res) => {
|
||||||
|
// DevTypeOptions.value = res.data
|
||||||
|
// })
|
||||||
|
// })
|
||||||
|
// tableStore.table.params.devType = ''
|
||||||
|
})
|
||||||
|
const submit = async () => {
|
||||||
|
await formRef.value.validate()
|
||||||
|
console.log(123)
|
||||||
|
addVersion(form.value).then(res => {
|
||||||
|
ElMessage.success('新增成功')
|
||||||
|
tableStore.index()
|
||||||
|
dialogVisible.value = false
|
||||||
|
router.go(0)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const addMenu = async () => {
|
||||||
|
dialogVisible.value = true
|
||||||
|
form.value.appVersion = tableStore.table.data[0].versionName || ''
|
||||||
|
form.value.content = ''
|
||||||
|
form.value.sev = tableStore.table.data[0].sev || 0
|
||||||
|
form.value.versionType = tableStore.table.data[0].versionType || 'WEB'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user