liwei
e 7 months ago
parent 1ba5b5efd9
commit 4d17fe5189

@ -0,0 +1,44 @@
<template>
<div class="gImageView">
<el-image
v-if="url"
style="width: 60px; height: 68px"
:src="url"
:preview-src-list="[url]"
>
</el-image>
</div>
</template>
<script>
export default {
props: {
value: {
type: String,
default: () => {
return "";
},
},
},
data() {
return {
baseUrl: window.$SERVICE.BASEURL,
url: "",
};
},
watch: {
value: {
handler(val) {
console.log(val)
if (val) {
this.url = this.baseUrl + val;
} else {
this.url = "";
}
},
deep: true,
immediate: true,
},
},
};
</script>
<style lang="less"></style>

@ -5,6 +5,7 @@
:width="width"
:before-close="handleClose"
:close-on-click-modal="false"
:class="{ pageNoAllowOpt: formDisabled }"
>
<el-form
ref="relForm"
@ -135,7 +136,10 @@
<el-button v-if="cancelBtn" @click="dialogVisible = false"
>取消</el-button
>
<el-button v-if="submitBtn" type="primary" @click="submitForm"
<el-button
v-if="submitBtn && !formDisabled"
type="primary"
@click="submitForm"
>确定</el-button
>
<el-button v-if="closeBtn" @click="dialogVisible = false"></el-button>
@ -269,4 +273,20 @@ export default {
}
}
}
.pageNoAllowOpt {
.el-textarea,
.el-select,
.el-input,
.el-btn,
.el-calendar,
.el-calendar-picker,
.el-checkbox-input,
.el-checkbox,
.el-checkbox-wrapper,
.el-input-number {
cursor: not-allowed;
-ms-pointer-events: none;
pointer-events: none;
}
}
</style>

@ -1,57 +1,57 @@
import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import HighchartsVue from 'highcharts-vue'
import highcharts from 'highcharts'
import highcharts3d from 'highcharts/highcharts-3d'
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import store from './store'
import Message from './components/message';
import Vue from "vue";
import App from "./App.vue";
import ElementUI from "element-ui";
import HighchartsVue from "highcharts-vue";
import highcharts from "highcharts";
import highcharts3d from "highcharts/highcharts-3d";
import "element-ui/lib/theme-chalk/index.css";
import router from "./router";
import store from "./store";
import Message from "./components/message";
import erupload from "./components/upload";
import lkyTable from "./components/publicModule/lkyTable" // 本组件样式包含普通表格、分页
import lkyPagination from "./components/publicModule/lkyPagination" // 本组件单独抽离分页样式
import "@/loveflow/assets/index.less"
import "@/loveflow/assets/reset.less"
import "@/loveflow/assets/reset.scss"
import * as cusRule from '@/loveflow/rules'
import { registerPlugins } from '@/loveflow/plugins/index'
import FormDialog from '@/loveflow/components/modal/formDialog.vue'
import gMainTable from '@/loveflow/components/data/table.vue'
import gScreenTable from '@/loveflow/components/data/screenTable.vue'
import gDict from '@/loveflow/components/data/dict.vue'
import gTab from '@/loveflow/components/data/tabWrap.vue'
import gChart from '@/loveflow/components/echart/chart.vue'
import lkyTable from "./components/publicModule/lkyTable"; // 本组件样式包含普通表格、分页
import lkyPagination from "./components/publicModule/lkyPagination"; // 本组件单独抽离分页样式
import "@/loveflow/assets/index.less";
import "@/loveflow/assets/reset.less";
import "@/loveflow/assets/reset.scss";
import * as cusRule from "@/loveflow/rules";
import { registerPlugins } from "@/loveflow/plugins/index";
import FormDialog from "@/loveflow/components/modal/formDialog.vue";
import gMainTable from "@/loveflow/components/data/table.vue";
import gScreenTable from "@/loveflow/components/data/screenTable.vue";
import gDict from "@/loveflow/components/data/dict.vue";
import gTab from "@/loveflow/components/data/tabWrap.vue";
import gChart from "@/loveflow/components/echart/chart.vue";
import gImageView from "@/loveflow/components/data/imageView.vue";
import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;
highcharts3d(highcharts)
highcharts3d(highcharts);
Vue.prototype.$rules = cusRule
registerPlugins(Vue)
Vue.prototype.$rules = cusRule;
registerPlugins(Vue);
Vue.use(ElementUI);
Vue.use(Message);
Vue.use(HighchartsVue)
Vue.component('erupload', erupload)
Vue.component('lkyTable', lkyTable)
Vue.component('lkyPagination',lkyPagination)
Vue.component('FormDialog', FormDialog)
Vue.component('gMainTable', gMainTable)
Vue.component('gScreenTable', gScreenTable)
Vue.component('gDict', gDict)
Vue.component('gTab', gTab)
Vue.component('gChart', gChart)
Vue.use(HighchartsVue);
Vue.component("erupload", erupload);
Vue.component("lkyTable", lkyTable);
Vue.component("lkyPagination", lkyPagination);
Vue.component("FormDialog", FormDialog);
Vue.component("gMainTable", gMainTable);
Vue.component("gScreenTable", gScreenTable);
Vue.component("gDict", gDict);
Vue.component("gTab", gTab);
Vue.component("gChart", gChart);
Vue.component("gImageView", gImageView);
const vm = new Vue({
el: '#app',
el: "#app",
router,
store,
render: h => h(App)
}).$mount('#app')
render: (h) => h(App),
}).$mount("#app");
export default vm
export default vm;

