Просмотр исходного кода

feat:修改待办公文需求

coder 1 год назад
Родитель
Сommit
780da8e165

BIN
src/assets/todoOffcialDoucument/haveAudit.png


BIN
src/assets/todoOffcialDoucument/waitForAudit.png


+ 1 - 1
src/pages/officialDocumentManager/todoOffcialDoucument/detail/index.vue

@@ -191,7 +191,7 @@ function dialogSubmit() {
                 <div v-if="item.sh_status == 2">
                   通过
                 </div>
-                <div v-else-if="item.sh_status == 1">
+                <div v-else-if="item.sh_status == 1" style="padding-top: 5px;padding-bottom: 5px;line-height: 100%;">
                   <van-button class="rightButton" type="primary" @click.stop="clickAudit(item)">
                     审核
                   </van-button>

+ 28 - 19
src/pages/officialDocumentManager/todoOffcialDoucument/index.vue

@@ -51,29 +51,38 @@ function cellClick(gw_id) {
 
 <template>
   <div>
-    <van-search
-      v-model="param.keyword"
-      :clearable="false"
-      show-action
-      placeholder="请输入搜索关键词"
-      @search="onClickSearch"
-    >
+    <van-search v-model="param.keyword" :clearable="false" show-action placeholder="请输入搜索关键词" @search="onClickSearch">
       <template #action>
         <div @click="onClickSearch">搜索</div>
       </template>
     </van-search>
-    <van-list
-      v-model:loading="loading"
-      :finished="finished"
-      finished-text="没有更多了"
-      @load="onLoad"
-    >
-      <van-cell
-        v-for="(item, index) in list"
-        :key="item"
-        :title="`${index + 1}. ${item.gw_title}`"
-        @click="cellClick(item.gw_id)"
-      />
+    <van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
+      <van-cell v-for="(item, index) in list" :key="item" :title="`${index + 1}. ${item.gw_title}`"
+        @click="cellClick(item.gw_id)">
+        <template #value>
+          <img :src="item.is_check == 1
+            ? getAssetsImages('todoOffcialDoucument/haveAudit.png')
+            : getAssetsImages('todoOffcialDoucument/waitForAudit.png')
+            " />
+        </template>
+      </van-cell>
     </van-list>
   </div>
 </template>
+
+<style lang="scss" scoped>
+:deep(.van-cell__title) {
+  width: 90% !important;
+  flex: auto;
+}
+
+:deep(.van-cell__value) {
+  width: 10% !important;
+  flex: auto;
+}
+
+img {
+  width: 33px;
+  height: 33px;
+}
+</style>