linwei
2024-02-23 5faca0a68346d6722b98c2a20d25a9228302515d
src/views/property/propertyCapitalApply.vue
@@ -29,28 +29,28 @@
        </el-button>
      </template>
      <template slot="constructionSchemeUrlsType" slot-scope="{file}">
        <span>{{ file }}</span>
      </template>
      </template>
    </avue-crud>
    <el-dialog   title="详情"  append-to-body  :visible.sync="showDialog" width="80%"  >
      <avue-crud :option="optionList"    :data="topictData"  ref="crud2">
          <template #icon="scope">
            <i :class="scope.row.icon" style="font-size:14px"></i>
          </template>
           <!-- <template #menu="{ row, size }">
    <el-dialog title="详情" append-to-body :visible.sync="showDialog" width="80%">
      <avue-crud :option="optionList" :data="topictData" ref="crud2">
        <template #icon="scope">
          <i :class="scope.row.icon" style="font-size:14px"></i>
        </template>
        <!-- <template #menu="{ row, size }">
            <el-button v-if="row.level === 1" :size="size" text type="primary" @click="edit(row)">编辑</el-button>
            <el-button v-if="row.level === 1" :size="size" text type="danger" @click="deletes(row)">删除</el-button>
            <el-button v-if="row.level === 2" :size="size" text type="primary" @click="openUser(row, 1)">
              选择此项人数:{{ row.number }} 详情</el-button>
          </template> -->
        </avue-crud>
    </el-dialog>
      </avue-crud>
    </el-dialog>
  </basic-container>
@@ -75,7 +75,7 @@
  export default {
    data() {
      return {
        showDialog:false,
        showDialog: false,
        form: {
          // constructionSchemeUrls:[]
        },
@@ -107,7 +107,7 @@
          delBtn: false,
          selection: true,
          dialogClickModal: false,
          viewBtnText:"查看申请",
          viewBtnText: "查看申请",
          column: [{
              width: 220,
              overHidden: true,
@@ -264,7 +264,7 @@
                label: "街道",
                value: 2,
              }, {
                label: "住建局",
                label: "区住建局",
                value: 3,
              }, {
                label: "调整申请",
@@ -275,6 +275,9 @@
              }, {
                label: "审核不通过",
                value: 6,
              }, {
                label: "上饶住建局",
                value: 7,
              }]
            },
            {
@@ -314,13 +317,13 @@
              value: '0.00'
            },
            {
              display:false,
              display: false,
              hide: true,
              parent: false,
              label: "议事标题",
              prop: "articleId",
              search: false,
              viewDisabled:false,
              viewDisabled: false,
              type: 'select',
              dicUrl: `/api/blade-article/article/getArticleByDistrictId?type=4&eventType=1&districtIdList={{districtId}}`,
              props: {
@@ -335,12 +338,12 @@
                message: "请选择议事",
                trigger: "blur",
              }, ],
              change:(val)=>{
                console.log ("val===>",  val)
              change: (val) => {
                console.log("val===>", val)
                // console.log("form===>",this.form)
                if(val.value && !this.form.id){
                if (val.value && !this.form.id) {
                  this.showDialog = true;
                  this.getDetail( val.value,val.articleRange)
                  this.getDetail(val.value, val.articleRange)
                }
              }
@@ -384,9 +387,9 @@
          ],
        },
        data: [],
        optionList: {
          header:false,
          header: false,
          menu: false,
          headerAlign: 'center',
          align: 'center',
@@ -411,24 +414,23 @@
            }
          ]
        },
        optionData:[
           {
               title:"测试",
               content:"选项1",
               count:1
           },
           {
               title:"测试",
               content:"选项2",
               count:2
           },
           {
               title:"测试",
               content:"选项",
               count:2
           },
       ],
       topictData:[]
        optionData: [{
            title: "测试",
            content: "选项1",
            count: 1
          },
          {
            title: "测试",
            content: "选项2",
            count: 2
          },
          {
            title: "测试",
            content: "选项",
            count: 2
          },
        ],
        topictData: []
      }
    },
    watch: {
@@ -440,8 +442,8 @@
      //       }
      //   },
      //   deep: true,
         //    immediate: true
      //    immediate: true
      // }
      'form.districtId': {
@@ -489,8 +491,8 @@
    },
    methods: {
      rowView(){
          this.showDialog = false;
      rowView() {
        this.showDialog = false;
      },
@@ -680,7 +682,12 @@
          this.selectionClear()
        })
      },
      spanMethod({ row, column, rowIndex, columnIndex }) {
      spanMethod({
        row,
        column,
        rowIndex,
        columnIndex
      }) {
        if (columnIndex === 0) {
          if (rowIndex % 2 === 0) {
            return {
@@ -695,19 +702,19 @@
          }
        }
      },
      getDetail(articleId,districtId){
      getDetail(articleId, districtId) {
        let params = {
          level:1,
          articleId:articleId,
          districtId:districtId
          level: 1,
          articleId: articleId,
          districtId: districtId
        }
        getLists(1,10,params).then(res => {
              const data = res.data.data
              this.topictData = data
            })
        getLists(1, 10, params).then(res => {
          const data = res.data.data
          this.topictData = data
        })
      }
    }
  }
</script>