| | |
| | | <!-- 高级查询--> |
| | | <advanced-query :options="this.options" :visible.sync="findvisible" @echoContion="echoContion"></advanced-query> |
| | | <!-- 导出--> |
| | | <MasterTransfer :visible.sync="dialogPush" :tableHeadData="tableHeadFindData"></MasterTransfer> |
| | | <MasterTransfer :visible.sync="dialogPush" :tableHeadData="tableHeadFindData" :codeClassifyOid="codeClassifyOid"></MasterTransfer> |
| | | <!-- 相似项--> |
| | | <ResembleQueryDialog :codeClassifyOid="codeClassifyOid" :codeRuleOid="this.codeRuleOid" :rowOid="rowOid" |
| | | :templateOid="templateOid" :visible.sync="similarVisible"></ResembleQueryDialog> |
| | |
| | | </div> |
| | | <div style="text-align: center"> |
| | | <el-transfer |
| | | style="text-align: left; display: inline-block" |
| | | style="text-align: left; display: inline-block;height: 400px" |
| | | filterable |
| | | :filter-method="filterMethod" |
| | | filter-placeholder="请输入城市拼音" |
| | | filter-placeholder="关键词搜索" |
| | | v-model="value" |
| | | :titles="['未选属性', '已选属性']" |
| | | :data="data"> |
| | | </el-transfer> |
| | | </div> |
| | |
| | | <script> |
| | | export default { |
| | | name: "MasterTransfer", |
| | | props:['visible','tableHeadData'], |
| | | props:['visible','tableHeadData','codeClassifyOid'], |
| | | data(){ |
| | | const generateData = () => { |
| | | const data = []; |
| | | const cities = ['上海', '北京', '广州', '深圳', '南京', '西安', '成都']; |
| | | cities.forEach((city, index) => { |
| | | data.push({ |
| | | label: city, |
| | | key: index, |
| | | }); |
| | | }); |
| | | return data; |
| | | }; |
| | | return { |
| | | data: generateData(), |
| | | data: [], |
| | | value: [], |
| | | filterMethod(query, item) { |
| | | return item.label.indexOf(query) > -1; |
| | | }, |
| | | dialogPush:this.visible, |
| | | radio:0, |
| | | tableHeadFindData:[] |
| | | tableHeadFindData:[], |
| | | tableExportData:[], |
| | | option:{ |
| | | title: '文档标题', |
| | | column: [{ |
| | | label: '多级表头', |
| | | prop: 'header', |
| | | children: [] |
| | | }], |
| | | data: [{ |
| | | title1: "测试数据1", |
| | | title2: "测试数据2" |
| | | }, { |
| | | title1: "测试数据2", |
| | | title2: "测试数据2" |
| | | }] |
| | | } |
| | | }; |
| | | }, |
| | | watch:{ |
| | |
| | | visible (){ |
| | | this.dialogPush = this.visible; |
| | | }, |
| | | tableHeadData(){ |
| | | this.tableHeadFindData=this.tableHeadData; |
| | | |
| | | //表头数据 用来渲染穿梭框 |
| | | tableHeadData:{ |
| | | handler(newval,oldval){ |
| | | if(newval){ |
| | | this.tableHeadFindData=newval.map(obj => obj.label); |
| | | this.tableHeadFindData.forEach((city, index) => { |
| | | this.data.push({ |
| | | label: city, |
| | | key: index, |
| | | }); |
| | | }); |
| | | return this.data; |
| | | } |
| | | } |
| | | }, |
| | | codeClassifyOid:{ |
| | | handler(newval,oldval){ |
| | | console.log('daochu',newval,oldval) |
| | | } |
| | | } |
| | | }, |
| | | computed:{ |
| | | |
| | | }, |
| | | mounted() { |
| | | console.log(this.tableHeadData) |
| | | this.ExportRend() |
| | | }, |
| | | methods:{ |
| | | //关闭页面 |
| | | recoverPage(){ |
| | | this.$emit('update:visible', false); |
| | | }, |
| | | //导出表格数据转换表头信息 |
| | | ExportRend(){ |
| | | this.tableExportData=this.tableHeadData.map(obj => { |
| | | return { |
| | | label: obj.label, |
| | | prop: obj.prop |
| | | } |
| | | }) |
| | | console.log(this.tableExportData) |
| | | } |
| | | } |
| | | } |
| | |
| | | selectHandle(selection,row){ |
| | | this.crudOid=row.oid; |
| | | this.crudArray=selection; |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': this.Formlist[0].oid}).then(res => { |
| | | console.log(selection,row) |
| | | gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': row.oid}).then(res => { |
| | | this.ProData = res.data.data; |
| | | }).catch(res => { |
| | | this.$message.error(res) |
| | |
| | | //本地服务接口地址 |
| | | // target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.51:37000', |
| | | target: 'http://192.168.1.46:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.46:37000', |
| | | target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.51:37000/', |
| | | // target: 'http://192.168.1.104:37000', |
| | | // target: 'http://192.168.1.63:37000', |