|
@@ -91,8 +91,8 @@
|
|
<div class="item" style="margin-top: 100px">
|
|
<div class="item" style="margin-top: 100px">
|
|
<span>受托人:</span>
|
|
<span>受托人:</span>
|
|
<div class="input-box">
|
|
<div class="input-box">
|
|
- <input style="width: 100%" v-model="data.authorByName" />
|
|
|
|
- <div class="content-box">{{ data.authorByName }}</div>
|
|
|
|
|
|
+ <input style="width: 100%" v-model="data.authorByNameB" />
|
|
|
|
+ <div class="content-box">{{ data.authorByNameB }}</div>
|
|
</div>
|
|
</div>
|
|
<span>代理权限为:</span>
|
|
<span>代理权限为:</span>
|
|
</div>
|
|
</div>
|
|
@@ -108,9 +108,10 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { reactive, ref, toRefs, onBeforeMount, onMounted } from "vue";
|
|
|
|
|
|
+import { reactive, ref, toRefs, onBeforeMount, onMounted, watch } from "vue";
|
|
import { tables } from "@/store/tables";
|
|
import { tables } from "@/store/tables";
|
|
import { tablesInfo, setData } from "../data";
|
|
import { tablesInfo, setData } from "../data";
|
|
|
|
+import { bus } from "@/hook/useGraphic";
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
downMode: { type: Boolean, default: false },
|
|
downMode: { type: Boolean, default: false },
|
|
isDownloadShow: { type: Boolean, default: false },
|
|
isDownloadShow: { type: Boolean, default: false },
|
|
@@ -119,6 +120,8 @@ const data = ref(null);
|
|
const checkOptions = (item, index) => {
|
|
const checkOptions = (item, index) => {
|
|
item.check = item.options[index].id;
|
|
item.check = item.options[index].id;
|
|
data.value[item.type].check = item.check;
|
|
data.value[item.type].check = item.check;
|
|
|
|
+
|
|
|
|
+ bus.emit("changeAuthorOneCheck");
|
|
};
|
|
};
|
|
const checkData = ref({
|
|
const checkData = ref({
|
|
check: 0,
|
|
check: 0,
|
|
@@ -138,7 +141,13 @@ const checkData = ref({
|
|
const saveHandler = () => {
|
|
const saveHandler = () => {
|
|
return { type: "authorOne", data: data.value };
|
|
return { type: "authorOne", data: data.value };
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+watch(
|
|
|
|
+ () => tablesInfo.authorOne,
|
|
|
|
+ (val, old) => {
|
|
|
|
+ console.error(val);
|
|
|
|
+ },
|
|
|
|
+ { deep: true }
|
|
|
|
+);
|
|
defineExpose({ saveHandler, data });
|
|
defineExpose({ saveHandler, data });
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
if (props.isDownloadShow) {
|
|
if (props.isDownloadShow) {
|
|
@@ -149,12 +158,16 @@ onMounted(() => {
|
|
if (tablesInfo.authorOne) {
|
|
if (tablesInfo.authorOne) {
|
|
data.value = tablesInfo.authorOne;
|
|
data.value = tablesInfo.authorOne;
|
|
}
|
|
}
|
|
|
|
+ bus.on("changeAuthorTwoCheck", (newData) => {
|
|
|
|
+ data.value.options.check = "";
|
|
|
|
+ });
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.content-box {
|
|
.content-box {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
+ min-height: 28px;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|