houyaf 3 anos atrás
pai
commit
0d9a186458

+ 1 - 2
src/views/api/api/index.vue

@@ -212,7 +212,7 @@ async function onChangeStatus(row: { apiId: number; status: number }) {
             </template>
           </tool-bar>
 
-          <el-table ref="apiTableRef" v-loading="state.loading" class="list-table" :data="state.apiList" border stripe highlight-current-row height="100%">
+          <el-table ref="apiTableRef" v-loading="state.loading" class="list-table" :data="state.apiList" size="small" border stripe highlight-current-row height="100%">
             <el-table-column type="index" label="序号" header-align="center" align="center" width="70" />
 
             <el-table-column prop="apiTitle" label="名称" header-align="center" align="center" width="150">
@@ -256,7 +256,6 @@ async function onChangeStatus(row: { apiId: number; status: number }) {
 
             <el-table-column label="操作" header-align="center" align="center" width="210">
               <template #default="scope">
-                <el-button type="primary" size="small" plain @click="onApiTrans(scope.row)">事务</el-button>
                 <el-button type="warning" size="small" plain @click="onApiEdit(scope.row)">编辑</el-button>
                 <el-button type="danger" size="small" plain @click="onApiDelete(scope.row)">删除</el-button>
               </template>

+ 1 - 1
src/views/api/log/index.vue

@@ -132,7 +132,7 @@ const onReqDel = async (data: { apiTitle: any; reqId: number }) => {
             </template>
           </tool-bar>
 
-          <el-table ref="apiReqTableRef" v-loading="state.loading" class="list-table" :data="state.dataList" border stripe highlight-current-row>
+          <el-table ref="apiReqTableRef" v-loading="state.loading" class="list-table" :data="state.dataList" size="small" border stripe highlight-current-row>
             <el-table-column type="index" align="center" label="序号" width="60" />
 
             <el-table-column align="center" width="100" label="接口名称" prop="apiTitle" />

+ 1 - 1
src/views/biz/object/index.vue

@@ -40,6 +40,7 @@ const state = reactive({
 })
 
 const objectRef = ref()
+
 // 查询数据
 const getObjectData = async () => {
   state.loading = true
@@ -70,7 +71,6 @@ const onObjectEdit = () => {
 
 const size = ref('')
 const bizObjectAttrList = ref()
-const bizObjectOAMList = ref()
 const bizObjectMappingList = ref()
 
 // 返回列表页

+ 8 - 6
src/views/model/model/components/Model.vue

@@ -99,12 +99,14 @@ defineExpose({
       </el-form>
 
       <template #footer>
-        <el-button size="large" @click="onCancel">
-          取消
-        </el-button>
-        <el-button type="primary" size="large" @click="onSubmit">
-          保存
-        </el-button>
+        <div style="flex: auto">
+          <el-button size="large" @click="onCancel">
+            取消
+          </el-button>
+          <el-button type="primary" size="large" @click="onSubmit">
+            保存
+          </el-button>
+        </div>
       </template>
     </el-scrollbar>
   </el-drawer>

+ 1 - 3
src/views/model/object/components/ModelObject.vue

@@ -53,7 +53,6 @@ onMounted(() => {
 function onSubmit() {
   formRef.value && formRef.value.validate(async (valid) => {
     if (valid) {
-      state.formData.attrs.forEach((item, index) => item.sortNo = index)
       if (state.actionType === 1) {
         await createObject(state.formData)
         state.dialogVisible = false
@@ -81,7 +80,6 @@ function resetFormData() {
     objectCode: '',
     objectTitle: '',
     comment: '',
-    attrs: [],
   }
 }
 
@@ -105,7 +103,7 @@ defineExpose({
 </script>
 
 <template>
-  <el-drawer v-model="state.dialogVisible" :title="state.title" size="80%" direction="ltr">
+  <el-drawer v-model="state.dialogVisible" :title="state.title" size="30%" direction="rtl">
     <el-scrollbar>
       <div class="form-content">
         <el-form ref="formRef" :model="state.formData" :rules="formRules" label-position="top">