riku
2025-04-27 f46786f11c5c08ead7501a82e5a71430ad69b782
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<view class="title-primary-1">线索问题</view>
<block wx:if="{{questionList.length > 0}}">
  <block wx:for="{{questionList}}" wx:key="index" wx:for-index="index">
    <DescriptionsList title="{{item.cqUid}}">
      <view slot="extra">
        <t-button
          wx:if="{{!clue.cuploaded}}"
          theme="danger"
          size="extra-small"
          icon="delete"
          shape="square"
          data-index="{{index}}"
          bind:tap="deleteQuestion"
        ></t-button>
        <t-button
          style="margin-left: 4px"
          theme="primary"
          size="extra-small"
          data-index="{{index}}"
          bind:tap="checkQuestion"
          >{{ clue.cuploaded ? '问题详情' : '修改问题' }}</t-button
        >
      </view>
      <DescriptionsListItem label="问题名称" content="{{item.cqName}}" />
      <DescriptionsListItem label="问题描述" content="{{item.cqDescription}}" />
      <DescriptionsListItem label="详细地址" content="{{item.cqAddress}}" />
    </DescriptionsList>
  </block>
  <view class="btn-wrap">
    <t-button wx:if="{{!clue.cuploaded}}" size="extra-small" theme="primary" bind:tap="addQuestion"
      >添加问题</t-button
    >
  </view>
</block>
<view wx:else class="dashed-border">
  <t-empty-page description="无线索问题">
    <t-button slot="action" size="small" theme="primary" bind:tap="addQuestion">反馈上报</t-button>
  </t-empty-page>
</view>
<t-dialog
  visible="{{showDelete}}"
  title="删除确认"
  content=""
  confirm-btn="{{ { content: '确定', variant: 'base' } }}"
  cancel-btn="取消"
  bind:confirm="onDeleteConfirm"
  bind:cancel="closeDialog"
/>