@ -56,7 +56,7 @@
v-if="item.auditState == '1'"
@click="examine(item)"
>
审核
回复
</div>
<div class="optBtn" @click="checkDetail(item)"></div>
</div>
@ -130,10 +130,10 @@ export default {
},
methods: {
checkDetail(obj) {
this.$refs.formDialog.openDialog("detail", obj);
this.$refs.formDialog.openDialog("detail", obj, "业务咨询详情");
},
examine(obj) {
this.$refs.formDialog.openDialog("other", obj, "业务咨询审核");
this.$refs.formDialog.openDialog("other", obj, "业务咨询回复");
},
reset() {
this.queryParam = {};

@ -49,13 +49,7 @@
</template>
<template v-slot:optSlot="{ scope }">
<el-image
v-if="scope.row.picUrl"
style="width: 60px; height: 68px"
:src="scope.row.picUrl"
:preview-src-list="[scope.row.picUrl]"
>
</el-image>
<gImageView :value="scope.row.picUrl"></gImageView>
</template>
</gMainTable>
</div>

@ -35,13 +35,7 @@
rowKey="id"
>
<template v-slot:photoSlot="{ scope }">
<el-image
v-if="scope.row.picUrl"
style="width: 60px; height: 68px"
:src="scope.row.picUrl"
:preview-src-list="[scope.row.picUrl]"
>
</el-image>
<gImageView :value="scope.row.picUrl"></gImageView>
</template>
<template v-slot:optSlot="{ scope }">
<el-radio v-model="scope.row.auditResult" label="0"></el-radio>

@ -56,7 +56,7 @@
v-if="item.auditState == '1'"
@click="examine(item)"
>
审核
回复
</div>
<div class="optBtn" @click="checkDetail(item)"></div>
</div>
@ -130,10 +130,10 @@ export default {
},
methods: {
checkDetail(obj) {
this.$refs.formDialog.openDialog("detail", obj);
this.$refs.formDialog.openDialog("detail", obj, "法律咨询详情");
},
examine(obj) {
this.$refs.formDialog.openDialog("other", obj, "法律咨询审核");
this.$refs.formDialog.openDialog("other", obj, "法律咨询回复");
},
reset() {
this.queryParam = {};

@ -49,13 +49,7 @@
</template>
<template v-slot:optSlot="{ scope }">
<el-image
v-if="scope.row.picUrl"
style="width: 60px; height: 68px"
:src="scope.row.picUrl"
:preview-src-list="[scope.row.picUrl]"
>
</el-image>
<gImageView :value="scope.row.picUrl"></gImageView>
</template>
</gMainTable>
</div>

@ -35,13 +35,14 @@
rowKey="id"
>
<template v-slot:photoSlot="{ scope }">
<el-image
<!-- <el-image
v-if="scope.row.picUrl"
style="width: 60px; height: 68px"
:src="scope.row.picUrl"
:preview-src-list="[scope.row.picUrl]"
>
</el-image>
</el-image> -->
<gImageView :value="scope.row.picUrl"></gImageView>
</template>
<template v-slot:optSlot="{ scope }">
<el-radio v-model="scope.row.auditResult" label="0"></el-radio>

Loading…
Cancel
Save