|
@@ -28,12 +28,9 @@
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
<el-table-column type="selection" width="55" />
|
|
<el-table-column type="selection" width="55" />
|
|
- <el-table-column label="日期" width="180">
|
|
|
|
- <template #default="scope">{{ formatDate(scope.row.CreatedAt) }}</template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="区域编码" prop="CODE" />
|
|
|
|
- <el-table-column label="区域名称" prop="NAME" />
|
|
|
|
- <el-table-column label="上级区域" prop="PARENTCODE" />
|
|
|
|
|
|
+ <el-table-column label="区域编码" prop="code" />
|
|
|
|
+ <el-table-column label="区域名称" prop="name" />
|
|
|
|
+ <el-table-column label="上级区域" prop="parentcode" />
|
|
<el-table-column label="optimistic字段" prop="optimistic" />
|
|
<el-table-column label="optimistic字段" prop="optimistic" />
|
|
<el-table-column label="中心点" prop="postition" />
|
|
<el-table-column label="中心点" prop="postition" />
|
|
<el-table-column label="按钮组">
|
|
<el-table-column label="按钮组">
|
|
@@ -56,13 +53,13 @@
|
|
<el-dialog v-model="dialogFormVisible" :before-close="closeDialog" title="弹窗操作">
|
|
<el-dialog v-model="dialogFormVisible" :before-close="closeDialog" title="弹窗操作">
|
|
<el-form :model="formData" label-position="right" label-width="80px">
|
|
<el-form :model="formData" label-position="right" label-width="80px">
|
|
<el-form-item label="CODE字段:">
|
|
<el-form-item label="CODE字段:">
|
|
- <el-input v-model="formData.CODE" clearable placeholder="请输入" />
|
|
|
|
|
|
+ <el-input v-model="formData.code" clearable placeholder="请输入" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="NAME字段:">
|
|
<el-form-item label="NAME字段:">
|
|
- <el-input v-model="formData.NAME" clearable placeholder="请输入" />
|
|
|
|
|
|
+ <el-input v-model="formData.name" clearable placeholder="请输入" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="PARENTCODE字段:">
|
|
<el-form-item label="PARENTCODE字段:">
|
|
- <el-input v-model="formData.PARENTCODE" clearable placeholder="请输入" />
|
|
|
|
|
|
+ <el-input v-model="formData.parentcode" clearable placeholder="请输入" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="optimistic字段:">
|
|
<el-form-item label="optimistic字段:">
|
|
<el-input v-model.number="formData.optimistic" clearable placeholder="请输入" />
|
|
<el-input v-model.number="formData.optimistic" clearable placeholder="请输入" />
|
|
@@ -99,9 +96,9 @@ export default {
|
|
deleteVisible: false,
|
|
deleteVisible: false,
|
|
multipleSelection: [],
|
|
multipleSelection: [],
|
|
formData: {
|
|
formData: {
|
|
- CODE: '',
|
|
|
|
- NAME: '',
|
|
|
|
- PARENTCODE: '',
|
|
|
|
|
|
+ code: '',
|
|
|
|
+ name: '',
|
|
|
|
+ parentcode: '',
|
|
optimistic: 0,
|
|
optimistic: 0,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -155,7 +152,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async updateOrganization(row) {
|
|
async updateOrganization(row) {
|
|
- const res = await findOrganization({ ID: row.ID })
|
|
|
|
|
|
+ const res = await findOrganization({ code: row.code })
|
|
this.type = 'update'
|
|
this.type = 'update'
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
this.formData = res.data.reorganization
|
|
this.formData = res.data.reorganization
|
|
@@ -165,14 +162,14 @@ export default {
|
|
closeDialog() {
|
|
closeDialog() {
|
|
this.dialogFormVisible = false
|
|
this.dialogFormVisible = false
|
|
this.formData = {
|
|
this.formData = {
|
|
- CODE: '',
|
|
|
|
- NAME: '',
|
|
|
|
- PARENTCODE: '',
|
|
|
|
|
|
+ code: '',
|
|
|
|
+ name: '',
|
|
|
|
+ parentcode: '',
|
|
optimistic: 0,
|
|
optimistic: 0,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async deleteOrganization(row) {
|
|
async deleteOrganization(row) {
|
|
- const res = await deleteOrganization({ ID: row.ID })
|
|
|
|
|
|
+ const res = await deleteOrganization({ code: row.code })
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
this.$message({
|
|
this.$message({
|
|
type: 'success',
|
|
type: 'success',
|