田源
2023-08-03 228e511cd5916e061da5476fa73bc6791f30d73e
主数据状态搜索
已修改1个文件
31 ■■■■ 文件已修改
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -17,8 +17,8 @@
              </el-button>
              <el-input v-model="WupinFindValue" placeholder="请输入关键字按回车查询"
                        size="small" style="width: 180px; margin-left: 5px; margin-top: 10px"
                        @keyup.enter.native="tableFindInp"  v-if="tableData.length != 0"></el-input>
              <span style="margin-left: 10px" v-if="tableData.length != 0">
                        @keyup.enter.native="tableFindInp"  v-if="tableHeadFindData.length > 0"></el-input>
              <span style="margin-left: 10px" v-if="tableHeadFindData.length > 0">
               <p style="font-size: 13px;display: inline-block;"> 状态:</p>
                <el-select v-model="statusSelect" slot="prepend" placeholder="请选择" size="small" @change="cellSelectHandler">
                <el-option label="全部" value="all"></el-option>
@@ -165,7 +165,7 @@
  },
  data() {
    return {
      statusSelect:"",
      statusSelect:"all",
      searchResults: [],
      //首页右侧搜索
      WupinFindValue: "",
@@ -250,8 +250,8 @@
  },
  computed: {},
  created() {
   const index = this.$route.query.id.indexOf('@');
   this.result = this.$route.query.id.substring(0, index);
   const index = this.$route.query.id.indexOf('@name=') + '@name='.length;
   this.result = this.$route.query.id.substring(index);
  },
  mounted() {
  },
@@ -276,7 +276,6 @@
    },
    tableDataArray: {
      handler(newval, oldval) {
        this.statusSelect=''
        this.tableData = newval;
        this.searchResults = newval
        this.doLayout()
@@ -327,7 +326,23 @@
  methods: {
    //状态搜索
    cellSelectHandler(row){
      console.log(row)
      if(row === 'all'){
        this.cellStatusFind()
      }else {
        this.cellStatusFind(row)
      }
    },
    cellStatusFind(lcstatus){
      TableData({
        templateOid: this.templateOid,
        codeClassifyOid: this.codeClassifyOid,
        page: this.page.currentPage,
        limit: this.page.pageSize,
        'conditionMap[lcstatus]':lcstatus
      }).then(res=>{
        console.log(res)
        this.tableData=res.data.data
      })
    },
    //展开附件
    handleCollapse(activeNames) {
@@ -404,7 +419,7 @@
            processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
              if (res.data.data.records && res.data.data.records.length!=0)  {
                this.userName = localStorage.getItem("username");
                this.parameter.template = this.userName + '-发布['+this.result+'-' + this.selectRow[0].name + ']';
                this.parameter.template = this.userName + '-申请['+this.result+'-' + this.selectRow[0].name + ']';
                this.parameter.type = 'PUBLIC';
                this.parameter.code=this.templateOid
                this.title = '流程审批'