| | |
| | | <template> |
| | | <div v-if="display"> |
| | | <vciWebReferTree v-if="refertype=='tree'" @setValue="setValue" :value="value" :text="text" :title="title" :disabled="disabled" :referConfig="referConfig"></vciWebReferTree> |
| | | <vciWebReferTree ref="vciWebReferTree" v-if="refertype=='tree'" @setValue="setValue" :value="value" :text="text" :title="title" :disabled="disabled" :referConfig="referConfig"></vciWebReferTree> |
| | | <vciWebReferTable v-else-if="refertype=='table'" @setValue="setValue" :value="value" :text="text" :title="title" :disabled="disabled" :referConfig="referConfig"></vciWebReferTable> |
| | | <vciWebReferDefalut v-else @setValue="setValue" :value="value" :text="text" :title="title" :disabled="disabled" :referConfig="referConfig"></vciWebReferDefalut> |
| | | |
| | |
| | | this.page.currentPage=this.referConfig.options.page.page || this.referConfig.options.page.currentPage; |
| | | } |
| | | }, |
| | | |
| | | computed:{ |
| | | valueInfo:function (){ |
| | | return this.text ? ("已设置的值为[" + this.text + "]"): '未设置值' |
| | |
| | | value: "key" |
| | | }, |
| | | formatter : function (row, column) { |
| | | return row.sendFlag == 'true' || row.sendFlag == '1' ? '<i class="el-icon-check" style="color: limegreen"></i>' : '<i class="el-icon-close" style="color: red"></i>' |
| | | return row.sendFlag == 'true' || row.sendFlag == '1' ? '<i class="el-icon-check" style="color: limegreen;font-size: 20px;font-weight: 800"></i>' : '<i class="el-icon-close" style="color: red;font-size: 20px;font-weight: 800" ></i>' |
| | | } |
| | | } |
| | | ] |
| | |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | getList(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | console.log(res) |
| | | // console.log(res) |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitAttribute">确定</el-button> |
| | | <el-button @click="cancelSubmit">取消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | |
| | | watch:{ |
| | | formData: { |
| | | handler(newval, oldval) { |
| | | console.log(newval) |
| | | // console.log(newval) |
| | | if (newval && newval.type === 'edit') { |
| | | if (this.formData.dataFlowType == 'accept') { |
| | | this.pushTypeList = [ |
| | |
| | | }) |
| | | const apiCall = that.formData.type == 'edit' ? edit : add; |
| | | const Message = that.formData.type == 'edit' ? "修改成功" : "保存成功"; |
| | | console.log( that.formData) |
| | | // console.log( that.formData) |
| | | apiCall(that.formData).then(res => { |
| | | that.$message.success(Message); |
| | | that.showSubmitDialog = false; |
| | |
| | | value: "key" |
| | | }, |
| | | formatter : function (row, column) { |
| | | return row.interFaceStatus == 'true' || row.interFaceStatus == '1' ? '<i class="el-icon-check" style="color: limegreen"></i>' : '<i class="el-icon-close" style="color: red"></i>' |
| | | return row.interFaceStatus == 'true' || row.interFaceStatus == '1' ? '<i class="el-icon-check" style="color: limegreen;font-size: 20px;font-weight: 800"></i>' : '<i class="el-icon-close" style="color: red;font-size: 20px;font-weight: 800"></i>' |
| | | } |
| | | }, |
| | | ] |
| | |
| | | value: "key" |
| | | }, |
| | | formatter : function (row, column) { |
| | | return row.sendFlag == 'true' || row.sendFlag == '1' ? '<i class="el-icon-check" style="color: limegreen"></i>' : '<i class="el-icon-close" style="color: red"></i>' |
| | | return row.sendFlag == 'true' || row.sendFlag == '1' ? '<i class="el-icon-check" style="color: limegreen;font-size: 20px;font-weight: 800"></i>' : '<i class="el-icon-close" style="color: red;font-size: 20px;font-weight: 800"></i>' |
| | | } |
| | | }, |
| | | ] |