ZaiZai 10 kuukautta sitten
vanhempi
commit
dce4bfa213

+ 22 - 3
src/views/project/info/template.vue

@@ -1,5 +1,8 @@
 <template>
-    <div>
+    <div class="hc-project-wbs-template">
+        <div class="wbs-template-segmented">
+            <el-segmented v-model="templateType" :options="templateTypeData" />
+        </div>
         111
     </div>
 </template>
@@ -28,8 +31,24 @@ watch(() => modelData.value, (data) => {
 watch(() => formModel.value, (data) => {
     modelData.value = data
 }, { deep: true })
-</script>
 
-<style scoped lang="scss">
+const templateType = ref(1)
+const templateTypeData = [
+    { value:1, label: '质检' }, { value:2, label: '试验' },
+    { value:3, label: '计量' }, { value:5, label: '征拆' },
+]
+</script>
 
+<style lang="scss">
+.hc-project-wbs-template {
+    position: relative;
+    height: 100%;
+    .wbs-template-segmented {
+        position: relative;
+        text-align: center;
+        .el-segmented {
+            --el-border-radius-base: 16px;
+        }
+    }
+}
 </style>

+ 3 - 3
src/views/system/modules/dict/dict.vue

@@ -22,7 +22,7 @@
         </template>
         <hc-table
             ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading"
-            is-check :check-style="{ width: 29 }" :index-style="{ width: 60 }" class="mt-10px"
+            is-check is-children :check-style="{ width: 29 }" :index-style="{ width: 60 }" class="mt-10px"
             @selection-change="tableCheckChange"
         >
             <template #isSealed="{ row }">
@@ -130,8 +130,8 @@ const tableRef = ref(null)
 const tableColumn = ref([
     { key: 'code', name: '字典编号' },
     { key: 'dictValue', name: '字典名称' },
-    { key: 'dictKey', name: '字典键值' },
-    { key: 'isSealed', name: '封存', width: 70, align: 'center' },
+    { key: 'dictKey', name: '字典键值', width: 80 },
+    { key: 'isSealed', name: '封存', width: 80, align: 'center' },
     { key: 'remark', name: '字典备注' },
     { key: 'action', name: '操作', width: 100, align: 'center' },
 ])

+ 3 - 3
src/views/system/modules/dictbiz/dictbiz.vue

@@ -22,7 +22,7 @@
         </template>
         <hc-table
             ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading"
-            is-check :check-style="{ width: 29 }" :index-style="{ width: 60 }"
+            is-check :check-style="{ width: 29 }" :index-style="{ width: 60 }" is-children
             class="mt-10px" @selection-change="tableCheckChange"
         >
             <template #isSealed="{ row }">
@@ -130,8 +130,8 @@ const tableRef = ref(null)
 const tableColumn = ref([
     { key: 'code', name: '字典编号' },
     { key: 'dictValue', name: '字典名称' },
-    { key: 'dictKey', name: '字典键值' },
-    { key: 'isSealed', name: '封存', width: 70, align: 'center' },
+    { key: 'dictKey', name: '字典键值', width: 80 },
+    { key: 'isSealed', name: '封存', width: 80, align: 'center' },
     { key: 'remark', name: '字典备注' },
     { key: 'action', name: '操作', width: 100, align: 'center' },
 ])